1572 lines
50 KiB
Smali
1572 lines
50 KiB
Smali
.class public Landroidx/work/impl/WorkDatabase_Impl$1;
|
|
.super Landroidx/room/RoomOpenHelper$Delegate;
|
|
.source "WorkDatabase_Impl.java"
|
|
|
|
|
|
# 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 = 0x1
|
|
name = null
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field public final synthetic this$0:Landroidx/work/impl/WorkDatabase_Impl;
|
|
|
|
|
|
# direct methods
|
|
.method public 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 IF NOT EXISTS `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 IF NOT EXISTS `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, `run_in_foreground` 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, `trigger_content_update_delay` INTEGER NOT NULL, `trigger_max_content_delay` 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 IF NOT EXISTS `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 INDEX IF NOT EXISTS `index_WorkSpec_period_start_time` ON `WorkSpec` (`period_start_time`)"
|
|
|
|
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 IF NOT EXISTS `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 IF NOT EXISTS `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 `WorkProgress` (`work_spec_id` TEXT NOT NULL, `progress` BLOB 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 `Preference` (`key` TEXT NOT NULL, `long_value` INTEGER, PRIMARY KEY(`key`))"
|
|
|
|
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, \'cf029002fffdcadf079e8d0a1c9a70ac\')"
|
|
|
|
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 3
|
|
|
|
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
|
|
|
|
const-string v0, "DROP TABLE IF EXISTS `WorkProgress`"
|
|
|
|
invoke-interface {p1, v0}, Landroidx/sqlite/db/SupportSQLiteDatabase;->execSQL(Ljava/lang/String;)V
|
|
|
|
const-string v0, "DROP TABLE IF EXISTS `Preference`"
|
|
|
|
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}, 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;->onDestructiveMigration(Landroidx/sqlite/db/SupportSQLiteDatabase;)V
|
|
|
|
add-int/lit8 v0, v0, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
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$300(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$400(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$500(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$602(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$700(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$800(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$900(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$1000(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 onPostMigrate(Landroidx/sqlite/db/SupportSQLiteDatabase;)V
|
|
.locals 0
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public onPreMigrate(Landroidx/sqlite/db/SupportSQLiteDatabase;)V
|
|
.locals 0
|
|
|
|
invoke-static {p1}, Landroidx/room/util/DBUtil;->dropFtsSyncTriggers(Landroidx/sqlite/db/SupportSQLiteDatabase;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public onValidateSchema(Landroidx/sqlite/db/SupportSQLiteDatabase;)Landroidx/room/RoomOpenHelper$ValidationResult;
|
|
.locals 28
|
|
|
|
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
|
|
|
|
new-instance v10, Landroidx/room/util/TableInfo$Column;
|
|
|
|
const-string v4, "work_spec_id"
|
|
|
|
const-string v5, "TEXT"
|
|
|
|
const/4 v6, 0x1
|
|
|
|
const/4 v7, 0x1
|
|
|
|
const/4 v8, 0x0
|
|
|
|
const/4 v9, 0x1
|
|
|
|
move-object v3, v10
|
|
|
|
invoke-direct/range {v3 .. v9}, Landroidx/room/util/TableInfo$Column;-><init>(Ljava/lang/String;Ljava/lang/String;ZILjava/lang/String;I)V
|
|
|
|
const-string v3, "work_spec_id"
|
|
|
|
invoke-virtual {v1, v3, v10}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
new-instance v4, Landroidx/room/util/TableInfo$Column;
|
|
|
|
const-string v12, "prerequisite_id"
|
|
|
|
const-string v13, "TEXT"
|
|
|
|
const/4 v14, 0x1
|
|
|
|
const/4 v15, 0x2
|
|
|
|
const/16 v16, 0x0
|
|
|
|
const/16 v17, 0x1
|
|
|
|
move-object v11, v4
|
|
|
|
invoke-direct/range {v11 .. v17}, Landroidx/room/util/TableInfo$Column;-><init>(Ljava/lang/String;Ljava/lang/String;ZILjava/lang/String;I)V
|
|
|
|
const-string v5, "prerequisite_id"
|
|
|
|
invoke-virtual {v1, v5, v4}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
new-instance v4, Ljava/util/HashSet;
|
|
|
|
invoke-direct {v4, v2}, Ljava/util/HashSet;-><init>(I)V
|
|
|
|
new-instance v12, Landroidx/room/util/TableInfo$ForeignKey;
|
|
|
|
filled-new-array {v3}, [Ljava/lang/String;
|
|
|
|
move-result-object v6
|
|
|
|
invoke-static {v6}, Ljava/util/Arrays;->asList([Ljava/lang/Object;)Ljava/util/List;
|
|
|
|
move-result-object v10
|
|
|
|
const-string v13, "id"
|
|
|
|
filled-new-array {v13}, [Ljava/lang/String;
|
|
|
|
move-result-object v6
|
|
|
|
invoke-static {v6}, Ljava/util/Arrays;->asList([Ljava/lang/Object;)Ljava/util/List;
|
|
|
|
move-result-object v11
|
|
|
|
const-string v7, "WorkSpec"
|
|
|
|
const-string v8, "CASCADE"
|
|
|
|
const-string v9, "CASCADE"
|
|
|
|
move-object v6, v12
|
|
|
|
invoke-direct/range {v6 .. v11}, Landroidx/room/util/TableInfo$ForeignKey;-><init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/util/List;Ljava/util/List;)V
|
|
|
|
invoke-virtual {v4, v12}, Ljava/util/HashSet;->add(Ljava/lang/Object;)Z
|
|
|
|
new-instance v6, Landroidx/room/util/TableInfo$ForeignKey;
|
|
|
|
filled-new-array {v5}, [Ljava/lang/String;
|
|
|
|
move-result-object v7
|
|
|
|
invoke-static {v7}, Ljava/util/Arrays;->asList([Ljava/lang/Object;)Ljava/util/List;
|
|
|
|
move-result-object v18
|
|
|
|
filled-new-array {v13}, [Ljava/lang/String;
|
|
|
|
move-result-object v7
|
|
|
|
invoke-static {v7}, Ljava/util/Arrays;->asList([Ljava/lang/Object;)Ljava/util/List;
|
|
|
|
move-result-object v19
|
|
|
|
const-string v15, "WorkSpec"
|
|
|
|
const-string v16, "CASCADE"
|
|
|
|
const-string v17, "CASCADE"
|
|
|
|
move-object v14, v6
|
|
|
|
invoke-direct/range {v14 .. v19}, Landroidx/room/util/TableInfo$ForeignKey;-><init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/util/List;Ljava/util/List;)V
|
|
|
|
invoke-virtual {v4, v6}, Ljava/util/HashSet;->add(Ljava/lang/Object;)Z
|
|
|
|
new-instance v6, Ljava/util/HashSet;
|
|
|
|
invoke-direct {v6, v2}, Ljava/util/HashSet;-><init>(I)V
|
|
|
|
new-instance v7, Landroidx/room/util/TableInfo$Index;
|
|
|
|
filled-new-array {v3}, [Ljava/lang/String;
|
|
|
|
move-result-object v8
|
|
|
|
invoke-static {v8}, Ljava/util/Arrays;->asList([Ljava/lang/Object;)Ljava/util/List;
|
|
|
|
move-result-object v8
|
|
|
|
const-string v9, "index_Dependency_work_spec_id"
|
|
|
|
const/4 v10, 0x0
|
|
|
|
invoke-direct {v7, v9, v10, v8}, Landroidx/room/util/TableInfo$Index;-><init>(Ljava/lang/String;ZLjava/util/List;)V
|
|
|
|
invoke-virtual {v6, v7}, Ljava/util/HashSet;->add(Ljava/lang/Object;)Z
|
|
|
|
new-instance v7, Landroidx/room/util/TableInfo$Index;
|
|
|
|
filled-new-array {v5}, [Ljava/lang/String;
|
|
|
|
move-result-object v5
|
|
|
|
invoke-static {v5}, Ljava/util/Arrays;->asList([Ljava/lang/Object;)Ljava/util/List;
|
|
|
|
move-result-object v5
|
|
|
|
const-string v8, "index_Dependency_prerequisite_id"
|
|
|
|
invoke-direct {v7, v8, v10, v5}, Landroidx/room/util/TableInfo$Index;-><init>(Ljava/lang/String;ZLjava/util/List;)V
|
|
|
|
invoke-virtual {v6, v7}, Ljava/util/HashSet;->add(Ljava/lang/Object;)Z
|
|
|
|
new-instance v5, Landroidx/room/util/TableInfo;
|
|
|
|
const-string v7, "Dependency"
|
|
|
|
invoke-direct {v5, v7, v1, v4, v6}, Landroidx/room/util/TableInfo;-><init>(Ljava/lang/String;Ljava/util/Map;Ljava/util/Set;Ljava/util/Set;)V
|
|
|
|
invoke-static {v0, v7}, 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 v4
|
|
|
|
const-string v6, "\n Found:\n"
|
|
|
|
if-nez v4, :cond_0
|
|
|
|
new-instance v0, Landroidx/room/RoomOpenHelper$ValidationResult;
|
|
|
|
new-instance v2, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
const-string v3, "Dependency(androidx.work.impl.model.Dependency).\n Expected:\n"
|
|
|
|
invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v2, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v2, v6}, 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, v10, v1}, Landroidx/room/RoomOpenHelper$ValidationResult;-><init>(ZLjava/lang/String;)V
|
|
|
|
return-object v0
|
|
|
|
:cond_0
|
|
new-instance v1, Ljava/util/HashMap;
|
|
|
|
const/16 v4, 0x18
|
|
|
|
invoke-direct {v1, v4}, Ljava/util/HashMap;-><init>(I)V
|
|
|
|
new-instance v4, Landroidx/room/util/TableInfo$Column;
|
|
|
|
const/16 v17, 0x1
|
|
|
|
const/16 v18, 0x1
|
|
|
|
const/16 v19, 0x0
|
|
|
|
const/16 v20, 0x1
|
|
|
|
const-string v15, "id"
|
|
|
|
const-string v16, "TEXT"
|
|
|
|
move-object v14, v4
|
|
|
|
invoke-direct/range {v14 .. v20}, Landroidx/room/util/TableInfo$Column;-><init>(Ljava/lang/String;Ljava/lang/String;ZILjava/lang/String;I)V
|
|
|
|
invoke-virtual {v1, v13, v4}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
new-instance v4, Landroidx/room/util/TableInfo$Column;
|
|
|
|
const/16 v24, 0x1
|
|
|
|
const/16 v25, 0x0
|
|
|
|
const/16 v26, 0x0
|
|
|
|
const/16 v27, 0x1
|
|
|
|
const-string v22, "state"
|
|
|
|
const-string v23, "INTEGER"
|
|
|
|
move-object/from16 v21, v4
|
|
|
|
invoke-direct/range {v21 .. v27}, Landroidx/room/util/TableInfo$Column;-><init>(Ljava/lang/String;Ljava/lang/String;ZILjava/lang/String;I)V
|
|
|
|
const-string v5, "state"
|
|
|
|
invoke-virtual {v1, v5, v4}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
new-instance v4, Landroidx/room/util/TableInfo$Column;
|
|
|
|
const/16 v18, 0x0
|
|
|
|
const-string v15, "worker_class_name"
|
|
|
|
const-string v16, "TEXT"
|
|
|
|
move-object v14, v4
|
|
|
|
invoke-direct/range {v14 .. v20}, Landroidx/room/util/TableInfo$Column;-><init>(Ljava/lang/String;Ljava/lang/String;ZILjava/lang/String;I)V
|
|
|
|
const-string v5, "worker_class_name"
|
|
|
|
invoke-virtual {v1, v5, v4}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
new-instance v4, Landroidx/room/util/TableInfo$Column;
|
|
|
|
const/16 v17, 0x0
|
|
|
|
const-string v15, "input_merger_class_name"
|
|
|
|
const-string v16, "TEXT"
|
|
|
|
move-object v14, v4
|
|
|
|
invoke-direct/range {v14 .. v20}, Landroidx/room/util/TableInfo$Column;-><init>(Ljava/lang/String;Ljava/lang/String;ZILjava/lang/String;I)V
|
|
|
|
const-string v5, "input_merger_class_name"
|
|
|
|
invoke-virtual {v1, v5, v4}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
new-instance v4, Landroidx/room/util/TableInfo$Column;
|
|
|
|
const/16 v17, 0x1
|
|
|
|
const-string v15, "input"
|
|
|
|
const-string v16, "BLOB"
|
|
|
|
move-object v14, v4
|
|
|
|
invoke-direct/range {v14 .. v20}, Landroidx/room/util/TableInfo$Column;-><init>(Ljava/lang/String;Ljava/lang/String;ZILjava/lang/String;I)V
|
|
|
|
const-string v5, "input"
|
|
|
|
invoke-virtual {v1, v5, v4}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
new-instance v4, Landroidx/room/util/TableInfo$Column;
|
|
|
|
const-string v15, "output"
|
|
|
|
const-string v16, "BLOB"
|
|
|
|
move-object v14, v4
|
|
|
|
invoke-direct/range {v14 .. v20}, Landroidx/room/util/TableInfo$Column;-><init>(Ljava/lang/String;Ljava/lang/String;ZILjava/lang/String;I)V
|
|
|
|
const-string v5, "output"
|
|
|
|
invoke-virtual {v1, v5, v4}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
new-instance v4, Landroidx/room/util/TableInfo$Column;
|
|
|
|
const-string v15, "initial_delay"
|
|
|
|
const-string v16, "INTEGER"
|
|
|
|
move-object v14, v4
|
|
|
|
invoke-direct/range {v14 .. v20}, Landroidx/room/util/TableInfo$Column;-><init>(Ljava/lang/String;Ljava/lang/String;ZILjava/lang/String;I)V
|
|
|
|
const-string v5, "initial_delay"
|
|
|
|
invoke-virtual {v1, v5, v4}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
new-instance v4, Landroidx/room/util/TableInfo$Column;
|
|
|
|
const-string v15, "interval_duration"
|
|
|
|
const-string v16, "INTEGER"
|
|
|
|
move-object v14, v4
|
|
|
|
invoke-direct/range {v14 .. v20}, Landroidx/room/util/TableInfo$Column;-><init>(Ljava/lang/String;Ljava/lang/String;ZILjava/lang/String;I)V
|
|
|
|
const-string v5, "interval_duration"
|
|
|
|
invoke-virtual {v1, v5, v4}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
new-instance v4, Landroidx/room/util/TableInfo$Column;
|
|
|
|
const-string v15, "flex_duration"
|
|
|
|
const-string v16, "INTEGER"
|
|
|
|
move-object v14, v4
|
|
|
|
invoke-direct/range {v14 .. v20}, Landroidx/room/util/TableInfo$Column;-><init>(Ljava/lang/String;Ljava/lang/String;ZILjava/lang/String;I)V
|
|
|
|
const-string v5, "flex_duration"
|
|
|
|
invoke-virtual {v1, v5, v4}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
new-instance v4, Landroidx/room/util/TableInfo$Column;
|
|
|
|
const-string v15, "run_attempt_count"
|
|
|
|
const-string v16, "INTEGER"
|
|
|
|
move-object v14, v4
|
|
|
|
invoke-direct/range {v14 .. v20}, Landroidx/room/util/TableInfo$Column;-><init>(Ljava/lang/String;Ljava/lang/String;ZILjava/lang/String;I)V
|
|
|
|
const-string v5, "run_attempt_count"
|
|
|
|
invoke-virtual {v1, v5, v4}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
new-instance v4, Landroidx/room/util/TableInfo$Column;
|
|
|
|
const-string v15, "backoff_policy"
|
|
|
|
const-string v16, "INTEGER"
|
|
|
|
move-object v14, v4
|
|
|
|
invoke-direct/range {v14 .. v20}, Landroidx/room/util/TableInfo$Column;-><init>(Ljava/lang/String;Ljava/lang/String;ZILjava/lang/String;I)V
|
|
|
|
const-string v5, "backoff_policy"
|
|
|
|
invoke-virtual {v1, v5, v4}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
new-instance v4, Landroidx/room/util/TableInfo$Column;
|
|
|
|
const-string v15, "backoff_delay_duration"
|
|
|
|
const-string v16, "INTEGER"
|
|
|
|
move-object v14, v4
|
|
|
|
invoke-direct/range {v14 .. v20}, Landroidx/room/util/TableInfo$Column;-><init>(Ljava/lang/String;Ljava/lang/String;ZILjava/lang/String;I)V
|
|
|
|
const-string v5, "backoff_delay_duration"
|
|
|
|
invoke-virtual {v1, v5, v4}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
new-instance v4, Landroidx/room/util/TableInfo$Column;
|
|
|
|
const-string v15, "period_start_time"
|
|
|
|
const-string v16, "INTEGER"
|
|
|
|
move-object v14, v4
|
|
|
|
invoke-direct/range {v14 .. v20}, Landroidx/room/util/TableInfo$Column;-><init>(Ljava/lang/String;Ljava/lang/String;ZILjava/lang/String;I)V
|
|
|
|
const-string v5, "period_start_time"
|
|
|
|
invoke-virtual {v1, v5, v4}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
new-instance v4, Landroidx/room/util/TableInfo$Column;
|
|
|
|
const-string v15, "minimum_retention_duration"
|
|
|
|
const-string v16, "INTEGER"
|
|
|
|
move-object v14, v4
|
|
|
|
invoke-direct/range {v14 .. v20}, Landroidx/room/util/TableInfo$Column;-><init>(Ljava/lang/String;Ljava/lang/String;ZILjava/lang/String;I)V
|
|
|
|
const-string v7, "minimum_retention_duration"
|
|
|
|
invoke-virtual {v1, v7, v4}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
new-instance v4, Landroidx/room/util/TableInfo$Column;
|
|
|
|
const-string v15, "schedule_requested_at"
|
|
|
|
const-string v16, "INTEGER"
|
|
|
|
move-object v14, v4
|
|
|
|
invoke-direct/range {v14 .. v20}, Landroidx/room/util/TableInfo$Column;-><init>(Ljava/lang/String;Ljava/lang/String;ZILjava/lang/String;I)V
|
|
|
|
const-string v7, "schedule_requested_at"
|
|
|
|
invoke-virtual {v1, v7, v4}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
new-instance v4, Landroidx/room/util/TableInfo$Column;
|
|
|
|
const-string v15, "run_in_foreground"
|
|
|
|
const-string v16, "INTEGER"
|
|
|
|
move-object v14, v4
|
|
|
|
invoke-direct/range {v14 .. v20}, Landroidx/room/util/TableInfo$Column;-><init>(Ljava/lang/String;Ljava/lang/String;ZILjava/lang/String;I)V
|
|
|
|
const-string v8, "run_in_foreground"
|
|
|
|
invoke-virtual {v1, v8, v4}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
new-instance v4, Landroidx/room/util/TableInfo$Column;
|
|
|
|
const/16 v17, 0x0
|
|
|
|
const-string v15, "required_network_type"
|
|
|
|
const-string v16, "INTEGER"
|
|
|
|
move-object v14, v4
|
|
|
|
invoke-direct/range {v14 .. v20}, Landroidx/room/util/TableInfo$Column;-><init>(Ljava/lang/String;Ljava/lang/String;ZILjava/lang/String;I)V
|
|
|
|
const-string v8, "required_network_type"
|
|
|
|
invoke-virtual {v1, v8, v4}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
new-instance v4, Landroidx/room/util/TableInfo$Column;
|
|
|
|
const/16 v17, 0x1
|
|
|
|
const-string v15, "requires_charging"
|
|
|
|
const-string v16, "INTEGER"
|
|
|
|
move-object v14, v4
|
|
|
|
invoke-direct/range {v14 .. v20}, Landroidx/room/util/TableInfo$Column;-><init>(Ljava/lang/String;Ljava/lang/String;ZILjava/lang/String;I)V
|
|
|
|
const-string v8, "requires_charging"
|
|
|
|
invoke-virtual {v1, v8, v4}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
new-instance v4, Landroidx/room/util/TableInfo$Column;
|
|
|
|
const-string v15, "requires_device_idle"
|
|
|
|
const-string v16, "INTEGER"
|
|
|
|
move-object v14, v4
|
|
|
|
invoke-direct/range {v14 .. v20}, Landroidx/room/util/TableInfo$Column;-><init>(Ljava/lang/String;Ljava/lang/String;ZILjava/lang/String;I)V
|
|
|
|
const-string v8, "requires_device_idle"
|
|
|
|
invoke-virtual {v1, v8, v4}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
new-instance v4, Landroidx/room/util/TableInfo$Column;
|
|
|
|
const-string v15, "requires_battery_not_low"
|
|
|
|
const-string v16, "INTEGER"
|
|
|
|
move-object v14, v4
|
|
|
|
invoke-direct/range {v14 .. v20}, Landroidx/room/util/TableInfo$Column;-><init>(Ljava/lang/String;Ljava/lang/String;ZILjava/lang/String;I)V
|
|
|
|
const-string v8, "requires_battery_not_low"
|
|
|
|
invoke-virtual {v1, v8, v4}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
new-instance v4, Landroidx/room/util/TableInfo$Column;
|
|
|
|
const-string v15, "requires_storage_not_low"
|
|
|
|
const-string v16, "INTEGER"
|
|
|
|
move-object v14, v4
|
|
|
|
invoke-direct/range {v14 .. v20}, Landroidx/room/util/TableInfo$Column;-><init>(Ljava/lang/String;Ljava/lang/String;ZILjava/lang/String;I)V
|
|
|
|
const-string v8, "requires_storage_not_low"
|
|
|
|
invoke-virtual {v1, v8, v4}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
new-instance v4, Landroidx/room/util/TableInfo$Column;
|
|
|
|
const-string v15, "trigger_content_update_delay"
|
|
|
|
const-string v16, "INTEGER"
|
|
|
|
move-object v14, v4
|
|
|
|
invoke-direct/range {v14 .. v20}, Landroidx/room/util/TableInfo$Column;-><init>(Ljava/lang/String;Ljava/lang/String;ZILjava/lang/String;I)V
|
|
|
|
const-string v8, "trigger_content_update_delay"
|
|
|
|
invoke-virtual {v1, v8, v4}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
new-instance v4, Landroidx/room/util/TableInfo$Column;
|
|
|
|
const-string v15, "trigger_max_content_delay"
|
|
|
|
const-string v16, "INTEGER"
|
|
|
|
move-object v14, v4
|
|
|
|
invoke-direct/range {v14 .. v20}, Landroidx/room/util/TableInfo$Column;-><init>(Ljava/lang/String;Ljava/lang/String;ZILjava/lang/String;I)V
|
|
|
|
const-string v8, "trigger_max_content_delay"
|
|
|
|
invoke-virtual {v1, v8, v4}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
new-instance v4, Landroidx/room/util/TableInfo$Column;
|
|
|
|
const/16 v17, 0x0
|
|
|
|
const-string v15, "content_uri_triggers"
|
|
|
|
const-string v16, "BLOB"
|
|
|
|
move-object v14, v4
|
|
|
|
invoke-direct/range {v14 .. v20}, Landroidx/room/util/TableInfo$Column;-><init>(Ljava/lang/String;Ljava/lang/String;ZILjava/lang/String;I)V
|
|
|
|
const-string v8, "content_uri_triggers"
|
|
|
|
invoke-virtual {v1, v8, v4}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
new-instance v4, Ljava/util/HashSet;
|
|
|
|
invoke-direct {v4, v10}, Ljava/util/HashSet;-><init>(I)V
|
|
|
|
new-instance v8, Ljava/util/HashSet;
|
|
|
|
invoke-direct {v8, v2}, Ljava/util/HashSet;-><init>(I)V
|
|
|
|
new-instance v9, Landroidx/room/util/TableInfo$Index;
|
|
|
|
filled-new-array {v7}, [Ljava/lang/String;
|
|
|
|
move-result-object v7
|
|
|
|
invoke-static {v7}, Ljava/util/Arrays;->asList([Ljava/lang/Object;)Ljava/util/List;
|
|
|
|
move-result-object v7
|
|
|
|
const-string v11, "index_WorkSpec_schedule_requested_at"
|
|
|
|
invoke-direct {v9, v11, v10, v7}, Landroidx/room/util/TableInfo$Index;-><init>(Ljava/lang/String;ZLjava/util/List;)V
|
|
|
|
invoke-virtual {v8, v9}, Ljava/util/HashSet;->add(Ljava/lang/Object;)Z
|
|
|
|
new-instance v7, Landroidx/room/util/TableInfo$Index;
|
|
|
|
filled-new-array {v5}, [Ljava/lang/String;
|
|
|
|
move-result-object v5
|
|
|
|
invoke-static {v5}, Ljava/util/Arrays;->asList([Ljava/lang/Object;)Ljava/util/List;
|
|
|
|
move-result-object v5
|
|
|
|
const-string v9, "index_WorkSpec_period_start_time"
|
|
|
|
invoke-direct {v7, v9, v10, v5}, Landroidx/room/util/TableInfo$Index;-><init>(Ljava/lang/String;ZLjava/util/List;)V
|
|
|
|
invoke-virtual {v8, v7}, Ljava/util/HashSet;->add(Ljava/lang/Object;)Z
|
|
|
|
new-instance v5, Landroidx/room/util/TableInfo;
|
|
|
|
const-string v7, "WorkSpec"
|
|
|
|
invoke-direct {v5, v7, v1, v4, v8}, Landroidx/room/util/TableInfo;-><init>(Ljava/lang/String;Ljava/util/Map;Ljava/util/Set;Ljava/util/Set;)V
|
|
|
|
invoke-static {v0, v7}, 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 v4
|
|
|
|
if-nez v4, :cond_1
|
|
|
|
new-instance v0, Landroidx/room/RoomOpenHelper$ValidationResult;
|
|
|
|
new-instance v2, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
const-string v3, "WorkSpec(androidx.work.impl.model.WorkSpec).\n Expected:\n"
|
|
|
|
invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v2, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v2, v6}, 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, v10, v1}, Landroidx/room/RoomOpenHelper$ValidationResult;-><init>(ZLjava/lang/String;)V
|
|
|
|
return-object v0
|
|
|
|
:cond_1
|
|
new-instance v1, Ljava/util/HashMap;
|
|
|
|
invoke-direct {v1, v2}, Ljava/util/HashMap;-><init>(I)V
|
|
|
|
new-instance v4, Landroidx/room/util/TableInfo$Column;
|
|
|
|
const/16 v17, 0x1
|
|
|
|
const/16 v18, 0x1
|
|
|
|
const/16 v19, 0x0
|
|
|
|
const/16 v20, 0x1
|
|
|
|
const-string v15, "tag"
|
|
|
|
const-string v16, "TEXT"
|
|
|
|
move-object v14, v4
|
|
|
|
invoke-direct/range {v14 .. v20}, Landroidx/room/util/TableInfo$Column;-><init>(Ljava/lang/String;Ljava/lang/String;ZILjava/lang/String;I)V
|
|
|
|
const-string v5, "tag"
|
|
|
|
invoke-virtual {v1, v5, v4}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
new-instance v4, Landroidx/room/util/TableInfo$Column;
|
|
|
|
const/16 v18, 0x2
|
|
|
|
const-string v15, "work_spec_id"
|
|
|
|
const-string v16, "TEXT"
|
|
|
|
move-object v14, v4
|
|
|
|
invoke-direct/range {v14 .. v20}, Landroidx/room/util/TableInfo$Column;-><init>(Ljava/lang/String;Ljava/lang/String;ZILjava/lang/String;I)V
|
|
|
|
invoke-virtual {v1, v3, v4}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
new-instance v4, Ljava/util/HashSet;
|
|
|
|
const/4 v5, 0x1
|
|
|
|
invoke-direct {v4, v5}, Ljava/util/HashSet;-><init>(I)V
|
|
|
|
new-instance v7, Landroidx/room/util/TableInfo$ForeignKey;
|
|
|
|
filled-new-array {v3}, [Ljava/lang/String;
|
|
|
|
move-result-object v8
|
|
|
|
invoke-static {v8}, Ljava/util/Arrays;->asList([Ljava/lang/Object;)Ljava/util/List;
|
|
|
|
move-result-object v18
|
|
|
|
filled-new-array {v13}, [Ljava/lang/String;
|
|
|
|
move-result-object v8
|
|
|
|
invoke-static {v8}, Ljava/util/Arrays;->asList([Ljava/lang/Object;)Ljava/util/List;
|
|
|
|
move-result-object v19
|
|
|
|
const-string v15, "WorkSpec"
|
|
|
|
const-string v16, "CASCADE"
|
|
|
|
const-string v17, "CASCADE"
|
|
|
|
move-object v14, v7
|
|
|
|
invoke-direct/range {v14 .. v19}, Landroidx/room/util/TableInfo$ForeignKey;-><init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/util/List;Ljava/util/List;)V
|
|
|
|
invoke-virtual {v4, v7}, Ljava/util/HashSet;->add(Ljava/lang/Object;)Z
|
|
|
|
new-instance v7, Ljava/util/HashSet;
|
|
|
|
invoke-direct {v7, v5}, Ljava/util/HashSet;-><init>(I)V
|
|
|
|
new-instance v8, Landroidx/room/util/TableInfo$Index;
|
|
|
|
filled-new-array {v3}, [Ljava/lang/String;
|
|
|
|
move-result-object v9
|
|
|
|
invoke-static {v9}, Ljava/util/Arrays;->asList([Ljava/lang/Object;)Ljava/util/List;
|
|
|
|
move-result-object v9
|
|
|
|
const-string v11, "index_WorkTag_work_spec_id"
|
|
|
|
invoke-direct {v8, v11, v10, v9}, Landroidx/room/util/TableInfo$Index;-><init>(Ljava/lang/String;ZLjava/util/List;)V
|
|
|
|
invoke-virtual {v7, v8}, Ljava/util/HashSet;->add(Ljava/lang/Object;)Z
|
|
|
|
new-instance v8, Landroidx/room/util/TableInfo;
|
|
|
|
const-string v9, "WorkTag"
|
|
|
|
invoke-direct {v8, v9, v1, v4, v7}, Landroidx/room/util/TableInfo;-><init>(Ljava/lang/String;Ljava/util/Map;Ljava/util/Set;Ljava/util/Set;)V
|
|
|
|
invoke-static {v0, v9}, Landroidx/room/util/TableInfo;->read(Landroidx/sqlite/db/SupportSQLiteDatabase;Ljava/lang/String;)Landroidx/room/util/TableInfo;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v8, v1}, Landroidx/room/util/TableInfo;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v4
|
|
|
|
if-nez v4, :cond_2
|
|
|
|
new-instance v0, Landroidx/room/RoomOpenHelper$ValidationResult;
|
|
|
|
new-instance v2, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
const-string v3, "WorkTag(androidx.work.impl.model.WorkTag).\n Expected:\n"
|
|
|
|
invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v2, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v2, v6}, 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, v10, v1}, Landroidx/room/RoomOpenHelper$ValidationResult;-><init>(ZLjava/lang/String;)V
|
|
|
|
return-object v0
|
|
|
|
:cond_2
|
|
new-instance v1, Ljava/util/HashMap;
|
|
|
|
invoke-direct {v1, v2}, Ljava/util/HashMap;-><init>(I)V
|
|
|
|
new-instance v4, Landroidx/room/util/TableInfo$Column;
|
|
|
|
const/16 v17, 0x1
|
|
|
|
const/16 v18, 0x1
|
|
|
|
const/16 v19, 0x0
|
|
|
|
const/16 v20, 0x1
|
|
|
|
const-string v15, "work_spec_id"
|
|
|
|
const-string v16, "TEXT"
|
|
|
|
move-object v14, v4
|
|
|
|
invoke-direct/range {v14 .. v20}, Landroidx/room/util/TableInfo$Column;-><init>(Ljava/lang/String;Ljava/lang/String;ZILjava/lang/String;I)V
|
|
|
|
invoke-virtual {v1, v3, v4}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
new-instance v4, Landroidx/room/util/TableInfo$Column;
|
|
|
|
const/16 v24, 0x1
|
|
|
|
const/16 v25, 0x0
|
|
|
|
const/16 v26, 0x0
|
|
|
|
const/16 v27, 0x1
|
|
|
|
const-string v22, "system_id"
|
|
|
|
const-string v23, "INTEGER"
|
|
|
|
move-object/from16 v21, v4
|
|
|
|
invoke-direct/range {v21 .. v27}, Landroidx/room/util/TableInfo$Column;-><init>(Ljava/lang/String;Ljava/lang/String;ZILjava/lang/String;I)V
|
|
|
|
const-string v7, "system_id"
|
|
|
|
invoke-virtual {v1, v7, v4}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
new-instance v4, Ljava/util/HashSet;
|
|
|
|
invoke-direct {v4, v5}, Ljava/util/HashSet;-><init>(I)V
|
|
|
|
new-instance v7, Landroidx/room/util/TableInfo$ForeignKey;
|
|
|
|
filled-new-array {v3}, [Ljava/lang/String;
|
|
|
|
move-result-object v8
|
|
|
|
invoke-static {v8}, Ljava/util/Arrays;->asList([Ljava/lang/Object;)Ljava/util/List;
|
|
|
|
move-result-object v18
|
|
|
|
filled-new-array {v13}, [Ljava/lang/String;
|
|
|
|
move-result-object v8
|
|
|
|
invoke-static {v8}, Ljava/util/Arrays;->asList([Ljava/lang/Object;)Ljava/util/List;
|
|
|
|
move-result-object v19
|
|
|
|
const-string v15, "WorkSpec"
|
|
|
|
const-string v16, "CASCADE"
|
|
|
|
const-string v17, "CASCADE"
|
|
|
|
move-object v14, v7
|
|
|
|
invoke-direct/range {v14 .. v19}, Landroidx/room/util/TableInfo$ForeignKey;-><init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/util/List;Ljava/util/List;)V
|
|
|
|
invoke-virtual {v4, v7}, Ljava/util/HashSet;->add(Ljava/lang/Object;)Z
|
|
|
|
new-instance v7, Ljava/util/HashSet;
|
|
|
|
invoke-direct {v7, v10}, Ljava/util/HashSet;-><init>(I)V
|
|
|
|
new-instance v8, Landroidx/room/util/TableInfo;
|
|
|
|
const-string v9, "SystemIdInfo"
|
|
|
|
invoke-direct {v8, v9, v1, v4, v7}, Landroidx/room/util/TableInfo;-><init>(Ljava/lang/String;Ljava/util/Map;Ljava/util/Set;Ljava/util/Set;)V
|
|
|
|
invoke-static {v0, v9}, Landroidx/room/util/TableInfo;->read(Landroidx/sqlite/db/SupportSQLiteDatabase;Ljava/lang/String;)Landroidx/room/util/TableInfo;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v8, v1}, Landroidx/room/util/TableInfo;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v4
|
|
|
|
if-nez v4, :cond_3
|
|
|
|
new-instance v0, Landroidx/room/RoomOpenHelper$ValidationResult;
|
|
|
|
new-instance v2, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
const-string v3, "SystemIdInfo(androidx.work.impl.model.SystemIdInfo).\n Expected:\n"
|
|
|
|
invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v2, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v2, v6}, 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, v10, v1}, Landroidx/room/RoomOpenHelper$ValidationResult;-><init>(ZLjava/lang/String;)V
|
|
|
|
return-object v0
|
|
|
|
:cond_3
|
|
new-instance v1, Ljava/util/HashMap;
|
|
|
|
invoke-direct {v1, v2}, Ljava/util/HashMap;-><init>(I)V
|
|
|
|
new-instance v4, Landroidx/room/util/TableInfo$Column;
|
|
|
|
const/16 v17, 0x1
|
|
|
|
const/16 v18, 0x1
|
|
|
|
const/16 v19, 0x0
|
|
|
|
const/16 v20, 0x1
|
|
|
|
const-string v15, "name"
|
|
|
|
const-string v16, "TEXT"
|
|
|
|
move-object v14, v4
|
|
|
|
invoke-direct/range {v14 .. v20}, Landroidx/room/util/TableInfo$Column;-><init>(Ljava/lang/String;Ljava/lang/String;ZILjava/lang/String;I)V
|
|
|
|
const-string v7, "name"
|
|
|
|
invoke-virtual {v1, v7, v4}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
new-instance v4, Landroidx/room/util/TableInfo$Column;
|
|
|
|
const/16 v18, 0x2
|
|
|
|
const-string v15, "work_spec_id"
|
|
|
|
const-string v16, "TEXT"
|
|
|
|
move-object v14, v4
|
|
|
|
invoke-direct/range {v14 .. v20}, Landroidx/room/util/TableInfo$Column;-><init>(Ljava/lang/String;Ljava/lang/String;ZILjava/lang/String;I)V
|
|
|
|
invoke-virtual {v1, v3, v4}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
new-instance v4, Ljava/util/HashSet;
|
|
|
|
invoke-direct {v4, v5}, Ljava/util/HashSet;-><init>(I)V
|
|
|
|
new-instance v7, Landroidx/room/util/TableInfo$ForeignKey;
|
|
|
|
filled-new-array {v3}, [Ljava/lang/String;
|
|
|
|
move-result-object v8
|
|
|
|
invoke-static {v8}, Ljava/util/Arrays;->asList([Ljava/lang/Object;)Ljava/util/List;
|
|
|
|
move-result-object v18
|
|
|
|
filled-new-array {v13}, [Ljava/lang/String;
|
|
|
|
move-result-object v8
|
|
|
|
invoke-static {v8}, Ljava/util/Arrays;->asList([Ljava/lang/Object;)Ljava/util/List;
|
|
|
|
move-result-object v19
|
|
|
|
const-string v15, "WorkSpec"
|
|
|
|
const-string v16, "CASCADE"
|
|
|
|
const-string v17, "CASCADE"
|
|
|
|
move-object v14, v7
|
|
|
|
invoke-direct/range {v14 .. v19}, Landroidx/room/util/TableInfo$ForeignKey;-><init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/util/List;Ljava/util/List;)V
|
|
|
|
invoke-virtual {v4, v7}, Ljava/util/HashSet;->add(Ljava/lang/Object;)Z
|
|
|
|
new-instance v7, Ljava/util/HashSet;
|
|
|
|
invoke-direct {v7, v5}, Ljava/util/HashSet;-><init>(I)V
|
|
|
|
new-instance v8, Landroidx/room/util/TableInfo$Index;
|
|
|
|
filled-new-array {v3}, [Ljava/lang/String;
|
|
|
|
move-result-object v9
|
|
|
|
invoke-static {v9}, Ljava/util/Arrays;->asList([Ljava/lang/Object;)Ljava/util/List;
|
|
|
|
move-result-object v9
|
|
|
|
const-string v11, "index_WorkName_work_spec_id"
|
|
|
|
invoke-direct {v8, v11, v10, v9}, Landroidx/room/util/TableInfo$Index;-><init>(Ljava/lang/String;ZLjava/util/List;)V
|
|
|
|
invoke-virtual {v7, v8}, Ljava/util/HashSet;->add(Ljava/lang/Object;)Z
|
|
|
|
new-instance v8, Landroidx/room/util/TableInfo;
|
|
|
|
const-string v9, "WorkName"
|
|
|
|
invoke-direct {v8, v9, v1, v4, v7}, Landroidx/room/util/TableInfo;-><init>(Ljava/lang/String;Ljava/util/Map;Ljava/util/Set;Ljava/util/Set;)V
|
|
|
|
invoke-static {v0, v9}, Landroidx/room/util/TableInfo;->read(Landroidx/sqlite/db/SupportSQLiteDatabase;Ljava/lang/String;)Landroidx/room/util/TableInfo;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v8, v1}, Landroidx/room/util/TableInfo;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v4
|
|
|
|
if-nez v4, :cond_4
|
|
|
|
new-instance v0, Landroidx/room/RoomOpenHelper$ValidationResult;
|
|
|
|
new-instance v2, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
const-string v3, "WorkName(androidx.work.impl.model.WorkName).\n Expected:\n"
|
|
|
|
invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v2, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v2, v6}, 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, v10, v1}, Landroidx/room/RoomOpenHelper$ValidationResult;-><init>(ZLjava/lang/String;)V
|
|
|
|
return-object v0
|
|
|
|
:cond_4
|
|
new-instance v1, Ljava/util/HashMap;
|
|
|
|
invoke-direct {v1, v2}, Ljava/util/HashMap;-><init>(I)V
|
|
|
|
new-instance v4, Landroidx/room/util/TableInfo$Column;
|
|
|
|
const/16 v17, 0x1
|
|
|
|
const/16 v18, 0x1
|
|
|
|
const/16 v19, 0x0
|
|
|
|
const/16 v20, 0x1
|
|
|
|
const-string v15, "work_spec_id"
|
|
|
|
const-string v16, "TEXT"
|
|
|
|
move-object v14, v4
|
|
|
|
invoke-direct/range {v14 .. v20}, Landroidx/room/util/TableInfo$Column;-><init>(Ljava/lang/String;Ljava/lang/String;ZILjava/lang/String;I)V
|
|
|
|
invoke-virtual {v1, v3, v4}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
new-instance v4, Landroidx/room/util/TableInfo$Column;
|
|
|
|
const/16 v24, 0x1
|
|
|
|
const/16 v25, 0x0
|
|
|
|
const/16 v26, 0x0
|
|
|
|
const/16 v27, 0x1
|
|
|
|
const-string v22, "progress"
|
|
|
|
const-string v23, "BLOB"
|
|
|
|
move-object/from16 v21, v4
|
|
|
|
invoke-direct/range {v21 .. v27}, Landroidx/room/util/TableInfo$Column;-><init>(Ljava/lang/String;Ljava/lang/String;ZILjava/lang/String;I)V
|
|
|
|
const-string v7, "progress"
|
|
|
|
invoke-virtual {v1, v7, v4}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
new-instance v4, Ljava/util/HashSet;
|
|
|
|
invoke-direct {v4, v5}, Ljava/util/HashSet;-><init>(I)V
|
|
|
|
new-instance v7, Landroidx/room/util/TableInfo$ForeignKey;
|
|
|
|
filled-new-array {v3}, [Ljava/lang/String;
|
|
|
|
move-result-object v3
|
|
|
|
invoke-static {v3}, Ljava/util/Arrays;->asList([Ljava/lang/Object;)Ljava/util/List;
|
|
|
|
move-result-object v18
|
|
|
|
filled-new-array {v13}, [Ljava/lang/String;
|
|
|
|
move-result-object v3
|
|
|
|
invoke-static {v3}, Ljava/util/Arrays;->asList([Ljava/lang/Object;)Ljava/util/List;
|
|
|
|
move-result-object v19
|
|
|
|
const-string v15, "WorkSpec"
|
|
|
|
const-string v16, "CASCADE"
|
|
|
|
const-string v17, "CASCADE"
|
|
|
|
move-object v14, v7
|
|
|
|
invoke-direct/range {v14 .. v19}, Landroidx/room/util/TableInfo$ForeignKey;-><init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/util/List;Ljava/util/List;)V
|
|
|
|
invoke-virtual {v4, v7}, Ljava/util/HashSet;->add(Ljava/lang/Object;)Z
|
|
|
|
new-instance v3, Ljava/util/HashSet;
|
|
|
|
invoke-direct {v3, v10}, Ljava/util/HashSet;-><init>(I)V
|
|
|
|
new-instance v7, Landroidx/room/util/TableInfo;
|
|
|
|
const-string v8, "WorkProgress"
|
|
|
|
invoke-direct {v7, v8, v1, v4, v3}, Landroidx/room/util/TableInfo;-><init>(Ljava/lang/String;Ljava/util/Map;Ljava/util/Set;Ljava/util/Set;)V
|
|
|
|
invoke-static {v0, v8}, Landroidx/room/util/TableInfo;->read(Landroidx/sqlite/db/SupportSQLiteDatabase;Ljava/lang/String;)Landroidx/room/util/TableInfo;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v7, v1}, Landroidx/room/util/TableInfo;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v3
|
|
|
|
if-nez v3, :cond_5
|
|
|
|
new-instance v0, Landroidx/room/RoomOpenHelper$ValidationResult;
|
|
|
|
new-instance v2, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
const-string v3, "WorkProgress(androidx.work.impl.model.WorkProgress).\n Expected:\n"
|
|
|
|
invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v2, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v2, v6}, 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, v10, v1}, Landroidx/room/RoomOpenHelper$ValidationResult;-><init>(ZLjava/lang/String;)V
|
|
|
|
return-object v0
|
|
|
|
:cond_5
|
|
new-instance v1, Ljava/util/HashMap;
|
|
|
|
invoke-direct {v1, v2}, Ljava/util/HashMap;-><init>(I)V
|
|
|
|
new-instance v2, Landroidx/room/util/TableInfo$Column;
|
|
|
|
const/4 v14, 0x1
|
|
|
|
const/4 v15, 0x1
|
|
|
|
const/16 v16, 0x0
|
|
|
|
const/16 v17, 0x1
|
|
|
|
const-string v12, "key"
|
|
|
|
const-string v13, "TEXT"
|
|
|
|
move-object v11, v2
|
|
|
|
invoke-direct/range {v11 .. v17}, Landroidx/room/util/TableInfo$Column;-><init>(Ljava/lang/String;Ljava/lang/String;ZILjava/lang/String;I)V
|
|
|
|
const-string v3, "key"
|
|
|
|
invoke-virtual {v1, v3, v2}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
new-instance v2, Landroidx/room/util/TableInfo$Column;
|
|
|
|
const/4 v14, 0x0
|
|
|
|
const/4 v15, 0x0
|
|
|
|
const-string v12, "long_value"
|
|
|
|
const-string v13, "INTEGER"
|
|
|
|
move-object v11, v2
|
|
|
|
invoke-direct/range {v11 .. v17}, Landroidx/room/util/TableInfo$Column;-><init>(Ljava/lang/String;Ljava/lang/String;ZILjava/lang/String;I)V
|
|
|
|
const-string v3, "long_value"
|
|
|
|
invoke-virtual {v1, v3, v2}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
new-instance v2, Ljava/util/HashSet;
|
|
|
|
invoke-direct {v2, v10}, Ljava/util/HashSet;-><init>(I)V
|
|
|
|
new-instance v3, Ljava/util/HashSet;
|
|
|
|
invoke-direct {v3, v10}, Ljava/util/HashSet;-><init>(I)V
|
|
|
|
new-instance v4, Landroidx/room/util/TableInfo;
|
|
|
|
const-string v7, "Preference"
|
|
|
|
invoke-direct {v4, v7, v1, v2, v3}, Landroidx/room/util/TableInfo;-><init>(Ljava/lang/String;Ljava/util/Map;Ljava/util/Set;Ljava/util/Set;)V
|
|
|
|
invoke-static {v0, v7}, 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-nez v1, :cond_6
|
|
|
|
new-instance v1, Landroidx/room/RoomOpenHelper$ValidationResult;
|
|
|
|
new-instance v2, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
const-string v3, "Preference(androidx.work.impl.model.Preference).\n Expected:\n"
|
|
|
|
invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v2, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v2, v6}, 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, v10, v0}, Landroidx/room/RoomOpenHelper$ValidationResult;-><init>(ZLjava/lang/String;)V
|
|
|
|
return-object v1
|
|
|
|
:cond_6
|
|
new-instance v0, Landroidx/room/RoomOpenHelper$ValidationResult;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
invoke-direct {v0, v5, v1}, Landroidx/room/RoomOpenHelper$ValidationResult;-><init>(ZLjava/lang/String;)V
|
|
|
|
return-object v0
|
|
.end method
|