Initial import of ADIF API reverse-engineering toolkit

This commit is contained in:
2025-12-16 08:37:56 +01:00
commit 60388529c1
11486 changed files with 1086536 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
package androidx.room;
import kotlin.coroutines.CoroutineContext;
/* loaded from: classes.dex */
public abstract class A implements CoroutineContext.Element {
/* renamed from: a, reason: collision with root package name */
public static final z f3944a = new Object();
}

View File

@@ -0,0 +1,6 @@
package androidx.room;
/* renamed from: androidx.room.a, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public abstract class AbstractC0249a {
}

View File

@@ -0,0 +1,8 @@
package androidx.room;
import w0.InterfaceC0646b;
/* renamed from: androidx.room.b, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public abstract class AbstractC0250b implements InterfaceC0646b, h {
}

View File

@@ -0,0 +1,56 @@
package androidx.room;
import java.util.ArrayDeque;
import java.util.concurrent.Executor;
import kotlin.Unit;
import kotlin.jvm.internal.Intrinsics;
import n.C0508b;
import n.ExecutorC0507a;
/* loaded from: classes.dex */
public final class B implements Executor {
/* renamed from: a, reason: collision with root package name */
public final ArrayDeque f3945a;
/* renamed from: b, reason: collision with root package name */
public Runnable f3946b;
/* renamed from: c, reason: collision with root package name */
public final Object f3947c;
public B() {
ExecutorC0507a executor = C0508b.f7833c;
Intrinsics.checkNotNullParameter(executor, "executor");
this.f3945a = new ArrayDeque();
this.f3947c = new Object();
}
public final void a() {
synchronized (this.f3947c) {
Object poll = this.f3945a.poll();
Runnable runnable = (Runnable) poll;
this.f3946b = runnable;
if (poll != null) {
C0508b.L().f7834a.f7837b.execute(runnable);
}
Unit unit = Unit.INSTANCE;
}
}
@Override // java.util.concurrent.Executor
public final void execute(Runnable command) {
Intrinsics.checkNotNullParameter(command, "command");
synchronized (this.f3947c) {
try {
this.f3945a.offer(new F.n(1, command, this));
if (this.f3946b == null) {
a();
}
Unit unit = Unit.INSTANCE;
} catch (Throwable th) {
throw th;
}
}
}
}

View File

@@ -0,0 +1,31 @@
package androidx.room;
import android.app.Service;
import android.content.Intent;
import android.os.IBinder;
import java.util.LinkedHashMap;
import kotlin.Metadata;
import kotlin.jvm.internal.Intrinsics;
@Metadata(d1 = {"\u0000\f\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\b\u0007\u0018\u00002\u00020\u0001B\u0007¢\u0006\u0004\b\u0002\u0010\u0003¨\u0006\u0004"}, d2 = {"Landroidx/room/MultiInstanceInvalidationService;", "Landroid/app/Service;", "<init>", "()V", "room-runtime_release"}, k = 1, mv = {1, 8, 0}, xi = 48)
/* loaded from: classes.dex */
public final class MultiInstanceInvalidationService extends Service {
/* renamed from: a, reason: collision with root package name */
public int f3948a;
/* renamed from: b, reason: collision with root package name */
public final LinkedHashMap f3949b = new LinkedHashMap();
/* renamed from: c, reason: collision with root package name */
public final r f3950c = new r(this);
/* renamed from: d, reason: collision with root package name */
public final q f3951d = new q(this);
@Override // android.app.Service
public final IBinder onBind(Intent intent) {
Intrinsics.checkNotNullParameter(intent, "intent");
return this.f3951d;
}
}

View File

@@ -0,0 +1,79 @@
package androidx.room;
import java.util.concurrent.Callable;
import kotlin.Unit;
import kotlin.coroutines.Continuation;
import kotlin.coroutines.jvm.internal.SuspendLambda;
import kotlin.jvm.functions.Function2;
import kotlinx.coroutines.CoroutineScope;
import kotlinx.coroutines.channels.Channel;
import kotlinx.coroutines.channels.ChannelIterator;
/* loaded from: classes.dex */
public final class c extends SuspendLambda implements Function2 {
/* renamed from: a, reason: collision with root package name */
public ChannelIterator f3952a;
/* renamed from: b, reason: collision with root package name */
public int f3953b;
/* renamed from: c, reason: collision with root package name */
public final /* synthetic */ u f3954c;
/* renamed from: d, reason: collision with root package name */
public final /* synthetic */ F.i f3955d;
/* renamed from: e, reason: collision with root package name */
public final /* synthetic */ Channel f3956e;
/* renamed from: f, reason: collision with root package name */
public final /* synthetic */ Callable f3957f;
/* renamed from: g, reason: collision with root package name */
public final /* synthetic */ Channel f3958g;
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public c(u uVar, F.i iVar, Channel channel, Callable callable, Channel channel2, Continuation continuation) {
super(2, continuation);
this.f3954c = uVar;
this.f3955d = iVar;
this.f3956e = channel;
this.f3957f = callable;
this.f3958g = channel2;
}
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
public final Continuation create(Object obj, Continuation continuation) {
return new c(this.f3954c, this.f3955d, this.f3956e, this.f3957f, this.f3958g, continuation);
}
@Override // kotlin.jvm.functions.Function2
public final Object invoke(Object obj, Object obj2) {
return ((c) create((CoroutineScope) obj, (Continuation) obj2)).invokeSuspend(Unit.INSTANCE);
}
/* JADX WARN: Code restructure failed: missing block: B:17:0x0166, code lost:
if (r6.send(r3, r17) == r2) goto L63;
*/
/* JADX WARN: Multi-variable type inference failed */
/* JADX WARN: Removed duplicated region for block: B:16:0x0152 A[Catch: all -> 0x001e, TRY_LEAVE, TryCatch #2 {all -> 0x001e, blocks: (B:7:0x0016, B:9:0x013e, B:14:0x014a, B:16:0x0152, B:24:0x002b, B:74:0x0138), top: B:2:0x000e }] */
/* JADX WARN: Removed duplicated region for block: B:18:0x0169 */
/* JADX WARN: Type inference failed for: r9v3 */
/* JADX WARN: Type inference failed for: r9v4, types: [int] */
/* JADX WARN: Type inference failed for: r9v5, types: [boolean] */
/* JADX WARN: Unsupported multi-entry loop pattern (BACK_EDGE: B:17:0x0166 -> B:9:0x013e). Please report as a decompilation issue!!! */
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public final java.lang.Object invokeSuspend(java.lang.Object r18) {
/*
Method dump skipped, instructions count: 382
To view this dump add '--comments-level debug' option
*/
throw new UnsupportedOperationException("Method not decompiled: androidx.room.c.invokeSuspend(java.lang.Object):java.lang.Object");
}
}

View File

