124 lines
3.3 KiB
Smali
124 lines
3.3 KiB
Smali
.class public final Landroidx/core/database/sqlite/SQLiteDatabaseKt;
|
|
.super Ljava/lang/Object;
|
|
.source "SourceFile"
|
|
|
|
|
|
# direct methods
|
|
.method public static final transaction(Landroid/database/sqlite/SQLiteDatabase;ZLkotlin/jvm/functions/Function1;)Ljava/lang/Object;
|
|
.locals 0
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<T:",
|
|
"Ljava/lang/Object;",
|
|
">(",
|
|
"Landroid/database/sqlite/SQLiteDatabase;",
|
|
"Z",
|
|
"Lkotlin/jvm/functions/Function1;",
|
|
")TT;"
|
|
}
|
|
.end annotation
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
.line 32
|
|
invoke-virtual {p0}, Landroid/database/sqlite/SQLiteDatabase;->beginTransaction()V
|
|
|
|
goto :goto_0
|
|
|
|
.line 34
|
|
:cond_0
|
|
invoke-virtual {p0}, Landroid/database/sqlite/SQLiteDatabase;->beginTransactionNonExclusive()V
|
|
|
|
:goto_0
|
|
const/4 p1, 0x1
|
|
|
|
.line 37
|
|
:try_start_0
|
|
invoke-interface {p2, p0}, Lkotlin/jvm/functions/Function1;->invoke(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object p2
|
|
|
|
.line 38
|
|
invoke-virtual {p0}, Landroid/database/sqlite/SQLiteDatabase;->setTransactionSuccessful()V
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
.line 39
|
|
invoke-static {p1}, Lkotlin/jvm/internal/InlineMarker;->finallyStart(I)V
|
|
|
|
.line 41
|
|
invoke-virtual {p0}, Landroid/database/sqlite/SQLiteDatabase;->endTransaction()V
|
|
|
|
invoke-static {p1}, Lkotlin/jvm/internal/InlineMarker;->finallyEnd(I)V
|
|
|
|
return-object p2
|
|
|
|
:catchall_0
|
|
move-exception p2
|
|
|
|
invoke-static {p1}, Lkotlin/jvm/internal/InlineMarker;->finallyStart(I)V
|
|
|
|
invoke-virtual {p0}, Landroid/database/sqlite/SQLiteDatabase;->endTransaction()V
|
|
|
|
invoke-static {p1}, Lkotlin/jvm/internal/InlineMarker;->finallyEnd(I)V
|
|
|
|
throw p2
|
|
.end method
|
|
|
|
.method public static synthetic transaction$default(Landroid/database/sqlite/SQLiteDatabase;ZLkotlin/jvm/functions/Function1;ILjava/lang/Object;)Ljava/lang/Object;
|
|
.locals 0
|
|
|
|
const/4 p4, 0x1
|
|
|
|
and-int/2addr p3, p4
|
|
|
|
if-eqz p3, :cond_0
|
|
|
|
move p1, p4
|
|
|
|
:cond_0
|
|
if-eqz p1, :cond_1
|
|
|
|
.line 32
|
|
invoke-virtual {p0}, Landroid/database/sqlite/SQLiteDatabase;->beginTransaction()V
|
|
|
|
goto :goto_0
|
|
|
|
.line 34
|
|
:cond_1
|
|
invoke-virtual {p0}, Landroid/database/sqlite/SQLiteDatabase;->beginTransactionNonExclusive()V
|
|
|
|
.line 37
|
|
:goto_0
|
|
:try_start_0
|
|
invoke-interface {p2, p0}, Lkotlin/jvm/functions/Function1;->invoke(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object p1
|
|
|
|
.line 38
|
|
invoke-virtual {p0}, Landroid/database/sqlite/SQLiteDatabase;->setTransactionSuccessful()V
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
.line 39
|
|
invoke-static {p4}, Lkotlin/jvm/internal/InlineMarker;->finallyStart(I)V
|
|
|
|
.line 41
|
|
invoke-virtual {p0}, Landroid/database/sqlite/SQLiteDatabase;->endTransaction()V
|
|
|
|
invoke-static {p4}, Lkotlin/jvm/internal/InlineMarker;->finallyEnd(I)V
|
|
|
|
return-object p1
|
|
|
|
:catchall_0
|
|
move-exception p1
|
|
|
|
invoke-static {p4}, Lkotlin/jvm/internal/InlineMarker;->finallyStart(I)V
|
|
|
|
invoke-virtual {p0}, Landroid/database/sqlite/SQLiteDatabase;->endTransaction()V
|
|
|
|
invoke-static {p4}, Lkotlin/jvm/internal/InlineMarker;->finallyEnd(I)V
|
|
|
|
throw p1
|
|
.end method
|