apkfuckery/com.discord/smali/androidx/room/RoomDatabase$Builder.smali

698 lines
21 KiB
Smali
Raw Normal View History

2019-07-24 11:27:29 +00:00
.class public Landroidx/room/RoomDatabase$Builder;
.super Ljava/lang/Object;
.source "RoomDatabase.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Landroidx/room/RoomDatabase;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x9
name = "Builder"
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Landroidx/room/RoomDatabase;",
">",
"Ljava/lang/Object;"
}
.end annotation
# instance fields
2019-12-06 03:29:40 +00:00
.field public mAllowDestructiveMigrationOnDowngrade:Z
2019-10-07 23:23:22 +00:00
2019-12-06 03:29:40 +00:00
.field public mAllowMainThreadQueries:Z
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
.field public mCallbacks:Ljava/util/ArrayList;
2019-07-24 11:27:29 +00:00
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/ArrayList<",
"Landroidx/room/RoomDatabase$Callback;",
">;"
}
.end annotation
.end field
2019-12-06 03:29:40 +00:00
.field public final mContext:Landroid/content/Context;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
.field public final mDatabaseClass:Ljava/lang/Class;
2019-07-24 11:27:29 +00:00
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Class<",
"TT;>;"
}
.end annotation
.end field
2019-12-06 03:29:40 +00:00
.field public mFactory:Landroidx/sqlite/db/SupportSQLiteOpenHelper$Factory;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
.field public mJournalMode:Landroidx/room/RoomDatabase$JournalMode;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
.field public final mMigrationContainer:Landroidx/room/RoomDatabase$MigrationContainer;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
.field public mMigrationStartAndEndVersions:Ljava/util/Set;
2019-07-24 11:27:29 +00:00
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/Set<",
"Ljava/lang/Integer;",
">;"
}
.end annotation
.end field
2019-12-06 03:29:40 +00:00
.field public mMigrationsNotRequiredFrom:Ljava/util/Set;
2019-07-24 11:27:29 +00:00
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/Set<",
"Ljava/lang/Integer;",
">;"
}
.end annotation
.end field
2019-12-06 03:29:40 +00:00
.field public mMultiInstanceInvalidation:Z
2019-10-07 23:23:22 +00:00
2019-12-06 03:29:40 +00:00
.field public final mName:Ljava/lang/String;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
.field public mQueryExecutor:Ljava/util/concurrent/Executor;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
.field public mRequireMigration:Z
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
.field public mTransactionExecutor:Ljava/util/concurrent/Executor;
2019-10-07 23:23:22 +00:00
2019-07-24 11:27:29 +00:00
# direct methods
2019-12-06 03:29:40 +00:00
.method public constructor <init>(Landroid/content/Context;Ljava/lang/Class;Ljava/lang/String;)V
2019-07-24 11:27:29 +00:00
.locals 0
2019-12-06 03:29:40 +00:00
.param p1 # Landroid/content/Context;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p2 # Ljava/lang/Class;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p3 # Ljava/lang/String;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
2019-07-24 11:27:29 +00:00
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Landroid/content/Context;",
"Ljava/lang/Class<",
"TT;>;",
"Ljava/lang/String;",
")V"
}
.end annotation
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Landroidx/room/RoomDatabase$Builder;->mContext:Landroid/content/Context;
iput-object p2, p0, Landroidx/room/RoomDatabase$Builder;->mDatabaseClass:Ljava/lang/Class;
iput-object p3, p0, Landroidx/room/RoomDatabase$Builder;->mName:Ljava/lang/String;
sget-object p1, Landroidx/room/RoomDatabase$JournalMode;->AUTOMATIC:Landroidx/room/RoomDatabase$JournalMode;
iput-object p1, p0, Landroidx/room/RoomDatabase$Builder;->mJournalMode:Landroidx/room/RoomDatabase$JournalMode;
const/4 p1, 0x1
iput-boolean p1, p0, Landroidx/room/RoomDatabase$Builder;->mRequireMigration:Z
new-instance p1, Landroidx/room/RoomDatabase$MigrationContainer;
invoke-direct {p1}, Landroidx/room/RoomDatabase$MigrationContainer;-><init>()V
iput-object p1, p0, Landroidx/room/RoomDatabase$Builder;->mMigrationContainer:Landroidx/room/RoomDatabase$MigrationContainer;
return-void
.end method
# virtual methods
.method public addCallback(Landroidx/room/RoomDatabase$Callback;)Landroidx/room/RoomDatabase$Builder;
.locals 1
2019-12-06 03:29:40 +00:00
.param p1 # Landroidx/room/RoomDatabase$Callback;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation build Landroidx/annotation/NonNull;
.end annotation
2019-07-24 11:27:29 +00:00
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Landroidx/room/RoomDatabase$Callback;",
")",
"Landroidx/room/RoomDatabase$Builder<",
"TT;>;"
}
.end annotation
iget-object v0, p0, Landroidx/room/RoomDatabase$Builder;->mCallbacks:Ljava/util/ArrayList;
if-nez v0, :cond_0
new-instance v0, Ljava/util/ArrayList;
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
iput-object v0, p0, Landroidx/room/RoomDatabase$Builder;->mCallbacks:Ljava/util/ArrayList;
:cond_0
iget-object v0, p0, Landroidx/room/RoomDatabase$Builder;->mCallbacks:Ljava/util/ArrayList;
invoke-virtual {v0, p1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
return-object p0
.end method
.method public varargs addMigrations([Landroidx/room/migration/Migration;)Landroidx/room/RoomDatabase$Builder;
.locals 5
2019-12-06 03:29:40 +00:00
.param p1 # [Landroidx/room/migration/Migration;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation build Landroidx/annotation/NonNull;
.end annotation
2019-07-24 11:27:29 +00:00
.annotation system Ldalvik/annotation/Signature;
value = {
"([",
"Landroidx/room/migration/Migration;",
")",
"Landroidx/room/RoomDatabase$Builder<",
"TT;>;"
}
.end annotation
iget-object v0, p0, Landroidx/room/RoomDatabase$Builder;->mMigrationStartAndEndVersions:Ljava/util/Set;
if-nez v0, :cond_0
new-instance v0, Ljava/util/HashSet;
invoke-direct {v0}, Ljava/util/HashSet;-><init>()V
iput-object v0, p0, Landroidx/room/RoomDatabase$Builder;->mMigrationStartAndEndVersions:Ljava/util/Set;
:cond_0
array-length v0, p1
const/4 v1, 0x0
:goto_0
if-ge v1, v0, :cond_1
aget-object v2, p1, v1
iget-object v3, p0, Landroidx/room/RoomDatabase$Builder;->mMigrationStartAndEndVersions:Ljava/util/Set;
iget v4, v2, Landroidx/room/migration/Migration;->startVersion:I
invoke-static {v4}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v4
invoke-interface {v3, v4}, Ljava/util/Set;->add(Ljava/lang/Object;)Z
iget-object v3, p0, Landroidx/room/RoomDatabase$Builder;->mMigrationStartAndEndVersions:Ljava/util/Set;
iget v2, v2, Landroidx/room/migration/Migration;->endVersion:I
invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v2
invoke-interface {v3, v2}, Ljava/util/Set;->add(Ljava/lang/Object;)Z
add-int/lit8 v1, v1, 0x1
goto :goto_0
:cond_1
iget-object v0, p0, Landroidx/room/RoomDatabase$Builder;->mMigrationContainer:Landroidx/room/RoomDatabase$MigrationContainer;
invoke-virtual {v0, p1}, Landroidx/room/RoomDatabase$MigrationContainer;->addMigrations([Landroidx/room/migration/Migration;)V
return-object p0
.end method
.method public allowMainThreadQueries()Landroidx/room/RoomDatabase$Builder;
.locals 1
2019-12-06 03:29:40 +00:00
.annotation build Landroidx/annotation/NonNull;
.end annotation
2019-07-24 11:27:29 +00:00
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Landroidx/room/RoomDatabase$Builder<",
"TT;>;"
}
.end annotation
const/4 v0, 0x1
iput-boolean v0, p0, Landroidx/room/RoomDatabase$Builder;->mAllowMainThreadQueries:Z
return-object p0
.end method
.method public build()Landroidx/room/RoomDatabase;
2019-10-07 23:23:22 +00:00
.locals 15
2019-12-06 03:29:40 +00:00
.annotation build Landroid/annotation/SuppressLint;
value = {
"RestrictedApi"
}
.end annotation
.annotation build Landroidx/annotation/NonNull;
.end annotation
2019-07-24 11:27:29 +00:00
.annotation system Ldalvik/annotation/Signature;
value = {
"()TT;"
}
.end annotation
iget-object v0, p0, Landroidx/room/RoomDatabase$Builder;->mContext:Landroid/content/Context;
2019-10-07 23:23:22 +00:00
if-eqz v0, :cond_7
2019-07-24 11:27:29 +00:00
iget-object v0, p0, Landroidx/room/RoomDatabase$Builder;->mDatabaseClass:Ljava/lang/Class;
2019-10-07 23:23:22 +00:00
if-eqz v0, :cond_6
2019-07-24 11:27:29 +00:00
iget-object v0, p0, Landroidx/room/RoomDatabase$Builder;->mQueryExecutor:Ljava/util/concurrent/Executor;
if-nez v0, :cond_0
2019-10-07 23:23:22 +00:00
iget-object v0, p0, Landroidx/room/RoomDatabase$Builder;->mTransactionExecutor:Ljava/util/concurrent/Executor;
if-nez v0, :cond_0
2019-07-24 11:27:29 +00:00
invoke-static {}, Landroidx/arch/core/executor/ArchTaskExecutor;->getIOThreadExecutor()Ljava/util/concurrent/Executor;
move-result-object v0
2019-10-07 23:23:22 +00:00
iput-object v0, p0, Landroidx/room/RoomDatabase$Builder;->mTransactionExecutor:Ljava/util/concurrent/Executor;
2019-07-24 11:27:29 +00:00
iput-object v0, p0, Landroidx/room/RoomDatabase$Builder;->mQueryExecutor:Ljava/util/concurrent/Executor;
2019-10-07 23:23:22 +00:00
goto :goto_0
2019-07-24 11:27:29 +00:00
:cond_0
2019-10-07 23:23:22 +00:00
iget-object v0, p0, Landroidx/room/RoomDatabase$Builder;->mQueryExecutor:Ljava/util/concurrent/Executor;
if-eqz v0, :cond_1
iget-object v1, p0, Landroidx/room/RoomDatabase$Builder;->mTransactionExecutor:Ljava/util/concurrent/Executor;
if-nez v1, :cond_1
iput-object v0, p0, Landroidx/room/RoomDatabase$Builder;->mTransactionExecutor:Ljava/util/concurrent/Executor;
goto :goto_0
:cond_1
iget-object v0, p0, Landroidx/room/RoomDatabase$Builder;->mQueryExecutor:Ljava/util/concurrent/Executor;
if-nez v0, :cond_2
iget-object v0, p0, Landroidx/room/RoomDatabase$Builder;->mTransactionExecutor:Ljava/util/concurrent/Executor;
2019-07-24 11:27:29 +00:00
if-eqz v0, :cond_2
2019-10-07 23:23:22 +00:00
iput-object v0, p0, Landroidx/room/RoomDatabase$Builder;->mQueryExecutor:Ljava/util/concurrent/Executor;
:cond_2
:goto_0
iget-object v0, p0, Landroidx/room/RoomDatabase$Builder;->mMigrationStartAndEndVersions:Ljava/util/Set;
if-eqz v0, :cond_4
2019-07-24 11:27:29 +00:00
iget-object v1, p0, Landroidx/room/RoomDatabase$Builder;->mMigrationsNotRequiredFrom:Ljava/util/Set;
2019-10-07 23:23:22 +00:00
if-eqz v1, :cond_4
2019-07-24 11:27:29 +00:00
invoke-interface {v0}, Ljava/util/Set;->iterator()Ljava/util/Iterator;
move-result-object v0
2019-10-07 23:23:22 +00:00
:goto_1
2019-07-24 11:27:29 +00:00
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
move-result v1
2019-10-07 23:23:22 +00:00
if-eqz v1, :cond_4
2019-07-24 11:27:29 +00:00
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v1
check-cast v1, Ljava/lang/Integer;
iget-object v2, p0, Landroidx/room/RoomDatabase$Builder;->mMigrationsNotRequiredFrom:Ljava/util/Set;
invoke-interface {v2, v1}, Ljava/util/Set;->contains(Ljava/lang/Object;)Z
move-result v2
2019-10-07 23:23:22 +00:00
if-nez v2, :cond_3
2019-07-24 11:27:29 +00:00
2019-10-07 23:23:22 +00:00
goto :goto_1
2019-07-24 11:27:29 +00:00
2019-10-07 23:23:22 +00:00
:cond_3
2019-07-24 11:27:29 +00:00
new-instance v0, Ljava/lang/IllegalArgumentException;
2019-12-06 03:29:40 +00:00
new-instance v2, Ljava/lang/StringBuilder;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V
const-string v3, "Inconsistency detected. A Migration was supplied to addMigration(Migration... migrations) that has a start or end version equal to a start version supplied to fallbackToDestructiveMigrationFrom(int... startVersions). Start version: "
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
invoke-virtual {v2, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
2019-07-24 11:27:29 +00:00
move-result-object v1
invoke-direct {v0, v1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw v0
2019-10-07 23:23:22 +00:00
:cond_4
2019-07-24 11:27:29 +00:00
iget-object v0, p0, Landroidx/room/RoomDatabase$Builder;->mFactory:Landroidx/sqlite/db/SupportSQLiteOpenHelper$Factory;
2019-10-07 23:23:22 +00:00
if-nez v0, :cond_5
2019-07-24 11:27:29 +00:00
new-instance v0, Landroidx/sqlite/db/framework/FrameworkSQLiteOpenHelperFactory;
invoke-direct {v0}, Landroidx/sqlite/db/framework/FrameworkSQLiteOpenHelperFactory;-><init>()V
iput-object v0, p0, Landroidx/room/RoomDatabase$Builder;->mFactory:Landroidx/sqlite/db/SupportSQLiteOpenHelper$Factory;
2019-10-07 23:23:22 +00:00
:cond_5
2019-07-24 11:27:29 +00:00
new-instance v0, Landroidx/room/DatabaseConfiguration;
iget-object v2, p0, Landroidx/room/RoomDatabase$Builder;->mContext:Landroid/content/Context;
iget-object v3, p0, Landroidx/room/RoomDatabase$Builder;->mName:Ljava/lang/String;
iget-object v4, p0, Landroidx/room/RoomDatabase$Builder;->mFactory:Landroidx/sqlite/db/SupportSQLiteOpenHelper$Factory;
iget-object v5, p0, Landroidx/room/RoomDatabase$Builder;->mMigrationContainer:Landroidx/room/RoomDatabase$MigrationContainer;
iget-object v6, p0, Landroidx/room/RoomDatabase$Builder;->mCallbacks:Ljava/util/ArrayList;
iget-boolean v7, p0, Landroidx/room/RoomDatabase$Builder;->mAllowMainThreadQueries:Z
iget-object v1, p0, Landroidx/room/RoomDatabase$Builder;->mJournalMode:Landroidx/room/RoomDatabase$JournalMode;
invoke-virtual {v1, v2}, Landroidx/room/RoomDatabase$JournalMode;->resolve(Landroid/content/Context;)Landroidx/room/RoomDatabase$JournalMode;
move-result-object v8
iget-object v9, p0, Landroidx/room/RoomDatabase$Builder;->mQueryExecutor:Ljava/util/concurrent/Executor;
2019-10-07 23:23:22 +00:00
iget-object v10, p0, Landroidx/room/RoomDatabase$Builder;->mTransactionExecutor:Ljava/util/concurrent/Executor;
iget-boolean v11, p0, Landroidx/room/RoomDatabase$Builder;->mMultiInstanceInvalidation:Z
2019-07-24 11:27:29 +00:00
2019-10-07 23:23:22 +00:00
iget-boolean v12, p0, Landroidx/room/RoomDatabase$Builder;->mRequireMigration:Z
iget-boolean v13, p0, Landroidx/room/RoomDatabase$Builder;->mAllowDestructiveMigrationOnDowngrade:Z
iget-object v14, p0, Landroidx/room/RoomDatabase$Builder;->mMigrationsNotRequiredFrom:Ljava/util/Set;
2019-07-24 11:27:29 +00:00
move-object v1, v0
2019-10-07 23:23:22 +00:00
invoke-direct/range {v1 .. v14}, Landroidx/room/DatabaseConfiguration;-><init>(Landroid/content/Context;Ljava/lang/String;Landroidx/sqlite/db/SupportSQLiteOpenHelper$Factory;Landroidx/room/RoomDatabase$MigrationContainer;Ljava/util/List;ZLandroidx/room/RoomDatabase$JournalMode;Ljava/util/concurrent/Executor;Ljava/util/concurrent/Executor;ZZZLjava/util/Set;)V
2019-07-24 11:27:29 +00:00
iget-object v1, p0, Landroidx/room/RoomDatabase$Builder;->mDatabaseClass:Ljava/lang/Class;
const-string v2, "_Impl"
invoke-static {v1, v2}, Landroidx/room/Room;->getGeneratedImplementation(Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/Object;
move-result-object v1
check-cast v1, Landroidx/room/RoomDatabase;
invoke-virtual {v1, v0}, Landroidx/room/RoomDatabase;->init(Landroidx/room/DatabaseConfiguration;)V
return-object v1
2019-10-07 23:23:22 +00:00
:cond_6
2019-07-24 11:27:29 +00:00
new-instance v0, Ljava/lang/IllegalArgumentException;
const-string v1, "Must provide an abstract class that extends RoomDatabase"
invoke-direct {v0, v1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw v0
2019-10-07 23:23:22 +00:00
:cond_7
2019-07-24 11:27:29 +00:00
new-instance v0, Ljava/lang/IllegalArgumentException;
const-string v1, "Cannot provide null context for the database."
invoke-direct {v0, v1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw v0
2019-10-07 23:23:22 +00:00
.end method
.method public enableMultiInstanceInvalidation()Landroidx/room/RoomDatabase$Builder;
.locals 1
2019-12-06 03:29:40 +00:00
.annotation build Landroidx/annotation/NonNull;
.end annotation
2019-10-07 23:23:22 +00:00
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Landroidx/room/RoomDatabase$Builder<",
"TT;>;"
}
.end annotation
iget-object v0, p0, Landroidx/room/RoomDatabase$Builder;->mName:Ljava/lang/String;
if-eqz v0, :cond_0
const/4 v0, 0x1
goto :goto_0
:cond_0
const/4 v0, 0x0
:goto_0
iput-boolean v0, p0, Landroidx/room/RoomDatabase$Builder;->mMultiInstanceInvalidation:Z
return-object p0
2019-07-24 11:27:29 +00:00
.end method
.method public fallbackToDestructiveMigration()Landroidx/room/RoomDatabase$Builder;
.locals 1
2019-12-06 03:29:40 +00:00
.annotation build Landroidx/annotation/NonNull;
.end annotation
2019-07-24 11:27:29 +00:00
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Landroidx/room/RoomDatabase$Builder<",
"TT;>;"
}
.end annotation
const/4 v0, 0x0
iput-boolean v0, p0, Landroidx/room/RoomDatabase$Builder;->mRequireMigration:Z
2019-10-07 23:23:22 +00:00
const/4 v0, 0x1
iput-boolean v0, p0, Landroidx/room/RoomDatabase$Builder;->mAllowDestructiveMigrationOnDowngrade:Z
2019-07-24 11:27:29 +00:00
return-object p0
.end method
.method public varargs fallbackToDestructiveMigrationFrom([I)Landroidx/room/RoomDatabase$Builder;
.locals 4
2019-12-06 03:29:40 +00:00
.annotation build Landroidx/annotation/NonNull;
.end annotation
2019-07-24 11:27:29 +00:00
.annotation system Ldalvik/annotation/Signature;
value = {
"([I)",
"Landroidx/room/RoomDatabase$Builder<",
"TT;>;"
}
.end annotation
iget-object v0, p0, Landroidx/room/RoomDatabase$Builder;->mMigrationsNotRequiredFrom:Ljava/util/Set;
if-nez v0, :cond_0
new-instance v0, Ljava/util/HashSet;
array-length v1, p1
invoke-direct {v0, v1}, Ljava/util/HashSet;-><init>(I)V
iput-object v0, p0, Landroidx/room/RoomDatabase$Builder;->mMigrationsNotRequiredFrom:Ljava/util/Set;
:cond_0
array-length v0, p1
const/4 v1, 0x0
:goto_0
if-ge v1, v0, :cond_1
aget v2, p1, v1
iget-object v3, p0, Landroidx/room/RoomDatabase$Builder;->mMigrationsNotRequiredFrom:Ljava/util/Set;
invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v2
invoke-interface {v3, v2}, Ljava/util/Set;->add(Ljava/lang/Object;)Z
add-int/lit8 v1, v1, 0x1
goto :goto_0
:cond_1
return-object p0
.end method
2019-10-07 23:23:22 +00:00
.method public fallbackToDestructiveMigrationOnDowngrade()Landroidx/room/RoomDatabase$Builder;
.locals 1
2019-12-06 03:29:40 +00:00
.annotation build Landroidx/annotation/NonNull;
.end annotation
2019-10-07 23:23:22 +00:00
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Landroidx/room/RoomDatabase$Builder<",
"TT;>;"
}
.end annotation
const/4 v0, 0x1
iput-boolean v0, p0, Landroidx/room/RoomDatabase$Builder;->mRequireMigration:Z
iput-boolean v0, p0, Landroidx/room/RoomDatabase$Builder;->mAllowDestructiveMigrationOnDowngrade:Z
return-object p0
.end method
2019-07-24 11:27:29 +00:00
.method public openHelperFactory(Landroidx/sqlite/db/SupportSQLiteOpenHelper$Factory;)Landroidx/room/RoomDatabase$Builder;
.locals 0
2019-12-06 03:29:40 +00:00
.param p1 # Landroidx/sqlite/db/SupportSQLiteOpenHelper$Factory;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
.annotation build Landroidx/annotation/NonNull;
.end annotation
2019-07-24 11:27:29 +00:00
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Landroidx/sqlite/db/SupportSQLiteOpenHelper$Factory;",
")",
"Landroidx/room/RoomDatabase$Builder<",
"TT;>;"
}
.end annotation
iput-object p1, p0, Landroidx/room/RoomDatabase$Builder;->mFactory:Landroidx/sqlite/db/SupportSQLiteOpenHelper$Factory;
return-object p0
.end method
.method public setJournalMode(Landroidx/room/RoomDatabase$JournalMode;)Landroidx/room/RoomDatabase$Builder;
.locals 0
2019-12-06 03:29:40 +00:00
.param p1 # Landroidx/room/RoomDatabase$JournalMode;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation build Landroidx/annotation/NonNull;
.end annotation
2019-07-24 11:27:29 +00:00
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Landroidx/room/RoomDatabase$JournalMode;",
")",
"Landroidx/room/RoomDatabase$Builder<",
"TT;>;"
}
.end annotation
iput-object p1, p0, Landroidx/room/RoomDatabase$Builder;->mJournalMode:Landroidx/room/RoomDatabase$JournalMode;
return-object p0
.end method
.method public setQueryExecutor(Ljava/util/concurrent/Executor;)Landroidx/room/RoomDatabase$Builder;
.locals 0
2019-12-06 03:29:40 +00:00
.param p1 # Ljava/util/concurrent/Executor;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation build Landroidx/annotation/NonNull;
.end annotation
2019-07-24 11:27:29 +00:00
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/concurrent/Executor;",
")",
"Landroidx/room/RoomDatabase$Builder<",
"TT;>;"
}
.end annotation
iput-object p1, p0, Landroidx/room/RoomDatabase$Builder;->mQueryExecutor:Ljava/util/concurrent/Executor;
return-object p0
.end method
2019-10-07 23:23:22 +00:00
.method public setTransactionExecutor(Ljava/util/concurrent/Executor;)Landroidx/room/RoomDatabase$Builder;
.locals 0
2019-12-06 03:29:40 +00:00
.param p1 # Ljava/util/concurrent/Executor;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation build Landroidx/annotation/NonNull;
.end annotation
2019-10-07 23:23:22 +00:00
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/concurrent/Executor;",
")",
"Landroidx/room/RoomDatabase$Builder<",
"TT;>;"
}
.end annotation
iput-object p1, p0, Landroidx/room/RoomDatabase$Builder;->mTransactionExecutor:Ljava/util/concurrent/Executor;
return-object p0
.end method