@@ -0,0 +1,119 @@
package androidx.room;
import java.util.Map;
import java.util.concurrent.Callable;
import kotlin.ResultKt;
import kotlin.Unit;
import kotlin.coroutines.Continuation;
import kotlin.coroutines.intrinsics.IntrinsicsKt;
import kotlin.coroutines.jvm.internal.SuspendLambda;
import kotlin.jvm.functions.Function2;
import kotlin.jvm.internal.Intrinsics;
import kotlinx.coroutines.BuildersKt__Builders_commonKt;
import kotlinx.coroutines.CoroutineDispatcher;
import kotlinx.coroutines.CoroutineScope;
import kotlinx.coroutines.ExecutorsKt;
import kotlinx.coroutines.channels.Channel;
import kotlinx.coroutines.channels.ChannelKt;
import kotlinx.coroutines.flow.FlowCollector;
import kotlinx.coroutines.flow.FlowKt;
/* loaded from: classes.dex */
public final class d extends SuspendLambda implements Function2 {
/* renamed from: a, reason: collision with root package name */
public int f3959a;
/* renamed from: b, reason: collision with root package name */
public /* synthetic */ Object f3960b;
/* renamed from: c, reason: collision with root package name */
public final /* synthetic */ boolean f3961c;
/* renamed from: d, reason: collision with root package name */
public final /* synthetic */ u f3962d;
/* renamed from: e, reason: collision with root package name */
public final /* synthetic */ FlowCollector f3963e;
/* renamed from: f, reason: collision with root package name */
public final /* synthetic */ String[] f3964f;
/* renamed from: g, reason: collision with root package name */
public final /* synthetic */ Callable f3965g;
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public d(boolean z3, u uVar, FlowCollector flowCollector, String[] strArr, Callable callable, Continuation continuation) {
super(2, continuation);
this.f3961c = z3;
this.f3962d = uVar;
this.f3963e = flowCollector;
this.f3964f = strArr;
this.f3965g = callable;
}
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
public final Continuation create(Object obj, Continuation continuation) {
String[] strArr = this.f3964f;
Callable callable = this.f3965g;
d dVar = new d(this.f3961c, this.f3962d, this.f3963e, strArr, callable, continuation);
dVar.f3960b = obj;
return dVar;
}
@Override // kotlin.jvm.functions.Function2
public final Object invoke(Object obj, Object obj2) {
return ((d) create((CoroutineScope) obj, (Continuation) obj2)).invokeSuspend(Unit.INSTANCE);
}
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
public final Object invokeSuspend(Object obj) {
CoroutineDispatcher coroutineDispatcher;
Object coroutine_suspended = IntrinsicsKt.getCOROUTINE_SUSPENDED();
int i = this.f3959a;
if (i == 0) {
ResultKt.throwOnFailure(obj);
CoroutineScope coroutineScope = (CoroutineScope) this.f3960b;
Channel Channel$default = ChannelKt.Channel$default(-1, null, null, 6, null);
F.i iVar = new F.i(this.f3964f, Channel$default);
Channel$default.mo1630trySendJP2dKIU(Unit.INSTANCE);
if (coroutineScope.getCoroutineContext().get(A.f3944a) != null) {
throw new ClassCastException();
}
boolean z3 = this.f3961c;
u uVar = this.f3962d;
if (z3) {
Map<String, Object> backingFieldMap = uVar.getBackingFieldMap();
Object obj2 = backingFieldMap.get("TransactionDispatcher");
if (obj2 == null) {
obj2 = ExecutorsKt.from(uVar.getTransactionExecutor());
backingFieldMap.put("TransactionDispatcher", obj2);
}
Intrinsics.checkNotNull(obj2, "null cannot be cast to non-null type kotlinx.coroutines.CoroutineDispatcher");
coroutineDispatcher = (CoroutineDispatcher) obj2;
} else {
Map<String, Object> backingFieldMap2 = uVar.getBackingFieldMap();
Object obj3 = backingFieldMap2.get("QueryDispatcher");
if (obj3 == null) {
obj3 = ExecutorsKt.from(uVar.getQueryExecutor());
backingFieldMap2.put("QueryDispatcher", obj3);
}
Intrinsics.checkNotNull(obj3, "null cannot be cast to non-null type kotlinx.coroutines.CoroutineDispatcher");
coroutineDispatcher = (CoroutineDispatcher) obj3;
}
CoroutineDispatcher coroutineDispatcher2 = coroutineDispatcher;
Channel Channel$default2 = ChannelKt.Channel$default(0, null, null, 7, null);
BuildersKt__Builders_commonKt.launch$default(coroutineScope, coroutineDispatcher2, null, new c(this.f3962d, iVar, Channel$default, this.f3965g, Channel$default2, null), 2, null);
this.f3959a = 1;
if (FlowKt.emitAll(this.f3963e, Channel$default2, this) == coroutine_suspended) {
return coroutine_suspended;
}
} else {
if (i != 1) {
throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
}
ResultKt.throwOnFailure(obj);
}
return Unit.INSTANCE;
}
}

View File

@@ -0,0 +1,76 @@
package androidx.room;
import java.util.concurrent.Callable;
import kotlin.ResultKt;
import kotlin.Unit;
import kotlin.coroutines.Continuation;
import kotlin.coroutines.intrinsics.IntrinsicsKt;
import kotlin.coroutines.jvm.internal.SuspendLambda;
import kotlin.jvm.functions.Function2;
import kotlinx.coroutines.CoroutineScopeKt;
import kotlinx.coroutines.flow.FlowCollector;
/* loaded from: classes.dex */
public final class e extends SuspendLambda implements Function2 {
/* renamed from: a, reason: collision with root package name */
public int f3966a;
/* renamed from: b, reason: collision with root package name */
public /* synthetic */ Object f3967b;
/* renamed from: c, reason: collision with root package name */
public final /* synthetic */ boolean f3968c;
/* renamed from: d, reason: collision with root package name */
public final /* synthetic */ u f3969d;
/* renamed from: e, reason: collision with root package name */
public final /* synthetic */ String[] f3970e;
/* renamed from: f, reason: collision with root package name */
public final /* synthetic */ Callable f3971f;
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public e(boolean z3, u uVar, String[] strArr, Callable callable, Continuation continuation) {
super(2, continuation);
this.f3968c = z3;
this.f3969d = uVar;
this.f3970e = strArr;
this.f3971f = callable;
}
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
public final Continuation create(Object obj, Continuation continuation) {
e eVar = new e(this.f3968c, this.f3969d, this.f3970e, this.f3971f, continuation);
eVar.f3967b = obj;
return eVar;
}
@Override // kotlin.jvm.functions.Function2
public final Object invoke(Object obj, Object obj2) {
return ((e) create((FlowCollector) obj, (Continuation) obj2)).invokeSuspend(Unit.INSTANCE);
}
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
public final Object invokeSuspend(Object obj) {
Object coroutine_suspended = IntrinsicsKt.getCOROUTINE_SUSPENDED();
int i = this.f3966a;
if (i == 0) {
ResultKt.throwOnFailure(obj);
FlowCollector flowCollector = (FlowCollector) this.f3967b;
Callable callable = this.f3971f;
d dVar = new d(this.f3968c, this.f3969d, flowCollector, this.f3970e, callable, null);
this.f3966a = 1;
if (CoroutineScopeKt.coroutineScope(dVar, this) == coroutine_suspended) {
return coroutine_suspended;
}
} else {
if (i != 1) {
throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
}
ResultKt.throwOnFailure(obj);
}
return Unit.INSTANCE;
}
}

View File

@@ -0,0 +1,40 @@
package androidx.room;
import java.util.concurrent.Callable;
import kotlin.ResultKt;
import kotlin.Unit;
import kotlin.coroutines.Continuation;
import kotlin.coroutines.intrinsics.IntrinsicsKt;
import kotlin.coroutines.jvm.internal.SuspendLambda;
import kotlin.jvm.functions.Function2;
import kotlinx.coroutines.CoroutineScope;
/* loaded from: classes.dex */
public final class f extends SuspendLambda implements Function2 {
/* renamed from: a, reason: collision with root package name */
public final /* synthetic */ Callable f3972a;
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public f(Callable callable, Continuation continuation) {
super(2, continuation);
this.f3972a = callable;
}
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
public final Continuation create(Object obj, Continuation continuation) {
return new f(this.f3972a, continuation);
}
@Override // kotlin.jvm.functions.Function2
public final Object invoke(Object obj, Object obj2) {
return ((f) create((CoroutineScope) obj, (Continuation) obj2)).invokeSuspend(Unit.INSTANCE);
}
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
public final Object invokeSuspend(Object obj) {
IntrinsicsKt.getCOROUTINE_SUSPENDED();
ResultKt.throwOnFailure(obj);
return this.f3972a.call();
}
}

View File

@@ -0,0 +1,53 @@
package androidx.room;
import android.content.Context;
import f0.C0338b;
import java.util.ArrayList;
import java.util.LinkedHashSet;
import kotlin.jvm.internal.Intrinsics;
import n.C0508b;
import n.ExecutorC0507a;
/* loaded from: classes.dex */
public final class g {
/* renamed from: a, reason: collision with root package name */
public final Context f3973a;
/* renamed from: b, reason: collision with root package name */
public final A.a f3974b;
/* renamed from: c, reason: collision with root package name */
public final ArrayList f3975c;
/* renamed from: d, reason: collision with root package name */
public final t f3976d;
/* renamed from: e, reason: collision with root package name */
public final LinkedHashSet f3977e;
/* renamed from: f, reason: collision with root package name */
public final ArrayList f3978f;
/* renamed from: g, reason: collision with root package name */
public final ArrayList f3979g;
public g(Context context, C0338b sqliteOpenHelperFactory, A.a migrationContainer, ArrayList arrayList, t journalMode, LinkedHashSet linkedHashSet, ArrayList typeConverters, ArrayList autoMigrationSpecs) {
ExecutorC0507a transactionExecutor = C0508b.f7833c;
Intrinsics.checkNotNullParameter(context, "context");
Intrinsics.checkNotNullParameter(sqliteOpenHelperFactory, "sqliteOpenHelperFactory");
Intrinsics.checkNotNullParameter(migrationContainer, "migrationContainer");
Intrinsics.checkNotNullParameter(journalMode, "journalMode");
Intrinsics.checkNotNullParameter(transactionExecutor, "queryExecutor");
Intrinsics.checkNotNullParameter(transactionExecutor, "transactionExecutor");
Intrinsics.checkNotNullParameter(typeConverters, "typeConverters");
Intrinsics.checkNotNullParameter(autoMigrationSpecs, "autoMigrationSpecs");
this.f3973a = context;
this.f3974b = migrationContainer;
this.f3975c = arrayList;
this.f3976d = journalMode;
this.f3977e = linkedHashSet;
this.f3978f = typeConverters;
this.f3979g = autoMigrationSpecs;
}
}

