mirror of
https://github.com/VibedByKaKi/alexandroid.git
synced 2026-11-13 09:27:16 +01:00
107 lines
6.5 KiB
Java
107 lines
6.5 KiB
Java
package androidx.compose.runtime;
|
|
|
|
import android.annotation.SuppressLint;
|
|
import android.os.Parcel;
|
|
import android.os.Parcelable;
|
|
import androidx.exifinterface.media.ExifInterface;
|
|
import com.amazon.alexa.ra.core.data.fragments.SmartFragmentContent;
|
|
import defpackage.a$$ExternalSyntheticOutline0;
|
|
import kotlin.Metadata;
|
|
import kotlin.jvm.JvmField;
|
|
import kotlin.jvm.internal.DefaultConstructorMarker;
|
|
import kotlin.jvm.internal.Intrinsics;
|
|
import org.jetbrains.annotations.NotNull;
|
|
import rx.Single$$ExternalSyntheticBUOutline0;
|
|
|
|
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
|
|
@Metadata(d1 = {"\u0000.\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\b\n\u0002\b\u0003\b\u0003\u0018\u0000 \u0010*\u0004\b\u0000\u0010\u00012\b\u0012\u0004\u0012\u0002H\u00010\u00022\u00020\u0003:\u0001\u0010B\u001d\u0012\u0006\u0010\u0004\u001a\u00028\u0000\u0012\f\u0010\u0005\u001a\b\u0012\u0004\u0012\u00028\u00000\u0006¢\u0006\u0004\b\u0007\u0010\bJ\u0018\u0010\t\u001a\u00020\n2\u0006\u0010\u000b\u001a\u00020\f2\u0006\u0010\r\u001a\u00020\u000eH\u0016J\b\u0010\u000f\u001a\u00020\u000eH\u0016¨\u0006\u0011"}, d2 = {"Landroidx/compose/runtime/ParcelableSnapshotMutableState;", ExifInterface.GPS_DIRECTION_TRUE, "Landroidx/compose/runtime/SnapshotMutableStateImpl;", "Landroid/os/Parcelable;", "value", "policy", "Landroidx/compose/runtime/SnapshotMutationPolicy;", "<init>", "(Ljava/lang/Object;Landroidx/compose/runtime/SnapshotMutationPolicy;)V", "writeToParcel", "", "parcel", "Landroid/os/Parcel;", "flags", "", "describeContents", "Companion", SmartFragmentContent.RUNTIME}, k = 1, mv = {2, 0, 0}, xi = 48)
|
|
@SuppressLint({"BanParcelableUsage"})
|
|
/* loaded from: classes13.dex */
|
|
final class ParcelableSnapshotMutableState<T> extends SnapshotMutableStateImpl<T> implements Parcelable {
|
|
private static final int PolicyNeverEquals = 0;
|
|
private static final int PolicyReferentialEquality = 2;
|
|
private static final int PolicyStructuralEquality = 1;
|
|
|
|
/* renamed from: Companion, reason: from kotlin metadata */
|
|
@NotNull
|
|
public static final Companion INSTANCE = new Companion(null);
|
|
|
|
@JvmField
|
|
@NotNull
|
|
public static final Parcelable.Creator<ParcelableSnapshotMutableState<Object>> CREATOR = new Parcelable.ClassLoaderCreator<ParcelableSnapshotMutableState<Object>>() { // from class: androidx.compose.runtime.ParcelableSnapshotMutableState$Companion$CREATOR$1
|
|
/* JADX WARN: Can't rename method to resolve collision */
|
|
@Override // android.os.Parcelable.ClassLoaderCreator
|
|
public ParcelableSnapshotMutableState<Object> createFromParcel(Parcel parcel, ClassLoader loader) {
|
|
SnapshotMutationPolicy neverEqualPolicy;
|
|
if (loader == null) {
|
|
loader = ParcelableSnapshotMutableState$Companion$CREATOR$1.class.getClassLoader();
|
|
}
|
|
Object readValue = parcel.readValue(loader);
|
|
int readInt = parcel.readInt();
|
|
if (readInt == 0) {
|
|
neverEqualPolicy = SnapshotStateKt.neverEqualPolicy();
|
|
} else if (readInt == 1) {
|
|
neverEqualPolicy = SnapshotStateKt.structuralEqualityPolicy();
|
|
} else {
|
|
if (readInt != 2) {
|
|
Single$$ExternalSyntheticBUOutline0.m$2(a$$ExternalSyntheticOutline0.m(readInt, "Unsupported MutableState policy ", " was restored"));
|
|
return null;
|
|
}
|
|
neverEqualPolicy = SnapshotStateKt.referentialEqualityPolicy();
|
|
}
|
|
return new ParcelableSnapshotMutableState<>(readValue, neverEqualPolicy);
|
|
}
|
|
|
|
@Override // android.os.Parcelable.Creator
|
|
public ParcelableSnapshotMutableState<Object>[] newArray(int size) {
|
|
return new ParcelableSnapshotMutableState[size];
|
|
}
|
|
|
|
@Override // android.os.Parcelable.Creator
|
|
public ParcelableSnapshotMutableState<Object> createFromParcel(Parcel parcel) {
|
|
return createFromParcel(parcel, (ClassLoader) null);
|
|
}
|
|
};
|
|
|
|
public ParcelableSnapshotMutableState(T t, @NotNull SnapshotMutationPolicy<T> snapshotMutationPolicy) {
|
|
super(t, snapshotMutationPolicy);
|
|
}
|
|
|
|
@Override // android.os.Parcelable
|
|
public int describeContents() {
|
|
return 0;
|
|
}
|
|
|
|
@Override // android.os.Parcelable
|
|
public void writeToParcel(@NotNull Parcel parcel, int flags) {
|
|
int i;
|
|
parcel.writeValue(getValue());
|
|
SnapshotMutationPolicy<T> policy = getPolicy();
|
|
if (Intrinsics.areEqual(policy, SnapshotStateKt.neverEqualPolicy())) {
|
|
i = 0;
|
|
} else if (Intrinsics.areEqual(policy, SnapshotStateKt.structuralEqualityPolicy())) {
|
|
i = 1;
|
|
} else {
|
|
if (!Intrinsics.areEqual(policy, SnapshotStateKt.referentialEqualityPolicy())) {
|
|
Single$$ExternalSyntheticBUOutline0.m$2("Only known types of MutableState's SnapshotMutationPolicy are supported");
|
|
return;
|
|
}
|
|
i = 2;
|
|
}
|
|
parcel.writeInt(i);
|
|
}
|
|
|
|
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
|
|
@Metadata(d1 = {"\u0000 \n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0003\n\u0002\u0010\b\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\b\u0086\u0003\u0018\u00002\u00020\u0001B\t\b\u0002¢\u0006\u0004\b\u0002\u0010\u0003R\u000e\u0010\u0004\u001a\u00020\u0005X\u0082T¢\u0006\u0002\n\u0000R\u000e\u0010\u0006\u001a\u00020\u0005X\u0082T¢\u0006\u0002\n\u0000R\u000e\u0010\u0007\u001a\u00020\u0005X\u0082T¢\u0006\u0002\n\u0000R$\u0010\b\u001a\u0010\u0012\f\u0012\n\u0012\u0006\u0012\u0004\u0018\u00010\u00010\n0\t8\u0006X\u0087\u0004¢\u0006\b\n\u0000\u0012\u0004\b\u000b\u0010\u0003¨\u0006\f"}, d2 = {"Landroidx/compose/runtime/ParcelableSnapshotMutableState$Companion;", "", "<init>", "()V", "PolicyNeverEquals", "", "PolicyStructuralEquality", "PolicyReferentialEquality", "CREATOR", "Landroid/os/Parcelable$Creator;", "Landroidx/compose/runtime/ParcelableSnapshotMutableState;", "getCREATOR$annotations", SmartFragmentContent.RUNTIME}, k = 1, mv = {2, 0, 0}, xi = 48)
|
|
public static final class Companion {
|
|
public /* synthetic */ Companion(DefaultConstructorMarker defaultConstructorMarker) {
|
|
this();
|
|
}
|
|
|
|
private Companion() {
|
|
}
|
|
|
|
public static /* synthetic */ void getCREATOR$annotations() {
|
|
}
|
|
}
|
|
}
|