1118 lines
37 KiB
Smali
1118 lines
37 KiB
Smali
.class Landroidx/work/impl/WorkDatabase_Impl$1;
|
|
.super Landroidx/room/RoomOpenHelper$Delegate;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingMethod;
|
|
value = Landroidx/work/impl/WorkDatabase_Impl;->createOpenHelper(Landroidx/room/DatabaseConfiguration;)Landroidx/sqlite/db/SupportSQLiteOpenHelper;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x0
|
|
name = null
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field final synthetic this$0:Landroidx/work/impl/WorkDatabase_Impl;
|
|
|
|
|
|
# direct methods
|
|
.method constructor <init>(Landroidx/work/impl/WorkDatabase_Impl;I)V
|
|
.locals 0
|
|
|
|
iput-object p1, p0, Landroidx/work/impl/WorkDatabase_Impl$1;->this$0:Landroidx/work/impl/WorkDatabase_Impl;
|
|
|
|
invoke-direct {p0, p2}, Landroidx/room/RoomOpenHelper$Delegate;-><init>(I)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public createAllTables(Landroidx/sqlite/db/SupportSQLiteDatabase;)V
|
|
.locals 1
|
|
|
|
const-string v0, "CREATE TABLE IF NOT EXISTS `Dependency` (`work_spec_id` TEXT NOT NULL, `prerequisite_id` TEXT NOT NULL, PRIMARY KEY(`work_spec_id`, `prerequisite_id`), FOREIGN KEY(`work_spec_id`) REFERENCES `WorkSpec`(`id`) ON UPDATE CASCADE ON DELETE CASCADE , FOREIGN KEY(`prerequisite_id`) REFERENCES `WorkSpec`(`id`) ON UPDATE CASCADE ON DELETE CASCADE )"
|
|
|
|
invoke-interface {p1, v0}, Landroidx/sqlite/db/SupportSQLiteDatabase;->execSQL(Ljava/lang/String;)V
|
|
|
|
const-string v0, "CREATE INDEX `index_Dependency_work_spec_id` ON `Dependency` (`work_spec_id`)"
|
|
|
|
invoke-interface {p1, v0}, Landroidx/sqlite/db/SupportSQLiteDatabase;->execSQL(Ljava/lang/String;)V
|
|
|
|
const-string v0, "CREATE INDEX `index_Dependency_prerequisite_id` ON `Dependency` (`prerequisite_id`)"
|
|
|
|
invoke-interface {p1, v0}, Landroidx/sqlite/db/SupportSQLiteDatabase;->execSQL(Ljava/lang/String;)V
|
|
|
|
const-string v0, "CREATE TABLE IF NOT EXISTS `WorkSpec` (`id` TEXT NOT NULL, `state` INTEGER NOT NULL, `worker_class_name` TEXT NOT NULL, `input_merger_class_name` TEXT, `input` BLOB NOT NULL, `output` BLOB NOT NULL, `initial_delay` INTEGER NOT NULL, `interval_duration` INTEGER NOT NULL, `flex_duration` INTEGER NOT NULL, `run_attempt_count` INTEGER NOT NULL, `backoff_policy` INTEGER NOT NULL, `backoff_delay_duration` INTEGER NOT NULL, `period_start_time` INTEGER NOT NULL, `minimum_retention_duration` INTEGER NOT NULL, `schedule_requested_at` INTEGER NOT NULL, `required_network_type` INTEGER, `requires_charging` INTEGER NOT NULL, `requires_device_idle` INTEGER NOT NULL, `requires_battery_not_low` INTEGER NOT NULL, `requires_storage_not_low` INTEGER NOT NULL, `content_uri_triggers` BLOB, PRIMARY KEY(`id`))"
|
|
|
|
invoke-interface {p1, v0}, Landroidx/sqlite/db/SupportSQLiteDatabase;->execSQL(Ljava/lang/String;)V
|
|
|
|
const-string v0, "CREATE INDEX `index_WorkSpec_schedule_requested_at` ON `WorkSpec` (`schedule_requested_at`)"
|
|
|
|
invoke-interface {p1, v0}, Landroidx/sqlite/db/SupportSQLiteDatabase;->execSQL(Ljava/lang/String;)V
|
|
|
|
const-string v0, "CREATE TABLE IF NOT EXISTS `WorkTag` (`tag` TEXT NOT NULL, `work_spec_id` TEXT NOT NULL, PRIMARY KEY(`tag`, `work_spec_id`), FOREIGN KEY(`work_spec_id`) REFERENCES `WorkSpec`(`id`) ON UPDATE CASCADE ON DELETE CASCADE )"
|
|
|
|
invoke-interface {p1, v0}, Landroidx/sqlite/db/SupportSQLiteDatabase;->execSQL(Ljava/lang/String;)V
|
|
|
|
const-string v0, "CREATE INDEX `index_WorkTag_work_spec_id` ON `WorkTag` (`work_spec_id`)"
|
|
|
|
invoke-interface {p1, v0}, Landroidx/sqlite/db/SupportSQLiteDatabase;->execSQL(Ljava/lang/String;)V
|
|
|
|
const-string v0, "CREATE TABLE IF NOT EXISTS `SystemIdInfo` (`work_spec_id` TEXT NOT NULL, `system_id` INTEGER NOT NULL, PRIMARY KEY(`work_spec_id`), FOREIGN KEY(`work_spec_id`) REFERENCES `WorkSpec`(`id`) ON UPDATE CASCADE ON DELETE CASCADE )"
|
|
|
|
invoke-interface {p1, v0}, Landroidx/sqlite/db/SupportSQLiteDatabase;->execSQL(Ljava/lang/String;)V
|
|
|
|
const-string v0, "CREATE TABLE IF NOT EXISTS `WorkName` (`name` TEXT NOT NULL, `work_spec_id` TEXT NOT NULL, PRIMARY KEY(`name`, `work_spec_id`), FOREIGN KEY(`work_spec_id`) REFERENCES `WorkSpec`(`id`) ON UPDATE CASCADE ON DELETE CASCADE )"
|
|
|
|
invoke-interface {p1, v0}, Landroidx/sqlite/db/SupportSQLiteDatabase;->execSQL(Ljava/lang/String;)V
|
|
|
|
const-string v0, "CREATE INDEX `index_WorkName_work_spec_id` ON `WorkName` (`work_spec_id`)"
|
|
|
|
invoke-interface {p1, v0}, Landroidx/sqlite/db/SupportSQLiteDatabase;->execSQL(Ljava/lang/String;)V
|
|
|
|
const-string v0, "CREATE TABLE IF NOT EXISTS room_master_table (id INTEGER PRIMARY KEY,identity_hash TEXT)"
|
|
|
|
invoke-interface {p1, v0}, Landroidx/sqlite/db/SupportSQLiteDatabase;->execSQL(Ljava/lang/String;)V
|
|
|
|
const-string v0, "INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, \"c45e5fcbdf3824dead9778f19e2fd8af\")"
|
|
|
|
invoke-interface {p1, v0}, Landroidx/sqlite/db/SupportSQLiteDatabase;->execSQL(Ljava/lang/String;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public dropAllTables(Landroidx/sqlite/db/SupportSQLiteDatabase;)V
|
|
.locals 1
|
|
|
|
const-string v0, "DROP TABLE IF EXISTS `Dependency`"
|
|
|
|
invoke-interface {p1, v0}, Landroidx/sqlite/db/SupportSQLiteDatabase;->execSQL(Ljava/lang/String;)V
|
|
|
|
const-string v0, "DROP TABLE IF EXISTS `WorkSpec`"
|
|
|
|
invoke-interface {p1, v0}, Landroidx/sqlite/db/SupportSQLiteDatabase;->execSQL(Ljava/lang/String;)V
|
|
|
|
const-string v0, "DROP TABLE IF EXISTS `WorkTag`"
|
|
|
|
invoke-interface {p1, v0}, Landroidx/sqlite/db/SupportSQLiteDatabase;->execSQL(Ljava/lang/String;)V
|
|
|
|
const-string v0, "DROP TABLE IF EXISTS `SystemIdInfo`"
|
|
|
|
invoke-interface {p1, v0}, Landroidx/sqlite/db/SupportSQLiteDatabase;->execSQL(Ljava/lang/String;)V
|
|
|
|
const-string v0, "DROP TABLE IF EXISTS `WorkName`"
|
|
|
|
invoke-interface {p1, v0}, Landroidx/sqlite/db/SupportSQLiteDatabase;->execSQL(Ljava/lang/String;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public onCreate(Landroidx/sqlite/db/SupportSQLiteDatabase;)V
|
|
.locals 3
|
|
|
|
iget-object v0, p0, Landroidx/work/impl/WorkDatabase_Impl$1;->this$0:Landroidx/work/impl/WorkDatabase_Impl;
|
|
|
|
invoke-static {v0}, Landroidx/work/impl/WorkDatabase_Impl;->access$000(Landroidx/work/impl/WorkDatabase_Impl;)Ljava/util/List;
|
|
|
|
move-result-object v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
const/4 v0, 0x0
|
|
|
|
iget-object v1, p0, Landroidx/work/impl/WorkDatabase_Impl$1;->this$0:Landroidx/work/impl/WorkDatabase_Impl;
|
|
|
|
invoke-static {v1}, Landroidx/work/impl/WorkDatabase_Impl;->access$100(Landroidx/work/impl/WorkDatabase_Impl;)Ljava/util/List;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-interface {v1}, Ljava/util/List;->size()I
|
|
|
|
move-result v1
|
|
|
|
:goto_0
|
|
if-ge v0, v1, :cond_0
|
|
|
|
iget-object v2, p0, Landroidx/work/impl/WorkDatabase_Impl$1;->this$0:Landroidx/work/impl/WorkDatabase_Impl;
|
|
|
|
invoke-static {v2}, Landroidx/work/impl/WorkDatabase_Impl;->access$200(Landroidx/work/impl/WorkDatabase_Impl;)Ljava/util/List;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-interface {v2, v0}, Ljava/util/List;->get(I)Ljava/lang/Object;
|
|
|
|
move-result-object v2
|
|
|
|
check-cast v2, Landroidx/room/RoomDatabase$Callback;
|
|
|
|
invoke-virtual {v2, p1}, Landroidx/room/RoomDatabase$Callback;->onCreate(Landroidx/sqlite/db/SupportSQLiteDatabase;)V
|
|
|
|
add-int/lit8 v0, v0, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public onOpen(Landroidx/sqlite/db/SupportSQLiteDatabase;)V
|
|
.locals 3
|
|
|
|
iget-object v0, p0, Landroidx/work/impl/WorkDatabase_Impl$1;->this$0:Landroidx/work/impl/WorkDatabase_Impl;
|
|
|
|
invoke-static {v0, p1}, Landroidx/work/impl/WorkDatabase_Impl;->access$302(Landroidx/work/impl/WorkDatabase_Impl;Landroidx/sqlite/db/SupportSQLiteDatabase;)Landroidx/sqlite/db/SupportSQLiteDatabase;
|
|
|
|
const-string v0, "PRAGMA foreign_keys = ON"
|
|
|
|
invoke-interface {p1, v0}, Landroidx/sqlite/db/SupportSQLiteDatabase;->execSQL(Ljava/lang/String;)V
|
|
|
|
iget-object v0, p0, Landroidx/work/impl/WorkDatabase_Impl$1;->this$0:Landroidx/work/impl/WorkDatabase_Impl;
|
|
|
|
invoke-static {v0, p1}, Landroidx/work/impl/WorkDatabase_Impl;->access$400(Landroidx/work/impl/WorkDatabase_Impl;Landroidx/sqlite/db/SupportSQLiteDatabase;)V
|
|
|
|
iget-object v0, p0, Landroidx/work/impl/WorkDatabase_Impl$1;->this$0:Landroidx/work/impl/WorkDatabase_Impl;
|
|
|
|
invoke-static {v0}, Landroidx/work/impl/WorkDatabase_Impl;->access$500(Landroidx/work/impl/WorkDatabase_Impl;)Ljava/util/List;
|
|
|
|
move-result-object v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
const/4 v0, 0x0
|
|
|
|
iget-object v1, p0, Landroidx/work/impl/WorkDatabase_Impl$1;->this$0:Landroidx/work/impl/WorkDatabase_Impl;
|
|
|
|
invoke-static {v1}, Landroidx/work/impl/WorkDatabase_Impl;->access$600(Landroidx/work/impl/WorkDatabase_Impl;)Ljava/util/List;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-interface {v1}, Ljava/util/List;->size()I
|
|
|
|
move-result v1
|
|
|
|
:goto_0
|
|
if-ge v0, v1, :cond_0
|
|
|
|
iget-object v2, p0, Landroidx/work/impl/WorkDatabase_Impl$1;->this$0:Landroidx/work/impl/WorkDatabase_Impl;
|
|
|
|
invoke-static {v2}, Landroidx/work/impl/WorkDatabase_Impl;->access$700(Landroidx/work/impl/WorkDatabase_Impl;)Ljava/util/List;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-interface {v2, v0}, Ljava/util/List;->get(I)Ljava/lang/Object;
|
|
|
|
move-result-object v2
|
|
|
|
check-cast v2, Landroidx/room/RoomDatabase$Callback;
|
|
|
|
invoke-virtual {v2, p1}, Landroidx/room/RoomDatabase$Callback;->onOpen(Landroidx/sqlite/db/SupportSQLiteDatabase;)V
|
|
|
|
add-int/lit8 v0, v0, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public validateMigration(Landroidx/sqlite/db/SupportSQLiteDatabase;)V
|
|
.locals 21
|
|
|
|
move-object/from16 v0, p1
|
|
|
|
new-instance v1, Ljava/util/HashMap;
|
|
|
|
const/4 v2, 0x2
|
|
|
|
invoke-direct {v1, v2}, Ljava/util/HashMap;-><init>(I)V
|
|
|
|
const-string v3, "work_spec_id"
|
|
|
|
new-instance v4, Landroidx/room/util/TableInfo$Column;
|
|
|
|
const-string v5, "work_spec_id"
|
|
|
|
const-string v6, "TEXT"
|
|
|
|
const/4 v7, 0x1
|
|
|
|
invoke-direct {v4, v5, v6, v7, v7}, Landroidx/room/util/TableInfo$Column;-><init>(Ljava/lang/String;Ljava/lang/String;ZI)V
|
|
|
|
invoke-virtual {v1, v3, v4}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
const-string v3, "prerequisite_id"
|
|
|
|
new-instance v4, Landroidx/room/util/TableInfo$Column;
|
|
|
|
const-string v5, "prerequisite_id"
|
|
|
|
const-string v6, "TEXT"
|
|
|
|
invoke-direct {v4, v5, v6, v7, v2}, Landroidx/room/util/TableInfo$Column;-><init>(Ljava/lang/String;Ljava/lang/String;ZI)V
|
|
|
|
invoke-virtual {v1, v3, v4}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
new-instance v3, Ljava/util/HashSet;
|
|
|
|
invoke-direct {v3, v2}, Ljava/util/HashSet;-><init>(I)V
|
|
|
|
new-instance v4, Landroidx/room/util/TableInfo$ForeignKey;
|
|
|
|
const-string v9, "WorkSpec"
|
|
|
|
const-string v10, "CASCADE"
|
|
|
|
const-string v11, "CASCADE"
|
|
|
|
new-array v5, v7, [Ljava/lang/String;
|
|
|
|
const-string v6, "work_spec_id"
|
|
|
|
const/4 v14, 0x0
|
|
|
|
aput-object v6, v5, v14
|
|
|
|
invoke-static {v5}, Ljava/util/Arrays;->asList([Ljava/lang/Object;)Ljava/util/List;
|
|
|
|
move-result-object v12
|
|
|
|
new-array v5, v7, [Ljava/lang/String;
|
|
|
|
const-string v6, "id"
|
|
|
|
aput-object v6, v5, v14
|
|
|
|
invoke-static {v5}, Ljava/util/Arrays;->asList([Ljava/lang/Object;)Ljava/util/List;
|
|
|
|
move-result-object v13
|
|
|
|
move-object v8, v4
|
|
|
|
invoke-direct/range {v8 .. v13}, Landroidx/room/util/TableInfo$ForeignKey;-><init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/util/List;Ljava/util/List;)V
|
|
|
|
invoke-virtual {v3, v4}, Ljava/util/HashSet;->add(Ljava/lang/Object;)Z
|
|
|
|
new-instance v4, Landroidx/room/util/TableInfo$ForeignKey;
|
|
|
|
const-string v16, "WorkSpec"
|
|
|
|
const-string v17, "CASCADE"
|
|
|
|
const-string v18, "CASCADE"
|
|
|
|
new-array v5, v7, [Ljava/lang/String;
|
|
|
|
const-string v6, "prerequisite_id"
|
|
|
|
aput-object v6, v5, v14
|
|
|
|
invoke-static {v5}, Ljava/util/Arrays;->asList([Ljava/lang/Object;)Ljava/util/List;
|
|
|
|
move-result-object v19
|
|
|
|
new-array v5, v7, [Ljava/lang/String;
|
|
|
|
const-string v6, "id"
|
|
|
|
aput-object v6, v5, v14
|
|
|
|
invoke-static {v5}, Ljava/util/Arrays;->asList([Ljava/lang/Object;)Ljava/util/List;
|
|
|
|
move-result-object v20
|
|
|
|
move-object v15, v4
|
|
|
|
invoke-direct/range {v15 .. v20}, Landroidx/room/util/TableInfo$ForeignKey;-><init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/util/List;Ljava/util/List;)V
|
|
|
|
invoke-virtual {v3, v4}, Ljava/util/HashSet;->add(Ljava/lang/Object;)Z
|
|
|
|
new-instance v4, Ljava/util/HashSet;
|
|
|
|
invoke-direct {v4, v2}, Ljava/util/HashSet;-><init>(I)V
|
|
|
|
new-instance v5, Landroidx/room/util/TableInfo$Index;
|
|
|
|
const-string v6, "index_Dependency_work_spec_id"
|
|
|
|
new-array v8, v7, [Ljava/lang/String;
|
|
|
|
const-string v9, "work_spec_id"
|
|
|
|
aput-object v9, v8, v14
|
|
|
|
invoke-static {v8}, Ljava/util/Arrays;->asList([Ljava/lang/Object;)Ljava/util/List;
|
|
|
|
move-result-object v8
|
|
|
|
invoke-direct {v5, v6, v14, v8}, Landroidx/room/util/TableInfo$Index;-><init>(Ljava/lang/String;ZLjava/util/List;)V
|
|
|
|
invoke-virtual {v4, v5}, Ljava/util/HashSet;->add(Ljava/lang/Object;)Z
|
|
|
|
new-instance v5, Landroidx/room/util/TableInfo$Index;
|
|
|
|
const-string v6, "index_Dependency_prerequisite_id"
|
|
|
|
new-array v8, v7, [Ljava/lang/String;
|
|
|
|
const-string v9, "prerequisite_id"
|
|
|
|
aput-object v9, v8, v14
|
|
|
|
invoke-static {v8}, Ljava/util/Arrays;->asList([Ljava/lang/Object;)Ljava/util/List;
|
|
|
|
move-result-object v8
|
|
|
|
invoke-direct {v5, v6, v14, v8}, Landroidx/room/util/TableInfo$Index;-><init>(Ljava/lang/String;ZLjava/util/List;)V
|
|
|
|
invoke-virtual {v4, v5}, Ljava/util/HashSet;->add(Ljava/lang/Object;)Z
|
|
|
|
new-instance v5, Landroidx/room/util/TableInfo;
|
|
|
|
const-string v6, "Dependency"
|
|
|
|
invoke-direct {v5, v6, v1, v3, v4}, Landroidx/room/util/TableInfo;-><init>(Ljava/lang/String;Ljava/util/Map;Ljava/util/Set;Ljava/util/Set;)V
|
|
|
|
const-string v1, "Dependency"
|
|
|
|
invoke-static {v0, v1}, Landroidx/room/util/TableInfo;->read(Landroidx/sqlite/db/SupportSQLiteDatabase;Ljava/lang/String;)Landroidx/room/util/TableInfo;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v5, v1}, Landroidx/room/util/TableInfo;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v3
|
|
|
|
if-eqz v3, :cond_4
|
|
|
|
new-instance v1, Ljava/util/HashMap;
|
|
|
|
const/16 v3, 0x15
|
|
|
|
invoke-direct {v1, v3}, Ljava/util/HashMap;-><init>(I)V
|
|
|
|
const-string v3, "id"
|
|
|
|
new-instance v4, Landroidx/room/util/TableInfo$Column;
|
|
|
|
const-string v5, "id"
|
|
|
|
const-string v6, "TEXT"
|
|
|
|
invoke-direct {v4, v5, v6, v7, v7}, Landroidx/room/util/TableInfo$Column;-><init>(Ljava/lang/String;Ljava/lang/String;ZI)V
|
|
|
|
invoke-virtual {v1, v3, v4}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
const-string v3, "state"
|
|
|
|
new-instance v4, Landroidx/room/util/TableInfo$Column;
|
|
|
|
const-string v5, "state"
|
|
|
|
const-string v6, "INTEGER"
|
|
|
|
invoke-direct {v4, v5, v6, v7, v14}, Landroidx/room/util/TableInfo$Column;-><init>(Ljava/lang/String;Ljava/lang/String;ZI)V
|
|
|
|
invoke-virtual {v1, v3, v4}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
const-string v3, "worker_class_name"
|
|
|
|
new-instance v4, Landroidx/room/util/TableInfo$Column;
|
|
|
|
const-string v5, "worker_class_name"
|
|
|
|
const-string v6, "TEXT"
|
|
|
|
invoke-direct {v4, v5, v6, v7, v14}, Landroidx/room/util/TableInfo$Column;-><init>(Ljava/lang/String;Ljava/lang/String;ZI)V
|
|
|
|
invoke-virtual {v1, v3, v4}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
const-string v3, "input_merger_class_name"
|
|
|
|
new-instance v4, Landroidx/room/util/TableInfo$Column;
|
|
|
|
const-string v5, "input_merger_class_name"
|
|
|
|
const-string v6, "TEXT"
|
|
|
|
invoke-direct {v4, v5, v6, v14, v14}, Landroidx/room/util/TableInfo$Column;-><init>(Ljava/lang/String;Ljava/lang/String;ZI)V
|
|
|
|
invoke-virtual {v1, v3, v4}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
const-string v3, "input"
|
|
|
|
new-instance v4, Landroidx/room/util/TableInfo$Column;
|
|
|
|
const-string v5, "input"
|
|
|
|
const-string v6, "BLOB"
|
|
|
|
invoke-direct {v4, v5, v6, v7, v14}, Landroidx/room/util/TableInfo$Column;-><init>(Ljava/lang/String;Ljava/lang/String;ZI)V
|
|
|
|
invoke-virtual {v1, v3, v4}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
const-string v3, "output"
|
|
|
|
new-instance v4, Landroidx/room/util/TableInfo$Column;
|
|
|
|
const-string v5, "output"
|
|
|
|
const-string v6, "BLOB"
|
|
|
|
invoke-direct {v4, v5, v6, v7, v14}, Landroidx/room/util/TableInfo$Column;-><init>(Ljava/lang/String;Ljava/lang/String;ZI)V
|
|
|
|
invoke-virtual {v1, v3, v4}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
const-string v3, "initial_delay"
|
|
|
|
new-instance v4, Landroidx/room/util/TableInfo$Column;
|
|
|
|
const-string v5, "initial_delay"
|
|
|
|
const-string v6, "INTEGER"
|
|
|
|
invoke-direct {v4, v5, v6, v7, v14}, Landroidx/room/util/TableInfo$Column;-><init>(Ljava/lang/String;Ljava/lang/String;ZI)V
|
|
|
|
invoke-virtual {v1, v3, v4}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
const-string v3, "interval_duration"
|
|
|
|
new-instance v4, Landroidx/room/util/TableInfo$Column;
|
|
|
|
const-string v5, "interval_duration"
|
|
|
|
const-string v6, "INTEGER"
|
|
|
|
invoke-direct {v4, v5, v6, v7, v14}, Landroidx/room/util/TableInfo$Column;-><init>(Ljava/lang/String;Ljava/lang/String;ZI)V
|
|
|
|
invoke-virtual {v1, v3, v4}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
const-string v3, "flex_duration"
|
|
|
|
new-instance v4, Landroidx/room/util/TableInfo$Column;
|
|
|
|
const-string v5, "flex_duration"
|
|
|
|
const-string v6, "INTEGER"
|
|
|
|
invoke-direct {v4, v5, v6, v7, v14}, Landroidx/room/util/TableInfo$Column;-><init>(Ljava/lang/String;Ljava/lang/String;ZI)V
|
|
|
|
invoke-virtual {v1, v3, v4}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
const-string v3, "run_attempt_count"
|
|
|
|
new-instance v4, Landroidx/room/util/TableInfo$Column;
|
|
|
|
const-string v5, "run_attempt_count"
|
|
|
|
const-string v6, "INTEGER"
|
|
|
|
invoke-direct {v4, v5, v6, v7, v14}, Landroidx/room/util/TableInfo$Column;-><init>(Ljava/lang/String;Ljava/lang/String;ZI)V
|
|
|
|
invoke-virtual {v1, v3, v4}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
const-string v3, "backoff_policy"
|
|
|
|
new-instance v4, Landroidx/room/util/TableInfo$Column;
|
|
|
|
const-string v5, "backoff_policy"
|
|
|
|
const-string v6, "INTEGER"
|
|
|
|
invoke-direct {v4, v5, v6, v7, v14}, Landroidx/room/util/TableInfo$Column;-><init>(Ljava/lang/String;Ljava/lang/String;ZI)V
|
|
|
|
invoke-virtual {v1, v3, v4}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
const-string v3, "backoff_delay_duration"
|
|
|
|
new-instance v4, Landroidx/room/util/TableInfo$Column;
|
|
|
|
const-string v5, "backoff_delay_duration"
|
|
|
|
const-string v6, "INTEGER"
|
|
|
|
invoke-direct {v4, v5, v6, v7, v14}, Landroidx/room/util/TableInfo$Column;-><init>(Ljava/lang/String;Ljava/lang/String;ZI)V
|
|
|
|
invoke-virtual {v1, v3, v4}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
const-string v3, "period_start_time"
|
|
|
|
new-instance v4, Landroidx/room/util/TableInfo$Column;
|
|
|
|
const-string v5, "period_start_time"
|
|
|
|
const-string v6, "INTEGER"
|
|
|
|
invoke-direct {v4, v5, v6, v7, v14}, Landroidx/room/util/TableInfo$Column;-><init>(Ljava/lang/String;Ljava/lang/String;ZI)V
|
|
|
|
invoke-virtual {v1, v3, v4}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
const-string v3, "minimum_retention_duration"
|
|
|
|
new-instance v4, Landroidx/room/util/TableInfo$Column;
|
|
|
|
const-string v5, "minimum_retention_duration"
|
|
|
|
const-string v6, "INTEGER"
|
|
|
|
invoke-direct {v4, v5, v6, v7, v14}, Landroidx/room/util/TableInfo$Column;-><init>(Ljava/lang/String;Ljava/lang/String;ZI)V
|
|
|
|
invoke-virtual {v1, v3, v4}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
const-string v3, "schedule_requested_at"
|
|
|
|
new-instance v4, Landroidx/room/util/TableInfo$Column;
|
|
|
|
const-string v5, "schedule_requested_at"
|
|
|
|
const-string v6, "INTEGER"
|
|
|
|
invoke-direct {v4, v5, v6, v7, v14}, Landroidx/room/util/TableInfo$Column;-><init>(Ljava/lang/String;Ljava/lang/String;ZI)V
|
|
|
|
invoke-virtual {v1, v3, v4}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
const-string v3, "required_network_type"
|
|
|
|
new-instance v4, Landroidx/room/util/TableInfo$Column;
|
|
|
|
const-string v5, "required_network_type"
|
|
|
|
const-string v6, "INTEGER"
|
|
|
|
invoke-direct {v4, v5, v6, v14, v14}, Landroidx/room/util/TableInfo$Column;-><init>(Ljava/lang/String;Ljava/lang/String;ZI)V
|
|
|
|
invoke-virtual {v1, v3, v4}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
const-string v3, "requires_charging"
|
|
|
|
new-instance v4, Landroidx/room/util/TableInfo$Column;
|
|
|
|
const-string v5, "requires_charging"
|
|
|
|
const-string v6, "INTEGER"
|
|
|
|
invoke-direct {v4, v5, v6, v7, v14}, Landroidx/room/util/TableInfo$Column;-><init>(Ljava/lang/String;Ljava/lang/String;ZI)V
|
|
|
|
invoke-virtual {v1, v3, v4}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
const-string v3, "requires_device_idle"
|
|
|
|
new-instance v4, Landroidx/room/util/TableInfo$Column;
|
|
|
|
const-string v5, "requires_device_idle"
|
|
|
|
const-string v6, "INTEGER"
|
|
|
|
invoke-direct {v4, v5, v6, v7, v14}, Landroidx/room/util/TableInfo$Column;-><init>(Ljava/lang/String;Ljava/lang/String;ZI)V
|
|
|
|
invoke-virtual {v1, v3, v4}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
const-string v3, "requires_battery_not_low"
|
|
|
|
new-instance v4, Landroidx/room/util/TableInfo$Column;
|
|
|
|
const-string v5, "requires_battery_not_low"
|
|
|
|
const-string v6, "INTEGER"
|
|
|
|
invoke-direct {v4, v5, v6, v7, v14}, Landroidx/room/util/TableInfo$Column;-><init>(Ljava/lang/String;Ljava/lang/String;ZI)V
|
|
|
|
invoke-virtual {v1, v3, v4}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
const-string v3, "requires_storage_not_low"
|
|
|
|
new-instance v4, Landroidx/room/util/TableInfo$Column;
|
|
|
|
const-string v5, "requires_storage_not_low"
|
|
|
|
const-string v6, "INTEGER"
|
|
|
|
invoke-direct {v4, v5, v6, v7, v14}, Landroidx/room/util/TableInfo$Column;-><init>(Ljava/lang/String;Ljava/lang/String;ZI)V
|
|
|
|
invoke-virtual {v1, v3, v4}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
const-string v3, "content_uri_triggers"
|
|
|
|
new-instance v4, Landroidx/room/util/TableInfo$Column;
|
|
|
|
const-string v5, "content_uri_triggers"
|
|
|
|
const-string v6, "BLOB"
|
|
|
|
invoke-direct {v4, v5, v6, v14, v14}, Landroidx/room/util/TableInfo$Column;-><init>(Ljava/lang/String;Ljava/lang/String;ZI)V
|
|
|
|
invoke-virtual {v1, v3, v4}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
new-instance v3, Ljava/util/HashSet;
|
|
|
|
invoke-direct {v3, v14}, Ljava/util/HashSet;-><init>(I)V
|
|
|
|
new-instance v4, Ljava/util/HashSet;
|
|
|
|
invoke-direct {v4, v7}, Ljava/util/HashSet;-><init>(I)V
|
|
|
|
new-instance v5, Landroidx/room/util/TableInfo$Index;
|
|
|
|
const-string v6, "index_WorkSpec_schedule_requested_at"
|
|
|
|
new-array v8, v7, [Ljava/lang/String;
|
|
|
|
const-string v9, "schedule_requested_at"
|
|
|
|
aput-object v9, v8, v14
|
|
|
|
invoke-static {v8}, Ljava/util/Arrays;->asList([Ljava/lang/Object;)Ljava/util/List;
|
|
|
|
move-result-object v8
|
|
|
|
invoke-direct {v5, v6, v14, v8}, Landroidx/room/util/TableInfo$Index;-><init>(Ljava/lang/String;ZLjava/util/List;)V
|
|
|
|
invoke-virtual {v4, v5}, Ljava/util/HashSet;->add(Ljava/lang/Object;)Z
|
|
|
|
new-instance v5, Landroidx/room/util/TableInfo;
|
|
|
|
const-string v6, "WorkSpec"
|
|
|
|
invoke-direct {v5, v6, v1, v3, v4}, Landroidx/room/util/TableInfo;-><init>(Ljava/lang/String;Ljava/util/Map;Ljava/util/Set;Ljava/util/Set;)V
|
|
|
|
const-string v1, "WorkSpec"
|
|
|
|
invoke-static {v0, v1}, Landroidx/room/util/TableInfo;->read(Landroidx/sqlite/db/SupportSQLiteDatabase;Ljava/lang/String;)Landroidx/room/util/TableInfo;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v5, v1}, Landroidx/room/util/TableInfo;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v3
|
|
|
|
if-eqz v3, :cond_3
|
|
|
|
new-instance v1, Ljava/util/HashMap;
|
|
|
|
invoke-direct {v1, v2}, Ljava/util/HashMap;-><init>(I)V
|
|
|
|
const-string v3, "tag"
|
|
|
|
new-instance v4, Landroidx/room/util/TableInfo$Column;
|
|
|
|
const-string v5, "tag"
|
|
|
|
const-string v6, "TEXT"
|
|
|
|
invoke-direct {v4, v5, v6, v7, v7}, Landroidx/room/util/TableInfo$Column;-><init>(Ljava/lang/String;Ljava/lang/String;ZI)V
|
|
|
|
invoke-virtual {v1, v3, v4}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
const-string v3, "work_spec_id"
|
|
|
|
new-instance v4, Landroidx/room/util/TableInfo$Column;
|
|
|
|
const-string v5, "work_spec_id"
|
|
|
|
const-string v6, "TEXT"
|
|
|
|
invoke-direct {v4, v5, v6, v7, v2}, Landroidx/room/util/TableInfo$Column;-><init>(Ljava/lang/String;Ljava/lang/String;ZI)V
|
|
|
|
invoke-virtual {v1, v3, v4}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
new-instance v3, Ljava/util/HashSet;
|
|
|
|
invoke-direct {v3, v7}, Ljava/util/HashSet;-><init>(I)V
|
|
|
|
new-instance v4, Landroidx/room/util/TableInfo$ForeignKey;
|
|
|
|
const-string v9, "WorkSpec"
|
|
|
|
const-string v10, "CASCADE"
|
|
|
|
const-string v11, "CASCADE"
|
|
|
|
new-array v5, v7, [Ljava/lang/String;
|
|
|
|
const-string v6, "work_spec_id"
|
|
|
|
aput-object v6, v5, v14
|
|
|
|
invoke-static {v5}, Ljava/util/Arrays;->asList([Ljava/lang/Object;)Ljava/util/List;
|
|
|
|
move-result-object v12
|
|
|
|
new-array v5, v7, [Ljava/lang/String;
|
|
|
|
const-string v6, "id"
|
|
|
|
aput-object v6, v5, v14
|
|
|
|
invoke-static {v5}, Ljava/util/Arrays;->asList([Ljava/lang/Object;)Ljava/util/List;
|
|
|
|
move-result-object v13
|
|
|
|
move-object v8, v4
|
|
|
|
invoke-direct/range {v8 .. v13}, Landroidx/room/util/TableInfo$ForeignKey;-><init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/util/List;Ljava/util/List;)V
|
|
|
|
invoke-virtual {v3, v4}, Ljava/util/HashSet;->add(Ljava/lang/Object;)Z
|
|
|
|
new-instance v4, Ljava/util/HashSet;
|
|
|
|
invoke-direct {v4, v7}, Ljava/util/HashSet;-><init>(I)V
|
|
|
|
new-instance v5, Landroidx/room/util/TableInfo$Index;
|
|
|
|
const-string v6, "index_WorkTag_work_spec_id"
|
|
|
|
new-array v8, v7, [Ljava/lang/String;
|
|
|
|
const-string v9, "work_spec_id"
|
|
|
|
aput-object v9, v8, v14
|
|
|
|
invoke-static {v8}, Ljava/util/Arrays;->asList([Ljava/lang/Object;)Ljava/util/List;
|
|
|
|
move-result-object v8
|
|
|
|
invoke-direct {v5, v6, v14, v8}, Landroidx/room/util/TableInfo$Index;-><init>(Ljava/lang/String;ZLjava/util/List;)V
|
|
|
|
invoke-virtual {v4, v5}, Ljava/util/HashSet;->add(Ljava/lang/Object;)Z
|
|
|
|
new-instance v5, Landroidx/room/util/TableInfo;
|
|
|
|
const-string v6, "WorkTag"
|
|
|
|
invoke-direct {v5, v6, v1, v3, v4}, Landroidx/room/util/TableInfo;-><init>(Ljava/lang/String;Ljava/util/Map;Ljava/util/Set;Ljava/util/Set;)V
|
|
|
|
const-string v1, "WorkTag"
|
|
|
|
invoke-static {v0, v1}, Landroidx/room/util/TableInfo;->read(Landroidx/sqlite/db/SupportSQLiteDatabase;Ljava/lang/String;)Landroidx/room/util/TableInfo;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v5, v1}, Landroidx/room/util/TableInfo;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v3
|
|
|
|
if-eqz v3, :cond_2
|
|
|
|
new-instance v1, Ljava/util/HashMap;
|
|
|
|
invoke-direct {v1, v2}, Ljava/util/HashMap;-><init>(I)V
|
|
|
|
const-string v3, "work_spec_id"
|
|
|
|
new-instance v4, Landroidx/room/util/TableInfo$Column;
|
|
|
|
const-string v5, "work_spec_id"
|
|
|
|
const-string v6, "TEXT"
|
|
|
|
invoke-direct {v4, v5, v6, v7, v7}, Landroidx/room/util/TableInfo$Column;-><init>(Ljava/lang/String;Ljava/lang/String;ZI)V
|
|
|
|
invoke-virtual {v1, v3, v4}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
const-string v3, "system_id"
|
|
|
|
new-instance v4, Landroidx/room/util/TableInfo$Column;
|
|
|
|
const-string v5, "system_id"
|
|
|
|
const-string v6, "INTEGER"
|
|
|
|
invoke-direct {v4, v5, v6, v7, v14}, Landroidx/room/util/TableInfo$Column;-><init>(Ljava/lang/String;Ljava/lang/String;ZI)V
|
|
|
|
invoke-virtual {v1, v3, v4}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
new-instance v3, Ljava/util/HashSet;
|
|
|
|
invoke-direct {v3, v7}, Ljava/util/HashSet;-><init>(I)V
|
|
|
|
new-instance v4, Landroidx/room/util/TableInfo$ForeignKey;
|
|
|
|
const-string v9, "WorkSpec"
|
|
|
|
const-string v10, "CASCADE"
|
|
|
|
const-string v11, "CASCADE"
|
|
|
|
new-array v5, v7, [Ljava/lang/String;
|
|
|
|
const-string v6, "work_spec_id"
|
|
|
|
aput-object v6, v5, v14
|
|
|
|
invoke-static {v5}, Ljava/util/Arrays;->asList([Ljava/lang/Object;)Ljava/util/List;
|
|
|
|
move-result-object v12
|
|
|
|
new-array v5, v7, [Ljava/lang/String;
|
|
|
|
const-string v6, "id"
|
|
|
|
aput-object v6, v5, v14
|
|
|
|
invoke-static {v5}, Ljava/util/Arrays;->asList([Ljava/lang/Object;)Ljava/util/List;
|
|
|
|
move-result-object v13
|
|
|
|
move-object v8, v4
|
|
|
|
invoke-direct/range {v8 .. v13}, Landroidx/room/util/TableInfo$ForeignKey;-><init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/util/List;Ljava/util/List;)V
|
|
|
|
invoke-virtual {v3, v4}, Ljava/util/HashSet;->add(Ljava/lang/Object;)Z
|
|
|
|
new-instance v4, Ljava/util/HashSet;
|
|
|
|
invoke-direct {v4, v14}, Ljava/util/HashSet;-><init>(I)V
|
|
|
|
new-instance v5, Landroidx/room/util/TableInfo;
|
|
|
|
const-string v6, "SystemIdInfo"
|
|
|
|
invoke-direct {v5, v6, v1, v3, v4}, Landroidx/room/util/TableInfo;-><init>(Ljava/lang/String;Ljava/util/Map;Ljava/util/Set;Ljava/util/Set;)V
|
|
|
|
const-string v1, "SystemIdInfo"
|
|
|
|
invoke-static {v0, v1}, Landroidx/room/util/TableInfo;->read(Landroidx/sqlite/db/SupportSQLiteDatabase;Ljava/lang/String;)Landroidx/room/util/TableInfo;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v5, v1}, Landroidx/room/util/TableInfo;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v3
|
|
|
|
if-eqz v3, :cond_1
|
|
|
|
new-instance v1, Ljava/util/HashMap;
|
|
|
|
invoke-direct {v1, v2}, Ljava/util/HashMap;-><init>(I)V
|
|
|
|
const-string v3, "name"
|
|
|
|
new-instance v4, Landroidx/room/util/TableInfo$Column;
|
|
|
|
const-string v5, "name"
|
|
|
|
const-string v6, "TEXT"
|
|
|
|
invoke-direct {v4, v5, v6, v7, v7}, Landroidx/room/util/TableInfo$Column;-><init>(Ljava/lang/String;Ljava/lang/String;ZI)V
|
|
|
|
invoke-virtual {v1, v3, v4}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
const-string v3, "work_spec_id"
|
|
|
|
new-instance v4, Landroidx/room/util/TableInfo$Column;
|
|
|
|
const-string v5, "work_spec_id"
|
|
|
|
const-string v6, "TEXT"
|
|
|
|
invoke-direct {v4, v5, v6, v7, v2}, Landroidx/room/util/TableInfo$Column;-><init>(Ljava/lang/String;Ljava/lang/String;ZI)V
|
|
|
|
invoke-virtual {v1, v3, v4}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
new-instance v2, Ljava/util/HashSet;
|
|
|
|
invoke-direct {v2, v7}, Ljava/util/HashSet;-><init>(I)V
|
|
|
|
new-instance v3, Landroidx/room/util/TableInfo$ForeignKey;
|
|
|
|
const-string v9, "WorkSpec"
|
|
|
|
const-string v10, "CASCADE"
|
|
|
|
const-string v11, "CASCADE"
|
|
|
|
new-array v4, v7, [Ljava/lang/String;
|
|
|
|
const-string v5, "work_spec_id"
|
|
|
|
aput-object v5, v4, v14
|
|
|
|
invoke-static {v4}, Ljava/util/Arrays;->asList([Ljava/lang/Object;)Ljava/util/List;
|
|
|
|
move-result-object v12
|
|
|
|
new-array v4, v7, [Ljava/lang/String;
|
|
|
|
const-string v5, "id"
|
|
|
|
aput-object v5, v4, v14
|
|
|
|
invoke-static {v4}, Ljava/util/Arrays;->asList([Ljava/lang/Object;)Ljava/util/List;
|
|
|
|
move-result-object v13
|
|
|
|
move-object v8, v3
|
|
|
|
invoke-direct/range {v8 .. v13}, Landroidx/room/util/TableInfo$ForeignKey;-><init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/util/List;Ljava/util/List;)V
|
|
|
|
invoke-virtual {v2, v3}, Ljava/util/HashSet;->add(Ljava/lang/Object;)Z
|
|
|
|
new-instance v3, Ljava/util/HashSet;
|
|
|
|
invoke-direct {v3, v7}, Ljava/util/HashSet;-><init>(I)V
|
|
|
|
new-instance v4, Landroidx/room/util/TableInfo$Index;
|
|
|
|
const-string v5, "index_WorkName_work_spec_id"
|
|
|
|
new-array v6, v7, [Ljava/lang/String;
|
|
|
|
const-string v7, "work_spec_id"
|
|
|
|
aput-object v7, v6, v14
|
|
|
|
invoke-static {v6}, Ljava/util/Arrays;->asList([Ljava/lang/Object;)Ljava/util/List;
|
|
|
|
move-result-object v6
|
|
|
|
invoke-direct {v4, v5, v14, v6}, Landroidx/room/util/TableInfo$Index;-><init>(Ljava/lang/String;ZLjava/util/List;)V
|
|
|
|
invoke-virtual {v3, v4}, Ljava/util/HashSet;->add(Ljava/lang/Object;)Z
|
|
|
|
new-instance v4, Landroidx/room/util/TableInfo;
|
|
|
|
const-string v5, "WorkName"
|
|
|
|
invoke-direct {v4, v5, v1, v2, v3}, Landroidx/room/util/TableInfo;-><init>(Ljava/lang/String;Ljava/util/Map;Ljava/util/Set;Ljava/util/Set;)V
|
|
|
|
const-string v1, "WorkName"
|
|
|
|
invoke-static {v0, v1}, Landroidx/room/util/TableInfo;->read(Landroidx/sqlite/db/SupportSQLiteDatabase;Ljava/lang/String;)Landroidx/room/util/TableInfo;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v4, v0}, Landroidx/room/util/TableInfo;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
new-instance v1, Ljava/lang/IllegalStateException;
|
|
|
|
new-instance v2, Ljava/lang/StringBuilder;
|
|
|
|
const-string v3, "Migration didn\'t properly handle WorkName(androidx.work.impl.model.WorkName).\n Expected:\n"
|
|
|
|
invoke-direct {v2, v3}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
|
|
|
invoke-virtual {v2, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
const-string v3, "\n Found:\n"
|
|
|
|
invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-direct {v1, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw v1
|
|
|
|
:cond_1
|
|
new-instance v0, Ljava/lang/IllegalStateException;
|
|
|
|
new-instance v2, Ljava/lang/StringBuilder;
|
|
|
|
const-string v3, "Migration didn\'t properly handle SystemIdInfo(androidx.work.impl.model.SystemIdInfo).\n Expected:\n"
|
|
|
|
invoke-direct {v2, v3}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
|
|
|
invoke-virtual {v2, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
const-string v3, "\n Found:\n"
|
|
|
|
invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v2, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
|
|
:cond_2
|
|
new-instance v0, Ljava/lang/IllegalStateException;
|
|
|
|
new-instance v2, Ljava/lang/StringBuilder;
|
|
|
|
const-string v3, "Migration didn\'t properly handle WorkTag(androidx.work.impl.model.WorkTag).\n Expected:\n"
|
|
|
|
invoke-direct {v2, v3}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
|
|
|
invoke-virtual {v2, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
const-string v3, "\n Found:\n"
|
|
|
|
invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v2, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
|
|
:cond_3
|
|
new-instance v0, Ljava/lang/IllegalStateException;
|
|
|
|
new-instance v2, Ljava/lang/StringBuilder;
|
|
|
|
const-string v3, "Migration didn\'t properly handle WorkSpec(androidx.work.impl.model.WorkSpec).\n Expected:\n"
|
|
|
|
invoke-direct {v2, v3}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
|
|
|
invoke-virtual {v2, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
const-string v3, "\n Found:\n"
|
|
|
|
invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v2, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
|
|
:cond_4
|
|
new-instance v0, Ljava/lang/IllegalStateException;
|
|
|
|
new-instance v2, Ljava/lang/StringBuilder;
|
|
|
|
const-string v3, "Migration didn\'t properly handle Dependency(androidx.work.impl.model.Dependency).\n Expected:\n"
|
|
|
|
invoke-direct {v2, v3}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
|
|
|
invoke-virtual {v2, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
const-string v3, "\n Found:\n"
|
|
|
|
invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v2, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
.end method
|