View File

@@ -0,0 +1,5 @@
package androidx.room;
/* loaded from: classes.dex */
public interface h {
}

View File

@@ -0,0 +1,8 @@
package androidx.room;
import w0.InterfaceC0649e;
/* loaded from: classes.dex */
public abstract class i extends y {
public abstract void d(InterfaceC0649e interfaceC0649e, Object obj);
}

View File

@@ -0,0 +1,30 @@
package androidx.room;
import java.util.Iterator;
import kotlin.jvm.internal.Intrinsics;
import w0.InterfaceC0649e;
/* loaded from: classes.dex */
public abstract class j extends y {
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public j(u database) {
super(database);
Intrinsics.checkNotNullParameter(database, "database");
}
public abstract void d(InterfaceC0649e interfaceC0649e, Object obj);
public final void e(Iterable entities) {
Intrinsics.checkNotNullParameter(entities, "entities");
InterfaceC0649e a2 = a();
try {
Iterator it = entities.iterator();
while (it.hasNext()) {
d(a2, it.next());
a2.T();
}
} finally {
c(a2);
}
}
}

View File

@@ -0,0 +1,28 @@
package androidx.room;
import android.os.IBinder;
import android.os.Parcel;
/* loaded from: classes.dex */
public final class k implements l {
/* renamed from: c, reason: collision with root package name */
public IBinder f3980c;
@Override // androidx.room.l
public final void a(String[] strArr) {
Parcel obtain = Parcel.obtain();
try {
obtain.writeInterfaceToken(l.f3981a);
obtain.writeStringArray(strArr);
this.f3980c.transact(1, obtain, null, 1);
} finally {
obtain.recycle();
}
}
@Override // android.os.IInterface
public final IBinder asBinder() {
return this.f3980c;
}
}

View File

@@ -0,0 +1,13 @@
package androidx.room;
import android.os.IInterface;
import kotlin.text.Typography;
/* loaded from: classes.dex */
public interface l extends IInterface {
/* renamed from: a, reason: collision with root package name */
public static final String f3981a = "androidx$room$IMultiInstanceInvalidationCallback".replace(Typography.dollar, '.');
void a(String[] strArr);
}

View File

@@ -0,0 +1,11 @@
package androidx.room;
import android.os.IInterface;
import kotlin.text.Typography;
/* loaded from: classes.dex */
public interface m extends IInterface {
/* renamed from: b, reason: collision with root package name */
public static final String f3982b = "androidx$room$IMultiInstanceInvalidationService".replace(Typography.dollar, '.');
}

View File

@@ -0,0 +1,59 @@
package androidx.room;
/* loaded from: classes.dex */
public final class n {
/* renamed from: a, reason: collision with root package name */
public final long[] f3983a;
/* renamed from: b, reason: collision with root package name */
public final boolean[] f3984b;
/* renamed from: c, reason: collision with root package name */
public final int[] f3985c;
/* renamed from: d, reason: collision with root package name */
public boolean f3986d;
public n(int i) {
this.f3983a = new long[i];
this.f3984b = new boolean[i];
this.f3985c = new int[i];
}
public final int[] a() {
synchronized (this) {
try {
if (!this.f3986d) {
return null;
}
long[] jArr = this.f3983a;
int length = jArr.length;
int i = 0;
int i4 = 0;
while (i < length) {
int i5 = i4 + 1;
int i6 = 1;
boolean z3 = jArr[i] > 0;
boolean[] zArr = this.f3984b;
if (z3 != zArr[i4]) {
int[] iArr = this.f3985c;
if (!z3) {
i6 = 2;
}
iArr[i4] = i6;
} else {
this.f3985c[i4] = 0;
}
zArr[i4] = z3;
i++;
i4 = i5;
}
this.f3986d = false;
return (int[]) this.f3985c.clone();
} catch (Throwable th) {
throw th;
}
}
}
}

View File

@@ -0,0 +1,68 @@
package androidx.room;
import java.util.Set;
import kotlin.Unit;
import kotlin.collections.SetsKt;
import kotlin.jvm.internal.Intrinsics;
import kotlinx.coroutines.channels.Channel;
/* loaded from: classes.dex */
public final class o {
/* renamed from: a, reason: collision with root package name */
public final F.i f3987a;
/* renamed from: b, reason: collision with root package name */
public final int[] f3988b;
/* renamed from: c, reason: collision with root package name */
public final String[] f3989c;
/* renamed from: d, reason: collision with root package name */
public final Set f3990d;
public o(F.i observer, int[] tableIds, String[] tableNames) {
Intrinsics.checkNotNullParameter(observer, "observer");
Intrinsics.checkNotNullParameter(tableIds, "tableIds");
Intrinsics.checkNotNullParameter(tableNames, "tableNames");
this.f3987a = observer;
this.f3988b = tableIds;
this.f3989c = tableNames;
this.f3990d = tableNames.length == 0 ? SetsKt.emptySet() : SetsKt.setOf(tableNames[0]);
if (tableIds.length != tableNames.length) {
throw new IllegalStateException("Check failed.");
}
}
public final void a(Set invalidatedTablesIds) {
Set emptySet;
Intrinsics.checkNotNullParameter(invalidatedTablesIds, "invalidatedTablesIds");
int[] iArr = this.f3988b;
int length = iArr.length;
if (length != 0) {
int i = 0;
if (length != 1) {
Set createSetBuilder = SetsKt.createSetBuilder();
int length2 = iArr.length;
int i4 = 0;
while (i < length2) {
int i5 = i4 + 1;
if (invalidatedTablesIds.contains(Integer.valueOf(iArr[i]))) {
createSetBuilder.add(this.f3989c[i4]);
}
i++;
i4 = i5;
}
emptySet = SetsKt.build(createSetBuilder);
} else {
emptySet = invalidatedTablesIds.contains(Integer.valueOf(iArr[0])) ? this.f3990d : SetsKt.emptySet();
}
} else {
emptySet = SetsKt.emptySet();
}
if (emptySet.isEmpty()) {
return;
}
((Channel) this.f3987a.f491c).mo1630trySendJP2dKIU(Unit.INSTANCE);
}
}

View File

