mirror of
https://github.com/VibedByKaKi/alexandroid.git
synced 2026-11-13 17:37:16 +01:00
117 lines
7.2 KiB
Java
117 lines
7.2 KiB
Java
package androidx.compose.runtime;
|
|
|
|
import androidx.compose.runtime.internal.StabilityInferred;
|
|
import androidx.exifinterface.media.ExifInterface;
|
|
import com.amazon.alexa.ra.core.data.fragments.SmartFragmentContent;
|
|
import io.ktor.util.PathKt$$ExternalSyntheticBUOutline0;
|
|
import kotlin.Metadata;
|
|
import kotlin.jvm.JvmName;
|
|
import kotlin.jvm.functions.Function1;
|
|
import kotlin.jvm.internal.SourceDebugExtension;
|
|
import org.jetbrains.annotations.NotNull;
|
|
import org.jetbrains.annotations.Nullable;
|
|
|
|
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
|
|
@StabilityInferred(parameters = 0)
|
|
@Metadata(d1 = {"\u00006\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0000\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u000b\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u001d\b\u0007\u0018\u0000*\u0004\b\u0000\u0010\u00012\u00020\u0002Bl\b\u0000\u0012\f\u0010\u0003\u001a\b\u0012\u0004\u0012\u00028\u00000\u0004\u0012\b\u0010\u0005\u001a\u0004\u0018\u00018\u0000\u0012\u0006\u0010\u0006\u001a\u00020\u0007\u0012\u000e\u0010\b\u001a\n\u0012\u0004\u0012\u00028\u0000\u0018\u00010\t\u0012\u000e\u0010\n\u001a\n\u0012\u0004\u0012\u00028\u0000\u0018\u00010\u000b\u0012\u0019\u0010\f\u001a\u0015\u0012\u0004\u0012\u00020\u000e\u0012\u0004\u0012\u00028\u0000\u0018\u00010\r¢\u0006\u0002\b\u000f\u0012\u0006\u0010\u0010\u001a\u00020\u0007¢\u0006\u0004\b\u0011\u0010\u0012J\u0013\u0010*\u001a\b\u0012\u0004\u0012\u00028\u00000\u0000H\u0000¢\u0006\u0002\b+R\u0017\u0010\u0003\u001a\b\u0012\u0004\u0012\u00028\u00000\u0004¢\u0006\b\n\u0000\u001a\u0004\b\u0013\u0010\u0014R\u000e\u0010\u0006\u001a\u00020\u0007X\u0082\u0004¢\u0006\u0002\n\u0000R\u001c\u0010\b\u001a\n\u0012\u0004\u0012\u00028\u0000\u0018\u00010\tX\u0080\u0004¢\u0006\b\n\u0000\u001a\u0004\b\u0015\u0010\u0016R\u001c\u0010\n\u001a\n\u0012\u0004\u0012\u00028\u0000\u0018\u00010\u000bX\u0080\u0004¢\u0006\b\n\u0000\u001a\u0004\b\u0017\u0010\u0018R'\u0010\f\u001a\u0015\u0012\u0004\u0012\u00020\u000e\u0012\u0004\u0012\u00028\u0000\u0018\u00010\r¢\u0006\u0002\b\u000fX\u0080\u0004¢\u0006\b\n\u0000\u001a\u0004\b\u0019\u0010\u001aR\u0014\u0010\u0010\u001a\u00020\u0007X\u0080\u0004¢\u0006\b\n\u0000\u001a\u0004\b\u001b\u0010\u001cR\u0012\u0010\u001d\u001a\u0004\u0018\u00018\u0000X\u0082\u0004¢\u0006\u0004\n\u0002\u0010\u001eR\u0017\u0010\u0005\u001a\u00028\u00008F¢\u0006\f\u0012\u0004\b\u001f\u0010 \u001a\u0004\b!\u0010\"R \u0010#\u001a\u00020\u00072\u0006\u0010\u0005\u001a\u00020\u00078G@BX\u0086\u000e¢\u0006\b\n\u0000\u001a\u0004\b$\u0010\u001cR\u001a\u0010%\u001a\u00028\u00008@X\u0080\u0004¢\u0006\f\u0012\u0004\b&\u0010 \u001a\u0004\b'\u0010\"R\u0014\u0010(\u001a\u00020\u00078@X\u0080\u0004¢\u0006\u0006\u001a\u0004\b)\u0010\u001c¨\u0006,"}, d2 = {"Landroidx/compose/runtime/ProvidedValue;", ExifInterface.GPS_DIRECTION_TRUE, "", "compositionLocal", "Landroidx/compose/runtime/CompositionLocal;", "value", "explicitNull", "", "mutationPolicy", "Landroidx/compose/runtime/SnapshotMutationPolicy;", "state", "Landroidx/compose/runtime/MutableState;", "compute", "Lkotlin/Function1;", "Landroidx/compose/runtime/CompositionLocalAccessorScope;", "Lkotlin/ExtensionFunctionType;", "isDynamic", "<init>", "(Landroidx/compose/runtime/CompositionLocal;Ljava/lang/Object;ZLandroidx/compose/runtime/SnapshotMutationPolicy;Landroidx/compose/runtime/MutableState;Lkotlin/jvm/functions/Function1;Z)V", "getCompositionLocal", "()Landroidx/compose/runtime/CompositionLocal;", "getMutationPolicy$runtime", "()Landroidx/compose/runtime/SnapshotMutationPolicy;", "getState$runtime", "()Landroidx/compose/runtime/MutableState;", "getCompute$runtime", "()Lkotlin/jvm/functions/Function1;", "isDynamic$runtime", "()Z", "providedValue", "Ljava/lang/Object;", "getValue$annotations", "()V", "getValue", "()Ljava/lang/Object;", "canOverride", "getCanOverride", "effectiveValue", "getEffectiveValue$runtime$annotations", "getEffectiveValue$runtime", "isStatic", "isStatic$runtime", "ifNotAlreadyProvided", "ifNotAlreadyProvided$runtime", SmartFragmentContent.RUNTIME}, k = 1, mv = {2, 0, 0}, xi = 48)
|
|
@SourceDebugExtension({"SMAP\nComposer.kt\nKotlin\n*S Kotlin\n*F\n+ 1 Composer.kt\nandroidx/compose/runtime/ProvidedValue\n+ 2 fake.kt\nkotlin/jvm/internal/FakeKt\n*L\n1#1,5012:1\n1#2:5013\n*E\n"})
|
|
/* loaded from: classes13.dex */
|
|
public final class ProvidedValue<T> {
|
|
public static final int $stable = 8;
|
|
private boolean canOverride = true;
|
|
|
|
@NotNull
|
|
private final CompositionLocal<T> compositionLocal;
|
|
|
|
@Nullable
|
|
private final Function1<CompositionLocalAccessorScope, T> compute;
|
|
private final boolean explicitNull;
|
|
private final boolean isDynamic;
|
|
|
|
@Nullable
|
|
private final SnapshotMutationPolicy<T> mutationPolicy;
|
|
|
|
@Nullable
|
|
private final T providedValue;
|
|
|
|
@Nullable
|
|
private final MutableState<T> state;
|
|
|
|
/* JADX WARN: Multi-variable type inference failed */
|
|
public ProvidedValue(@NotNull CompositionLocal<T> compositionLocal, @Nullable T t, boolean z, @Nullable SnapshotMutationPolicy<T> snapshotMutationPolicy, @Nullable MutableState<T> mutableState, @Nullable Function1<? super CompositionLocalAccessorScope, ? extends T> function1, boolean z2) {
|
|
this.compositionLocal = compositionLocal;
|
|
this.explicitNull = z;
|
|
this.mutationPolicy = snapshotMutationPolicy;
|
|
this.state = mutableState;
|
|
this.compute = function1;
|
|
this.isDynamic = z2;
|
|
this.providedValue = t;
|
|
}
|
|
|
|
@JvmName(name = "getCanOverride")
|
|
public final boolean getCanOverride() {
|
|
return this.canOverride;
|
|
}
|
|
|
|
@NotNull
|
|
public final CompositionLocal<T> getCompositionLocal() {
|
|
return this.compositionLocal;
|
|
}
|
|
|
|
@Nullable
|
|
public final Function1<CompositionLocalAccessorScope, T> getCompute$runtime() {
|
|
return this.compute;
|
|
}
|
|
|
|
public final T getEffectiveValue$runtime() {
|
|
if (this.explicitNull) {
|
|
return null;
|
|
}
|
|
MutableState<T> mutableState = this.state;
|
|
if (mutableState != null) {
|
|
return mutableState.getValue();
|
|
}
|
|
T t = this.providedValue;
|
|
if (t != null) {
|
|
return t;
|
|
}
|
|
ComposerKt.composeRuntimeError("Unexpected form of a provided value");
|
|
PathKt$$ExternalSyntheticBUOutline0.m$1();
|
|
return null;
|
|
}
|
|
|
|
@Nullable
|
|
public final SnapshotMutationPolicy<T> getMutationPolicy$runtime() {
|
|
return this.mutationPolicy;
|
|
}
|
|
|
|
@Nullable
|
|
public final MutableState<T> getState$runtime() {
|
|
return this.state;
|
|
}
|
|
|
|
public final T getValue() {
|
|
return this.providedValue;
|
|
}
|
|
|
|
@NotNull
|
|
public final ProvidedValue<T> ifNotAlreadyProvided$runtime() {
|
|
this.canOverride = false;
|
|
return this;
|
|
}
|
|
|
|
/* renamed from: isDynamic$runtime, reason: from getter */
|
|
public final boolean getIsDynamic() {
|
|
return this.isDynamic;
|
|
}
|
|
|
|
public final boolean isStatic$runtime() {
|
|
return (this.explicitNull || getValue() != null) && !this.isDynamic;
|
|
}
|
|
|
|
public static /* synthetic */ void getEffectiveValue$runtime$annotations() {
|
|
}
|
|
|
|
public static /* synthetic */ void getValue$annotations() {
|
|
}
|
|
}
|