Rabbit-R1/android (non root)/smali/smali_classes2/androidx/sqlite/db/SupportSQLiteOpenHelper$Configuration$Builder.smali
2024-05-21 17:08:36 -04:00

205 lines
7.1 KiB
Smali

.class public Landroidx/sqlite/db/SupportSQLiteOpenHelper$Configuration$Builder;
.super Ljava/lang/Object;
.source "SupportSQLiteOpenHelper.kt"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Landroidx/sqlite/db/SupportSQLiteOpenHelper$Configuration;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x9
name = "Builder"
.end annotation
.annotation runtime Lkotlin/Metadata;
d1 = {
"\u0000.\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0000\n\u0002\u0018\u0002\n\u0002\u0008\u0002\n\u0002\u0010\u000b\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000e\n\u0002\u0008\u0002\n\u0002\u0018\u0002\n\u0002\u0008\u0002\u0008\u0016\u0018\u00002\u00020\u0001B\u000f\u0008\u0000\u0012\u0006\u0010\u0002\u001a\u00020\u0003\u00a2\u0006\u0002\u0010\u0004J\u0010\u0010\u0005\u001a\u00020\u00002\u0006\u0010\u0005\u001a\u00020\u0006H\u0016J\u0008\u0010\u000c\u001a\u00020\rH\u0016J\u0010\u0010\u0007\u001a\u00020\u00002\u0006\u0010\u0007\u001a\u00020\u0008H\u0016J\u0012\u0010\t\u001a\u00020\u00002\u0008\u0010\t\u001a\u0004\u0018\u00010\nH\u0016J\u0010\u0010\u000e\u001a\u00020\u00002\u0006\u0010\u000b\u001a\u00020\u0006H\u0016R\u000e\u0010\u0005\u001a\u00020\u0006X\u0082\u000e\u00a2\u0006\u0002\n\u0000R\u0010\u0010\u0007\u001a\u0004\u0018\u00010\u0008X\u0082\u000e\u00a2\u0006\u0002\n\u0000R\u000e\u0010\u0002\u001a\u00020\u0003X\u0082\u0004\u00a2\u0006\u0002\n\u0000R\u0010\u0010\t\u001a\u0004\u0018\u00010\nX\u0082\u000e\u00a2\u0006\u0002\n\u0000R\u000e\u0010\u000b\u001a\u00020\u0006X\u0082\u000e\u00a2\u0006\u0002\n\u0000\u00a8\u0006\u000f"
}
d2 = {
"Landroidx/sqlite/db/SupportSQLiteOpenHelper$Configuration$Builder;",
"",
"context",
"Landroid/content/Context;",
"(Landroid/content/Context;)V",
"allowDataLossOnRecovery",
"",
"callback",
"Landroidx/sqlite/db/SupportSQLiteOpenHelper$Callback;",
"name",
"",
"useNoBackupDirectory",
"build",
"Landroidx/sqlite/db/SupportSQLiteOpenHelper$Configuration;",
"noBackupDirectory",
"sqlite_release"
}
k = 0x1
mv = {
0x1,
0x7,
0x1
}
xi = 0x30
.end annotation
# instance fields
.field private allowDataLossOnRecovery:Z
.field private callback:Landroidx/sqlite/db/SupportSQLiteOpenHelper$Callback;
.field private final context:Landroid/content/Context;
.field private name:Ljava/lang/String;
.field private useNoBackupDirectory:Z
# direct methods
.method public constructor <init>(Landroid/content/Context;)V
.locals 1
const-string v0, "context"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 319
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Landroidx/sqlite/db/SupportSQLiteOpenHelper$Configuration$Builder;->context:Landroid/content/Context;
return-void
.end method
# virtual methods
.method public allowDataLossOnRecovery(Z)Landroidx/sqlite/db/SupportSQLiteOpenHelper$Configuration$Builder;
.locals 1
.line 393
move-object v0, p0
check-cast v0, Landroidx/sqlite/db/SupportSQLiteOpenHelper$Configuration$Builder;
iput-boolean p1, p0, Landroidx/sqlite/db/SupportSQLiteOpenHelper$Configuration$Builder;->allowDataLossOnRecovery:Z
return-object p0
.end method
.method public build()Landroidx/sqlite/db/SupportSQLiteOpenHelper$Configuration;
.locals 7
iget-object v3, p0, Landroidx/sqlite/db/SupportSQLiteOpenHelper$Configuration$Builder;->callback:Landroidx/sqlite/db/SupportSQLiteOpenHelper$Callback;
if-eqz v3, :cond_2
iget-boolean v0, p0, Landroidx/sqlite/db/SupportSQLiteOpenHelper$Configuration$Builder;->useNoBackupDirectory:Z
if-eqz v0, :cond_1
iget-object v0, p0, Landroidx/sqlite/db/SupportSQLiteOpenHelper$Configuration$Builder;->name:Ljava/lang/String;
.line 341
check-cast v0, Ljava/lang/CharSequence;
if-eqz v0, :cond_0
invoke-interface {v0}, Ljava/lang/CharSequence;->length()I
move-result v0
if-eqz v0, :cond_0
goto :goto_0
:cond_0
new-instance p0, Ljava/lang/IllegalArgumentException;
const-string v0, "Must set a non-null database name to a configuration that uses the no backup directory."
invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object v0
invoke-direct {p0, v0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw p0
.line 345
:cond_1
:goto_0
new-instance v6, Landroidx/sqlite/db/SupportSQLiteOpenHelper$Configuration;
iget-object v1, p0, Landroidx/sqlite/db/SupportSQLiteOpenHelper$Configuration$Builder;->context:Landroid/content/Context;
iget-object v2, p0, Landroidx/sqlite/db/SupportSQLiteOpenHelper$Configuration$Builder;->name:Ljava/lang/String;
iget-boolean v4, p0, Landroidx/sqlite/db/SupportSQLiteOpenHelper$Configuration$Builder;->useNoBackupDirectory:Z
iget-boolean v5, p0, Landroidx/sqlite/db/SupportSQLiteOpenHelper$Configuration$Builder;->allowDataLossOnRecovery:Z
move-object v0, v6
invoke-direct/range {v0 .. v5}, Landroidx/sqlite/db/SupportSQLiteOpenHelper$Configuration;-><init>(Landroid/content/Context;Ljava/lang/String;Landroidx/sqlite/db/SupportSQLiteOpenHelper$Callback;ZZ)V
return-object v6
.line 338
:cond_2
new-instance p0, Ljava/lang/IllegalArgumentException;
const-string v0, "Must set a callback to create the configuration."
invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object v0
invoke-direct {p0, v0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw p0
.end method
.method public callback(Landroidx/sqlite/db/SupportSQLiteOpenHelper$Callback;)Landroidx/sqlite/db/SupportSQLiteOpenHelper$Configuration$Builder;
.locals 1
const-string v0, "callback"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 370
move-object v0, p0
check-cast v0, Landroidx/sqlite/db/SupportSQLiteOpenHelper$Configuration$Builder;
iput-object p1, p0, Landroidx/sqlite/db/SupportSQLiteOpenHelper$Configuration$Builder;->callback:Landroidx/sqlite/db/SupportSQLiteOpenHelper$Callback;
return-object p0
.end method
.method public name(Ljava/lang/String;)Landroidx/sqlite/db/SupportSQLiteOpenHelper$Configuration$Builder;
.locals 1
.line 362
move-object v0, p0
check-cast v0, Landroidx/sqlite/db/SupportSQLiteOpenHelper$Configuration$Builder;
iput-object p1, p0, Landroidx/sqlite/db/SupportSQLiteOpenHelper$Configuration$Builder;->name:Ljava/lang/String;
return-object p0
.end method
.method public noBackupDirectory(Z)Landroidx/sqlite/db/SupportSQLiteOpenHelper$Configuration$Builder;
.locals 1
.line 381
move-object v0, p0
check-cast v0, Landroidx/sqlite/db/SupportSQLiteOpenHelper$Configuration$Builder;
iput-boolean p1, p0, Landroidx/sqlite/db/SupportSQLiteOpenHelper$Configuration$Builder;->useNoBackupDirectory:Z
return-object p0
.end method