@@ -0,0 +1,244 @@
package androidx.room;
import a.AbstractC0105a;
import android.database.sqlite.SQLiteException;
import android.util.Log;
import com.adif.elcanomovil.serviceStorage.database.StationDatabase_Impl;
import java.util.Arrays;
import java.util.Collections;
import java.util.HashMap;
import java.util.IdentityHashMap;
import java.util.LinkedHashMap;
import java.util.Locale;
import java.util.Map;
import java.util.concurrent.atomic.AtomicBoolean;
import java.util.concurrent.locks.Lock;
import kotlin.Unit;
import kotlin.collections.MapsKt;
import kotlin.jvm.internal.Intrinsics;
import o.C0520f;
import w0.InterfaceC0645a;
import w0.InterfaceC0649e;
/* loaded from: classes.dex */
public final class p {
/* renamed from: n, reason: collision with root package name */
public static final String[] f3991n = {"UPDATE", "DELETE", "INSERT"};
/* renamed from: a, reason: collision with root package name */
public final StationDatabase_Impl f3992a;
/* renamed from: b, reason: collision with root package name */
public final HashMap f3993b;
/* renamed from: c, reason: collision with root package name */
public final HashMap f3994c;
/* renamed from: d, reason: collision with root package name */
public final LinkedHashMap f3995d;
/* renamed from: e, reason: collision with root package name */
public final String[] f3996e;
/* renamed from: f, reason: collision with root package name */
public final AtomicBoolean f3997f;
/* renamed from: g, reason: collision with root package name */
public volatile boolean f3998g;
public volatile InterfaceC0649e h;
public final n i;
/* renamed from: j, reason: collision with root package name */
public final C0520f f3999j;
/* renamed from: k, reason: collision with root package name */
public final Object f4000k;
/* renamed from: l, reason: collision with root package name */
public final Object f4001l;
/* renamed from: m, reason: collision with root package name */
public final F0.c f4002m;
public p(StationDatabase_Impl database, HashMap shadowTablesMap, HashMap viewTables, String... tableNames) {
String str;
Intrinsics.checkNotNullParameter(database, "database");
Intrinsics.checkNotNullParameter(shadowTablesMap, "shadowTablesMap");
Intrinsics.checkNotNullParameter(viewTables, "viewTables");
Intrinsics.checkNotNullParameter(tableNames, "tableNames");
this.f3992a = database;
this.f3993b = shadowTablesMap;
this.f3994c = viewTables;
this.f3997f = new AtomicBoolean(false);
this.i = new n(tableNames.length);
Intrinsics.checkNotNullParameter(database, "database");
Intrinsics.checkNotNullExpressionValue(Collections.newSetFromMap(new IdentityHashMap()), "newSetFromMap(IdentityHashMap())");
this.f3999j = new C0520f();
this.f4000k = new Object();
this.f4001l = new Object();
this.f3995d = new LinkedHashMap();
int length = tableNames.length;
String[] strArr = new String[length];
for (int i = 0; i < length; i++) {
String str2 = tableNames[i];
Locale US = Locale.US;
Intrinsics.checkNotNullExpressionValue(US, "US");
String lowerCase = str2.toLowerCase(US);
Intrinsics.checkNotNullExpressionValue(lowerCase, "this as java.lang.String).toLowerCase(locale)");
this.f3995d.put(lowerCase, Integer.valueOf(i));
String str3 = (String) this.f3993b.get(tableNames[i]);
if (str3 != null) {
Intrinsics.checkNotNullExpressionValue(US, "US");
str = str3.toLowerCase(US);
Intrinsics.checkNotNullExpressionValue(str, "this as java.lang.String).toLowerCase(locale)");
} else {
str = null;
}
if (str != null) {
lowerCase = str;
}
strArr[i] = lowerCase;
}
this.f3996e = strArr;
for (Map.Entry entry : this.f3993b.entrySet()) {
String str4 = (String) entry.getValue();
Locale US2 = Locale.US;
Intrinsics.checkNotNullExpressionValue(US2, "US");
String lowerCase2 = str4.toLowerCase(US2);
Intrinsics.checkNotNullExpressionValue(lowerCase2, "this as java.lang.String).toLowerCase(locale)");
if (this.f3995d.containsKey(lowerCase2)) {
String str5 = (String) entry.getKey();
Intrinsics.checkNotNullExpressionValue(US2, "US");
String lowerCase3 = str5.toLowerCase(US2);
Intrinsics.checkNotNullExpressionValue(lowerCase3, "this as java.lang.String).toLowerCase(locale)");
LinkedHashMap linkedHashMap = this.f3995d;
linkedHashMap.put(lowerCase3, MapsKt.a(linkedHashMap, lowerCase2));
}
}
this.f4002m = new F0.c(this, 6);
}
public final boolean a() {
if (!this.f3992a.isOpenInternal()) {
return false;
}
if (!this.f3998g) {
this.f3992a.getOpenHelper().S();
}
if (this.f3998g) {
return true;
}
Log.e("ROOM", "database is not initialized even though it is open");
return false;
}
public final void b(F.i observer) {
o oVar;
boolean z3;
Intrinsics.checkNotNullParameter(observer, "observer");
synchronized (this.f3999j) {
oVar = (o) this.f3999j.c(observer);
}
if (oVar != null) {
n nVar = this.i;
int[] iArr = oVar.f3988b;
int[] tableIds = Arrays.copyOf(iArr, iArr.length);
nVar.getClass();
Intrinsics.checkNotNullParameter(tableIds, "tableIds");
synchronized (nVar) {
try {
z3 = false;
for (int i : tableIds) {
long[] jArr = nVar.f3983a;
long j4 = jArr[i];
jArr[i] = j4 - 1;
if (j4 == 1) {
nVar.f3986d = true;
z3 = true;
}
}
Unit unit = Unit.INSTANCE;
} catch (Throwable th) {
throw th;
}
}
if (z3) {
StationDatabase_Impl stationDatabase_Impl = this.f3992a;
if (stationDatabase_Impl.isOpenInternal()) {
d(stationDatabase_Impl.getOpenHelper().S());
}
}
}
}
public final void c(InterfaceC0645a interfaceC0645a, int i) {
interfaceC0645a.i("INSERT OR IGNORE INTO room_table_modification_log VALUES(" + i + ", 0)");
String str = this.f3996e[i];
String[] strArr = f3991n;
for (int i4 = 0; i4 < 3; i4++) {
String str2 = strArr[i4];
String str3 = "CREATE TEMP TRIGGER IF NOT EXISTS " + AbstractC0105a.C(str, str2) + " AFTER " + str2 + " ON `" + str + "` BEGIN UPDATE room_table_modification_log SET invalidated = 1 WHERE table_id = " + i + " AND invalidated = 0; END";
Intrinsics.checkNotNullExpressionValue(str3, "StringBuilder().apply(builderAction).toString()");
interfaceC0645a.i(str3);
}
}
public final void d(InterfaceC0645a database) {
Intrinsics.checkNotNullParameter(database, "database");
if (database.B()) {
return;
}
try {
Lock closeLock$room_runtime_release = this.f3992a.getCloseLock$room_runtime_release();
closeLock$room_runtime_release.lock();
try {
synchronized (this.f4000k) {
int[] a2 = this.i.a();
if (a2 != null) {
Intrinsics.checkNotNullParameter(database, "database");
if (database.G()) {
database.K();
} else {
database.c();
}
try {
int length = a2.length;
int i = 0;
int i4 = 0;
while (i < length) {
int i5 = a2[i];
int i6 = i4 + 1;
if (i5 == 1) {
c(database, i4);
} else if (i5 == 2) {
String str = this.f3996e[i4];
String[] strArr = f3991n;
for (int i7 = 0; i7 < 3; i7++) {
String str2 = "DROP TRIGGER IF EXISTS " + AbstractC0105a.C(str, strArr[i7]);
Intrinsics.checkNotNullExpressionValue(str2, "StringBuilder().apply(builderAction).toString()");
database.i(str2);
}
}
i++;
i4 = i6;
}
database.J();
database.b();
Unit unit = Unit.INSTANCE;
} catch (Throwable th) {
database.b();
throw th;
}
}
}
} finally {
closeLock$room_runtime_release.unlock();
}
} catch (SQLiteException e4) {
Log.e("ROOM", "Cannot run invalidation tracker. Is the db closed?", e4);
} catch (IllegalStateException e5) {
Log.e("ROOM", "Cannot run invalidation tracker. Is the db closed?", e5);
}
}
}

View File

