305 lines
9.4 KiB
Smali
305 lines
9.4 KiB
Smali
|
.class Landroidx/work/impl/model/WorkSpecDao_Impl$11;
|
||
|
.super Landroidx/lifecycle/ComputableLiveData;
|
||
|
.source "WorkSpecDao_Impl.java"
|
||
|
|
||
|
|
||
|
# annotations
|
||
|
.annotation system Ldalvik/annotation/EnclosingMethod;
|
||
|
value = Landroidx/work/impl/model/WorkSpecDao_Impl;->getWorkStatusPojoLiveDataForTag(Ljava/lang/String;)Landroidx/lifecycle/LiveData;
|
||
|
.end annotation
|
||
|
|
||
|
.annotation system Ldalvik/annotation/InnerClass;
|
||
|
accessFlags = 0x0
|
||
|
name = null
|
||
|
.end annotation
|
||
|
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"Landroidx/lifecycle/ComputableLiveData<",
|
||
|
"Ljava/util/List<",
|
||
|
"Landroidx/work/impl/model/WorkSpec$WorkInfoPojo;",
|
||
|
">;>;"
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
|
||
|
# instance fields
|
||
|
.field private _observer:Landroidx/room/InvalidationTracker$Observer;
|
||
|
|
||
|
.field final synthetic this$0:Landroidx/work/impl/model/WorkSpecDao_Impl;
|
||
|
|
||
|
.field final synthetic val$_statement:Landroidx/room/RoomSQLiteQuery;
|
||
|
|
||
|
|
||
|
# direct methods
|
||
|
.method constructor <init>(Landroidx/work/impl/model/WorkSpecDao_Impl;Landroidx/room/RoomSQLiteQuery;)V
|
||
|
.locals 0
|
||
|
|
||
|
iput-object p1, p0, Landroidx/work/impl/model/WorkSpecDao_Impl$11;->this$0:Landroidx/work/impl/model/WorkSpecDao_Impl;
|
||
|
|
||
|
iput-object p2, p0, Landroidx/work/impl/model/WorkSpecDao_Impl$11;->val$_statement:Landroidx/room/RoomSQLiteQuery;
|
||
|
|
||
|
invoke-direct {p0}, Landroidx/lifecycle/ComputableLiveData;-><init>()V
|
||
|
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
|
||
|
# virtual methods
|
||
|
.method public bridge synthetic compute()Ljava/lang/Object;
|
||
|
.locals 1
|
||
|
|
||
|
invoke-virtual {p0}, Landroidx/work/impl/model/WorkSpecDao_Impl$11;->compute()Ljava/util/List;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
return-object v0
|
||
|
.end method
|
||
|
|
||
|
.method protected compute()Ljava/util/List;
|
||
|
.locals 9
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"()",
|
||
|
"Ljava/util/List<",
|
||
|
"Landroidx/work/impl/model/WorkSpec$WorkInfoPojo;",
|
||
|
">;"
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
iget-object v0, p0, Landroidx/work/impl/model/WorkSpecDao_Impl$11;->_observer:Landroidx/room/InvalidationTracker$Observer;
|
||
|
|
||
|
if-nez v0, :cond_0
|
||
|
|
||
|
new-instance v0, Landroidx/work/impl/model/WorkSpecDao_Impl$11$1;
|
||
|
|
||
|
const/4 v1, 0x2
|
||
|
|
||
|
new-array v1, v1, [Ljava/lang/String;
|
||
|
|
||
|
const/4 v2, 0x0
|
||
|
|
||
|
const-string v3, "workspec"
|
||
|
|
||
|
aput-object v3, v1, v2
|
||
|
|
||
|
const/4 v2, 0x1
|
||
|
|
||
|
const-string v3, "worktag"
|
||
|
|
||
|
aput-object v3, v1, v2
|
||
|
|
||
|
const-string v2, "WorkTag"
|
||
|
|
||
|
invoke-direct {v0, p0, v2, v1}, Landroidx/work/impl/model/WorkSpecDao_Impl$11$1;-><init>(Landroidx/work/impl/model/WorkSpecDao_Impl$11;Ljava/lang/String;[Ljava/lang/String;)V
|
||
|
|
||
|
iput-object v0, p0, Landroidx/work/impl/model/WorkSpecDao_Impl$11;->_observer:Landroidx/room/InvalidationTracker$Observer;
|
||
|
|
||
|
iget-object v0, p0, Landroidx/work/impl/model/WorkSpecDao_Impl$11;->this$0:Landroidx/work/impl/model/WorkSpecDao_Impl;
|
||
|
|
||
|
invoke-static {v0}, Landroidx/work/impl/model/WorkSpecDao_Impl;->access$000(Landroidx/work/impl/model/WorkSpecDao_Impl;)Landroidx/room/RoomDatabase;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
invoke-virtual {v0}, Landroidx/room/RoomDatabase;->getInvalidationTracker()Landroidx/room/InvalidationTracker;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
iget-object v1, p0, Landroidx/work/impl/model/WorkSpecDao_Impl$11;->_observer:Landroidx/room/InvalidationTracker$Observer;
|
||
|
|
||
|
invoke-virtual {v0, v1}, Landroidx/room/InvalidationTracker;->addWeakObserver(Landroidx/room/InvalidationTracker$Observer;)V
|
||
|
|
||
|
:cond_0
|
||
|
iget-object v0, p0, Landroidx/work/impl/model/WorkSpecDao_Impl$11;->this$0:Landroidx/work/impl/model/WorkSpecDao_Impl;
|
||
|
|
||
|
invoke-static {v0}, Landroidx/work/impl/model/WorkSpecDao_Impl;->access$000(Landroidx/work/impl/model/WorkSpecDao_Impl;)Landroidx/room/RoomDatabase;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
invoke-virtual {v0}, Landroidx/room/RoomDatabase;->beginTransaction()V
|
||
|
|
||
|
:try_start_0
|
||
|
iget-object v0, p0, Landroidx/work/impl/model/WorkSpecDao_Impl$11;->this$0:Landroidx/work/impl/model/WorkSpecDao_Impl;
|
||
|
|
||
|
invoke-static {v0}, Landroidx/work/impl/model/WorkSpecDao_Impl;->access$000(Landroidx/work/impl/model/WorkSpecDao_Impl;)Landroidx/room/RoomDatabase;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
iget-object v1, p0, Landroidx/work/impl/model/WorkSpecDao_Impl$11;->val$_statement:Landroidx/room/RoomSQLiteQuery;
|
||
|
|
||
|
invoke-virtual {v0, v1}, Landroidx/room/RoomDatabase;->query(Landroidx/sqlite/db/SupportSQLiteQuery;)Landroid/database/Cursor;
|
||
|
|
||
|
move-result-object v0
|
||
|
:try_end_0
|
||
|
.catchall {:try_start_0 .. :try_end_0} :catchall_1
|
||
|
|
||
|
:try_start_1
|
||
|
new-instance v1, Landroidx/collection/ArrayMap;
|
||
|
|
||
|
invoke-direct {v1}, Landroidx/collection/ArrayMap;-><init>()V
|
||
|
|
||
|
const-string v2, "id"
|
||
|
|
||
|
invoke-interface {v0, v2}, Landroid/database/Cursor;->getColumnIndexOrThrow(Ljava/lang/String;)I
|
||
|
|
||
|
move-result v2
|
||
|
|
||
|
const-string v3, "state"
|
||
|
|
||
|
invoke-interface {v0, v3}, Landroid/database/Cursor;->getColumnIndexOrThrow(Ljava/lang/String;)I
|
||
|
|
||
|
move-result v3
|
||
|
|
||
|
const-string v4, "output"
|
||
|
|
||
|
invoke-interface {v0, v4}, Landroid/database/Cursor;->getColumnIndexOrThrow(Ljava/lang/String;)I
|
||
|
|
||
|
move-result v4
|
||
|
|
||
|
new-instance v5, Ljava/util/ArrayList;
|
||
|
|
||
|
invoke-interface {v0}, Landroid/database/Cursor;->getCount()I
|
||
|
|
||
|
move-result v6
|
||
|
|
||
|
invoke-direct {v5, v6}, Ljava/util/ArrayList;-><init>(I)V
|
||
|
|
||
|
:goto_0
|
||
|
invoke-interface {v0}, Landroid/database/Cursor;->moveToNext()Z
|
||
|
|
||
|
move-result v6
|
||
|
|
||
|
if-eqz v6, :cond_3
|
||
|
|
||
|
new-instance v6, Landroidx/work/impl/model/WorkSpec$WorkInfoPojo;
|
||
|
|
||
|
invoke-direct {v6}, Landroidx/work/impl/model/WorkSpec$WorkInfoPojo;-><init>()V
|
||
|
|
||
|
invoke-interface {v0, v2}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;
|
||
|
|
||
|
move-result-object v7
|
||
|
|
||
|
iput-object v7, v6, Landroidx/work/impl/model/WorkSpec$WorkInfoPojo;->id:Ljava/lang/String;
|
||
|
|
||
|
invoke-interface {v0, v3}, Landroid/database/Cursor;->getInt(I)I
|
||
|
|
||
|
move-result v7
|
||
|
|
||
|
invoke-static {v7}, Landroidx/work/impl/model/WorkTypeConverters;->intToState(I)Landroidx/work/WorkInfo$State;
|
||
|
|
||
|
move-result-object v7
|
||
|
|
||
|
iput-object v7, v6, Landroidx/work/impl/model/WorkSpec$WorkInfoPojo;->state:Landroidx/work/WorkInfo$State;
|
||
|
|
||
|
invoke-interface {v0, v4}, Landroid/database/Cursor;->getBlob(I)[B
|
||
|
|
||
|
move-result-object v7
|
||
|
|
||
|
invoke-static {v7}, Landroidx/work/Data;->fromByteArray([B)Landroidx/work/Data;
|
||
|
|
||
|
move-result-object v7
|
||
|
|
||
|
iput-object v7, v6, Landroidx/work/impl/model/WorkSpec$WorkInfoPojo;->output:Landroidx/work/Data;
|
||
|
|
||
|
invoke-interface {v0, v2}, Landroid/database/Cursor;->isNull(I)Z
|
||
|
|
||
|
move-result v7
|
||
|
|
||
|
if-nez v7, :cond_2
|
||
|
|
||
|
invoke-interface {v0, v2}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;
|
||
|
|
||
|
move-result-object v7
|
||
|
|
||
|
invoke-virtual {v1, v7}, Landroidx/collection/ArrayMap;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
||
|
|
||
|
move-result-object v8
|
||
|
|
||
|
check-cast v8, Ljava/util/ArrayList;
|
||
|
|
||
|
if-nez v8, :cond_1
|
||
|
|
||
|
new-instance v8, Ljava/util/ArrayList;
|
||
|
|
||
|
invoke-direct {v8}, Ljava/util/ArrayList;-><init>()V
|
||
|
|
||
|
invoke-virtual {v1, v7, v8}, Landroidx/collection/ArrayMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
||
|
|
||
|
:cond_1
|
||
|
iput-object v8, v6, Landroidx/work/impl/model/WorkSpec$WorkInfoPojo;->tags:Ljava/util/List;
|
||
|
|
||
|
:cond_2
|
||
|
invoke-interface {v5, v6}, Ljava/util/List;->add(Ljava/lang/Object;)Z
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:cond_3
|
||
|
iget-object v2, p0, Landroidx/work/impl/model/WorkSpecDao_Impl$11;->this$0:Landroidx/work/impl/model/WorkSpecDao_Impl;
|
||
|
|
||
|
invoke-static {v2, v1}, Landroidx/work/impl/model/WorkSpecDao_Impl;->access$100(Landroidx/work/impl/model/WorkSpecDao_Impl;Landroidx/collection/ArrayMap;)V
|
||
|
|
||
|
iget-object v1, p0, Landroidx/work/impl/model/WorkSpecDao_Impl$11;->this$0:Landroidx/work/impl/model/WorkSpecDao_Impl;
|
||
|
|
||
|
invoke-static {v1}, Landroidx/work/impl/model/WorkSpecDao_Impl;->access$000(Landroidx/work/impl/model/WorkSpecDao_Impl;)Landroidx/room/RoomDatabase;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
invoke-virtual {v1}, Landroidx/room/RoomDatabase;->setTransactionSuccessful()V
|
||
|
:try_end_1
|
||
|
.catchall {:try_start_1 .. :try_end_1} :catchall_0
|
||
|
|
||
|
:try_start_2
|
||
|
invoke-interface {v0}, Landroid/database/Cursor;->close()V
|
||
|
:try_end_2
|
||
|
.catchall {:try_start_2 .. :try_end_2} :catchall_1
|
||
|
|
||
|
iget-object v0, p0, Landroidx/work/impl/model/WorkSpecDao_Impl$11;->this$0:Landroidx/work/impl/model/WorkSpecDao_Impl;
|
||
|
|
||
|
invoke-static {v0}, Landroidx/work/impl/model/WorkSpecDao_Impl;->access$000(Landroidx/work/impl/model/WorkSpecDao_Impl;)Landroidx/room/RoomDatabase;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
invoke-virtual {v0}, Landroidx/room/RoomDatabase;->endTransaction()V
|
||
|
|
||
|
return-object v5
|
||
|
|
||
|
:catchall_0
|
||
|
move-exception v1
|
||
|
|
||
|
:try_start_3
|
||
|
invoke-interface {v0}, Landroid/database/Cursor;->close()V
|
||
|
|
||
|
throw v1
|
||
|
:try_end_3
|
||
|
.catchall {:try_start_3 .. :try_end_3} :catchall_1
|
||
|
|
||
|
:catchall_1
|
||
|
move-exception v0
|
||
|
|
||
|
iget-object v1, p0, Landroidx/work/impl/model/WorkSpecDao_Impl$11;->this$0:Landroidx/work/impl/model/WorkSpecDao_Impl;
|
||
|
|
||
|
invoke-static {v1}, Landroidx/work/impl/model/WorkSpecDao_Impl;->access$000(Landroidx/work/impl/model/WorkSpecDao_Impl;)Landroidx/room/RoomDatabase;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
invoke-virtual {v1}, Landroidx/room/RoomDatabase;->endTransaction()V
|
||
|
|
||
|
goto :goto_2
|
||
|
|
||
|
:goto_1
|
||
|
throw v0
|
||
|
|
||
|
:goto_2
|
||
|
goto :goto_1
|
||
|
.end method
|
||
|
|
||
|
.method protected finalize()V
|
||
|
.locals 1
|
||
|
|
||
|
iget-object v0, p0, Landroidx/work/impl/model/WorkSpecDao_Impl$11;->val$_statement:Landroidx/room/RoomSQLiteQuery;
|
||
|
|
||
|
invoke-virtual {v0}, Landroidx/room/RoomSQLiteQuery;->release()V
|
||
|
|
||
|
return-void
|
||
|
.end method
|