apkfuckery/com.discord/smali/androidx/room/DatabaseConfiguration.smali

452 lines
14 KiB
Smali
Raw Normal View History

2020-11-12 02:11:44 +00:00
.class public Landroidx/room/DatabaseConfiguration;
.super Ljava/lang/Object;
.source "DatabaseConfiguration.java"
# instance fields
.field public final allowDestructiveMigrationOnDowngrade:Z
.field public final allowMainThreadQueries:Z
.field public final callbacks:Ljava/util/List;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/List<",
"Landroidx/room/RoomDatabase$Callback;",
">;"
}
.end annotation
.end field
.field public final context:Landroid/content/Context;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end field
.field public final copyFromAssetPath:Ljava/lang/String;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end field
.field public final copyFromFile:Ljava/io/File;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end field
.field public final journalMode:Landroidx/room/RoomDatabase$JournalMode;
2020-11-21 22:11:07 +00:00
.field private final mMigrationNotRequiredFrom:Ljava/util/Set;
2020-11-12 02:11:44 +00:00
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/Set<",
"Ljava/lang/Integer;",
">;"
}
.end annotation
.end field
.field public final migrationContainer:Landroidx/room/RoomDatabase$MigrationContainer;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end field
.field public final multiInstanceInvalidation:Z
.field public final name:Ljava/lang/String;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end field
.field public final queryExecutor:Ljava/util/concurrent/Executor;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end field
.field public final requireMigration:Z
.field public final sqliteOpenHelperFactory:Landroidx/sqlite/db/SupportSQLiteOpenHelper$Factory;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end field
.field public final transactionExecutor:Ljava/util/concurrent/Executor;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end field
# direct methods
.method public constructor <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
.locals 16
.param p1 # Landroid/content/Context;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p2 # Ljava/lang/String;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
.param p3 # Landroidx/sqlite/db/SupportSQLiteOpenHelper$Factory;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p4 # Landroidx/room/RoomDatabase$MigrationContainer;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p5 # Ljava/util/List;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
.param p8 # Ljava/util/concurrent/Executor;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p9 # Ljava/util/concurrent/Executor;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p13 # Ljava/util/Set;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
.annotation build Landroidx/annotation/RestrictTo;
value = {
.enum Landroidx/annotation/RestrictTo$Scope;->LIBRARY_GROUP_PREFIX:Landroidx/annotation/RestrictTo$Scope;
}
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Landroid/content/Context;",
"Ljava/lang/String;",
"Landroidx/sqlite/db/SupportSQLiteOpenHelper$Factory;",
"Landroidx/room/RoomDatabase$MigrationContainer;",
"Ljava/util/List<",
"Landroidx/room/RoomDatabase$Callback;",
">;Z",
"Landroidx/room/RoomDatabase$JournalMode;",
"Ljava/util/concurrent/Executor;",
"Ljava/util/concurrent/Executor;",
"ZZZ",
"Ljava/util/Set<",
"Ljava/lang/Integer;",
">;)V"
}
.end annotation
.annotation runtime Ljava/lang/Deprecated;
.end annotation
const/4 v14, 0x0
const/4 v15, 0x0
move-object/from16 v0, p0
move-object/from16 v1, p1
move-object/from16 v2, p2
move-object/from16 v3, p3
move-object/from16 v4, p4
move-object/from16 v5, p5
move/from16 v6, p6
move-object/from16 v7, p7
move-object/from16 v8, p8
move-object/from16 v9, p9
move/from16 v10, p10
move/from16 v11, p11
move/from16 v12, p12
move-object/from16 v13, p13
invoke-direct/range {v0 .. v15}, 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;Ljava/lang/String;Ljava/io/File;)V
return-void
.end method
.method public constructor <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;Ljava/lang/String;Ljava/io/File;)V
.locals 0
.param p1 # Landroid/content/Context;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p2 # Ljava/lang/String;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
.param p3 # Landroidx/sqlite/db/SupportSQLiteOpenHelper$Factory;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p4 # Landroidx/room/RoomDatabase$MigrationContainer;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p5 # Ljava/util/List;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
.param p8 # Ljava/util/concurrent/Executor;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p9 # Ljava/util/concurrent/Executor;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p13 # Ljava/util/Set;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
.param p14 # Ljava/lang/String;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
.param p15 # Ljava/io/File;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
.annotation build Landroidx/annotation/RestrictTo;
value = {
.enum Landroidx/annotation/RestrictTo$Scope;->LIBRARY_GROUP_PREFIX:Landroidx/annotation/RestrictTo$Scope;
}
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Landroid/content/Context;",
"Ljava/lang/String;",
"Landroidx/sqlite/db/SupportSQLiteOpenHelper$Factory;",
"Landroidx/room/RoomDatabase$MigrationContainer;",
"Ljava/util/List<",
"Landroidx/room/RoomDatabase$Callback;",
">;Z",
"Landroidx/room/RoomDatabase$JournalMode;",
"Ljava/util/concurrent/Executor;",
"Ljava/util/concurrent/Executor;",
"ZZZ",
"Ljava/util/Set<",
"Ljava/lang/Integer;",
">;",
"Ljava/lang/String;",
"Ljava/io/File;",
")V"
}
.end annotation
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p3, p0, Landroidx/room/DatabaseConfiguration;->sqliteOpenHelperFactory:Landroidx/sqlite/db/SupportSQLiteOpenHelper$Factory;
iput-object p1, p0, Landroidx/room/DatabaseConfiguration;->context:Landroid/content/Context;
iput-object p2, p0, Landroidx/room/DatabaseConfiguration;->name:Ljava/lang/String;
iput-object p4, p0, Landroidx/room/DatabaseConfiguration;->migrationContainer:Landroidx/room/RoomDatabase$MigrationContainer;
iput-object p5, p0, Landroidx/room/DatabaseConfiguration;->callbacks:Ljava/util/List;
iput-boolean p6, p0, Landroidx/room/DatabaseConfiguration;->allowMainThreadQueries:Z
iput-object p7, p0, Landroidx/room/DatabaseConfiguration;->journalMode:Landroidx/room/RoomDatabase$JournalMode;
iput-object p8, p0, Landroidx/room/DatabaseConfiguration;->queryExecutor:Ljava/util/concurrent/Executor;
iput-object p9, p0, Landroidx/room/DatabaseConfiguration;->transactionExecutor:Ljava/util/concurrent/Executor;
iput-boolean p10, p0, Landroidx/room/DatabaseConfiguration;->multiInstanceInvalidation:Z
iput-boolean p11, p0, Landroidx/room/DatabaseConfiguration;->requireMigration:Z
iput-boolean p12, p0, Landroidx/room/DatabaseConfiguration;->allowDestructiveMigrationOnDowngrade:Z
iput-object p13, p0, Landroidx/room/DatabaseConfiguration;->mMigrationNotRequiredFrom:Ljava/util/Set;
iput-object p14, p0, Landroidx/room/DatabaseConfiguration;->copyFromAssetPath:Ljava/lang/String;
iput-object p15, p0, Landroidx/room/DatabaseConfiguration;->copyFromFile:Ljava/io/File;
return-void
.end method
.method public constructor <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;ZLjava/util/Set;)V
.locals 16
.param p1 # Landroid/content/Context;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p2 # Ljava/lang/String;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
.param p3 # Landroidx/sqlite/db/SupportSQLiteOpenHelper$Factory;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p4 # Landroidx/room/RoomDatabase$MigrationContainer;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p5 # Ljava/util/List;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
.param p8 # Ljava/util/concurrent/Executor;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.param p10 # Ljava/util/Set;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
.annotation build Landroidx/annotation/RestrictTo;
value = {
.enum Landroidx/annotation/RestrictTo$Scope;->LIBRARY_GROUP_PREFIX:Landroidx/annotation/RestrictTo$Scope;
}
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Landroid/content/Context;",
"Ljava/lang/String;",
"Landroidx/sqlite/db/SupportSQLiteOpenHelper$Factory;",
"Landroidx/room/RoomDatabase$MigrationContainer;",
"Ljava/util/List<",
"Landroidx/room/RoomDatabase$Callback;",
">;Z",
"Landroidx/room/RoomDatabase$JournalMode;",
"Ljava/util/concurrent/Executor;",
"Z",
"Ljava/util/Set<",
"Ljava/lang/Integer;",
">;)V"
}
.end annotation
.annotation runtime Ljava/lang/Deprecated;
.end annotation
const/4 v10, 0x0
const/4 v12, 0x0
const/4 v14, 0x0
const/4 v15, 0x0
move-object/from16 v0, p0
move-object/from16 v1, p1
move-object/from16 v2, p2
move-object/from16 v3, p3
move-object/from16 v4, p4
move-object/from16 v5, p5
move/from16 v6, p6
move-object/from16 v7, p7
move-object/from16 v8, p8
move-object/from16 v9, p8
move/from16 v11, p9
move-object/from16 v13, p10
invoke-direct/range {v0 .. v15}, 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;Ljava/lang/String;Ljava/io/File;)V
return-void
.end method
# virtual methods
.method public isMigrationRequired(II)Z
.locals 2
const/4 v0, 0x1
const/4 v1, 0x0
if-le p1, p2, :cond_0
const/4 p2, 0x1
goto :goto_0
:cond_0
const/4 p2, 0x0
:goto_0
if-eqz p2, :cond_1
iget-boolean p2, p0, Landroidx/room/DatabaseConfiguration;->allowDestructiveMigrationOnDowngrade:Z
if-eqz p2, :cond_1
return v1
:cond_1
iget-boolean p2, p0, Landroidx/room/DatabaseConfiguration;->requireMigration:Z
if-eqz p2, :cond_2
iget-object p2, p0, Landroidx/room/DatabaseConfiguration;->mMigrationNotRequiredFrom:Ljava/util/Set;
if-eqz p2, :cond_3
invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object p1
invoke-interface {p2, p1}, Ljava/util/Set;->contains(Ljava/lang/Object;)Z
move-result p1
if-nez p1, :cond_2
goto :goto_1
:cond_2
const/4 v0, 0x0
:cond_3
:goto_1
return v0
.end method
.method public isMigrationRequiredFrom(I)Z
.locals 1
.annotation runtime Ljava/lang/Deprecated;
.end annotation
add-int/lit8 v0, p1, 0x1
invoke-virtual {p0, p1, v0}, Landroidx/room/DatabaseConfiguration;->isMigrationRequired(II)Z
move-result p1
return p1
.end method