@@ -0,0 +1,138 @@
package androidx.room;
import android.os.Binder;
import android.os.IBinder;
import android.os.IInterface;
import android.os.Parcel;
import android.os.RemoteException;
import android.util.Log;
import kotlin.Unit;
import kotlin.jvm.internal.Intrinsics;
/* loaded from: classes.dex */
public final class q extends Binder implements m {
/* renamed from: c, reason: collision with root package name */
public final /* synthetic */ MultiInstanceInvalidationService f4003c;
public q(MultiInstanceInvalidationService multiInstanceInvalidationService) {
this.f4003c = multiInstanceInvalidationService;
attachInterface(this, m.f3982b);
}
@Override // android.os.IInterface
public final IBinder asBinder() {
return this;
}
/* JADX WARN: Type inference failed for: r1v4, types: [java.lang.Object, androidx.room.k] */
/* JADX WARN: Type inference failed for: r1v9, types: [java.lang.Object, androidx.room.k] */
@Override // android.os.Binder
public final boolean onTransact(int i, Parcel parcel, Parcel parcel2, int i4) {
int i5 = 0;
String str = m.f3982b;
if (i >= 1 && i <= 16777215) {
parcel.enforceInterface(str);
}
if (i == 1598968902) {
parcel2.writeString(str);
return true;
}
l callback = null;
l callback2 = null;
if (i == 1) {
IBinder readStrongBinder = parcel.readStrongBinder();
if (readStrongBinder != null) {
IInterface queryLocalInterface = readStrongBinder.queryLocalInterface(l.f3981a);
if (queryLocalInterface == null || !(queryLocalInterface instanceof l)) {
?? obj = new Object();
obj.f3980c = readStrongBinder;
callback = obj;
} else {
callback = (l) queryLocalInterface;
}
}
String readString = parcel.readString();
Intrinsics.checkNotNullParameter(callback, "callback");
if (readString != null) {
MultiInstanceInvalidationService multiInstanceInvalidationService = this.f4003c;
synchronized (multiInstanceInvalidationService.f3950c) {
try {
int i6 = multiInstanceInvalidationService.f3948a + 1;
multiInstanceInvalidationService.f3948a = i6;
if (multiInstanceInvalidationService.f3950c.register(callback, Integer.valueOf(i6))) {
multiInstanceInvalidationService.f3949b.put(Integer.valueOf(i6), readString);
i5 = i6;
} else {
multiInstanceInvalidationService.f3948a--;
}
} catch (Throwable th) {
throw th;
}
}
}
parcel2.writeNoException();
parcel2.writeInt(i5);
return true;
}
if (i == 2) {
IBinder readStrongBinder2 = parcel.readStrongBinder();
if (readStrongBinder2 != null) {
IInterface queryLocalInterface2 = readStrongBinder2.queryLocalInterface(l.f3981a);
if (queryLocalInterface2 == null || !(queryLocalInterface2 instanceof l)) {
?? obj2 = new Object();
obj2.f3980c = readStrongBinder2;
callback2 = obj2;
} else {
callback2 = (l) queryLocalInterface2;
}
}
int readInt = parcel.readInt();
Intrinsics.checkNotNullParameter(callback2, "callback");
MultiInstanceInvalidationService multiInstanceInvalidationService2 = this.f4003c;
synchronized (multiInstanceInvalidationService2.f3950c) {
multiInstanceInvalidationService2.f3950c.unregister(callback2);
}
parcel2.writeNoException();
return true;
}
if (i != 3) {
return super.onTransact(i, parcel, parcel2, i4);
}
int readInt2 = parcel.readInt();
String[] tables = parcel.createStringArray();
Intrinsics.checkNotNullParameter(tables, "tables");
MultiInstanceInvalidationService multiInstanceInvalidationService3 = this.f4003c;
synchronized (multiInstanceInvalidationService3.f3950c) {
String str2 = (String) multiInstanceInvalidationService3.f3949b.get(Integer.valueOf(readInt2));
if (str2 == null) {
Log.w("ROOM", "Remote invalidation client ID not registered");
} else {
int beginBroadcast = multiInstanceInvalidationService3.f3950c.beginBroadcast();
while (i5 < beginBroadcast) {
try {
Object broadcastCookie = multiInstanceInvalidationService3.f3950c.getBroadcastCookie(i5);
Intrinsics.checkNotNull(broadcastCookie, "null cannot be cast to non-null type kotlin.Int");
Integer num = (Integer) broadcastCookie;
int intValue = num.intValue();
String str3 = (String) multiInstanceInvalidationService3.f3949b.get(num);
if (readInt2 != intValue && Intrinsics.areEqual(str2, str3)) {
try {
((l) multiInstanceInvalidationService3.f3950c.getBroadcastItem(i5)).a(tables);
} catch (RemoteException e4) {
Log.w("ROOM", "Error invoking a remote callback", e4);
}
}
i5++;
} catch (Throwable th2) {
multiInstanceInvalidationService3.f3950c.finishBroadcast();
throw th2;
}
}
multiInstanceInvalidationService3.f3950c.finishBroadcast();
Unit unit = Unit.INSTANCE;
}
}
return true;
}
}

View File

@@ -0,0 +1,24 @@
package androidx.room;
import android.os.IInterface;
import android.os.RemoteCallbackList;
import kotlin.jvm.internal.Intrinsics;
/* loaded from: classes.dex */
public final class r extends RemoteCallbackList {
/* renamed from: a, reason: collision with root package name */
public final /* synthetic */ MultiInstanceInvalidationService f4004a;
public r(MultiInstanceInvalidationService multiInstanceInvalidationService) {
this.f4004a = multiInstanceInvalidationService;
}
@Override // android.os.RemoteCallbackList
public final void onCallbackDied(IInterface iInterface, Object cookie) {
l callback = (l) iInterface;
Intrinsics.checkNotNullParameter(callback, "callback");
Intrinsics.checkNotNullParameter(cookie, "cookie");
this.f4004a.f3949b.remove((Integer) cookie);
}
}

View File

@@ -0,0 +1,5 @@
package androidx.room;
/* loaded from: classes.dex */
public final class s {
}

View File

@@ -0,0 +1,39 @@
package androidx.room;
/* JADX WARN: Failed to restore enum class, 'enum' modifier and super class removed */
/* JADX WARN: Unknown enum class pattern. Please report as an issue! */
/* loaded from: classes.dex */
public final class t {
/* renamed from: a, reason: collision with root package name */
public static final t f4005a;
/* renamed from: b, reason: collision with root package name */
public static final t f4006b;
/* renamed from: c, reason: collision with root package name */
public static final /* synthetic */ t[] f4007c;
/* JADX INFO: Fake field, exist only in values array */
t EF0;
/* JADX WARN: Type inference failed for: r0v0, types: [java.lang.Enum, androidx.room.t] */
/* JADX WARN: Type inference failed for: r1v1, types: [java.lang.Enum, androidx.room.t] */
/* JADX WARN: Type inference failed for: r2v2, types: [java.lang.Enum, androidx.room.t] */
static {
?? r02 = new Enum("AUTOMATIC", 0);
?? r12 = new Enum("TRUNCATE", 1);
f4005a = r12;
?? r22 = new Enum("WRITE_AHEAD_LOGGING", 2);
f4006b = r22;
f4007c = new t[]{r02, r12, r22};
}
public static t valueOf(String str) {
return (t) Enum.valueOf(t.class, str);
}
public static t[] values() {
return (t[]) f4007c.clone();
}
}

View File

