mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2024-12-30 11:02:31 -06:00
100 lines
6.2 KiB
Java
100 lines
6.2 KiB
Java
|
package androidx.compose.runtime;
|
||
|
|
||
|
import android.os.Parcel;
|
||
|
import android.os.Parcelable;
|
||
|
import androidx.exifinterface.media.ExifInterface;
|
||
|
import kotlin.Metadata;
|
||
|
import kotlin.jvm.internal.DefaultConstructorMarker;
|
||
|
import kotlin.jvm.internal.Intrinsics;
|
||
|
|
||
|
/* compiled from: ParcelableSnapshotMutableState.kt */
|
||
|
@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\u0002\n\u0002\u0010\b\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0003\b\u0001\u0018\u0000 \u000f*\u0004\b\u0000\u0010\u00012\b\u0012\u0004\u0012\u0002H\u00010\u00022\u00020\u0003:\u0001\u000fB\u001b\u0012\u0006\u0010\u0004\u001a\u00028\u0000\u0012\f\u0010\u0005\u001a\b\u0012\u0004\u0012\u00028\u00000\u0006¢\u0006\u0002\u0010\u0007J\b\u0010\b\u001a\u00020\tH\u0016J\u0018\u0010\n\u001a\u00020\u000b2\u0006\u0010\f\u001a\u00020\r2\u0006\u0010\u000e\u001a\u00020\tH\u0016¨\u0006\u0010"}, d2 = {"Landroidx/compose/runtime/ParcelableSnapshotMutableState;", ExifInterface.GPS_DIRECTION_TRUE, "Landroidx/compose/runtime/SnapshotMutableStateImpl;", "Landroid/os/Parcelable;", "value", "policy", "Landroidx/compose/runtime/SnapshotMutationPolicy;", "(Ljava/lang/Object;Landroidx/compose/runtime/SnapshotMutationPolicy;)V", "describeContents", "", "writeToParcel", "", "parcel", "Landroid/os/Parcel;", "flags", "Companion", "runtime_release"}, k = 1, mv = {1, 8, 0}, xi = 48)
|
||
|
/* loaded from: classes.dex */
|
||
|
public 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 */
|
||
|
public static final Companion INSTANCE = new Companion(null);
|
||
|
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;
|
||
|
Intrinsics.checkNotNullParameter(parcel, "parcel");
|
||
|
if (loader == null) {
|
||
|
loader = getClass().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) {
|
||
|
neverEqualPolicy = SnapshotStateKt.referentialEqualityPolicy();
|
||
|
} else {
|
||
|
throw new IllegalStateException("Unsupported MutableState policy " + readInt + " was restored");
|
||
|
}
|
||
|
return new ParcelableSnapshotMutableState<>(readValue, neverEqualPolicy);
|
||
|
}
|
||
|
|
||
|
@Override // android.os.Parcelable.Creator
|
||
|
public ParcelableSnapshotMutableState<Object> createFromParcel(Parcel parcel) {
|
||
|
Intrinsics.checkNotNullParameter(parcel, "parcel");
|
||
|
return createFromParcel(parcel, (ClassLoader) null);
|
||
|
}
|
||
|
|
||
|
@Override // android.os.Parcelable.Creator
|
||
|
public ParcelableSnapshotMutableState<Object>[] newArray(int size) {
|
||
|
return new ParcelableSnapshotMutableState[size];
|
||
|
}
|
||
|
};
|
||
|
|
||
|
@Override // android.os.Parcelable
|
||
|
public int describeContents() {
|
||
|
return 0;
|
||
|
}
|
||
|
|
||
|
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||
|
public ParcelableSnapshotMutableState(T t, SnapshotMutationPolicy<T> policy) {
|
||
|
super(t, policy);
|
||
|
Intrinsics.checkNotNullParameter(policy, "policy");
|
||
|
}
|
||
|
|
||
|
@Override // android.os.Parcelable
|
||
|
public void writeToParcel(Parcel parcel, int flags) {
|
||
|
int i;
|
||
|
Intrinsics.checkNotNullParameter(parcel, "parcel");
|
||
|
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())) {
|
||
|
throw new IllegalStateException("Only known types of MutableState's SnapshotMutationPolicy are supported");
|
||
|
}
|
||
|
i = 2;
|
||
|
}
|
||
|
parcel.writeInt(i);
|
||
|
}
|
||
|
|
||
|
/* compiled from: ParcelableSnapshotMutableState.kt */
|
||
|
@Metadata(d1 = {"\u0000 \n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\b\n\u0002\b\u0003\b\u0086\u0003\u0018\u00002\u00020\u0001B\u0007\b\u0002¢\u0006\u0002\u0010\u0002R$\u0010\u0003\u001a\u0010\u0012\f\u0012\n\u0012\u0006\u0012\u0004\u0018\u00010\u00010\u00050\u00048\u0006X\u0087\u0004¢\u0006\b\n\u0000\u0012\u0004\b\u0006\u0010\u0002R\u000e\u0010\u0007\u001a\u00020\bX\u0082T¢\u0006\u0002\n\u0000R\u000e\u0010\t\u001a\u00020\bX\u0082T¢\u0006\u0002\n\u0000R\u000e\u0010\n\u001a\u00020\bX\u0082T¢\u0006\u0002\n\u0000¨\u0006\u000b"}, d2 = {"Landroidx/compose/runtime/ParcelableSnapshotMutableState$Companion;", "", "()V", "CREATOR", "Landroid/os/Parcelable$Creator;", "Landroidx/compose/runtime/ParcelableSnapshotMutableState;", "getCREATOR$annotations", "PolicyNeverEquals", "", "PolicyReferentialEquality", "PolicyStructuralEquality", "runtime_release"}, k = 1, mv = {1, 8, 0}, xi = 48)
|
||
|
/* loaded from: classes.dex */
|
||
|
public static final class Companion {
|
||
|
public /* synthetic */ Companion(DefaultConstructorMarker defaultConstructorMarker) {
|
||
|
this();
|
||
|
}
|
||
|
|
||
|
public static /* synthetic */ void getCREATOR$annotations() {
|
||
|
}
|
||
|
|
||
|
private Companion() {
|
||
|
}
|
||
|
}
|
||
|
}
|