Files
rr3-apk/smali/androidx/room/SharedSQLiteStatement.smali
Daniel Elliott f3960ee359 Add Discord APKTool decompilation (Smali source for modding)
- Imported from https://github.com/supermegamestre/Project-Real-Resurrection-3
- APKTool decompilation (Smali bytecode) for modding and rebuilding APK
- Supports both 32-bit (armeabi-v7a) and 64-bit (arm64-v8a) architectures
- Includes full Smali source, resources, and native libraries
- Ready to rebuild APK after modifications with apktool b command
- Added comprehensive README-apktool.md with modding guide

This branch complements the JADX branches:
- Use JADX (main/discord-community) to UNDERSTAND code (readable Java)
- Use APKTool (this branch) to MODIFY and REBUILD APK (editable Smali)

Total: 44,417 files, 538.51 MB Smali source code
2026-02-18 16:13:44 -08:00

188 lines
5.1 KiB
Smali

.class public abstract Landroidx/room/SharedSQLiteStatement;
.super Ljava/lang/Object;
.source "SourceFile"
# annotations
.annotation build Landroidx/annotation/RestrictTo;
value = {
.enum Landroidx/annotation/RestrictTo$Scope;->LIBRARY_GROUP_PREFIX:Landroidx/annotation/RestrictTo$Scope;
}
.end annotation
# instance fields
.field private final database:Landroidx/room/RoomDatabase;
.field private final lock:Ljava/util/concurrent/atomic/AtomicBoolean;
.field private final stmt$delegate:Lkotlin/Lazy;
# direct methods
.method public constructor <init>(Landroidx/room/RoomDatabase;)V
.locals 1
const-string v0, "database"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 35
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Landroidx/room/SharedSQLiteStatement;->database:Landroidx/room/RoomDatabase;
.line 37
new-instance p1, Ljava/util/concurrent/atomic/AtomicBoolean;
const/4 v0, 0x0
invoke-direct {p1, v0}, Ljava/util/concurrent/atomic/AtomicBoolean;-><init>(Z)V
iput-object p1, p0, Landroidx/room/SharedSQLiteStatement;->lock:Ljava/util/concurrent/atomic/AtomicBoolean;
.line 39
new-instance p1, Landroidx/room/SharedSQLiteStatement$stmt$2;
invoke-direct {p1, p0}, Landroidx/room/SharedSQLiteStatement$stmt$2;-><init>(Landroidx/room/SharedSQLiteStatement;)V
invoke-static {p1}, Lkotlin/LazyKt;->lazy(Lkotlin/jvm/functions/Function0;)Lkotlin/Lazy;
move-result-object p1
iput-object p1, p0, Landroidx/room/SharedSQLiteStatement;->stmt$delegate:Lkotlin/Lazy;
return-void
.end method
.method public static final synthetic access$createNewStatement(Landroidx/room/SharedSQLiteStatement;)Landroidx/sqlite/db/SupportSQLiteStatement;
.locals 0
.line 35
invoke-direct {p0}, Landroidx/room/SharedSQLiteStatement;->createNewStatement()Landroidx/sqlite/db/SupportSQLiteStatement;
move-result-object p0
return-object p0
.end method
.method private final createNewStatement()Landroidx/sqlite/db/SupportSQLiteStatement;
.locals 2
.line 55
invoke-virtual {p0}, Landroidx/room/SharedSQLiteStatement;->createQuery()Ljava/lang/String;
move-result-object v0
iget-object v1, p0, Landroidx/room/SharedSQLiteStatement;->database:Landroidx/room/RoomDatabase;
.line 56
invoke-virtual {v1, v0}, Landroidx/room/RoomDatabase;->compileStatement(Ljava/lang/String;)Landroidx/sqlite/db/SupportSQLiteStatement;
move-result-object v0
return-object v0
.end method
.method private final getStmt()Landroidx/sqlite/db/SupportSQLiteStatement;
.locals 1
iget-object v0, p0, Landroidx/room/SharedSQLiteStatement;->stmt$delegate:Lkotlin/Lazy;
.line 39
invoke-interface {v0}, Lkotlin/Lazy;->getValue()Ljava/lang/Object;
move-result-object v0
check-cast v0, Landroidx/sqlite/db/SupportSQLiteStatement;
return-object v0
.end method
.method private final getStmt(Z)Landroidx/sqlite/db/SupportSQLiteStatement;
.locals 0
if-eqz p1, :cond_0
.line 61
invoke-direct {p0}, Landroidx/room/SharedSQLiteStatement;->getStmt()Landroidx/sqlite/db/SupportSQLiteStatement;
move-result-object p1
goto :goto_0
.line 64
:cond_0
invoke-direct {p0}, Landroidx/room/SharedSQLiteStatement;->createNewStatement()Landroidx/sqlite/db/SupportSQLiteStatement;
move-result-object p1
:goto_0
return-object p1
.end method
# virtual methods
.method public acquire()Landroidx/sqlite/db/SupportSQLiteStatement;
.locals 3
.line 73
invoke-virtual {p0}, Landroidx/room/SharedSQLiteStatement;->assertNotMainThread()V
iget-object v0, p0, Landroidx/room/SharedSQLiteStatement;->lock:Ljava/util/concurrent/atomic/AtomicBoolean;
const/4 v1, 0x0
const/4 v2, 0x1
.line 74
invoke-virtual {v0, v1, v2}, Ljava/util/concurrent/atomic/AtomicBoolean;->compareAndSet(ZZ)Z
move-result v0
invoke-direct {p0, v0}, Landroidx/room/SharedSQLiteStatement;->getStmt(Z)Landroidx/sqlite/db/SupportSQLiteStatement;
move-result-object v0
return-object v0
.end method
.method public assertNotMainThread()V
.locals 1
iget-object v0, p0, Landroidx/room/SharedSQLiteStatement;->database:Landroidx/room/RoomDatabase;
.line 51
invoke-virtual {v0}, Landroidx/room/RoomDatabase;->assertNotMainThread()V
return-void
.end method
.method public abstract createQuery()Ljava/lang/String;
.end method
.method public release(Landroidx/sqlite/db/SupportSQLiteStatement;)V
.locals 1
const-string v0, "statement"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 83
invoke-direct {p0}, Landroidx/room/SharedSQLiteStatement;->getStmt()Landroidx/sqlite/db/SupportSQLiteStatement;
move-result-object v0
if-ne p1, v0, :cond_0
iget-object p1, p0, Landroidx/room/SharedSQLiteStatement;->lock:Ljava/util/concurrent/atomic/AtomicBoolean;
const/4 v0, 0x0
.line 84
invoke-virtual {p1, v0}, Ljava/util/concurrent/atomic/AtomicBoolean;->set(Z)V
:cond_0
return-void
.end method