@@ -0,0 +1,450 @@
package androidx.room;
import android.database.Cursor;
import android.os.CancellationSignal;
import android.os.Looper;
import android.util.Log;
import java.util.ArrayList;
import java.util.BitSet;
import java.util.Collections;
import java.util.Iterator;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.concurrent.Callable;
import java.util.concurrent.Executor;
import java.util.concurrent.locks.Lock;
import java.util.concurrent.locks.ReentrantReadWriteLock;
import kotlin.Deprecated;
import kotlin.ReplaceWith;
import kotlin.Unit;
import kotlin.collections.CollectionsKt;
import kotlin.collections.MapsKt;
import kotlin.collections.SetsKt;
import kotlin.jvm.JvmField;
import kotlin.jvm.JvmOverloads;
import kotlin.jvm.JvmSuppressWildcards;
import kotlin.jvm.internal.Intrinsics;
import n.C0508b;
import w0.InterfaceC0645a;
import w0.InterfaceC0646b;
import w0.InterfaceC0648d;
import w0.InterfaceC0649e;
/* loaded from: classes.dex */
public abstract class u {
public static final s Companion = new Object();
public static final int MAX_BIND_PARAMETER_CNT = 999;
private boolean allowMainThreadQueries;
private AbstractC0249a autoCloser;
private final Map<String, Object> backingFieldMap;
private InterfaceC0646b internalOpenHelper;
private Executor internalQueryExecutor;
private Executor internalTransactionExecutor;
@JvmField
protected List<Object> mCallbacks;
@JvmField
protected volatile InterfaceC0645a mDatabase;
private final Map<Class<?>, Object> typeConverters;
private boolean writeAheadLoggingEnabled;
private final p invalidationTracker = createInvalidationTracker();
private Map<Class<Object>, Object> autoMigrationSpecs = new LinkedHashMap();
private final ReentrantReadWriteLock readWriteLock = new ReentrantReadWriteLock();
private final ThreadLocal<Integer> suspendingTransactionId = new ThreadLocal<>();
public u() {
Map<String, Object> synchronizedMap = Collections.synchronizedMap(new LinkedHashMap());
Intrinsics.checkNotNullExpressionValue(synchronizedMap, "synchronizedMap(mutableMapOf())");
this.backingFieldMap = synchronizedMap;
this.typeConverters = new LinkedHashMap();
}
public static final void access$internalBeginTransaction(u uVar) {
uVar.assertNotMainThread();
InterfaceC0645a S3 = uVar.getOpenHelper().S();
uVar.getInvalidationTracker().d(S3);
if (S3.G()) {
S3.K();
} else {
S3.c();
}
}
public static Object b(Class cls, InterfaceC0646b interfaceC0646b) {
if (cls.isInstance(interfaceC0646b)) {
return interfaceC0646b;
}
if (!(interfaceC0646b instanceof h)) {
return null;
}
((h) interfaceC0646b).getClass();
return b(cls, null);
}
@Deprecated(message = "Will be hidden in a future release.")
public static /* synthetic */ void getMCallbacks$annotations() {
}
@Deprecated(message = "Will be hidden in the next release.")
public static /* synthetic */ void getMDatabase$annotations() {
}
public static /* synthetic */ void isOpen$annotations() {
}
public static /* synthetic */ void isOpenInternal$annotations() {
}
public static /* synthetic */ Cursor query$default(u uVar, InterfaceC0648d interfaceC0648d, CancellationSignal cancellationSignal, int i, Object obj) {
if (obj != null) {
throw new UnsupportedOperationException("Super calls with default arguments not supported in this target, function: query");
}
if ((i & 2) != 0) {
cancellationSignal = null;
}
return uVar.query(interfaceC0648d, cancellationSignal);
}
public final void a() {
getOpenHelper().S().b();
if (inTransaction()) {
return;
}
p invalidationTracker = getInvalidationTracker();
if (invalidationTracker.f3997f.compareAndSet(false, true)) {
invalidationTracker.f3992a.getQueryExecutor().execute(invalidationTracker.f4002m);
}
}
public void assertNotMainThread() {
if (!this.allowMainThreadQueries && isMainThread$room_runtime_release()) {
throw new IllegalStateException("Cannot access database on the main thread since it may potentially lock the UI for a long period of time.");
}
}
public void assertNotSuspendingTransaction() {
if (!inTransaction() && this.suspendingTransactionId.get() != null) {
throw new IllegalStateException("Cannot access database on a different coroutine context inherited from a suspending transaction.");
}
}
@Deprecated(message = "beginTransaction() is deprecated", replaceWith = @ReplaceWith(expression = "runInTransaction(Runnable)", imports = {}))
public void beginTransaction() {
assertNotMainThread();
assertNotMainThread();
InterfaceC0645a S3 = getOpenHelper().S();
getInvalidationTracker().d(S3);
if (S3.G()) {
S3.K();
} else {
S3.c();
}
}
public abstract void clearAllTables();
public void close() {
if (isOpen()) {
ReentrantReadWriteLock.WriteLock writeLock = this.readWriteLock.writeLock();
Intrinsics.checkNotNullExpressionValue(writeLock, "readWriteLock.writeLock()");
writeLock.lock();
try {
getInvalidationTracker().getClass();
getOpenHelper().close();
} finally {
writeLock.unlock();
}
}
}
public InterfaceC0649e compileStatement(String sql) {
Intrinsics.checkNotNullParameter(sql, "sql");
assertNotMainThread();
assertNotSuspendingTransaction();
return getOpenHelper().S().q(sql);
}
public abstract p createInvalidationTracker();
public abstract InterfaceC0646b createOpenHelper(g gVar);
@Deprecated(message = "endTransaction() is deprecated", replaceWith = @ReplaceWith(expression = "runInTransaction(Runnable)", imports = {}))
public void endTransaction() {
a();
}
public final Map<Class<Object>, Object> getAutoMigrationSpecs() {
return this.autoMigrationSpecs;
}
@JvmSuppressWildcards
public List<Object> getAutoMigrations(Map<Class<Object>, Object> autoMigrationSpecs) {
Intrinsics.checkNotNullParameter(autoMigrationSpecs, "autoMigrationSpecs");
return CollectionsKt.emptyList();
}
public final Map<String, Object> getBackingFieldMap() {
return this.backingFieldMap;
}
public final Lock getCloseLock$room_runtime_release() {
ReentrantReadWriteLock.ReadLock readLock = this.readWriteLock.readLock();
Intrinsics.checkNotNullExpressionValue(readLock, "readWriteLock.readLock()");
return readLock;
}
public p getInvalidationTracker() {
return this.invalidationTracker;
}
public InterfaceC0646b getOpenHelper() {
InterfaceC0646b interfaceC0646b = this.internalOpenHelper;
if (interfaceC0646b != null) {
return interfaceC0646b;
}
Intrinsics.throwUninitializedPropertyAccessException("internalOpenHelper");
return null;
}
public Executor getQueryExecutor() {
Executor executor = this.internalQueryExecutor;
if (executor != null) {
return executor;
}
Intrinsics.throwUninitializedPropertyAccessException("internalQueryExecutor");
return null;
}
public Set<Class<Object>> getRequiredAutoMigrationSpecs() {
return SetsKt.emptySet();
}
public Map<Class<?>, List<Class<?>>> getRequiredTypeConverters() {
return MapsKt.emptyMap();
}
public final ThreadLocal<Integer> getSuspendingTransactionId() {
return this.suspendingTransactionId;
}
public Executor getTransactionExecutor() {
Executor executor = this.internalTransactionExecutor;
if (executor != null) {
return executor;
}
Intrinsics.throwUninitializedPropertyAccessException("internalTransactionExecutor");
return null;
}
public <T> T getTypeConverter(Class<T> klass) {
Intrinsics.checkNotNullParameter(klass, "klass");
return (T) this.typeConverters.get(klass);
}
public boolean inTransaction() {
return getOpenHelper().S().B();
}
public void init(g configuration) {
Intrinsics.checkNotNullParameter(configuration, "configuration");
this.internalOpenHelper = createOpenHelper(configuration);
Set<Class<Object>> requiredAutoMigrationSpecs = getRequiredAutoMigrationSpecs();
BitSet bitSet = new BitSet();
Iterator<Class<Object>> it = requiredAutoMigrationSpecs.iterator();
while (true) {
int i = -1;
if (it.hasNext()) {
Class<Object> next = it.next();
int size = configuration.f3979g.size() - 1;
ArrayList arrayList = configuration.f3979g;
if (size >= 0) {
while (true) {
int i4 = size - 1;
if (next.isAssignableFrom(arrayList.get(size).getClass())) {
bitSet.set(size);
i = size;
break;
} else if (i4 < 0) {
break;
} else {
size = i4;
}
}
}
if (i < 0) {
throw new IllegalArgumentException(("A required auto migration spec (" + next.getCanonicalName() + ") is missing in the database configuration.").toString());
}
this.autoMigrationSpecs.put(next, arrayList.get(i));
} else {
int size2 = configuration.f3979g.size() - 1;
if (size2 >= 0) {
while (true) {
int i5 = size2 - 1;
if (!bitSet.get(size2)) {
throw new IllegalArgumentException("Unexpected auto migration specs found. Annotate AutoMigrationSpec implementation with @ProvidedAutoMigrationSpec annotation or remove this spec from the builder.");
}
if (i5 < 0) {
break;
} else {
size2 = i5;
}
}
}
Iterator<Object> it2 = getAutoMigrations(this.autoMigrationSpecs).iterator();
if (it2.hasNext()) {
throw C.w.g(it2);
}
if (b(AbstractC0250b.class, getOpenHelper()) != null) {
throw new ClassCastException();
}
boolean z3 = configuration.f3976d == t.f4006b;
getOpenHelper().setWriteAheadLoggingEnabled(z3);
this.mCallbacks = configuration.f3975c;
this.internalQueryExecutor = C0508b.f7833c;
this.internalTransactionExecutor = new B();
this.allowMainThreadQueries = false;
this.writeAheadLoggingEnabled = z3;
Map<Class<?>, List<Class<?>>> requiredTypeConverters = getRequiredTypeConverters();
BitSet bitSet2 = new BitSet();
Iterator<Map.Entry<Class<?>, List<Class<?>>>> it3 = requiredTypeConverters.entrySet().iterator();
while (true) {
boolean hasNext = it3.hasNext();
ArrayList arrayList2 = configuration.f3978f;
if (hasNext) {
Map.Entry<Class<?>, List<Class<?>>> next2 = it3.next();
Class<?> key = next2.getKey();
for (Class<?> cls : next2.getValue()) {
int size3 = arrayList2.size() - 1;
if (size3 >= 0) {
while (true) {
int i6 = size3 - 1;
if (cls.isAssignableFrom(arrayList2.get(size3).getClass())) {
bitSet2.set(size3);
break;
} else if (i6 < 0) {
break;
} else {
size3 = i6;
}
}
}
size3 = -1;
if (size3 < 0) {
throw new IllegalArgumentException(("A required type converter (" + cls + ") for " + key.getCanonicalName() + " is missing in the database configuration.").toString());
}
this.typeConverters.put(cls, arrayList2.get(size3));
}
} else {
int size4 = arrayList2.size() - 1;
if (size4 < 0) {
return;
}
while (true) {
int i7 = size4 - 1;
if (!bitSet2.get(size4)) {
throw new IllegalArgumentException("Unexpected type converter " + arrayList2.get(size4) + ". Annotate TypeConverter class with @ProvidedTypeConverter annotation or remove this converter from the builder.");
}
if (i7 < 0) {
return;
} else {
size4 = i7;
}
}
}
}
}
}
}
public void internalInitInvalidationTracker(InterfaceC0645a database) {
Intrinsics.checkNotNullParameter(database, "db");
p invalidationTracker = getInvalidationTracker();
invalidationTracker.getClass();
Intrinsics.checkNotNullParameter(database, "database");
synchronized (invalidationTracker.f4001l) {
if (invalidationTracker.f3998g) {
Log.e("ROOM", "Invalidation tracker is initialized twice :/.");
return;
}
database.i("PRAGMA temp_store = MEMORY;");
database.i("PRAGMA recursive_triggers='ON';");
database.i("CREATE TEMP TABLE room_table_modification_log (table_id INTEGER PRIMARY KEY, invalidated INTEGER NOT NULL DEFAULT 0)");
invalidationTracker.d(database);
invalidationTracker.h = database.q("UPDATE room_table_modification_log SET invalidated = 0 WHERE invalidated = 1");
invalidationTracker.f3998g = true;
Unit unit = Unit.INSTANCE;
}
}
public final boolean isMainThread$room_runtime_release() {
return Looper.getMainLooper().getThread() == Thread.currentThread();
}
public boolean isOpen() {
InterfaceC0645a interfaceC0645a = this.mDatabase;
return Intrinsics.areEqual(interfaceC0645a != null ? Boolean.valueOf(interfaceC0645a.isOpen()) : null, Boolean.TRUE);
}
public final boolean isOpenInternal() {
InterfaceC0645a interfaceC0645a = this.mDatabase;
return interfaceC0645a != null && interfaceC0645a.isOpen();
}
@JvmOverloads
public final Cursor query(InterfaceC0648d query) {
Intrinsics.checkNotNullParameter(query, "query");
return query$default(this, query, null, 2, null);
}
public void runInTransaction(Runnable body) {
Intrinsics.checkNotNullParameter(body, "body");
beginTransaction();
try {
body.run();
setTransactionSuccessful();
} finally {
endTransaction();
}
}
public final void setAutoMigrationSpecs(Map<Class<Object>, Object> map) {
Intrinsics.checkNotNullParameter(map, "<set-?>");
this.autoMigrationSpecs = map;
}
@Deprecated(message = "setTransactionSuccessful() is deprecated", replaceWith = @ReplaceWith(expression = "runInTransaction(Runnable)", imports = {}))
public void setTransactionSuccessful() {
getOpenHelper().S().J();
}
public Cursor query(String query, Object[] objArr) {
Intrinsics.checkNotNullParameter(query, "query");
return getOpenHelper().S().p(new F.i(query, objArr));
}
@JvmOverloads
public Cursor query(InterfaceC0648d query, CancellationSignal cancellationSignal) {
Intrinsics.checkNotNullParameter(query, "query");
assertNotMainThread();
assertNotSuspendingTransaction();
if (cancellationSignal != null) {
return getOpenHelper().S().j(query, cancellationSignal);
}
return getOpenHelper().S().p(query);
}
public <V> V runInTransaction(Callable<V> body) {
Intrinsics.checkNotNullParameter(body, "body");
beginTransaction();
try {
V call = body.call();
setTransactionSuccessful();
return call;
} finally {
endTransaction();
}
}
}

