Rabbit-R1/original r1/smali/smali_classes2/androidx/room/TransactionElement.smali
2024-05-21 17:08:36 -04:00

256 lines
8.5 KiB
Smali

.class public final Landroidx/room/TransactionElement;
.super Ljava/lang/Object;
.source "RoomDatabaseExt.kt"
# interfaces
.implements Lkotlin/coroutines/CoroutineContext$Element;
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Landroidx/room/TransactionElement$Key;
}
.end annotation
.annotation runtime Lkotlin/Metadata;
d1 = {
"\u00000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0008\u0002\n\u0002\u0018\u0002\n\u0002\u0008\u0003\n\u0002\u0018\u0002\n\u0002\u0008\u0003\n\u0002\u0010\u0002\n\u0002\u0008\u0003\u0008\u0001\u0018\u0000 \u00122\u00020\u0001:\u0001\u0012B\u0015\u0012\u0006\u0010\u0002\u001a\u00020\u0003\u0012\u0006\u0010\u0004\u001a\u00020\u0005\u00a2\u0006\u0002\u0010\u0006J\u0006\u0010\u000f\u001a\u00020\u0010J\u0006\u0010\u0011\u001a\u00020\u0010R\u001a\u0010\u0007\u001a\u0008\u0012\u0004\u0012\u00020\u00000\u00088VX\u0096\u0004\u00a2\u0006\u0006\u001a\u0004\u0008\t\u0010\nR\u000e\u0010\u000b\u001a\u00020\u000cX\u0082\u0004\u00a2\u0006\u0002\n\u0000R\u0014\u0010\u0004\u001a\u00020\u0005X\u0080\u0004\u00a2\u0006\u0008\n\u0000\u001a\u0004\u0008\r\u0010\u000eR\u000e\u0010\u0002\u001a\u00020\u0003X\u0082\u0004\u00a2\u0006\u0002\n\u0000\u00a8\u0006\u0013"
}
d2 = {
"Landroidx/room/TransactionElement;",
"Lkotlin/coroutines/CoroutineContext$Element;",
"transactionThreadControlJob",
"Lkotlinx/coroutines/Job;",
"transactionDispatcher",
"Lkotlin/coroutines/ContinuationInterceptor;",
"(Lkotlinx/coroutines/Job;Lkotlin/coroutines/ContinuationInterceptor;)V",
"key",
"Lkotlin/coroutines/CoroutineContext$Key;",
"getKey",
"()Lkotlin/coroutines/CoroutineContext$Key;",
"referenceCount",
"Ljava/util/concurrent/atomic/AtomicInteger;",
"getTransactionDispatcher$room_ktx_release",
"()Lkotlin/coroutines/ContinuationInterceptor;",
"acquire",
"",
"release",
"Key",
"room-ktx_release"
}
k = 0x1
mv = {
0x1,
0x7,
0x1
}
xi = 0x30
.end annotation
# static fields
.field public static final Key:Landroidx/room/TransactionElement$Key;
# instance fields
.field private final referenceCount:Ljava/util/concurrent/atomic/AtomicInteger;
.field private final transactionDispatcher:Lkotlin/coroutines/ContinuationInterceptor;
.field private final transactionThreadControlJob:Lkotlinx/coroutines/Job;
# direct methods
.method static constructor <clinit>()V
.locals 2
new-instance v0, Landroidx/room/TransactionElement$Key;
const/4 v1, 0x0
invoke-direct {v0, v1}, Landroidx/room/TransactionElement$Key;-><init>(Lkotlin/jvm/internal/DefaultConstructorMarker;)V
sput-object v0, Landroidx/room/TransactionElement;->Key:Landroidx/room/TransactionElement$Key;
return-void
.end method
.method public constructor <init>(Lkotlinx/coroutines/Job;Lkotlin/coroutines/ContinuationInterceptor;)V
.locals 1
const-string v0, "transactionThreadControlJob"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "transactionDispatcher"
invoke-static {p2, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 143
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Landroidx/room/TransactionElement;->transactionThreadControlJob:Lkotlinx/coroutines/Job;
iput-object p2, p0, Landroidx/room/TransactionElement;->transactionDispatcher:Lkotlin/coroutines/ContinuationInterceptor;
.line 160
new-instance p1, Ljava/util/concurrent/atomic/AtomicInteger;
const/4 p2, 0x0
invoke-direct {p1, p2}, Ljava/util/concurrent/atomic/AtomicInteger;-><init>(I)V
iput-object p1, p0, Landroidx/room/TransactionElement;->referenceCount:Ljava/util/concurrent/atomic/AtomicInteger;
return-void
.end method
# virtual methods
.method public final acquire()V
.locals 0
iget-object p0, p0, Landroidx/room/TransactionElement;->referenceCount:Ljava/util/concurrent/atomic/AtomicInteger;
.line 163
invoke-virtual {p0}, Ljava/util/concurrent/atomic/AtomicInteger;->incrementAndGet()I
return-void
.end method
.method public fold(Ljava/lang/Object;Lkotlin/jvm/functions/Function2;)Ljava/lang/Object;
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"<R:",
"Ljava/lang/Object;",
">(TR;",
"Lkotlin/jvm/functions/Function2<",
"-TR;-",
"Lkotlin/coroutines/CoroutineContext$Element;",
"+TR;>;)TR;"
}
.end annotation
.line 143
invoke-static {p0, p1, p2}, Lkotlin/coroutines/CoroutineContext$Element$DefaultImpls;->fold(Lkotlin/coroutines/CoroutineContext$Element;Ljava/lang/Object;Lkotlin/jvm/functions/Function2;)Ljava/lang/Object;
move-result-object p0
return-object p0
.end method
.method public get(Lkotlin/coroutines/CoroutineContext$Key;)Lkotlin/coroutines/CoroutineContext$Element;
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"<E::",
"Lkotlin/coroutines/CoroutineContext$Element;",
">(",
"Lkotlin/coroutines/CoroutineContext$Key<",
"TE;>;)TE;"
}
.end annotation
.line 143
invoke-static {p0, p1}, Lkotlin/coroutines/CoroutineContext$Element$DefaultImpls;->get(Lkotlin/coroutines/CoroutineContext$Element;Lkotlin/coroutines/CoroutineContext$Key;)Lkotlin/coroutines/CoroutineContext$Element;
move-result-object p0
return-object p0
.end method
.method public getKey()Lkotlin/coroutines/CoroutineContext$Key;
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Lkotlin/coroutines/CoroutineContext$Key<",
"Landroidx/room/TransactionElement;",
">;"
}
.end annotation
sget-object p0, Landroidx/room/TransactionElement;->Key:Landroidx/room/TransactionElement$Key;
.line 152
check-cast p0, Lkotlin/coroutines/CoroutineContext$Key;
return-object p0
.end method
.method public final getTransactionDispatcher$room_ktx_release()Lkotlin/coroutines/ContinuationInterceptor;
.locals 0
iget-object p0, p0, Landroidx/room/TransactionElement;->transactionDispatcher:Lkotlin/coroutines/ContinuationInterceptor;
return-object p0
.end method
.method public minusKey(Lkotlin/coroutines/CoroutineContext$Key;)Lkotlin/coroutines/CoroutineContext;
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lkotlin/coroutines/CoroutineContext$Key<",
"*>;)",
"Lkotlin/coroutines/CoroutineContext;"
}
.end annotation
.line 143
invoke-static {p0, p1}, Lkotlin/coroutines/CoroutineContext$Element$DefaultImpls;->minusKey(Lkotlin/coroutines/CoroutineContext$Element;Lkotlin/coroutines/CoroutineContext$Key;)Lkotlin/coroutines/CoroutineContext;
move-result-object p0
return-object p0
.end method
.method public plus(Lkotlin/coroutines/CoroutineContext;)Lkotlin/coroutines/CoroutineContext;
.locals 0
.line 143
invoke-static {p0, p1}, Lkotlin/coroutines/CoroutineContext$Element$DefaultImpls;->plus(Lkotlin/coroutines/CoroutineContext$Element;Lkotlin/coroutines/CoroutineContext;)Lkotlin/coroutines/CoroutineContext;
move-result-object p0
return-object p0
.end method
.method public final release()V
.locals 2
iget-object v0, p0, Landroidx/room/TransactionElement;->referenceCount:Ljava/util/concurrent/atomic/AtomicInteger;
.line 167
invoke-virtual {v0}, Ljava/util/concurrent/atomic/AtomicInteger;->decrementAndGet()I
move-result v0
if-ltz v0, :cond_1
if-nez v0, :cond_0
iget-object p0, p0, Landroidx/room/TransactionElement;->transactionThreadControlJob:Lkotlinx/coroutines/Job;
const/4 v0, 0x1
const/4 v1, 0x0
.line 172
invoke-static {p0, v1, v0, v1}, Lkotlinx/coroutines/Job$DefaultImpls;->cancel$default(Lkotlinx/coroutines/Job;Ljava/util/concurrent/CancellationException;ILjava/lang/Object;)V
:cond_0
return-void
.line 169
:cond_1
new-instance p0, Ljava/lang/IllegalStateException;
const-string v0, "Transaction was never started or was already released."
invoke-direct {p0, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw p0
.end method