347 lines
9.5 KiB
Smali
347 lines
9.5 KiB
Smali
.class public Landroidx/work/impl/model/RawWorkInfoDao_Impl$1;
|
|
.super Ljava/lang/Object;
|
|
.source "RawWorkInfoDao_Impl.java"
|
|
|
|
# interfaces
|
|
.implements Ljava/util/concurrent/Callable;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingMethod;
|
|
value = Landroidx/work/impl/model/RawWorkInfoDao_Impl;->getWorkInfoPojosLiveData(Landroidx/sqlite/db/SupportSQLiteQuery;)Landroidx/lifecycle/LiveData;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x1
|
|
name = null
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/lang/Object;",
|
|
"Ljava/util/concurrent/Callable<",
|
|
"Ljava/util/List<",
|
|
"Landroidx/work/impl/model/WorkSpec$WorkInfoPojo;",
|
|
">;>;"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field public final synthetic this$0:Landroidx/work/impl/model/RawWorkInfoDao_Impl;
|
|
|
|
.field public final synthetic val$_internalQuery:Landroidx/sqlite/db/SupportSQLiteQuery;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Landroidx/work/impl/model/RawWorkInfoDao_Impl;Landroidx/sqlite/db/SupportSQLiteQuery;)V
|
|
.locals 0
|
|
|
|
iput-object p1, p0, Landroidx/work/impl/model/RawWorkInfoDao_Impl$1;->this$0:Landroidx/work/impl/model/RawWorkInfoDao_Impl;
|
|
|
|
iput-object p2, p0, Landroidx/work/impl/model/RawWorkInfoDao_Impl$1;->val$_internalQuery:Landroidx/sqlite/db/SupportSQLiteQuery;
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public bridge synthetic call()Ljava/lang/Object;
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/lang/Exception;
|
|
}
|
|
.end annotation
|
|
|
|
invoke-virtual {p0}, Landroidx/work/impl/model/RawWorkInfoDao_Impl$1;->call()Ljava/util/List;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public call()Ljava/util/List;
|
|
.locals 14
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"()",
|
|
"Ljava/util/List<",
|
|
"Landroidx/work/impl/model/WorkSpec$WorkInfoPojo;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/lang/Exception;
|
|
}
|
|
.end annotation
|
|
|
|
iget-object v0, p0, Landroidx/work/impl/model/RawWorkInfoDao_Impl$1;->this$0:Landroidx/work/impl/model/RawWorkInfoDao_Impl;
|
|
|
|
invoke-static {v0}, Landroidx/work/impl/model/RawWorkInfoDao_Impl;->access$000(Landroidx/work/impl/model/RawWorkInfoDao_Impl;)Landroidx/room/RoomDatabase;
|
|
|
|
move-result-object v0
|
|
|
|
iget-object v1, p0, Landroidx/work/impl/model/RawWorkInfoDao_Impl$1;->val$_internalQuery:Landroidx/sqlite/db/SupportSQLiteQuery;
|
|
|
|
const/4 v2, 0x1
|
|
|
|
const/4 v3, 0x0
|
|
|
|
invoke-static {v0, v1, v2, v3}, Landroidx/room/util/DBUtil;->query(Landroidx/room/RoomDatabase;Landroidx/sqlite/db/SupportSQLiteQuery;ZLandroid/os/CancellationSignal;)Landroid/database/Cursor;
|
|
|
|
move-result-object v0
|
|
|
|
:try_start_0
|
|
const-string v1, "id"
|
|
|
|
invoke-static {v0, v1}, Landroidx/room/util/CursorUtil;->getColumnIndex(Landroid/database/Cursor;Ljava/lang/String;)I
|
|
|
|
move-result v1
|
|
|
|
const-string v2, "state"
|
|
|
|
invoke-static {v0, v2}, Landroidx/room/util/CursorUtil;->getColumnIndex(Landroid/database/Cursor;Ljava/lang/String;)I
|
|
|
|
move-result v2
|
|
|
|
const-string v4, "output"
|
|
|
|
invoke-static {v0, v4}, Landroidx/room/util/CursorUtil;->getColumnIndex(Landroid/database/Cursor;Ljava/lang/String;)I
|
|
|
|
move-result v4
|
|
|
|
const-string v5, "run_attempt_count"
|
|
|
|
invoke-static {v0, v5}, Landroidx/room/util/CursorUtil;->getColumnIndex(Landroid/database/Cursor;Ljava/lang/String;)I
|
|
|
|
move-result v5
|
|
|
|
new-instance v6, Landroidx/collection/ArrayMap;
|
|
|
|
invoke-direct {v6}, Landroidx/collection/ArrayMap;-><init>()V
|
|
|
|
new-instance v7, Landroidx/collection/ArrayMap;
|
|
|
|
invoke-direct {v7}, Landroidx/collection/ArrayMap;-><init>()V
|
|
|
|
:cond_0
|
|
:goto_0
|
|
invoke-interface {v0}, Landroid/database/Cursor;->moveToNext()Z
|
|
|
|
move-result v8
|
|
|
|
if-eqz v8, :cond_2
|
|
|
|
invoke-interface {v0, v1}, Landroid/database/Cursor;->isNull(I)Z
|
|
|
|
move-result v8
|
|
|
|
if-nez v8, :cond_1
|
|
|
|
invoke-interface {v0, v1}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;
|
|
|
|
move-result-object v8
|
|
|
|
invoke-virtual {v6, v8}, Landroidx/collection/SimpleArrayMap;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object v9
|
|
|
|
check-cast v9, Ljava/util/ArrayList;
|
|
|
|
if-nez v9, :cond_1
|
|
|
|
new-instance v9, Ljava/util/ArrayList;
|
|
|
|
invoke-direct {v9}, Ljava/util/ArrayList;-><init>()V
|
|
|
|
invoke-virtual {v6, v8, v9}, Landroidx/collection/SimpleArrayMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
:cond_1
|
|
invoke-interface {v0, v1}, Landroid/database/Cursor;->isNull(I)Z
|
|
|
|
move-result v8
|
|
|
|
if-nez v8, :cond_0
|
|
|
|
invoke-interface {v0, v1}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;
|
|
|
|
move-result-object v8
|
|
|
|
invoke-virtual {v7, v8}, Landroidx/collection/SimpleArrayMap;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object v9
|
|
|
|
check-cast v9, Ljava/util/ArrayList;
|
|
|
|
if-nez v9, :cond_0
|
|
|
|
new-instance v9, Ljava/util/ArrayList;
|
|
|
|
invoke-direct {v9}, Ljava/util/ArrayList;-><init>()V
|
|
|
|
invoke-virtual {v7, v8, v9}, Landroidx/collection/SimpleArrayMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
goto :goto_0
|
|
|
|
:cond_2
|
|
const/4 v8, -0x1
|
|
|
|
invoke-interface {v0, v8}, Landroid/database/Cursor;->moveToPosition(I)Z
|
|
|
|
iget-object v9, p0, Landroidx/work/impl/model/RawWorkInfoDao_Impl$1;->this$0:Landroidx/work/impl/model/RawWorkInfoDao_Impl;
|
|
|
|
invoke-static {v9, v6}, Landroidx/work/impl/model/RawWorkInfoDao_Impl;->access$100(Landroidx/work/impl/model/RawWorkInfoDao_Impl;Landroidx/collection/ArrayMap;)V
|
|
|
|
iget-object v9, p0, Landroidx/work/impl/model/RawWorkInfoDao_Impl$1;->this$0:Landroidx/work/impl/model/RawWorkInfoDao_Impl;
|
|
|
|
invoke-static {v9, v7}, Landroidx/work/impl/model/RawWorkInfoDao_Impl;->access$200(Landroidx/work/impl/model/RawWorkInfoDao_Impl;Landroidx/collection/ArrayMap;)V
|
|
|
|
new-instance v9, Ljava/util/ArrayList;
|
|
|
|
invoke-interface {v0}, Landroid/database/Cursor;->getCount()I
|
|
|
|
move-result v10
|
|
|
|
invoke-direct {v9, v10}, Ljava/util/ArrayList;-><init>(I)V
|
|
|
|
:goto_1
|
|
invoke-interface {v0}, Landroid/database/Cursor;->moveToNext()Z
|
|
|
|
move-result v10
|
|
|
|
if-eqz v10, :cond_b
|
|
|
|
invoke-interface {v0, v1}, Landroid/database/Cursor;->isNull(I)Z
|
|
|
|
move-result v10
|
|
|
|
if-nez v10, :cond_3
|
|
|
|
invoke-interface {v0, v1}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;
|
|
|
|
move-result-object v10
|
|
|
|
invoke-virtual {v6, v10}, Landroidx/collection/SimpleArrayMap;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object v10
|
|
|
|
check-cast v10, Ljava/util/ArrayList;
|
|
|
|
goto :goto_2
|
|
|
|
:cond_3
|
|
move-object v10, v3
|
|
|
|
:goto_2
|
|
if-nez v10, :cond_4
|
|
|
|
new-instance v10, Ljava/util/ArrayList;
|
|
|
|
invoke-direct {v10}, Ljava/util/ArrayList;-><init>()V
|
|
|
|
:cond_4
|
|
invoke-interface {v0, v1}, Landroid/database/Cursor;->isNull(I)Z
|
|
|
|
move-result v11
|
|
|
|
if-nez v11, :cond_5
|
|
|
|
invoke-interface {v0, v1}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;
|
|
|
|
move-result-object v11
|
|
|
|
invoke-virtual {v7, v11}, Landroidx/collection/SimpleArrayMap;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object v11
|
|
|
|
check-cast v11, Ljava/util/ArrayList;
|
|
|
|
goto :goto_3
|
|
|
|
:cond_5
|
|
move-object v11, v3
|
|
|
|
:goto_3
|
|
if-nez v11, :cond_6
|
|
|
|
new-instance v11, Ljava/util/ArrayList;
|
|
|
|
invoke-direct {v11}, Ljava/util/ArrayList;-><init>()V
|
|
|
|
:cond_6
|
|
new-instance v12, Landroidx/work/impl/model/WorkSpec$WorkInfoPojo;
|
|
|
|
invoke-direct {v12}, Landroidx/work/impl/model/WorkSpec$WorkInfoPojo;-><init>()V
|
|
|
|
if-eq v1, v8, :cond_7
|
|
|
|
invoke-interface {v0, v1}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;
|
|
|
|
move-result-object v13
|
|
|
|
iput-object v13, v12, Landroidx/work/impl/model/WorkSpec$WorkInfoPojo;->id:Ljava/lang/String;
|
|
|
|
:cond_7
|
|
if-eq v2, v8, :cond_8
|
|
|
|
invoke-interface {v0, v2}, Landroid/database/Cursor;->getInt(I)I
|
|
|
|
move-result v13
|
|
|
|
invoke-static {v13}, Landroidx/work/impl/model/WorkTypeConverters;->intToState(I)Landroidx/work/WorkInfo$State;
|
|
|
|
move-result-object v13
|
|
|
|
iput-object v13, v12, Landroidx/work/impl/model/WorkSpec$WorkInfoPojo;->state:Landroidx/work/WorkInfo$State;
|
|
|
|
:cond_8
|
|
if-eq v4, v8, :cond_9
|
|
|
|
invoke-interface {v0, v4}, Landroid/database/Cursor;->getBlob(I)[B
|
|
|
|
move-result-object v13
|
|
|
|
invoke-static {v13}, Landroidx/work/Data;->fromByteArray([B)Landroidx/work/Data;
|
|
|
|
move-result-object v13
|
|
|
|
iput-object v13, v12, Landroidx/work/impl/model/WorkSpec$WorkInfoPojo;->output:Landroidx/work/Data;
|
|
|
|
:cond_9
|
|
if-eq v5, v8, :cond_a
|
|
|
|
invoke-interface {v0, v5}, Landroid/database/Cursor;->getInt(I)I
|
|
|
|
move-result v13
|
|
|
|
iput v13, v12, Landroidx/work/impl/model/WorkSpec$WorkInfoPojo;->runAttemptCount:I
|
|
|
|
:cond_a
|
|
iput-object v10, v12, Landroidx/work/impl/model/WorkSpec$WorkInfoPojo;->tags:Ljava/util/List;
|
|
|
|
iput-object v11, v12, Landroidx/work/impl/model/WorkSpec$WorkInfoPojo;->progress:Ljava/util/List;
|
|
|
|
invoke-virtual {v9, v12}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
goto :goto_1
|
|
|
|
:cond_b
|
|
invoke-interface {v0}, Landroid/database/Cursor;->close()V
|
|
|
|
return-object v9
|
|
|
|
:catchall_0
|
|
move-exception v1
|
|
|
|
invoke-interface {v0}, Landroid/database/Cursor;->close()V
|
|
|
|
throw v1
|
|
.end method
|