View File

@@ -0,0 +1,216 @@
package androidx.room;
import android.database.Cursor;
import com.adif.elcanomovil.serviceStorage.database.StationDatabase_Impl;
import java.util.Iterator;
import java.util.List;
import kotlin.io.CloseableKt;
import kotlin.jvm.internal.Intrinsics;
import q2.AbstractC0562d;
/* loaded from: classes.dex */
public final class v extends AbstractC0562d {
/* renamed from: b, reason: collision with root package name */
public g f4008b;
/* renamed from: c, reason: collision with root package name */
public final A.a f4009c;
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public v(g configuration, A.a delegate) {
super(1);
Intrinsics.checkNotNullParameter(configuration, "configuration");
Intrinsics.checkNotNullParameter(delegate, "delegate");
Intrinsics.checkNotNullParameter("43f5c312adc2ca1d1a2a64bd71784e25", "identityHash");
Intrinsics.checkNotNullParameter("d72e1d9f03dab3a33bea51ff82bf41a2", "legacyHash");
this.f4008b = configuration;
this.f4009c = delegate;
}
public static void l(x0.c cVar) {
cVar.i("CREATE TABLE IF NOT EXISTS room_master_table (id INTEGER PRIMARY KEY,identity_hash TEXT)");
Intrinsics.checkNotNullParameter("43f5c312adc2ca1d1a2a64bd71784e25", "hash");
cVar.i("INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, '43f5c312adc2ca1d1a2a64bd71784e25')");
}
@Override // q2.AbstractC0562d
public final void g(x0.c db) {
Intrinsics.checkNotNullParameter(db, "db");
super.g(db);
}
@Override // q2.AbstractC0562d
public final void h(x0.c db) {
List list;
Intrinsics.checkNotNullParameter(db, "db");
Intrinsics.checkNotNullParameter(db, "db");
Cursor V3 = db.V("SELECT count(*) FROM sqlite_master WHERE name != 'android_metadata'");
try {
boolean z3 = false;
if (V3.moveToFirst()) {
if (V3.getInt(0) == 0) {
z3 = true;
}
}
CloseableKt.closeFinally(V3, null);
A.a aVar = this.f4009c;
A.a.n(db);
if (!z3) {
M.g u3 = A.a.u(db);
if (!u3.f1075a) {
throw new IllegalStateException("Pre-packaged database has an invalid schema: " + ((String) u3.f1076b));
}
}
l(db);
list = ((StationDatabase_Impl) aVar.f7b).mCallbacks;
if (list != null) {
Iterator it = list.iterator();
if (it.hasNext()) {
throw C.w.g(it);
}
}
} catch (Throwable th) {
try {
throw th;
} catch (Throwable th2) {
CloseableKt.closeFinally(V3, th);
throw th2;
}
}
}
@Override // q2.AbstractC0562d
public final void i(x0.c db, int i, int i4) {
Intrinsics.checkNotNullParameter(db, "db");
k(db, i, i4);
}
/* JADX WARN: Removed duplicated region for block: B:10:0x002c */
/* JADX WARN: Removed duplicated region for block: B:24:0x008b */
/* JADX WARN: Removed duplicated region for block: B:39:0x006b */
@Override // q2.AbstractC0562d
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public final void j(x0.c r6) {
/*
r5 = this;
java.lang.String r0 = "db"
kotlin.jvm.internal.Intrinsics.checkNotNullParameter(r6, r0)
kotlin.jvm.internal.Intrinsics.checkNotNullParameter(r6, r0)
kotlin.jvm.internal.Intrinsics.checkNotNullParameter(r6, r0)
java.lang.String r0 = "SELECT 1 FROM sqlite_master WHERE type = 'table' AND name='room_master_table'"
android.database.Cursor r0 = r6.V(r0)
boolean r1 = r0.moveToFirst() // Catch: java.lang.Throwable -> L20
r2 = 0
if (r1 == 0) goto L23
int r1 = r0.getInt(r2) // Catch: java.lang.Throwable -> L20
if (r1 == 0) goto L23
r1 = 1
goto L24
L20:
r5 = move-exception
goto Lb6
L23:
r1 = r2
L24:
r3 = 0
kotlin.io.CloseableKt.closeFinally(r0, r3)
A.a r0 = r5.f4009c
if (r1 == 0) goto L6b
F.i r1 = new F.i
java.lang.String r4 = "SELECT identity_hash FROM room_master_table WHERE id = 42 LIMIT 1"
r1.<init>(r4)
android.database.Cursor r1 = r6.p(r1)
boolean r4 = r1.moveToFirst() // Catch: java.lang.Throwable -> L42
if (r4 == 0) goto L44
java.lang.String r2 = r1.getString(r2) // Catch: java.lang.Throwable -> L42
goto L45
L42:
r5 = move-exception
goto L65
L44:
r2 = r3
L45:
kotlin.io.CloseableKt.closeFinally(r1, r3)
java.lang.String r1 = "43f5c312adc2ca1d1a2a64bd71784e25"
boolean r1 = kotlin.jvm.internal.Intrinsics.areEqual(r1, r2)
if (r1 != 0) goto L76
java.lang.String r1 = "d72e1d9f03dab3a33bea51ff82bf41a2"
boolean r1 = kotlin.jvm.internal.Intrinsics.areEqual(r1, r2)
if (r1 == 0) goto L59
goto L76
L59:
java.lang.IllegalStateException r5 = new java.lang.IllegalStateException
java.lang.String r6 = "Room cannot verify the data integrity. Looks like you've changed schema but forgot to update the version number. You can simply fix this by increasing the version number. Expected identity hash: 43f5c312adc2ca1d1a2a64bd71784e25, found: "
java.lang.String r6 = C.w.z(r6, r2)
r5.<init>(r6)
throw r5
L65:
throw r5 // Catch: java.lang.Throwable -> L66
L66:
r6 = move-exception
kotlin.io.CloseableKt.closeFinally(r1, r5)
throw r6
L6b:
M.g r1 = A.a.u(r6)
boolean r2 = r1.f1075a
if (r2 == 0) goto L9e
l(r6)
L76:
java.lang.Object r0 = r0.f7b
com.adif.elcanomovil.serviceStorage.database.StationDatabase_Impl r0 = (com.adif.elcanomovil.serviceStorage.database.StationDatabase_Impl) r0
com.adif.elcanomovil.serviceStorage.database.StationDatabase_Impl.access$202(r0, r6)
java.lang.String r1 = "PRAGMA foreign_keys = ON"
r6.i(r1)
com.adif.elcanomovil.serviceStorage.database.StationDatabase_Impl.access$300(r0, r6)
java.util.List r6 = com.adif.elcanomovil.serviceStorage.database.StationDatabase_Impl.access$400(r0)
if (r6 == 0) goto L9b
java.util.Iterator r6 = r6.iterator()
boolean r0 = r6.hasNext()
if (r0 != 0) goto L96
goto L9b
L96:
java.lang.ClassCastException r5 = C.w.g(r6)
throw r5
L9b:
r5.f4008b = r3
return
L9e:
java.lang.IllegalStateException r5 = new java.lang.IllegalStateException
java.lang.StringBuilder r6 = new java.lang.StringBuilder
java.lang.String r0 = "Pre-packaged database has an invalid schema: "
r6.<init>(r0)
java.lang.Object r0 = r1.f1076b
java.lang.String r0 = (java.lang.String) r0
r6.append(r0)
java.lang.String r6 = r6.toString()
r5.<init>(r6)
throw r5
Lb6:
throw r5 // Catch: java.lang.Throwable -> Lb7
Lb7:
r6 = move-exception
kotlin.io.CloseableKt.closeFinally(r0, r5)
throw r6
*/
throw new UnsupportedOperationException("Method not decompiled: androidx.room.v.j(x0.c):void");
}
/* JADX WARN: Removed duplicated region for block: B:52:0x0044 */
/* JADX WARN: Removed duplicated region for block: B:86:0x0094 A[EDGE_INSN: B:86:0x0094->B:69:0x0094 BREAK A[LOOP:2: B:48:0x002c->B:70:?], SYNTHETIC] */
@Override // q2.AbstractC0562d
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public final void k(x0.c r18, int r19, int r20) {
/*
Method dump skipped, instructions count: 435
To view this dump add '--comments-level debug' option
*/
throw new UnsupportedOperationException("Method not decompiled: androidx.room.v.k(x0.c, int, int):void");
}
}

