mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2024-12-27 17:42:33 -06:00
107 lines
6.7 KiB
Java
107 lines
6.7 KiB
Java
package androidx.compose.runtime.snapshots;
|
|
|
|
import androidx.compose.runtime.collection.IdentityArraySet;
|
|
import io.sentry.protocol.SentryStackTrace;
|
|
import io.sentry.protocol.SentryThread;
|
|
import kotlin.KotlinNothingValueException;
|
|
import kotlin.Metadata;
|
|
import kotlin.Unit;
|
|
import kotlin.jvm.functions.Function1;
|
|
import kotlin.jvm.internal.Intrinsics;
|
|
|
|
/* compiled from: Snapshot.kt */
|
|
@Metadata(d1 = {"\u0000:\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\b\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\u0010\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\b\n\u0002\u0010\u000b\n\u0002\b\u0016\b\u0000\u0018\u00002\u00020\u0001B-\b\u0000\u0012\u0006\u0010\u0002\u001a\u00020\u0003\u0012\u0006\u0010\u0004\u001a\u00020\u0005\u0012\u0014\u0010\u0006\u001a\u0010\u0012\u0004\u0012\u00020\b\u0012\u0004\u0012\u00020\t\u0018\u00010\u0007¢\u0006\u0002\u0010\nJ\b\u0010\u001f\u001a\u00020\tH\u0016J\b\u0010 \u001a\u00020\u0016H\u0016J\u0015\u0010!\u001a\u00020\t2\u0006\u0010\"\u001a\u00020\u0001H\u0010¢\u0006\u0002\b#J\u0015\u0010$\u001a\u00020\t2\u0006\u0010\"\u001a\u00020\u0001H\u0010¢\u0006\u0002\b%J\r\u0010&\u001a\u00020\tH\u0010¢\u0006\u0002\b'J\u0015\u0010(\u001a\u00020\t2\u0006\u0010)\u001a\u00020\rH\u0010¢\u0006\u0002\b*J\u001e\u0010+\u001a\u00020\u00012\u0014\u0010\u0006\u001a\u0010\u0012\u0004\u0012\u00020\b\u0012\u0004\u0012\u00020\t\u0018\u00010\u0007H\u0016R4\u0010\u000e\u001a\n\u0012\u0004\u0012\u00020\r\u0018\u00010\f2\u000e\u0010\u000b\u001a\n\u0012\u0004\u0012\u00020\r\u0018\u00010\f8P@VX\u0090\u000e¢\u0006\f\u001a\u0004\b\u000f\u0010\u0010\"\u0004\b\u0011\u0010\u0012R\"\u0010\u0006\u001a\u0010\u0012\u0004\u0012\u00020\b\u0012\u0004\u0012\u00020\t\u0018\u00010\u0007X\u0090\u0004¢\u0006\b\n\u0000\u001a\u0004\b\u0013\u0010\u0014R\u0014\u0010\u0015\u001a\u00020\u00168VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b\u0017\u0010\u0018R\u0014\u0010\u0019\u001a\u00020\u00018VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b\u001a\u0010\u001bR\u000e\u0010\u001c\u001a\u00020\u0003X\u0082\u000e¢\u0006\u0002\n\u0000R\"\u0010\u001d\u001a\u0010\u0012\u0004\u0012\u00020\b\u0012\u0004\u0012\u00020\t\u0018\u00010\u00078PX\u0090\u0004¢\u0006\u0006\u001a\u0004\b\u001e\u0010\u0014¨\u0006,"}, d2 = {"Landroidx/compose/runtime/snapshots/ReadonlySnapshot;", "Landroidx/compose/runtime/snapshots/Snapshot;", "id", "", "invalid", "Landroidx/compose/runtime/snapshots/SnapshotIdSet;", "readObserver", "Lkotlin/Function1;", "", "", "(ILandroidx/compose/runtime/snapshots/SnapshotIdSet;Lkotlin/jvm/functions/Function1;)V", "value", "Landroidx/compose/runtime/collection/IdentityArraySet;", "Landroidx/compose/runtime/snapshots/StateObject;", "modified", "getModified$runtime_release", "()Landroidx/compose/runtime/collection/IdentityArraySet;", "setModified", "(Landroidx/compose/runtime/collection/IdentityArraySet;)V", "getReadObserver$runtime_release", "()Lkotlin/jvm/functions/Function1;", "readOnly", "", "getReadOnly", "()Z", "root", "getRoot", "()Landroidx/compose/runtime/snapshots/Snapshot;", "snapshots", "writeObserver", "getWriteObserver$runtime_release", "dispose", "hasPendingChanges", "nestedActivated", SentryStackTrace.JsonKeys.SNAPSHOT, "nestedActivated$runtime_release", "nestedDeactivated", "nestedDeactivated$runtime_release", "notifyObjectsInitialized", "notifyObjectsInitialized$runtime_release", "recordModified", SentryThread.JsonKeys.STATE, "recordModified$runtime_release", "takeNestedSnapshot", "runtime_release"}, k = 1, mv = {1, 8, 0}, xi = 48)
|
|
/* loaded from: classes.dex */
|
|
public final class ReadonlySnapshot extends Snapshot {
|
|
private final Function1<Object, Unit> readObserver;
|
|
private int snapshots;
|
|
|
|
@Override // androidx.compose.runtime.snapshots.Snapshot
|
|
public IdentityArraySet<StateObject> getModified$runtime_release() {
|
|
return null;
|
|
}
|
|
|
|
@Override // androidx.compose.runtime.snapshots.Snapshot
|
|
public Function1<Object, Unit> getReadObserver$runtime_release() {
|
|
return this.readObserver;
|
|
}
|
|
|
|
@Override // androidx.compose.runtime.snapshots.Snapshot
|
|
public boolean getReadOnly() {
|
|
return true;
|
|
}
|
|
|
|
@Override // androidx.compose.runtime.snapshots.Snapshot
|
|
public Function1<Object, Unit> getWriteObserver$runtime_release() {
|
|
return null;
|
|
}
|
|
|
|
@Override // androidx.compose.runtime.snapshots.Snapshot
|
|
public boolean hasPendingChanges() {
|
|
return false;
|
|
}
|
|
|
|
@Override // androidx.compose.runtime.snapshots.Snapshot
|
|
/* renamed from: nestedActivated$runtime_release */
|
|
public void mo2287nestedActivated$runtime_release(Snapshot snapshot) {
|
|
Intrinsics.checkNotNullParameter(snapshot, "snapshot");
|
|
this.snapshots++;
|
|
}
|
|
|
|
@Override // androidx.compose.runtime.snapshots.Snapshot
|
|
public void notifyObjectsInitialized$runtime_release() {
|
|
}
|
|
|
|
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
|
public ReadonlySnapshot(int i, SnapshotIdSet invalid, Function1<Object, Unit> function1) {
|
|
super(i, invalid, null);
|
|
Intrinsics.checkNotNullParameter(invalid, "invalid");
|
|
this.readObserver = function1;
|
|
this.snapshots = 1;
|
|
}
|
|
|
|
@Override // androidx.compose.runtime.snapshots.Snapshot
|
|
public Snapshot getRoot() {
|
|
return this;
|
|
}
|
|
|
|
public void setModified(IdentityArraySet<StateObject> identityArraySet) {
|
|
SnapshotStateMapKt.unsupported();
|
|
throw new KotlinNothingValueException();
|
|
}
|
|
|
|
@Override // androidx.compose.runtime.snapshots.Snapshot
|
|
public Snapshot takeNestedSnapshot(Function1<Object, Unit> readObserver) {
|
|
ReadonlySnapshot readonlySnapshot = this;
|
|
SnapshotKt.validateOpen(readonlySnapshot);
|
|
return new NestedReadonlySnapshot(getId(), getInvalid(), readObserver, readonlySnapshot);
|
|
}
|
|
|
|
@Override // androidx.compose.runtime.snapshots.Snapshot
|
|
public void dispose() {
|
|
if (getDisposed()) {
|
|
return;
|
|
}
|
|
mo2288nestedDeactivated$runtime_release(this);
|
|
super.dispose();
|
|
}
|
|
|
|
@Override // androidx.compose.runtime.snapshots.Snapshot
|
|
/* renamed from: nestedDeactivated$runtime_release */
|
|
public void mo2288nestedDeactivated$runtime_release(Snapshot snapshot) {
|
|
Intrinsics.checkNotNullParameter(snapshot, "snapshot");
|
|
int i = this.snapshots - 1;
|
|
this.snapshots = i;
|
|
if (i == 0) {
|
|
closeAndReleasePinning$runtime_release();
|
|
}
|
|
}
|
|
|
|
@Override // androidx.compose.runtime.snapshots.Snapshot
|
|
/* renamed from: recordModified$runtime_release */
|
|
public void mo2289recordModified$runtime_release(StateObject state) {
|
|
Intrinsics.checkNotNullParameter(state, "state");
|
|
SnapshotKt.reportReadonlySnapshotWrite();
|
|
throw new KotlinNothingValueException();
|
|
}
|
|
}
|