View File

@@ -0,0 +1,173 @@
package androidx.room;
import java.util.Iterator;
import java.util.Map;
import java.util.TreeMap;
import kotlin.Unit;
import kotlin.jvm.internal.Intrinsics;
import w0.InterfaceC0647c;
import w0.InterfaceC0648d;
/* loaded from: classes.dex */
public final class w implements InterfaceC0648d, InterfaceC0647c {
public static final TreeMap i = new TreeMap();
/* renamed from: a, reason: collision with root package name */
public final int f4010a;
/* renamed from: b, reason: collision with root package name */
public volatile String f4011b;
/* renamed from: c, reason: collision with root package name */
public final long[] f4012c;
/* renamed from: d, reason: collision with root package name */
public final double[] f4013d;
/* renamed from: e, reason: collision with root package name */
public final String[] f4014e;
/* renamed from: f, reason: collision with root package name */
public final byte[][] f4015f;
/* renamed from: g, reason: collision with root package name */
public final int[] f4016g;
public int h;
public w(int i4) {
this.f4010a = i4;
int i5 = i4 + 1;
this.f4016g = new int[i5];
this.f4012c = new long[i5];
this.f4013d = new double[i5];
this.f4014e = new String[i5];
this.f4015f = new byte[i5];
}
public static final w d(int i4, String query) {
Intrinsics.checkNotNullParameter(query, "query");
TreeMap treeMap = i;
synchronized (treeMap) {
Map.Entry ceilingEntry = treeMap.ceilingEntry(Integer.valueOf(i4));
if (ceilingEntry == null) {
Unit unit = Unit.INSTANCE;
w wVar = new w(i4);
Intrinsics.checkNotNullParameter(query, "query");
wVar.f4011b = query;
wVar.h = i4;
return wVar;
}
treeMap.remove(ceilingEntry.getKey());
w sqliteQuery = (w) ceilingEntry.getValue();
sqliteQuery.getClass();
Intrinsics.checkNotNullParameter(query, "query");
sqliteQuery.f4011b = query;
sqliteQuery.h = i4;
Intrinsics.checkNotNullExpressionValue(sqliteQuery, "sqliteQuery");
return sqliteQuery;
}
}
@Override // w0.InterfaceC0647c
public final void I(int i4, long j4) {
this.f4016g[i4] = 2;
this.f4012c[i4] = j4;
}
@Override // w0.InterfaceC0647c
public final void N(int i4, byte[] value) {
Intrinsics.checkNotNullParameter(value, "value");
this.f4016g[i4] = 5;
this.f4015f[i4] = value;
}
@Override // java.io.Closeable, java.lang.AutoCloseable
public final void close() {
}
@Override // w0.InterfaceC0647c
public final void k(int i4, String value) {
Intrinsics.checkNotNullParameter(value, "value");
this.f4016g[i4] = 4;
this.f4014e[i4] = value;
}
public final void release() {
TreeMap treeMap = i;
synchronized (treeMap) {
treeMap.put(Integer.valueOf(this.f4010a), this);
if (treeMap.size() > 15) {
int size = treeMap.size() - 10;
Iterator it = treeMap.descendingKeySet().iterator();
Intrinsics.checkNotNullExpressionValue(it, "queryPool.descendingKeySet().iterator()");
while (true) {
int i4 = size - 1;
if (size <= 0) {
break;
}
it.next();
it.remove();
size = i4;
}
}
Unit unit = Unit.INSTANCE;
}
}
@Override // w0.InterfaceC0648d
public final void s(InterfaceC0647c statement) {
Intrinsics.checkNotNullParameter(statement, "statement");
int i4 = this.h;
if (1 > i4) {
return;
}
int i5 = 1;
while (true) {
int i6 = this.f4016g[i5];
if (i6 == 1) {
statement.t(i5);
} else if (i6 == 2) {
statement.I(i5, this.f4012c[i5]);
} else if (i6 == 3) {
statement.v(i5, this.f4013d[i5]);
} else if (i6 == 4) {
String str = this.f4014e[i5];
if (str == null) {
throw new IllegalArgumentException("Required value was null.");
}
statement.k(i5, str);
} else if (i6 == 5) {
byte[] bArr = this.f4015f[i5];
if (bArr == null) {
throw new IllegalArgumentException("Required value was null.");
}
statement.N(i5, bArr);
}
if (i5 == i4) {
return;
} else {
i5++;
}
}
}
@Override // w0.InterfaceC0647c
public final void t(int i4) {
this.f4016g[i4] = 1;
}
@Override // w0.InterfaceC0647c
public final void v(int i4, double d4) {
this.f4016g[i4] = 3;
this.f4013d[i4] = d4;
}
@Override // w0.InterfaceC0648d
public final String x() {
String str = this.f4011b;
if (str != null) {
return str;
}
throw new IllegalStateException("Required value was null.");
}
}

View File

@@ -0,0 +1,7 @@
package androidx.room;
import w0.InterfaceC0646b;
/* loaded from: classes.dex */
public abstract class x implements InterfaceC0646b, h {
}

View File

@@ -0,0 +1,42 @@
package androidx.room;
import java.util.concurrent.atomic.AtomicBoolean;
import kotlin.Lazy;
import kotlin.LazyKt;
import kotlin.jvm.internal.Intrinsics;
import w0.InterfaceC0649e;
/* loaded from: classes.dex */
public abstract class y {
/* renamed from: a, reason: collision with root package name */
public final u f4017a;
/* renamed from: b, reason: collision with root package name */
public final AtomicBoolean f4018b;
/* renamed from: c, reason: collision with root package name */
public final Lazy f4019c;
public y(u database) {
Intrinsics.checkNotNullParameter(database, "database");
this.f4017a = database;
this.f4018b = new AtomicBoolean(false);
this.f4019c = LazyKt.lazy(new J0.e(this, 4));
}
public final InterfaceC0649e a() {
u uVar = this.f4017a;
uVar.assertNotMainThread();
return this.f4018b.compareAndSet(false, true) ? (InterfaceC0649e) this.f4019c.getValue() : uVar.compileStatement(b());
}
public abstract String b();
public final void c(InterfaceC0649e statement) {
Intrinsics.checkNotNullParameter(statement, "statement");
if (statement == ((InterfaceC0649e) this.f4019c.getValue())) {
this.f4018b.set(false);
}
}
}

View File

@@ -0,0 +1,7 @@
package androidx.room;
import kotlin.coroutines.CoroutineContext;
/* loaded from: classes.dex */
public final class z implements CoroutineContext.Key {
}