5170 lines
138 KiB
Smali
5170 lines
138 KiB
Smali
|
.class public Landroidx/work/impl/model/WorkSpecDao_Impl;
|
||
|
.super Ljava/lang/Object;
|
||
|
.source "WorkSpecDao_Impl.java"
|
||
|
|
||
|
# interfaces
|
||
|
.implements Landroidx/work/impl/model/WorkSpecDao;
|
||
|
|
||
|
|
||
|
# instance fields
|
||
|
.field private final __db:Landroidx/room/RoomDatabase;
|
||
|
|
||
|
.field private final __insertionAdapterOfWorkSpec:Landroidx/room/EntityInsertionAdapter;
|
||
|
|
||
|
.field private final __preparedStmtOfDelete:Landroidx/room/SharedSQLiteStatement;
|
||
|
|
||
|
.field private final __preparedStmtOfIncrementWorkSpecRunAttemptCount:Landroidx/room/SharedSQLiteStatement;
|
||
|
|
||
|
.field private final __preparedStmtOfMarkWorkSpecScheduled:Landroidx/room/SharedSQLiteStatement;
|
||
|
|
||
|
.field private final __preparedStmtOfPruneFinishedWorkWithZeroDependentsIgnoringKeepForAtLeast:Landroidx/room/SharedSQLiteStatement;
|
||
|
|
||
|
.field private final __preparedStmtOfResetScheduledState:Landroidx/room/SharedSQLiteStatement;
|
||
|
|
||
|
.field private final __preparedStmtOfResetWorkSpecRunAttemptCount:Landroidx/room/SharedSQLiteStatement;
|
||
|
|
||
|
.field private final __preparedStmtOfSetOutput:Landroidx/room/SharedSQLiteStatement;
|
||
|
|
||
|
.field private final __preparedStmtOfSetPeriodStartTime:Landroidx/room/SharedSQLiteStatement;
|
||
|
|
||
|
|
||
|
# direct methods
|
||
|
.method public constructor <init>(Landroidx/room/RoomDatabase;)V
|
||
|
.locals 1
|
||
|
|
||
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||
|
|
||
|
iput-object p1, p0, Landroidx/work/impl/model/WorkSpecDao_Impl;->__db:Landroidx/room/RoomDatabase;
|
||
|
|
||
|
new-instance v0, Landroidx/work/impl/model/WorkSpecDao_Impl$1;
|
||
|
|
||
|
invoke-direct {v0, p0, p1}, Landroidx/work/impl/model/WorkSpecDao_Impl$1;-><init>(Landroidx/work/impl/model/WorkSpecDao_Impl;Landroidx/room/RoomDatabase;)V
|
||
|
|
||
|
iput-object v0, p0, Landroidx/work/impl/model/WorkSpecDao_Impl;->__insertionAdapterOfWorkSpec:Landroidx/room/EntityInsertionAdapter;
|
||
|
|
||
|
new-instance v0, Landroidx/work/impl/model/WorkSpecDao_Impl$2;
|
||
|
|
||
|
invoke-direct {v0, p0, p1}, Landroidx/work/impl/model/WorkSpecDao_Impl$2;-><init>(Landroidx/work/impl/model/WorkSpecDao_Impl;Landroidx/room/RoomDatabase;)V
|
||
|
|
||
|
iput-object v0, p0, Landroidx/work/impl/model/WorkSpecDao_Impl;->__preparedStmtOfDelete:Landroidx/room/SharedSQLiteStatement;
|
||
|
|
||
|
new-instance v0, Landroidx/work/impl/model/WorkSpecDao_Impl$3;
|
||
|
|
||
|
invoke-direct {v0, p0, p1}, Landroidx/work/impl/model/WorkSpecDao_Impl$3;-><init>(Landroidx/work/impl/model/WorkSpecDao_Impl;Landroidx/room/RoomDatabase;)V
|
||
|
|
||
|
iput-object v0, p0, Landroidx/work/impl/model/WorkSpecDao_Impl;->__preparedStmtOfSetOutput:Landroidx/room/SharedSQLiteStatement;
|
||
|
|
||
|
new-instance v0, Landroidx/work/impl/model/WorkSpecDao_Impl$4;
|
||
|
|
||
|
invoke-direct {v0, p0, p1}, Landroidx/work/impl/model/WorkSpecDao_Impl$4;-><init>(Landroidx/work/impl/model/WorkSpecDao_Impl;Landroidx/room/RoomDatabase;)V
|
||
|
|
||
|
iput-object v0, p0, Landroidx/work/impl/model/WorkSpecDao_Impl;->__preparedStmtOfSetPeriodStartTime:Landroidx/room/SharedSQLiteStatement;
|
||
|
|
||
|
new-instance v0, Landroidx/work/impl/model/WorkSpecDao_Impl$5;
|
||
|
|
||
|
invoke-direct {v0, p0, p1}, Landroidx/work/impl/model/WorkSpecDao_Impl$5;-><init>(Landroidx/work/impl/model/WorkSpecDao_Impl;Landroidx/room/RoomDatabase;)V
|
||
|
|
||
|
iput-object v0, p0, Landroidx/work/impl/model/WorkSpecDao_Impl;->__preparedStmtOfIncrementWorkSpecRunAttemptCount:Landroidx/room/SharedSQLiteStatement;
|
||
|
|
||
|
new-instance v0, Landroidx/work/impl/model/WorkSpecDao_Impl$6;
|
||
|
|
||
|
invoke-direct {v0, p0, p1}, Landroidx/work/impl/model/WorkSpecDao_Impl$6;-><init>(Landroidx/work/impl/model/WorkSpecDao_Impl;Landroidx/room/RoomDatabase;)V
|
||
|
|
||
|
iput-object v0, p0, Landroidx/work/impl/model/WorkSpecDao_Impl;->__preparedStmtOfResetWorkSpecRunAttemptCount:Landroidx/room/SharedSQLiteStatement;
|
||
|
|
||
|
new-instance v0, Landroidx/work/impl/model/WorkSpecDao_Impl$7;
|
||
|
|
||
|
invoke-direct {v0, p0, p1}, Landroidx/work/impl/model/WorkSpecDao_Impl$7;-><init>(Landroidx/work/impl/model/WorkSpecDao_Impl;Landroidx/room/RoomDatabase;)V
|
||
|
|
||
|
iput-object v0, p0, Landroidx/work/impl/model/WorkSpecDao_Impl;->__preparedStmtOfMarkWorkSpecScheduled:Landroidx/room/SharedSQLiteStatement;
|
||
|
|
||
|
new-instance v0, Landroidx/work/impl/model/WorkSpecDao_Impl$8;
|
||
|
|
||
|
invoke-direct {v0, p0, p1}, Landroidx/work/impl/model/WorkSpecDao_Impl$8;-><init>(Landroidx/work/impl/model/WorkSpecDao_Impl;Landroidx/room/RoomDatabase;)V
|
||
|
|
||
|
iput-object v0, p0, Landroidx/work/impl/model/WorkSpecDao_Impl;->__preparedStmtOfResetScheduledState:Landroidx/room/SharedSQLiteStatement;
|
||
|
|
||
|
new-instance v0, Landroidx/work/impl/model/WorkSpecDao_Impl$9;
|
||
|
|
||
|
invoke-direct {v0, p0, p1}, Landroidx/work/impl/model/WorkSpecDao_Impl$9;-><init>(Landroidx/work/impl/model/WorkSpecDao_Impl;Landroidx/room/RoomDatabase;)V
|
||
|
|
||
|
iput-object v0, p0, Landroidx/work/impl/model/WorkSpecDao_Impl;->__preparedStmtOfPruneFinishedWorkWithZeroDependentsIgnoringKeepForAtLeast:Landroidx/room/SharedSQLiteStatement;
|
||
|
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method private __fetchRelationshipWorkTagAsjavaLangString(Landroidx/collection/ArrayMap;)V
|
||
|
.locals 8
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"(",
|
||
|
"Landroidx/collection/ArrayMap<",
|
||
|
"Ljava/lang/String;",
|
||
|
"Ljava/util/ArrayList<",
|
||
|
"Ljava/lang/String;",
|
||
|
">;>;)V"
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
:goto_0
|
||
|
invoke-virtual {p1}, Landroidx/collection/ArrayMap;->keySet()Ljava/util/Set;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
invoke-interface {v0}, Ljava/util/Set;->isEmpty()Z
|
||
|
|
||
|
move-result v1
|
||
|
|
||
|
if-eqz v1, :cond_0
|
||
|
|
||
|
return-void
|
||
|
|
||
|
:cond_0
|
||
|
invoke-virtual {p1}, Landroidx/collection/ArrayMap;->size()I
|
||
|
|
||
|
move-result v1
|
||
|
|
||
|
const/16 v2, 0x3e7
|
||
|
|
||
|
const/4 v3, 0x0
|
||
|
|
||
|
if-le v1, v2, :cond_4
|
||
|
|
||
|
new-instance v0, Landroidx/collection/ArrayMap;
|
||
|
|
||
|
invoke-direct {v0, v2}, Landroidx/collection/ArrayMap;-><init>(I)V
|
||
|
|
||
|
invoke-virtual {p1}, Landroidx/collection/ArrayMap;->size()I
|
||
|
|
||
|
move-result v1
|
||
|
|
||
|
move-object v5, v0
|
||
|
|
||
|
const/4 v0, 0x0
|
||
|
|
||
|
:goto_1
|
||
|
const/4 v4, 0x0
|
||
|
|
||
|
:cond_1
|
||
|
if-ge v0, v1, :cond_2
|
||
|
|
||
|
invoke-virtual {p1, v0}, Landroidx/collection/ArrayMap;->keyAt(I)Ljava/lang/Object;
|
||
|
|
||
|
move-result-object v6
|
||
|
|
||
|
invoke-virtual {p1, v0}, Landroidx/collection/ArrayMap;->valueAt(I)Ljava/lang/Object;
|
||
|
|
||
|
move-result-object v7
|
||
|
|
||
|
invoke-virtual {v5, v6, v7}, Landroidx/collection/ArrayMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
||
|
|
||
|
add-int/lit8 v0, v0, 0x1
|
||
|
|
||
|
add-int/lit8 v4, v4, 0x1
|
||
|
|
||
|
if-ne v4, v2, :cond_1
|
||
|
|
||
|
invoke-direct {p0, v5}, Landroidx/work/impl/model/WorkSpecDao_Impl;->__fetchRelationshipWorkTagAsjavaLangString(Landroidx/collection/ArrayMap;)V
|
||
|
|
||
|
new-instance v5, Landroidx/collection/ArrayMap;
|
||
|
|
||
|
invoke-direct {v5, v2}, Landroidx/collection/ArrayMap;-><init>(I)V
|
||
|
|
||
|
goto :goto_1
|
||
|
|
||
|
:cond_2
|
||
|
if-lez v4, :cond_3
|
||
|
|
||
|
move-object p1, v5
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:cond_3
|
||
|
return-void
|
||
|
|
||
|
:cond_4
|
||
|
invoke-static {}, Landroidx/room/util/StringUtil;->newStringBuilder()Ljava/lang/StringBuilder;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
const-string v2, "SELECT `tag`,`work_spec_id` FROM `WorkTag` WHERE `work_spec_id` IN ("
|
||
|
|
||
|
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
invoke-interface {v0}, Ljava/util/Set;->size()I
|
||
|
|
||
|
move-result v2
|
||
|
|
||
|
invoke-static {v1, v2}, Landroidx/room/util/StringUtil;->appendPlaceholders(Ljava/lang/StringBuilder;I)V
|
||
|
|
||
|
const-string v4, ")"
|
||
|
|
||
|
invoke-virtual {v1, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
add-int/2addr v2, v3
|
||
|
|
||
|
invoke-static {v1, v2}, Landroidx/room/RoomSQLiteQuery;->acquire(Ljava/lang/String;I)Landroidx/room/RoomSQLiteQuery;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
invoke-interface {v0}, Ljava/util/Set;->iterator()Ljava/util/Iterator;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
const/4 v2, 0x1
|
||
|
|
||
|
:goto_2
|
||
|
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
|
||
|
|
||
|
move-result v4
|
||
|
|
||
|
if-eqz v4, :cond_6
|
||
|
|
||
|
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
||
|
|
||
|
move-result-object v4
|
||
|
|
||
|
check-cast v4, Ljava/lang/String;
|
||
|
|
||
|
if-nez v4, :cond_5
|
||
|
|
||
|
invoke-virtual {v1, v2}, Landroidx/room/RoomSQLiteQuery;->bindNull(I)V
|
||
|
|
||
|
goto :goto_3
|
||
|
|
||
|
:cond_5
|
||
|
invoke-virtual {v1, v2, v4}, Landroidx/room/RoomSQLiteQuery;->bindString(ILjava/lang/String;)V
|
||
|
|
||
|
:goto_3
|
||
|
add-int/lit8 v2, v2, 0x1
|
||
|
|
||
|
goto :goto_2
|
||
|
|
||
|
:cond_6
|
||
|
iget-object v0, p0, Landroidx/work/impl/model/WorkSpecDao_Impl;->__db:Landroidx/room/RoomDatabase;
|
||
|
|
||
|
invoke-virtual {v0, v1}, Landroidx/room/RoomDatabase;->query(Landroidx/sqlite/db/SupportSQLiteQuery;)Landroid/database/Cursor;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
:try_start_0
|
||
|
const-string v1, "work_spec_id"
|
||
|
|
||
|
invoke-interface {v0, v1}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I
|
||
|
|
||
|
move-result v1
|
||
|
:try_end_0
|
||
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
||
|
|
||
|
const/4 v2, -0x1
|
||
|
|
||
|
if-ne v1, v2, :cond_7
|
||
|
|
||
|
invoke-interface {v0}, Landroid/database/Cursor;->close()V
|
||
|
|
||
|
return-void
|
||
|
|
||
|
:cond_7
|
||
|
:goto_4
|
||
|
:try_start_1
|
||
|
invoke-interface {v0}, Landroid/database/Cursor;->moveToNext()Z
|
||
|
|
||
|
move-result v2
|
||
|
|
||
|
if-eqz v2, :cond_8
|
||
|
|
||
|
invoke-interface {v0, v1}, Landroid/database/Cursor;->isNull(I)Z
|
||
|
|
||
|
move-result v2
|
||
|
|
||
|
if-nez v2, :cond_7
|
||
|
|
||
|
invoke-interface {v0, v1}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;
|
||
|
|
||
|
move-result-object v2
|
||
|
|
||
|
invoke-virtual {p1, v2}, Landroidx/collection/ArrayMap;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
||
|
|
||
|
move-result-object v2
|
||
|
|
||
|
check-cast v2, Ljava/util/ArrayList;
|
||
|
|
||
|
if-eqz v2, :cond_7
|
||
|
|
||
|
invoke-interface {v0, v3}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;
|
||
|
|
||
|
move-result-object v4
|
||
|
|
||
|
invoke-virtual {v2, v4}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
||
|
:try_end_1
|
||
|
.catchall {:try_start_1 .. :try_end_1} :catchall_0
|
||
|
|
||
|
goto :goto_4
|
||
|
|
||
|
:cond_8
|
||
|
invoke-interface {v0}, Landroid/database/Cursor;->close()V
|
||
|
|
||
|
return-void
|
||
|
|
||
|
:catchall_0
|
||
|
move-exception p1
|
||
|
|
||
|
invoke-interface {v0}, Landroid/database/Cursor;->close()V
|
||
|
|
||
|
goto :goto_6
|
||
|
|
||
|
:goto_5
|
||
|
throw p1
|
||
|
|
||
|
:goto_6
|
||
|
goto :goto_5
|
||
|
.end method
|
||
|
|
||
|
.method static synthetic access$000(Landroidx/work/impl/model/WorkSpecDao_Impl;)Landroidx/room/RoomDatabase;
|
||
|
.locals 0
|
||
|
|
||
|
iget-object p0, p0, Landroidx/work/impl/model/WorkSpecDao_Impl;->__db:Landroidx/room/RoomDatabase;
|
||
|
|
||
|
return-object p0
|
||
|
.end method
|
||
|
|
||
|
.method static synthetic access$100(Landroidx/work/impl/model/WorkSpecDao_Impl;Landroidx/collection/ArrayMap;)V
|
||
|
.locals 0
|
||
|
|
||
|
invoke-direct {p0, p1}, Landroidx/work/impl/model/WorkSpecDao_Impl;->__fetchRelationshipWorkTagAsjavaLangString(Landroidx/collection/ArrayMap;)V
|
||
|
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
|
||
|
# virtual methods
|
||
|
.method public delete(Ljava/lang/String;)V
|
||
|
.locals 2
|
||
|
|
||
|
iget-object v0, p0, Landroidx/work/impl/model/WorkSpecDao_Impl;->__preparedStmtOfDelete:Landroidx/room/SharedSQLiteStatement;
|
||
|
|
||
|
invoke-virtual {v0}, Landroidx/room/SharedSQLiteStatement;->acquire()Landroidx/sqlite/db/SupportSQLiteStatement;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
iget-object v1, p0, Landroidx/work/impl/model/WorkSpecDao_Impl;->__db:Landroidx/room/RoomDatabase;
|
||
|
|
||
|
invoke-virtual {v1}, Landroidx/room/RoomDatabase;->beginTransaction()V
|
||
|
|
||
|
const/4 v1, 0x1
|
||
|
|
||
|
if-nez p1, :cond_0
|
||
|
|
||
|
:try_start_0
|
||
|
invoke-interface {v0, v1}, Landroidx/sqlite/db/SupportSQLiteStatement;->bindNull(I)V
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:cond_0
|
||
|
invoke-interface {v0, v1, p1}, Landroidx/sqlite/db/SupportSQLiteStatement;->bindString(ILjava/lang/String;)V
|
||
|
|
||
|
:goto_0
|
||
|
invoke-interface {v0}, Landroidx/sqlite/db/SupportSQLiteStatement;->executeUpdateDelete()I
|
||
|
|
||
|
iget-object p1, p0, Landroidx/work/impl/model/WorkSpecDao_Impl;->__db:Landroidx/room/RoomDatabase;
|
||
|
|
||
|
invoke-virtual {p1}, Landroidx/room/RoomDatabase;->setTransactionSuccessful()V
|
||
|
:try_end_0
|
||
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
||
|
|
||
|
iget-object p1, p0, Landroidx/work/impl/model/WorkSpecDao_Impl;->__db:Landroidx/room/RoomDatabase;
|
||
|
|
||
|
invoke-virtual {p1}, Landroidx/room/RoomDatabase;->endTransaction()V
|
||
|
|
||
|
iget-object p1, p0, Landroidx/work/impl/model/WorkSpecDao_Impl;->__preparedStmtOfDelete:Landroidx/room/SharedSQLiteStatement;
|
||
|
|
||
|
invoke-virtual {p1, v0}, Landroidx/room/SharedSQLiteStatement;->release(Landroidx/sqlite/db/SupportSQLiteStatement;)V
|
||
|
|
||
|
return-void
|
||
|
|
||
|
:catchall_0
|
||
|
move-exception p1
|
||
|
|
||
|
iget-object v1, p0, Landroidx/work/impl/model/WorkSpecDao_Impl;->__db:Landroidx/room/RoomDatabase;
|
||
|
|
||
|
invoke-virtual {v1}, Landroidx/room/RoomDatabase;->endTransaction()V
|
||
|
|
||
|
iget-object v1, p0, Landroidx/work/impl/model/WorkSpecDao_Impl;->__preparedStmtOfDelete:Landroidx/room/SharedSQLiteStatement;
|
||
|
|
||
|
invoke-virtual {v1, v0}, Landroidx/room/SharedSQLiteStatement;->release(Landroidx/sqlite/db/SupportSQLiteStatement;)V
|
||
|
|
||
|
throw p1
|
||
|
.end method
|
||
|
|
||
|
.method public getAllUnfinishedWork()Ljava/util/List;
|
||
|
.locals 5
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"()",
|
||
|
"Ljava/util/List<",
|
||
|
"Ljava/lang/String;",
|
||
|
">;"
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
const/4 v0, 0x0
|
||
|
|
||
|
const-string v1, "SELECT id FROM workspec WHERE state NOT IN (2, 3, 5)"
|
||
|
|
||
|
invoke-static {v1, v0}, Landroidx/room/RoomSQLiteQuery;->acquire(Ljava/lang/String;I)Landroidx/room/RoomSQLiteQuery;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
iget-object v2, p0, Landroidx/work/impl/model/WorkSpecDao_Impl;->__db:Landroidx/room/RoomDatabase;
|
||
|
|
||
|
invoke-virtual {v2, v1}, Landroidx/room/RoomDatabase;->query(Landroidx/sqlite/db/SupportSQLiteQuery;)Landroid/database/Cursor;
|
||
|
|
||
|
move-result-object v2
|
||
|
|
||
|
:try_start_0
|
||
|
new-instance v3, Ljava/util/ArrayList;
|
||
|
|
||
|
invoke-interface {v2}, Landroid/database/Cursor;->getCount()I
|
||
|
|
||
|
move-result v4
|
||
|
|
||
|
invoke-direct {v3, v4}, Ljava/util/ArrayList;-><init>(I)V
|
||
|
|
||
|
:goto_0
|
||
|
invoke-interface {v2}, Landroid/database/Cursor;->moveToNext()Z
|
||
|
|
||
|
move-result v4
|
||
|
|
||
|
if-eqz v4, :cond_0
|
||
|
|
||
|
invoke-interface {v2, v0}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;
|
||
|
|
||
|
move-result-object v4
|
||
|
|
||
|
invoke-interface {v3, v4}, Ljava/util/List;->add(Ljava/lang/Object;)Z
|
||
|
:try_end_0
|
||
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:cond_0
|
||
|
invoke-interface {v2}, Landroid/database/Cursor;->close()V
|
||
|
|
||
|
invoke-virtual {v1}, Landroidx/room/RoomSQLiteQuery;->release()V
|
||
|
|
||
|
return-object v3
|
||
|
|
||
|
:catchall_0
|
||
|
move-exception v0
|
||
|
|
||
|
invoke-interface {v2}, Landroid/database/Cursor;->close()V
|
||
|
|
||
|
invoke-virtual {v1}, Landroidx/room/RoomSQLiteQuery;->release()V
|
||
|
|
||
|
goto :goto_2
|
||
|
|
||
|
:goto_1
|
||
|
throw v0
|
||
|
|
||
|
:goto_2
|
||
|
goto :goto_1
|
||
|
.end method
|
||
|
|
||
|
.method public getAllWorkSpecIds()Ljava/util/List;
|
||
|
.locals 5
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"()",
|
||
|
"Ljava/util/List<",
|
||
|
"Ljava/lang/String;",
|
||
|
">;"
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
const/4 v0, 0x0
|
||
|
|
||
|
const-string v1, "SELECT id FROM workspec"
|
||
|
|
||
|
invoke-static {v1, v0}, Landroidx/room/RoomSQLiteQuery;->acquire(Ljava/lang/String;I)Landroidx/room/RoomSQLiteQuery;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
iget-object v2, p0, Landroidx/work/impl/model/WorkSpecDao_Impl;->__db:Landroidx/room/RoomDatabase;
|
||
|
|
||
|
invoke-virtual {v2, v1}, Landroidx/room/RoomDatabase;->query(Landroidx/sqlite/db/SupportSQLiteQuery;)Landroid/database/Cursor;
|
||
|
|
||
|
move-result-object v2
|
||
|
|
||
|
:try_start_0
|
||
|
new-instance v3, Ljava/util/ArrayList;
|
||
|
|
||
|
invoke-interface {v2}, Landroid/database/Cursor;->getCount()I
|
||
|
|
||
|
move-result v4
|
||
|
|
||
|
invoke-direct {v3, v4}, Ljava/util/ArrayList;-><init>(I)V
|
||
|
|
||
|
:goto_0
|
||
|
invoke-interface {v2}, Landroid/database/Cursor;->moveToNext()Z
|
||
|
|
||
|
move-result v4
|
||
|
|
||
|
if-eqz v4, :cond_0
|
||
|
|
||
|
invoke-interface {v2, v0}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;
|
||
|
|
||
|
move-result-object v4
|
||
|
|
||
|
invoke-interface {v3, v4}, Ljava/util/List;->add(Ljava/lang/Object;)Z
|
||
|
:try_end_0
|
||
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:cond_0
|
||
|
invoke-interface {v2}, Landroid/database/Cursor;->close()V
|
||
|
|
||
|
invoke-virtual {v1}, Landroidx/room/RoomSQLiteQuery;->release()V
|
||
|
|
||
|
return-object v3
|
||
|
|
||
|
:catchall_0
|
||
|
move-exception v0
|
||
|
|
||
|
invoke-interface {v2}, Landroid/database/Cursor;->close()V
|
||
|
|
||
|
invoke-virtual {v1}, Landroidx/room/RoomSQLiteQuery;->release()V
|
||
|
|
||
|
goto :goto_2
|
||
|
|
||
|
:goto_1
|
||
|
throw v0
|
||
|
|
||
|
:goto_2
|
||
|
goto :goto_1
|
||
|
.end method
|
||
|
|
||
|
.method public getEligibleWorkForScheduling(I)Ljava/util/List;
|
||
|
.locals 31
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"(I)",
|
||
|
"Ljava/util/List<",
|
||
|
"Landroidx/work/impl/model/WorkSpec;",
|
||
|
">;"
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
const/4 v0, 0x1
|
||
|
|
||
|
const-string v1, "SELECT * FROM workspec WHERE state=0 AND schedule_requested_at=-1 LIMIT (SELECT MAX(?-COUNT(*), 0) FROM workspec WHERE schedule_requested_at<>-1 AND state NOT IN (2, 3, 5))"
|
||
|
|
||
|
invoke-static {v1, v0}, Landroidx/room/RoomSQLiteQuery;->acquire(Ljava/lang/String;I)Landroidx/room/RoomSQLiteQuery;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
move/from16 v2, p1
|
||
|
|
||
|
int-to-long v2, v2
|
||
|
|
||
|
invoke-virtual {v1, v0, v2, v3}, Landroidx/room/RoomSQLiteQuery;->bindLong(IJ)V
|
||
|
|
||
|
move-object/from16 v2, p0
|
||
|
|
||
|
iget-object v3, v2, Landroidx/work/impl/model/WorkSpecDao_Impl;->__db:Landroidx/room/RoomDatabase;
|
||
|
|
||
|
invoke-virtual {v3, v1}, Landroidx/room/RoomDatabase;->query(Landroidx/sqlite/db/SupportSQLiteQuery;)Landroid/database/Cursor;
|
||
|
|
||
|
move-result-object v3
|
||
|
|
||
|
:try_start_0
|
||
|
const-string v4, "id"
|
||
|
|
||
|
invoke-interface {v3, v4}, Landroid/database/Cursor;->getColumnIndexOrThrow(Ljava/lang/String;)I
|
||
|
|
||
|
move-result v4
|
||
|
|
||
|
const-string v5, "state"
|
||
|
|
||
|
invoke-interface {v3, v5}, Landroid/database/Cursor;->getColumnIndexOrThrow(Ljava/lang/String;)I
|
||
|
|
||
|
move-result v5
|
||
|
|
||
|
const-string v6, "worker_class_name"
|
||
|
|
||
|
invoke-interface {v3, v6}, Landroid/database/Cursor;->getColumnIndexOrThrow(Ljava/lang/String;)I
|
||
|
|
||
|
move-result v6
|
||
|
|
||
|
const-string v7, "input_merger_class_name"
|
||
|
|
||
|
invoke-interface {v3, v7}, Landroid/database/Cursor;->getColumnIndexOrThrow(Ljava/lang/String;)I
|
||
|
|
||
|
move-result v7
|
||
|
|
||
|
const-string v8, "input"
|
||
|
|
||
|
invoke-interface {v3, v8}, Landroid/database/Cursor;->getColumnIndexOrThrow(Ljava/lang/String;)I
|
||
|
|
||
|
move-result v8
|
||
|
|
||
|
const-string v9, "output"
|
||
|
|
||
|
invoke-interface {v3, v9}, Landroid/database/Cursor;->getColumnIndexOrThrow(Ljava/lang/String;)I
|
||
|
|
||
|
move-result v9
|
||
|
|
||
|
const-string v10, "initial_delay"
|
||
|
|
||
|
invoke-interface {v3, v10}, Landroid/database/Cursor;->getColumnIndexOrThrow(Ljava/lang/String;)I
|
||
|
|
||
|
move-result v10
|
||
|
|
||
|
const-string v11, "interval_duration"
|
||
|
|
||
|
invoke-interface {v3, v11}, Landroid/database/Cursor;->getColumnIndexOrThrow(Ljava/lang/String;)I
|
||
|
|
||
|
move-result v11
|
||
|
|
||
|
const-string v12, "flex_duration"
|
||
|
|
||
|
invoke-interface {v3, v12}, Landroid/database/Cursor;->getColumnIndexOrThrow(Ljava/lang/String;)I
|
||
|
|
||
|
move-result v12
|
||
|
|
||
|
const-string v13, "run_attempt_count"
|
||
|
|
||
|
invoke-interface {v3, v13}, Landroid/database/Cursor;->getColumnIndexOrThrow(Ljava/lang/String;)I
|
||
|
|
||
|
move-result v13
|
||
|
|
||
|
const-string v14, "backoff_policy"
|
||
|
|
||
|
invoke-interface {v3, v14}, Landroid/database/Cursor;->getColumnIndexOrThrow(Ljava/lang/String;)I
|
||
|
|
||
|
move-result v14
|
||
|
|
||
|
const-string v15, "backoff_delay_duration"
|
||
|
|
||
|
invoke-interface {v3, v15}, Landroid/database/Cursor;->getColumnIndexOrThrow(Ljava/lang/String;)I
|
||
|
|
||
|
move-result v15
|
||
|
|
||
|
const-string v0, "period_start_time"
|
||
|
|
||
|
invoke-interface {v3, v0}, Landroid/database/Cursor;->getColumnIndexOrThrow(Ljava/lang/String;)I
|
||
|
|
||
|
move-result v0
|
||
|
|
||
|
const-string v2, "minimum_retention_duration"
|
||
|
|
||
|
invoke-interface {v3, v2}, Landroid/database/Cursor;->getColumnIndexOrThrow(Ljava/lang/String;)I
|
||
|
|
||
|
move-result v2
|
||
|
:try_end_0
|
||
|
.catchall {:try_start_0 .. :try_end_0} :catchall_1
|
||
|
|
||
|
move-object/from16 v16, v1
|
||
|
|
||
|
:try_start_1
|
||
|
const-string v1, "schedule_requested_at"
|
||
|
|
||
|
invoke-interface {v3, v1}, Landroid/database/Cursor;->getColumnIndexOrThrow(Ljava/lang/String;)I
|
||
|
|
||
|
move-result v1
|
||
|
|
||
|
move/from16 p1, v1
|
||
|
|
||
|
const-string v1, "required_network_type"
|
||
|
|
||
|
invoke-interface {v3, v1}, Landroid/database/Cursor;->getColumnIndexOrThrow(Ljava/lang/String;)I
|
||
|
|
||
|
move-result v1
|
||
|
|
||
|
move/from16 v17, v2
|
||
|
|
||
|
const-string v2, "requires_charging"
|
||
|
|
||
|
invoke-interface {v3, v2}, Landroid/database/Cursor;->getColumnIndexOrThrow(Ljava/lang/String;)I
|
||
|
|
||
|
move-result v2
|
||
|
|
||
|
move/from16 v18, v0
|
||
|
|
||
|
const-string v0, "requires_device_idle"
|
||
|
|
||
|
invoke-interface {v3, v0}, Landroid/database/Cursor;->getColumnIndexOrThrow(Ljava/lang/String;)I
|
||
|
|
||
|
move-result v0
|
||
|
|
||
|
move/from16 v19, v15
|
||
|
|
||
|
const-string v15, "requires_battery_not_low"
|
||
|
|
||
|
invoke-interface {v3, v15}, Landroid/database/Cursor;->getColumnIndexOrThrow(Ljava/lang/String;)I
|
||
|
|
||
|
move-result v15
|
||
|
|
||
|
move/from16 v20, v14
|
||
|
|
||
|
const-string v14, "requires_storage_not_low"
|
||
|
|
||
|
invoke-interface {v3, v14}, Landroid/database/Cursor;->getColumnIndexOrThrow(Ljava/lang/String;)I
|
||
|
|
||
|
move-result v14
|
||
|
|
||
|
move/from16 v21, v13
|
||
|
|
||
|
const-string v13, "trigger_content_update_delay"
|
||
|
|
||
|
invoke-interface {v3, v13}, Landroid/database/Cursor;->getColumnIndexOrThrow(Ljava/lang/String;)I
|
||
|
|
||
|
move-result v13
|
||
|
|
||
|
move/from16 v22, v12
|
||
|
|
||
|
const-string v12, "trigger_max_content_delay"
|
||
|
|
||
|
invoke-interface {v3, v12}, Landroid/database/Cursor;->getColumnIndexOrThrow(Ljava/lang/String;)I
|
||
|
|
||
|
move-result v12
|
||
|
|
||
|
move/from16 v23, v11
|
||
|
|
||
|
const-string v11, "content_uri_triggers"
|
||
|
|
||
|
invoke-interface {v3, v11}, Landroid/database/Cursor;->getColumnIndexOrThrow(Ljava/lang/String;)I
|
||
|
|
||
|
move-result v11
|
||
|
|
||
|
move/from16 v24, v10
|
||
|
|
||
|
new-instance v10, Ljava/util/ArrayList;
|
||
|
|
||
|
move/from16 v25, v9
|
||
|
|
||
|
invoke-interface {v3}, Landroid/database/Cursor;->getCount()I
|
||
|
|
||
|
move-result v9
|
||
|
|
||
|
invoke-direct {v10, v9}, Ljava/util/ArrayList;-><init>(I)V
|
||
|
|
||
|
:goto_0
|
||
|
invoke-interface {v3}, Landroid/database/Cursor;->moveToNext()Z
|
||
|
|
||
|
move-result v9
|
||
|
|
||
|
if-eqz v9, :cond_4
|
||
|
|
||
|
invoke-interface {v3, v4}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;
|
||
|
|
||
|
move-result-object v9
|
||
|
|
||
|
move/from16 v26, v4
|
||
|
|
||
|
invoke-interface {v3, v6}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;
|
||
|
|
||
|
move-result-object v4
|
||
|
|
||
|
move/from16 v27, v6
|
||
|
|
||
|
new-instance v6, Landroidx/work/Constraints;
|
||
|
|
||
|
invoke-direct {v6}, Landroidx/work/Constraints;-><init>()V
|
||
|
|
||
|
invoke-interface {v3, v1}, Landroid/database/Cursor;->getInt(I)I
|
||
|
|
||
|
move-result v28
|
||
|
|
||
|
move/from16 v29, v1
|
||
|
|
||
|
invoke-static/range {v28 .. v28}, Landroidx/work/impl/model/WorkTypeConverters;->intToNetworkType(I)Landroidx/work/NetworkType;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
invoke-virtual {v6, v1}, Landroidx/work/Constraints;->setRequiredNetworkType(Landroidx/work/NetworkType;)V
|
||
|
|
||
|
invoke-interface {v3, v2}, Landroid/database/Cursor;->getInt(I)I
|
||
|
|
||
|
move-result v1
|
||
|
|
||
|
const/16 v28, 0x0
|
||
|
|
||
|
if-eqz v1, :cond_0
|
||
|
|
||
|
const/4 v1, 0x1
|
||
|
|
||
|
goto :goto_1
|
||
|
|
||
|
:cond_0
|
||
|
const/4 v1, 0x0
|
||
|
|
||
|
:goto_1
|
||
|
invoke-virtual {v6, v1}, Landroidx/work/Constraints;->setRequiresCharging(Z)V
|
||
|
|
||
|
invoke-interface {v3, v0}, Landroid/database/Cursor;->getInt(I)I
|
||
|
|
||
|
move-result v1
|
||
|
|
||
|
if-eqz v1, :cond_1
|
||
|
|
||
|
const/4 v1, 0x1
|
||
|
|
||
|
goto :goto_2
|
||
|
|
||
|
:cond_1
|
||
|
const/4 v1, 0x0
|
||
|
|
||
|
:goto_2
|
||
|
invoke-virtual {v6, v1}, Landroidx/work/Constraints;->setRequiresDeviceIdle(Z)V
|
||
|
|
||
|
invoke-interface {v3, v15}, Landroid/database/Cursor;->getInt(I)I
|
||
|
|
||
|
move-result v1
|
||
|
|
||
|
if-eqz v1, :cond_2
|
||
|
|
||
|
const/4 v1, 0x1
|
||
|
|
||
|
goto :goto_3
|
||
|
|
||
|
:cond_2
|
||
|
const/4 v1, 0x0
|
||
|
|
||
|
:goto_3
|
||
|
invoke-virtual {v6, v1}, Landroidx/work/Constraints;->setRequiresBatteryNotLow(Z)V
|
||
|
|
||
|
invoke-interface {v3, v14}, Landroid/database/Cursor;->getInt(I)I
|
||
|
|
||
|
move-result v1
|
||
|
|
||
|
if-eqz v1, :cond_3
|
||
|
|
||
|
const/4 v1, 0x1
|
||
|
|
||
|
goto :goto_4
|
||
|
|
||
|
:cond_3
|
||
|
const/4 v1, 0x0
|
||
|
|
||
|
:goto_4
|
||
|
invoke-virtual {v6, v1}, Landroidx/work/Constraints;->setRequiresStorageNotLow(Z)V
|
||
|
|
||
|
move/from16 v28, v0
|
||
|
|
||
|
invoke-interface {v3, v13}, Landroid/database/Cursor;->getLong(I)J
|
||
|
|
||
|
move-result-wide v0
|
||
|
|
||
|
invoke-virtual {v6, v0, v1}, Landroidx/work/Constraints;->setTriggerContentUpdateDelay(J)V
|
||
|
|
||
|
invoke-interface {v3, v12}, Landroid/database/Cursor;->getLong(I)J
|
||
|
|
||
|
move-result-wide v0
|
||
|
|
||
|
invoke-virtual {v6, v0, v1}, Landroidx/work/Constraints;->setTriggerMaxContentDelay(J)V
|
||
|
|
||
|
invoke-interface {v3, v11}, Landroid/database/Cursor;->getBlob(I)[B
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
invoke-static {v0}, Landroidx/work/impl/model/WorkTypeConverters;->byteArrayToContentUriTriggers([B)Landroidx/work/ContentUriTriggers;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
invoke-virtual {v6, v0}, Landroidx/work/Constraints;->setContentUriTriggers(Landroidx/work/ContentUriTriggers;)V
|
||
|
|
||
|
new-instance v0, Landroidx/work/impl/model/WorkSpec;
|
||
|
|
||
|
invoke-direct {v0, v9, v4}, Landroidx/work/impl/model/WorkSpec;-><init>(Ljava/lang/String;Ljava/lang/String;)V
|
||
|
|
||
|
invoke-interface {v3, v5}, Landroid/database/Cursor;->getInt(I)I
|
||
|
|
||
|
move-result v1
|
||
|
|
||
|
invoke-static {v1}, Landroidx/work/impl/model/WorkTypeConverters;->intToState(I)Landroidx/work/WorkInfo$State;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
iput-object v1, v0, Landroidx/work/impl/model/WorkSpec;->state:Landroidx/work/WorkInfo$State;
|
||
|
|
||
|
invoke-interface {v3, v7}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
iput-object v1, v0, Landroidx/work/impl/model/WorkSpec;->inputMergerClassName:Ljava/lang/String;
|
||
|
|
||
|
invoke-interface {v3, v8}, Landroid/database/Cursor;->getBlob(I)[B
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
invoke-static {v1}, Landroidx/work/Data;->fromByteArray([B)Landroidx/work/Data;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
iput-object v1, v0, Landroidx/work/impl/model/WorkSpec;->input:Landroidx/work/Data;
|
||
|
|
||
|
move/from16 v1, v25
|
||
|
|
||
|
invoke-interface {v3, v1}, Landroid/database/Cursor;->getBlob(I)[B
|
||
|
|
||
|
move-result-object v4
|
||
|
|
||
|
invoke-static {v4}, Landroidx/work/Data;->fromByteArray([B)Landroidx/work/Data;
|
||
|
|
||
|
move-result-object v4
|
||
|
|
||
|
iput-object v4, v0, Landroidx/work/impl/model/WorkSpec;->output:Landroidx/work/Data;
|
||
|
|
||
|
move/from16 v25, v1
|
||
|
|
||
|
move v9, v2
|
||
|
|
||
|
move/from16 v4, v24
|
||
|
|
||
|
invoke-interface {v3, v4}, Landroid/database/Cursor;->getLong(I)J
|
||
|
|
||
|
move-result-wide v1
|
||
|
|
||
|
iput-wide v1, v0, Landroidx/work/impl/model/WorkSpec;->initialDelay:J
|
||
|
|
||
|
move/from16 v24, v4
|
||
|
|
||
|
move v2, v5
|
||
|
|
||
|
move/from16 v1, v23
|
||
|
|
||
|
invoke-interface {v3, v1}, Landroid/database/Cursor;->getLong(I)J
|
||
|
|
||
|
move-result-wide v4
|
||
|
|
||
|
iput-wide v4, v0, Landroidx/work/impl/model/WorkSpec;->intervalDuration:J
|
||
|
|
||
|
move/from16 v23, v1
|
||
|
|
||
|
move v5, v2
|
||
|
|
||
|
move/from16 v4, v22
|
||
|
|
||
|
invoke-interface {v3, v4}, Landroid/database/Cursor;->getLong(I)J
|
||
|
|
||
|
move-result-wide v1
|
||
|
|
||
|
iput-wide v1, v0, Landroidx/work/impl/model/WorkSpec;->flexDuration:J
|
||
|
|
||
|
move/from16 v1, v21
|
||
|
|
||
|
invoke-interface {v3, v1}, Landroid/database/Cursor;->getInt(I)I
|
||
|
|
||
|
move-result v2
|
||
|
|
||
|
iput v2, v0, Landroidx/work/impl/model/WorkSpec;->runAttemptCount:I
|
||
|
|
||
|
move/from16 v2, v20
|
||
|
|
||
|
invoke-interface {v3, v2}, Landroid/database/Cursor;->getInt(I)I
|
||
|
|
||
|
move-result v20
|
||
|
|
||
|
move/from16 v21, v1
|
||
|
|
||
|
invoke-static/range {v20 .. v20}, Landroidx/work/impl/model/WorkTypeConverters;->intToBackoffPolicy(I)Landroidx/work/BackoffPolicy;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
iput-object v1, v0, Landroidx/work/impl/model/WorkSpec;->backoffPolicy:Landroidx/work/BackoffPolicy;
|
||
|
|
||
|
move/from16 v22, v4
|
||
|
|
||
|
move/from16 v1, v19
|
||
|
|
||
|
move/from16 v19, v5
|
||
|
|
||
|
invoke-interface {v3, v1}, Landroid/database/Cursor;->getLong(I)J
|
||
|
|
||
|
move-result-wide v4
|
||
|
|
||
|
iput-wide v4, v0, Landroidx/work/impl/model/WorkSpec;->backoffDelayDuration:J
|
||
|
|
||
|
move v5, v1
|
||
|
|
||
|
move/from16 v20, v2
|
||
|
|
||
|
move/from16 v4, v18
|
||
|
|
||
|
invoke-interface {v3, v4}, Landroid/database/Cursor;->getLong(I)J
|
||
|
|
||
|
move-result-wide v1
|
||
|
|
||
|
iput-wide v1, v0, Landroidx/work/impl/model/WorkSpec;->periodStartTime:J
|
||
|
|
||
|
move/from16 v18, v4
|
||
|
|
||
|
move v2, v5
|
||
|
|
||
|
move/from16 v1, v17
|
||
|
|
||
|
invoke-interface {v3, v1}, Landroid/database/Cursor;->getLong(I)J
|
||
|
|
||
|
move-result-wide v4
|
||
|
|
||
|
iput-wide v4, v0, Landroidx/work/impl/model/WorkSpec;->minimumRetentionDuration:J
|
||
|
|
||
|
move/from16 v4, p1
|
||
|
|
||
|
move/from16 v17, v1
|
||
|
|
||
|
move v5, v2
|
||
|
|
||
|
invoke-interface {v3, v4}, Landroid/database/Cursor;->getLong(I)J
|
||
|
|
||
|
move-result-wide v1
|
||
|
|
||
|
iput-wide v1, v0, Landroidx/work/impl/model/WorkSpec;->scheduleRequestedAt:J
|
||
|
|
||
|
iput-object v6, v0, Landroidx/work/impl/model/WorkSpec;->constraints:Landroidx/work/Constraints;
|
||
|
|
||
|
invoke-interface {v10, v0}, Ljava/util/List;->add(Ljava/lang/Object;)Z
|
||
|
:try_end_1
|
||
|
.catchall {:try_start_1 .. :try_end_1} :catchall_0
|
||
|
|
||
|
move/from16 p1, v4
|
||
|
|
||
|
move v2, v9
|
||
|
|
||
|
move/from16 v4, v26
|
||
|
|
||
|
move/from16 v6, v27
|
||
|
|
||
|
move/from16 v0, v28
|
||
|
|
||
|
move/from16 v1, v29
|
||
|
|
||
|
move/from16 v30, v19
|
||
|
|
||
|
move/from16 v19, v5
|
||
|
|
||
|
move/from16 v5, v30
|
||
|
|
||
|
goto/16 :goto_0
|
||
|
|
||
|
:cond_4
|
||
|
invoke-interface {v3}, Landroid/database/Cursor;->close()V
|
||
|
|
||
|
invoke-virtual/range {v16 .. v16}, Landroidx/room/RoomSQLiteQuery;->release()V
|
||
|
|
||
|
return-object v10
|
||
|
|
||
|
:catchall_0
|
||
|
move-exception v0
|
||
|
|
||
|
goto :goto_5
|
||
|
|
||
|
:catchall_1
|
||
|
move-exception v0
|
||
|
|
||
|
move-object/from16 v16, v1
|
||
|
|
||
|
:goto_5
|
||
|
invoke-interface {v3}, Landroid/database/Cursor;->close()V
|
||
|
|
||
|
invoke-virtual/range {v16 .. v16}, Landroidx/room/RoomSQLiteQuery;->release()V
|
||
|
|
||
|
goto :goto_7
|
||
|
|
||
|
:goto_6
|
||
|
throw v0
|
||
|
|
||
|
:goto_7
|
||
|
goto :goto_6
|
||
|
.end method
|
||
|
|
||
|
.method public getEnqueuedWork()Ljava/util/List;
|
||
|
.locals 32
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"()",
|
||
|
"Ljava/util/List<",
|
||
|
"Landroidx/work/impl/model/WorkSpec;",
|
||
|
">;"
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
const/4 v0, 0x0
|
||
|
|
||
|
const-string v1, "SELECT * FROM workspec WHERE state=0"
|
||
|
|
||
|
invoke-static {v1, v0}, Landroidx/room/RoomSQLiteQuery;->acquire(Ljava/lang/String;I)Landroidx/room/RoomSQLiteQuery;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
move-object/from16 v2, p0
|
||
|
|
||
|
iget-object v3, v2, Landroidx/work/impl/model/WorkSpecDao_Impl;->__db:Landroidx/room/RoomDatabase;
|
||
|
|
||
|
invoke-virtual {v3, v1}, Landroidx/room/RoomDatabase;->query(Landroidx/sqlite/db/SupportSQLiteQuery;)Landroid/database/Cursor;
|
||
|
|
||
|
move-result-object v3
|
||
|
|
||
|
:try_start_0
|
||
|
const-string v4, "id"
|
||
|
|
||
|
invoke-interface {v3, v4}, Landroid/database/Cursor;->getColumnIndexOrThrow(Ljava/lang/String;)I
|
||
|
|
||
|
move-result v4
|
||
|
|
||
|
const-string v5, "state"
|
||
|
|
||
|
invoke-interface {v3, v5}, Landroid/database/Cursor;->getColumnIndexOrThrow(Ljava/lang/String;)I
|
||
|
|
||
|
move-result v5
|
||
|
|
||
|
const-string v6, "worker_class_name"
|
||
|
|
||
|
invoke-interface {v3, v6}, Landroid/database/Cursor;->getColumnIndexOrThrow(Ljava/lang/String;)I
|
||
|
|
||
|
move-result v6
|
||
|
|
||
|
const-string v7, "input_merger_class_name"
|
||
|
|
||
|
invoke-interface {v3, v7}, Landroid/database/Cursor;->getColumnIndexOrThrow(Ljava/lang/String;)I
|
||
|
|
||
|
move-result v7
|
||
|
|
||
|
const-string v8, "input"
|
||
|
|
||
|
invoke-interface {v3, v8}, Landroid/database/Cursor;->getColumnIndexOrThrow(Ljava/lang/String;)I
|
||
|
|
||
|
move-result v8
|
||
|
|
||
|
const-string v9, "output"
|
||
|
|
||
|
invoke-interface {v3, v9}, Landroid/database/Cursor;->getColumnIndexOrThrow(Ljava/lang/String;)I
|
||
|
|
||
|
move-result v9
|
||
|
|
||
|
const-string v10, "initial_delay"
|
||
|
|
||
|
invoke-interface {v3, v10}, Landroid/database/Cursor;->getColumnIndexOrThrow(Ljava/lang/String;)I
|
||
|
|
||
|
move-result v10
|
||
|
|
||
|
const-string v11, "interval_duration"
|
||
|
|
||
|
invoke-interface {v3, v11}, Landroid/database/Cursor;->getColumnIndexOrThrow(Ljava/lang/String;)I
|
||
|
|
||
|
move-result v11
|
||
|
|
||
|
const-string v12, "flex_duration"
|
||
|
|
||
|
invoke-interface {v3, v12}, Landroid/database/Cursor;->getColumnIndexOrThrow(Ljava/lang/String;)I
|
||
|
|
||
|
move-result v12
|
||
|
|
||
|
const-string v13, "run_attempt_count"
|
||
|
|
||
|
invoke-interface {v3, v13}, Landroid/database/Cursor;->getColumnIndexOrThrow(Ljava/lang/String;)I
|
||
|
|
||
|
move-result v13
|
||
|
|
||
|
const-string v14, "backoff_policy"
|
||
|
|
||
|
invoke-interface {v3, v14}, Landroid/database/Cursor;->getColumnIndexOrThrow(Ljava/lang/String;)I
|
||
|
|
||
|
move-result v14
|
||
|
|
||
|
const-string v15, "backoff_delay_duration"
|
||
|
|
||
|
invoke-interface {v3, v15}, Landroid/database/Cursor;->getColumnIndexOrThrow(Ljava/lang/String;)I
|
||
|
|
||
|
move-result v15
|
||
|
|
||
|
const-string v0, "period_start_time"
|
||
|
|
||
|
invoke-interface {v3, v0}, Landroid/database/Cursor;->getColumnIndexOrThrow(Ljava/lang/String;)I
|
||
|
|
||
|
move-result v0
|
||
|
|
||
|
const-string v2, "minimum_retention_duration"
|
||
|
|
||
|
invoke-interface {v3, v2}, Landroid/database/Cursor;->getColumnIndexOrThrow(Ljava/lang/String;)I
|
||
|
|
||
|
move-result v2
|
||
|
:try_end_0
|
||
|
.catchall {:try_start_0 .. :try_end_0} :catchall_1
|
||
|
|
||
|
move-object/from16 v16, v1
|
||
|
|
||
|
:try_start_1
|
||
|
const-string v1, "schedule_requested_at"
|
||
|
|
||
|
invoke-interface {v3, v1}, Landroid/database/Cursor;->getColumnIndexOrThrow(Ljava/lang/String;)I
|
||
|
|
||
|
move-result v1
|
||
|
|
||
|
move/from16 v17, v1
|
||
|
|
||
|
const-string v1, "required_network_type"
|
||
|
|
||
|
invoke-interface {v3, v1}, Landroid/database/Cursor;->getColumnIndexOrThrow(Ljava/lang/String;)I
|
||
|
|
||
|
move-result v1
|
||
|
|
||
|
move/from16 v18, v2
|
||
|
|
||
|
const-string v2, "requires_charging"
|
||
|
|
||
|
invoke-interface {v3, v2}, Landroid/database/Cursor;->getColumnIndexOrThrow(Ljava/lang/String;)I
|
||
|
|
||
|
move-result v2
|
||
|
|
||
|
move/from16 v19, v0
|
||
|
|
||
|
const-string v0, "requires_device_idle"
|
||
|
|
||
|
invoke-interface {v3, v0}, Landroid/database/Cursor;->getColumnIndexOrThrow(Ljava/lang/String;)I
|
||
|
|
||
|
move-result v0
|
||
|
|
||
|
move/from16 v20, v15
|
||
|
|
||
|
const-string v15, "requires_battery_not_low"
|
||
|
|
||
|
invoke-interface {v3, v15}, Landroid/database/Cursor;->getColumnIndexOrThrow(Ljava/lang/String;)I
|
||
|
|
||
|
move-result v15
|
||
|
|
||
|
move/from16 v21, v14
|
||
|
|
||
|
const-string v14, "requires_storage_not_low"
|
||
|
|
||
|
invoke-interface {v3, v14}, Landroid/database/Cursor;->getColumnIndexOrThrow(Ljava/lang/String;)I
|
||
|
|
||
|
move-result v14
|
||
|
|
||
|
move/from16 v22, v13
|
||
|
|
||
|
const-string v13, "trigger_content_update_delay"
|
||
|
|
||
|
invoke-interface {v3, v13}, Landroid/database/Cursor;->getColumnIndexOrThrow(Ljava/lang/String;)I
|
||
|
|
||
|
move-result v13
|
||
|
|
||
|
move/from16 v23, v12
|
||
|
|
||
|
const-string v12, "trigger_max_content_delay"
|
||
|
|
||
|
invoke-interface {v3, v12}, Landroid/database/Cursor;->getColumnIndexOrThrow(Ljava/lang/String;)I
|
||
|
|
||
|
move-result v12
|
||
|
|
||
|
move/from16 v24, v11
|
||
|
|
||
|
const-string v11, "content_uri_triggers"
|
||
|
|
||
|
invoke-interface {v3, v11}, Landroid/database/Cursor;->getColumnIndexOrThrow(Ljava/lang/String;)I
|
||
|
|
||
|
move-result v11
|
||
|
|
||
|
move/from16 v25, v10
|
||
|
|
||
|
new-instance v10, Ljava/util/ArrayList;
|
||
|
|
||
|
move/from16 v26, v9
|
||
|
|
||
|
invoke-interface {v3}, Landroid/database/Cursor;->getCount()I
|
||
|
|
||
|
move-result v9
|
||
|
|
||
|
invoke-direct {v10, v9}, Ljava/util/ArrayList;-><init>(I)V
|
||
|
|
||
|
:goto_0
|
||
|
invoke-interface {v3}, Landroid/database/Cursor;->moveToNext()Z
|
||
|
|
||
|
move-result v9
|
||
|
|
||
|
if-eqz v9, :cond_4
|
||
|
|
||
|
invoke-interface {v3, v4}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;
|
||
|
|
||
|
move-result-object v9
|
||
|
|
||
|
move/from16 v27, v4
|
||
|
|
||
|
invoke-interface {v3, v6}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;
|
||
|
|
||
|
move-result-object v4
|
||
|
|
||
|
move/from16 v28, v6
|
||
|
|
||
|
new-instance v6, Landroidx/work/Constraints;
|
||
|
|
||
|
invoke-direct {v6}, Landroidx/work/Constraints;-><init>()V
|
||
|
|
||
|
invoke-interface {v3, v1}, Landroid/database/Cursor;->getInt(I)I
|
||
|
|
||
|
move-result v29
|
||
|
|
||
|
move/from16 v30, v1
|
||
|
|
||
|
invoke-static/range {v29 .. v29}, Landroidx/work/impl/model/WorkTypeConverters;->intToNetworkType(I)Landroidx/work/NetworkType;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
invoke-virtual {v6, v1}, Landroidx/work/Constraints;->setRequiredNetworkType(Landroidx/work/NetworkType;)V
|
||
|
|
||
|
invoke-interface {v3, v2}, Landroid/database/Cursor;->getInt(I)I
|
||
|
|
||
|
move-result v1
|
||
|
|
||
|
const/16 v29, 0x1
|
||
|
|
||
|
if-eqz v1, :cond_0
|
||
|
|
||
|
const/4 v1, 0x1
|
||
|
|
||
|
goto :goto_1
|
||
|
|
||
|
:cond_0
|
||
|
const/4 v1, 0x0
|
||
|
|
||
|
:goto_1
|
||
|
invoke-virtual {v6, v1}, Landroidx/work/Constraints;->setRequiresCharging(Z)V
|
||
|
|
||
|
invoke-interface {v3, v0}, Landroid/database/Cursor;->getInt(I)I
|
||
|
|
||
|
move-result v1
|
||
|
|
||
|
if-eqz v1, :cond_1
|
||
|
|
||
|
const/4 v1, 0x1
|
||
|
|
||
|
goto :goto_2
|
||
|
|
||
|
:cond_1
|
||
|
const/4 v1, 0x0
|
||
|
|
||
|
:goto_2
|
||
|
invoke-virtual {v6, v1}, Landroidx/work/Constraints;->setRequiresDeviceIdle(Z)V
|
||
|
|
||
|
invoke-interface {v3, v15}, Landroid/database/Cursor;->getInt(I)I
|
||
|
|
||
|
move-result v1
|
||
|
|
||
|
if-eqz v1, :cond_2
|
||
|
|
||
|
const/4 v1, 0x1
|
||
|
|
||
|
goto :goto_3
|
||
|
|
||
|
:cond_2
|
||
|
const/4 v1, 0x0
|
||
|
|
||
|
:goto_3
|
||
|
invoke-virtual {v6, v1}, Landroidx/work/Constraints;->setRequiresBatteryNotLow(Z)V
|
||
|
|
||
|
invoke-interface {v3, v14}, Landroid/database/Cursor;->getInt(I)I
|
||
|
|
||
|
move-result v1
|
||
|
|
||
|
if-eqz v1, :cond_3
|
||
|
|
||
|
const/4 v1, 0x1
|
||
|
|
||
|
goto :goto_4
|
||
|
|
||
|
:cond_3
|
||
|
const/4 v1, 0x0
|
||
|
|
||
|
:goto_4
|
||
|
invoke-virtual {v6, v1}, Landroidx/work/Constraints;->setRequiresStorageNotLow(Z)V
|
||
|
|
||
|
move/from16 v29, v0
|
||
|
|
||
|
invoke-interface {v3, v13}, Landroid/database/Cursor;->getLong(I)J
|
||
|
|
||
|
move-result-wide v0
|
||
|
|
||
|
invoke-virtual {v6, v0, v1}, Landroidx/work/Constraints;->setTriggerContentUpdateDelay(J)V
|
||
|
|
||
|
invoke-interface {v3, v12}, Landroid/database/Cursor;->getLong(I)J
|
||
|
|
||
|
move-result-wide v0
|
||
|
|
||
|
invoke-virtual {v6, v0, v1}, Landroidx/work/Constraints;->setTriggerMaxContentDelay(J)V
|
||
|
|
||
|
invoke-interface {v3, v11}, Landroid/database/Cursor;->getBlob(I)[B
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
invoke-static {v0}, Landroidx/work/impl/model/WorkTypeConverters;->byteArrayToContentUriTriggers([B)Landroidx/work/ContentUriTriggers;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
invoke-virtual {v6, v0}, Landroidx/work/Constraints;->setContentUriTriggers(Landroidx/work/ContentUriTriggers;)V
|
||
|
|
||
|
new-instance v0, Landroidx/work/impl/model/WorkSpec;
|
||
|
|
||
|
invoke-direct {v0, v9, v4}, Landroidx/work/impl/model/WorkSpec;-><init>(Ljava/lang/String;Ljava/lang/String;)V
|
||
|
|
||
|
invoke-interface {v3, v5}, Landroid/database/Cursor;->getInt(I)I
|
||
|
|
||
|
move-result v1
|
||
|
|
||
|
invoke-static {v1}, Landroidx/work/impl/model/WorkTypeConverters;->intToState(I)Landroidx/work/WorkInfo$State;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
iput-object v1, v0, Landroidx/work/impl/model/WorkSpec;->state:Landroidx/work/WorkInfo$State;
|
||
|
|
||
|
invoke-interface {v3, v7}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
iput-object v1, v0, Landroidx/work/impl/model/WorkSpec;->inputMergerClassName:Ljava/lang/String;
|
||
|
|
||
|
invoke-interface {v3, v8}, Landroid/database/Cursor;->getBlob(I)[B
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
invoke-static {v1}, Landroidx/work/Data;->fromByteArray([B)Landroidx/work/Data;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
iput-object v1, v0, Landroidx/work/impl/model/WorkSpec;->input:Landroidx/work/Data;
|
||
|
|
||
|
move/from16 v1, v26
|
||
|
|
||
|
invoke-interface {v3, v1}, Landroid/database/Cursor;->getBlob(I)[B
|
||
|
|
||
|
move-result-object v4
|
||
|
|
||
|
invoke-static {v4}, Landroidx/work/Data;->fromByteArray([B)Landroidx/work/Data;
|
||
|
|
||
|
move-result-object v4
|
||
|
|
||
|
iput-object v4, v0, Landroidx/work/impl/model/WorkSpec;->output:Landroidx/work/Data;
|
||
|
|
||
|
move/from16 v26, v1
|
||
|
|
||
|
move v9, v2
|
||
|
|
||
|
move/from16 v4, v25
|
||
|
|
||
|
invoke-interface {v3, v4}, Landroid/database/Cursor;->getLong(I)J
|
||
|
|
||
|
move-result-wide v1
|
||
|
|
||
|
iput-wide v1, v0, Landroidx/work/impl/model/WorkSpec;->initialDelay:J
|
||
|
|
||
|
move/from16 v25, v4
|
||
|
|
||
|
move v2, v5
|
||
|
|
||
|
move/from16 v1, v24
|
||
|
|
||
|
invoke-interface {v3, v1}, Landroid/database/Cursor;->getLong(I)J
|
||
|
|
||
|
move-result-wide v4
|
||
|
|
||
|
iput-wide v4, v0, Landroidx/work/impl/model/WorkSpec;->intervalDuration:J
|
||
|
|
||
|
move/from16 v24, v1
|
||
|
|
||
|
move v5, v2
|
||
|
|
||
|
move/from16 v4, v23
|
||
|
|
||
|
invoke-interface {v3, v4}, Landroid/database/Cursor;->getLong(I)J
|
||
|
|
||
|
move-result-wide v1
|
||
|
|
||
|
iput-wide v1, v0, Landroidx/work/impl/model/WorkSpec;->flexDuration:J
|
||
|
|
||
|
move/from16 v1, v22
|
||
|
|
||
|
invoke-interface {v3, v1}, Landroid/database/Cursor;->getInt(I)I
|
||
|
|
||
|
move-result v2
|
||
|
|
||
|
iput v2, v0, Landroidx/work/impl/model/WorkSpec;->runAttemptCount:I
|
||
|
|
||
|
move/from16 v2, v21
|
||
|
|
||
|
invoke-interface {v3, v2}, Landroid/database/Cursor;->getInt(I)I
|
||
|
|
||
|
move-result v21
|
||
|
|
||
|
move/from16 v22, v1
|
||
|
|
||
|
invoke-static/range {v21 .. v21}, Landroidx/work/impl/model/WorkTypeConverters;->intToBackoffPolicy(I)Landroidx/work/BackoffPolicy;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
iput-object v1, v0, Landroidx/work/impl/model/WorkSpec;->backoffPolicy:Landroidx/work/BackoffPolicy;
|
||
|
|
||
|
move/from16 v23, v4
|
||
|
|
||
|
move/from16 v1, v20
|
||
|
|
||
|
move/from16 v20, v5
|
||
|
|
||
|
invoke-interface {v3, v1}, Landroid/database/Cursor;->getLong(I)J
|
||
|
|
||
|
move-result-wide v4
|
||
|
|
||
|
iput-wide v4, v0, Landroidx/work/impl/model/WorkSpec;->backoffDelayDuration:J
|
||
|
|
||
|
move v5, v1
|
||
|
|
||
|
move/from16 v21, v2
|
||
|
|
||
|
move/from16 v4, v19
|
||
|
|
||
|
invoke-interface {v3, v4}, Landroid/database/Cursor;->getLong(I)J
|
||
|
|
||
|
move-result-wide v1
|
||
|
|
||
|
iput-wide v1, v0, Landroidx/work/impl/model/WorkSpec;->periodStartTime:J
|
||
|
|
||
|
move/from16 v19, v4
|
||
|
|
||
|
move v2, v5
|
||
|
|
||
|
move/from16 v1, v18
|
||
|
|
||
|
invoke-interface {v3, v1}, Landroid/database/Cursor;->getLong(I)J
|
||
|
|
||
|
move-result-wide v4
|
||
|
|
||
|
iput-wide v4, v0, Landroidx/work/impl/model/WorkSpec;->minimumRetentionDuration:J
|
||
|
|
||
|
move/from16 v18, v1
|
||
|
|
||
|
move v5, v2
|
||
|
|
||
|
move/from16 v4, v17
|
||
|
|
||
|
invoke-interface {v3, v4}, Landroid/database/Cursor;->getLong(I)J
|
||
|
|
||
|
move-result-wide v1
|
||
|
|
||
|
iput-wide v1, v0, Landroidx/work/impl/model/WorkSpec;->scheduleRequestedAt:J
|
||
|
|
||
|
iput-object v6, v0, Landroidx/work/impl/model/WorkSpec;->constraints:Landroidx/work/Constraints;
|
||
|
|
||
|
invoke-interface {v10, v0}, Ljava/util/List;->add(Ljava/lang/Object;)Z
|
||
|
:try_end_1
|
||
|
.catchall {:try_start_1 .. :try_end_1} :catchall_0
|
||
|
|
||
|
move/from16 v17, v4
|
||
|
|
||
|
move v2, v9
|
||
|
|
||
|
move/from16 v4, v27
|
||
|
|
||
|
move/from16 v6, v28
|
||
|
|
||
|
move/from16 v0, v29
|
||
|
|
||
|
move/from16 v1, v30
|
||
|
|
||
|
move/from16 v31, v20
|
||
|
|
||
|
move/from16 v20, v5
|
||
|
|
||
|
move/from16 v5, v31
|
||
|
|
||
|
goto/16 :goto_0
|
||
|
|
||
|
:cond_4
|
||
|
invoke-interface {v3}, Landroid/database/Cursor;->close()V
|
||
|
|
||
|
invoke-virtual/range {v16 .. v16}, Landroidx/room/RoomSQLiteQuery;->release()V
|
||
|
|
||
|
return-object v10
|
||
|
|
||
|
:catchall_0
|
||
|
move-exception v0
|
||
|
|
||
|
goto :goto_5
|
||
|
|
||
|
:catchall_1
|
||
|
move-exception v0
|
||
|
|
||
|
move-object/from16 v16, v1
|
||
|
|
||
|
:goto_5
|
||
|
invoke-interface {v3}, Landroid/database/Cursor;->close()V
|
||
|
|
||
|
invoke-virtual/range {v16 .. v16}, Landroidx/room/RoomSQLiteQuery;->release()V
|
||
|
|
||
|
goto :goto_7
|
||
|
|
||
|
:goto_6
|
||
|
throw v0
|
||
|
|
||
|
:goto_7
|
||
|
goto :goto_6
|
||
|
.end method
|
||
|
|
||
|
.method public getInputsFromPrerequisites(Ljava/lang/String;)Ljava/util/List;
|
||
|
.locals 3
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"(",
|
||
|
"Ljava/lang/String;",
|
||
|
")",
|
||
|
"Ljava/util/List<",
|
||
|
"Landroidx/work/Data;",
|
||
|
">;"
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
const/4 v0, 0x1
|
||
|
|
||
|
const-string v1, "SELECT output FROM workspec WHERE id IN (SELECT prerequisite_id FROM dependency WHERE work_spec_id=?)"
|
||
|
|
||
|
invoke-static {v1, v0}, Landroidx/room/RoomSQLiteQuery;->acquire(Ljava/lang/String;I)Landroidx/room/RoomSQLiteQuery;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
if-nez p1, :cond_0
|
||
|
|
||
|
invoke-virtual {v1, v0}, Landroidx/room/RoomSQLiteQuery;->bindNull(I)V
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:cond_0
|
||
|
invoke-virtual {v1, v0, p1}, Landroidx/room/RoomSQLiteQuery;->bindString(ILjava/lang/String;)V
|
||
|
|
||
|
:goto_0
|
||
|
iget-object p1, p0, Landroidx/work/impl/model/WorkSpecDao_Impl;->__db:Landroidx/room/RoomDatabase;
|
||
|
|
||
|
invoke-virtual {p1, v1}, Landroidx/room/RoomDatabase;->query(Landroidx/sqlite/db/SupportSQLiteQuery;)Landroid/database/Cursor;
|
||
|
|
||
|
move-result-object p1
|
||
|
|
||
|
:try_start_0
|
||
|
new-instance v0, Ljava/util/ArrayList;
|
||
|
|
||
|
invoke-interface {p1}, Landroid/database/Cursor;->getCount()I
|
||
|
|
||
|
move-result v2
|
||
|
|
||
|
invoke-direct {v0, v2}, Ljava/util/ArrayList;-><init>(I)V
|
||
|
|
||
|
:goto_1
|
||
|
invoke-interface {p1}, Landroid/database/Cursor;->moveToNext()Z
|
||
|
|
||
|
move-result v2
|
||
|
|
||
|
if-eqz v2, :cond_1
|
||
|
|
||
|
const/4 v2, 0x0
|
||
|
|
||
|
invoke-interface {p1, v2}, Landroid/database/Cursor;->getBlob(I)[B
|
||
|
|
||
|
move-result-object v2
|
||
|
|
||
|
invoke-static {v2}, Landroidx/work/Data;->fromByteArray([B)Landroidx/work/Data;
|
||
|
|
||
|
move-result-object v2
|
||
|
|
||
|
invoke-interface {v0, v2}, Ljava/util/List;->add(Ljava/lang/Object;)Z
|
||
|
:try_end_0
|
||
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
||
|
|
||
|
goto :goto_1
|
||
|
|
||
|
:cond_1
|
||
|
invoke-interface {p1}, Landroid/database/Cursor;->close()V
|
||
|
|
||
|
invoke-virtual {v1}, Landroidx/room/RoomSQLiteQuery;->release()V
|
||
|
|
||
|
return-object v0
|
||
|
|
||
|
:catchall_0
|
||
|
move-exception v0
|
||
|
|
||
|
invoke-interface {p1}, Landroid/database/Cursor;->close()V
|
||
|
|
||
|
invoke-virtual {v1}, Landroidx/room/RoomSQLiteQuery;->release()V
|
||
|
|
||
|
goto :goto_3
|
||
|
|
||
|
:goto_2
|
||
|
throw v0
|
||
|
|
||
|
:goto_3
|
||
|
goto :goto_2
|
||
|
.end method
|
||
|
|
||
|
.method public getScheduledWork()Ljava/util/List;
|
||
|
.locals 32
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"()",
|
||
|
"Ljava/util/List<",
|
||
|
"Landroidx/work/impl/model/WorkSpec;",
|
||
|
">;"
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
const/4 v0, 0x0
|
||
|
|
||
|
const-string v1, "SELECT * FROM workspec WHERE state=0 AND schedule_requested_at<>-1"
|
||
|
|
||
|
invoke-static {v1, v0}, Landroidx/room/RoomSQLiteQuery;->acquire(Ljava/lang/String;I)Landroidx/room/RoomSQLiteQuery;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
move-object/from16 v2, p0
|
||
|
|
||
|
iget-object v3, v2, Landroidx/work/impl/model/WorkSpecDao_Impl;->__db:Landroidx/room/RoomDatabase;
|
||
|
|
||
|
invoke-virtual {v3, v1}, Landroidx/room/RoomDatabase;->query(Landroidx/sqlite/db/SupportSQLiteQuery;)Landroid/database/Cursor;
|
||
|
|
||
|
move-result-object v3
|
||
|
|
||
|
:try_start_0
|
||
|
const-string v4, "id"
|
||
|
|
||
|
invoke-interface {v3, v4}, Landroid/database/Cursor;->getColumnIndexOrThrow(Ljava/lang/String;)I
|
||
|
|
||
|
move-result v4
|
||
|
|
||
|
const-string v5, "state"
|
||
|
|
||
|
invoke-interface {v3, v5}, Landroid/database/Cursor;->getColumnIndexOrThrow(Ljava/lang/String;)I
|
||
|
|
||
|
move-result v5
|
||
|
|
||
|
const-string v6, "worker_class_name"
|
||
|
|
||
|
invoke-interface {v3, v6}, Landroid/database/Cursor;->getColumnIndexOrThrow(Ljava/lang/String;)I
|
||
|
|
||
|
move-result v6
|
||
|
|
||
|
const-string v7, "input_merger_class_name"
|
||
|
|
||
|
invoke-interface {v3, v7}, Landroid/database/Cursor;->getColumnIndexOrThrow(Ljava/lang/String;)I
|
||
|
|
||
|
move-result v7
|
||
|
|
||
|
const-string v8, "input"
|
||
|
|
||
|
invoke-interface {v3, v8}, Landroid/database/Cursor;->getColumnIndexOrThrow(Ljava/lang/String;)I
|
||
|
|
||
|
move-result v8
|
||
|
|
||
|
const-string v9, "output"
|
||
|
|
||
|
invoke-interface {v3, v9}, Landroid/database/Cursor;->getColumnIndexOrThrow(Ljava/lang/String;)I
|
||
|
|
||
|
move-result v9
|
||
|
|
||
|
const-string v10, "initial_delay"
|
||
|
|
||
|
invoke-interface {v3, v10}, Landroid/database/Cursor;->getColumnIndexOrThrow(Ljava/lang/String;)I
|
||
|
|
||
|
move-result v10
|
||
|
|
||
|
const-string v11, "interval_duration"
|
||
|
|
||
|
invoke-interface {v3, v11}, Landroid/database/Cursor;->getColumnIndexOrThrow(Ljava/lang/String;)I
|
||
|
|
||
|
move-result v11
|
||
|
|
||
|
const-string v12, "flex_duration"
|
||
|
|
||
|
invoke-interface {v3, v12}, Landroid/database/Cursor;->getColumnIndexOrThrow(Ljava/lang/String;)I
|
||
|
|
||
|
move-result v12
|
||
|
|
||
|
const-string v13, "run_attempt_count"
|
||
|
|
||
|
invoke-interface {v3, v13}, Landroid/database/Cursor;->getColumnIndexOrThrow(Ljava/lang/String;)I
|
||
|
|
||
|
move-result v13
|
||
|
|
||
|
const-string v14, "backoff_policy"
|
||
|
|
||
|
invoke-interface {v3, v14}, Landroid/database/Cursor;->getColumnIndexOrThrow(Ljava/lang/String;)I
|
||
|
|
||
|
move-result v14
|
||
|
|
||
|
const-string v15, "backoff_delay_duration"
|
||
|
|
||
|
invoke-interface {v3, v15}, Landroid/database/Cursor;->getColumnIndexOrThrow(Ljava/lang/String;)I
|
||
|
|
||
|
move-result v15
|
||
|
|
||
|
const-string v0, "period_start_time"
|
||
|
|
||
|
invoke-interface {v3, v0}, Landroid/database/Cursor;->getColumnIndexOrThrow(Ljava/lang/String;)I
|
||
|
|
||
|
move-result v0
|
||
|
|
||
|
const-string v2, "minimum_retention_duration"
|
||
|
|
||
|
invoke-interface {v3, v2}, Landroid/database/Cursor;->getColumnIndexOrThrow(Ljava/lang/String;)I
|
||
|
|
||
|
move-result v2
|
||
|
:try_end_0
|
||
|
.catchall {:try_start_0 .. :try_end_0} :catchall_1
|
||
|
|
||
|
move-object/from16 v16, v1
|
||
|
|
||
|
:try_start_1
|
||
|
const-string v1, "schedule_requested_at"
|
||
|
|
||
|
invoke-interface {v3, v1}, Landroid/database/Cursor;->getColumnIndexOrThrow(Ljava/lang/String;)I
|
||
|
|
||
|
move-result v1
|
||
|
|
||
|
move/from16 v17, v1
|
||
|
|
||
|
const-string v1, "required_network_type"
|
||
|
|
||
|
invoke-interface {v3, v1}, Landroid/database/Cursor;->getColumnIndexOrThrow(Ljava/lang/String;)I
|
||
|
|
||
|
move-result v1
|
||
|
|
||
|
move/from16 v18, v2
|
||
|
|
||
|
const-string v2, "requires_charging"
|
||
|
|
||
|
invoke-interface {v3, v2}, Landroid/database/Cursor;->getColumnIndexOrThrow(Ljava/lang/String;)I
|
||
|
|
||
|
move-result v2
|
||
|
|
||
|
move/from16 v19, v0
|
||
|
|
||
|
const-string v0, "requires_device_idle"
|
||
|
|
||
|
invoke-interface {v3, v0}, Landroid/database/Cursor;->getColumnIndexOrThrow(Ljava/lang/String;)I
|
||
|
|
||
|
move-result v0
|
||
|
|
||
|
move/from16 v20, v15
|
||
|
|
||
|
const-string v15, "requires_battery_not_low"
|
||
|
|
||
|
invoke-interface {v3, v15}, Landroid/database/Cursor;->getColumnIndexOrThrow(Ljava/lang/String;)I
|
||
|
|
||
|
move-result v15
|
||
|
|
||
|
move/from16 v21, v14
|
||
|
|
||
|
const-string v14, "requires_storage_not_low"
|
||
|
|
||
|
invoke-interface {v3, v14}, Landroid/database/Cursor;->getColumnIndexOrThrow(Ljava/lang/String;)I
|
||
|
|
||
|
move-result v14
|
||
|
|
||
|
move/from16 v22, v13
|
||
|
|
||
|
const-string v13, "trigger_content_update_delay"
|
||
|
|
||
|
invoke-interface {v3, v13}, Landroid/database/Cursor;->getColumnIndexOrThrow(Ljava/lang/String;)I
|
||
|
|
||
|
move-result v13
|
||
|
|
||
|
move/from16 v23, v12
|
||
|
|
||
|
const-string v12, "trigger_max_content_delay"
|
||
|
|
||
|
invoke-interface {v3, v12}, Landroid/database/Cursor;->getColumnIndexOrThrow(Ljava/lang/String;)I
|
||
|
|
||
|
move-result v12
|
||
|
|
||
|
move/from16 v24, v11
|
||
|
|
||
|
const-string v11, "content_uri_triggers"
|
||
|
|
||
|
invoke-interface {v3, v11}, Landroid/database/Cursor;->getColumnIndexOrThrow(Ljava/lang/String;)I
|
||
|
|
||
|
move-result v11
|
||
|
|
||
|
move/from16 v25, v10
|
||
|
|
||
|
new-instance v10, Ljava/util/ArrayList;
|
||
|
|
||
|
move/from16 v26, v9
|
||
|
|
||
|
invoke-interface {v3}, Landroid/database/Cursor;->getCount()I
|
||
|
|
||
|
move-result v9
|
||
|
|
||
|
invoke-direct {v10, v9}, Ljava/util/ArrayList;-><init>(I)V
|
||
|
|
||
|
:goto_0
|
||
|
invoke-interface {v3}, Landroid/database/Cursor;->moveToNext()Z
|
||
|
|
||
|
move-result v9
|
||
|
|
||
|
if-eqz v9, :cond_4
|
||
|
|
||
|
invoke-interface {v3, v4}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;
|
||
|
|
||
|
move-result-object v9
|
||
|
|
||
|
move/from16 v27, v4
|
||
|
|
||
|
invoke-interface {v3, v6}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;
|
||
|
|
||
|
move-result-object v4
|
||
|
|
||
|
move/from16 v28, v6
|
||
|
|
||
|
new-instance v6, Landroidx/work/Constraints;
|
||
|
|
||
|
invoke-direct {v6}, Landroidx/work/Constraints;-><init>()V
|
||
|
|
||
|
invoke-interface {v3, v1}, Landroid/database/Cursor;->getInt(I)I
|
||
|
|
||
|
move-result v29
|
||
|
|
||
|
move/from16 v30, v1
|
||
|
|
||
|
invoke-static/range {v29 .. v29}, Landroidx/work/impl/model/WorkTypeConverters;->intToNetworkType(I)Landroidx/work/NetworkType;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
invoke-virtual {v6, v1}, Landroidx/work/Constraints;->setRequiredNetworkType(Landroidx/work/NetworkType;)V
|
||
|
|
||
|
invoke-interface {v3, v2}, Landroid/database/Cursor;->getInt(I)I
|
||
|
|
||
|
move-result v1
|
||
|
|
||
|
const/16 v29, 0x1
|
||
|
|
||
|
if-eqz v1, :cond_0
|
||
|
|
||
|
const/4 v1, 0x1
|
||
|
|
||
|
goto :goto_1
|
||
|
|
||
|
:cond_0
|
||
|
const/4 v1, 0x0
|
||
|
|
||
|
:goto_1
|
||
|
invoke-virtual {v6, v1}, Landroidx/work/Constraints;->setRequiresCharging(Z)V
|
||
|
|
||
|
invoke-interface {v3, v0}, Landroid/database/Cursor;->getInt(I)I
|
||
|
|
||
|
move-result v1
|
||
|
|
||
|
if-eqz v1, :cond_1
|
||
|
|
||
|
const/4 v1, 0x1
|
||
|
|
||
|
goto :goto_2
|
||
|
|
||
|
:cond_1
|
||
|
const/4 v1, 0x0
|
||
|
|
||
|
:goto_2
|
||
|
invoke-virtual {v6, v1}, Landroidx/work/Constraints;->setRequiresDeviceIdle(Z)V
|
||
|
|
||
|
invoke-interface {v3, v15}, Landroid/database/Cursor;->getInt(I)I
|
||
|
|
||
|
move-result v1
|
||
|
|
||
|
if-eqz v1, :cond_2
|
||
|
|
||
|
const/4 v1, 0x1
|
||
|
|
||
|
goto :goto_3
|
||
|
|
||
|
:cond_2
|
||
|
const/4 v1, 0x0
|
||
|
|
||
|
:goto_3
|
||
|
invoke-virtual {v6, v1}, Landroidx/work/Constraints;->setRequiresBatteryNotLow(Z)V
|
||
|
|
||
|
invoke-interface {v3, v14}, Landroid/database/Cursor;->getInt(I)I
|
||
|
|
||
|
move-result v1
|
||
|
|
||
|
if-eqz v1, :cond_3
|
||
|
|
||
|
const/4 v1, 0x1
|
||
|
|
||
|
goto :goto_4
|
||
|
|
||
|
:cond_3
|
||
|
const/4 v1, 0x0
|
||
|
|
||
|
:goto_4
|
||
|
invoke-virtual {v6, v1}, Landroidx/work/Constraints;->setRequiresStorageNotLow(Z)V
|
||
|
|
||
|
move/from16 v29, v0
|
||
|
|
||
|
invoke-interface {v3, v13}, Landroid/database/Cursor;->getLong(I)J
|
||
|
|
||
|
move-result-wide v0
|
||
|
|
||
|
invoke-virtual {v6, v0, v1}, Landroidx/work/Constraints;->setTriggerContentUpdateDelay(J)V
|
||
|
|
||
|
invoke-interface {v3, v12}, Landroid/database/Cursor;->getLong(I)J
|
||
|
|
||
|
move-result-wide v0
|
||
|
|
||
|
invoke-virtual {v6, v0, v1}, Landroidx/work/Constraints;->setTriggerMaxContentDelay(J)V
|
||
|
|
||
|
invoke-interface {v3, v11}, Landroid/database/Cursor;->getBlob(I)[B
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
invoke-static {v0}, Landroidx/work/impl/model/WorkTypeConverters;->byteArrayToContentUriTriggers([B)Landroidx/work/ContentUriTriggers;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
invoke-virtual {v6, v0}, Landroidx/work/Constraints;->setContentUriTriggers(Landroidx/work/ContentUriTriggers;)V
|
||
|
|
||
|
new-instance v0, Landroidx/work/impl/model/WorkSpec;
|
||
|
|
||
|
invoke-direct {v0, v9, v4}, Landroidx/work/impl/model/WorkSpec;-><init>(Ljava/lang/String;Ljava/lang/String;)V
|
||
|
|
||
|
invoke-interface {v3, v5}, Landroid/database/Cursor;->getInt(I)I
|
||
|
|
||
|
move-result v1
|
||
|
|
||
|
invoke-static {v1}, Landroidx/work/impl/model/WorkTypeConverters;->intToState(I)Landroidx/work/WorkInfo$State;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
iput-object v1, v0, Landroidx/work/impl/model/WorkSpec;->state:Landroidx/work/WorkInfo$State;
|
||
|
|
||
|
invoke-interface {v3, v7}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
iput-object v1, v0, Landroidx/work/impl/model/WorkSpec;->inputMergerClassName:Ljava/lang/String;
|
||
|
|
||
|
invoke-interface {v3, v8}, Landroid/database/Cursor;->getBlob(I)[B
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
invoke-static {v1}, Landroidx/work/Data;->fromByteArray([B)Landroidx/work/Data;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
iput-object v1, v0, Landroidx/work/impl/model/WorkSpec;->input:Landroidx/work/Data;
|
||
|
|
||
|
move/from16 v1, v26
|
||
|
|
||
|
invoke-interface {v3, v1}, Landroid/database/Cursor;->getBlob(I)[B
|
||
|
|
||
|
move-result-object v4
|
||
|
|
||
|
invoke-static {v4}, Landroidx/work/Data;->fromByteArray([B)Landroidx/work/Data;
|
||
|
|
||
|
move-result-object v4
|
||
|
|
||
|
iput-object v4, v0, Landroidx/work/impl/model/WorkSpec;->output:Landroidx/work/Data;
|
||
|
|
||
|
move/from16 v26, v1
|
||
|
|
||
|
move v9, v2
|
||
|
|
||
|
move/from16 v4, v25
|
||
|
|
||
|
invoke-interface {v3, v4}, Landroid/database/Cursor;->getLong(I)J
|
||
|
|
||
|
move-result-wide v1
|
||
|
|
||
|
iput-wide v1, v0, Landroidx/work/impl/model/WorkSpec;->initialDelay:J
|
||
|
|
||
|
move/from16 v25, v4
|
||
|
|
||
|
move v2, v5
|
||
|
|
||
|
move/from16 v1, v24
|
||
|
|
||
|
invoke-interface {v3, v1}, Landroid/database/Cursor;->getLong(I)J
|
||
|
|
||
|
move-result-wide v4
|
||
|
|
||
|
iput-wide v4, v0, Landroidx/work/impl/model/WorkSpec;->intervalDuration:J
|
||
|
|
||
|
move/from16 v24, v1
|
||
|
|
||
|
move v5, v2
|
||
|
|
||
|
move/from16 v4, v23
|
||
|
|
||
|
invoke-interface {v3, v4}, Landroid/database/Cursor;->getLong(I)J
|
||
|
|
||
|
move-result-wide v1
|
||
|
|
||
|
iput-wide v1, v0, Landroidx/work/impl/model/WorkSpec;->flexDuration:J
|
||
|
|
||
|
move/from16 v1, v22
|
||
|
|
||
|
invoke-interface {v3, v1}, Landroid/database/Cursor;->getInt(I)I
|
||
|
|
||
|
move-result v2
|
||
|
|
||
|
iput v2, v0, Landroidx/work/impl/model/WorkSpec;->runAttemptCount:I
|
||
|
|
||
|
move/from16 v2, v21
|
||
|
|
||
|
invoke-interface {v3, v2}, Landroid/database/Cursor;->getInt(I)I
|
||
|
|
||
|
move-result v21
|
||
|
|
||
|
move/from16 v22, v1
|
||
|
|
||
|
invoke-static/range {v21 .. v21}, Landroidx/work/impl/model/WorkTypeConverters;->intToBackoffPolicy(I)Landroidx/work/BackoffPolicy;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
iput-object v1, v0, Landroidx/work/impl/model/WorkSpec;->backoffPolicy:Landroidx/work/BackoffPolicy;
|
||
|
|
||
|
move/from16 v23, v4
|
||
|
|
||
|
move/from16 v1, v20
|
||
|
|
||
|
move/from16 v20, v5
|
||
|
|
||
|
invoke-interface {v3, v1}, Landroid/database/Cursor;->getLong(I)J
|
||
|
|
||
|
move-result-wide v4
|
||
|
|
||
|
iput-wide v4, v0, Landroidx/work/impl/model/WorkSpec;->backoffDelayDuration:J
|
||
|
|
||
|
move v5, v1
|
||
|
|
||
|
move/from16 v21, v2
|
||
|
|
||
|
move/from16 v4, v19
|
||
|
|
||
|
invoke-interface {v3, v4}, Landroid/database/Cursor;->getLong(I)J
|
||
|
|
||
|
move-result-wide v1
|
||
|
|
||
|
iput-wide v1, v0, Landroidx/work/impl/model/WorkSpec;->periodStartTime:J
|
||
|
|
||
|
move/from16 v19, v4
|
||
|
|
||
|
move v2, v5
|
||
|
|
||
|
move/from16 v1, v18
|
||
|
|
||
|
invoke-interface {v3, v1}, Landroid/database/Cursor;->getLong(I)J
|
||
|
|
||
|
move-result-wide v4
|
||
|
|
||
|
iput-wide v4, v0, Landroidx/work/impl/model/WorkSpec;->minimumRetentionDuration:J
|
||
|
|
||
|
move/from16 v18, v1
|
||
|
|
||
|
move v5, v2
|
||
|
|
||
|
move/from16 v4, v17
|
||
|
|
||
|
invoke-interface {v3, v4}, Landroid/database/Cursor;->getLong(I)J
|
||
|
|
||
|
move-result-wide v1
|
||
|
|
||
|
iput-wide v1, v0, Landroidx/work/impl/model/WorkSpec;->scheduleRequestedAt:J
|
||
|
|
||
|
iput-object v6, v0, Landroidx/work/impl/model/WorkSpec;->constraints:Landroidx/work/Constraints;
|
||
|
|
||
|
invoke-interface {v10, v0}, Ljava/util/List;->add(Ljava/lang/Object;)Z
|
||
|
:try_end_1
|
||
|
.catchall {:try_start_1 .. :try_end_1} :catchall_0
|
||
|
|
||
|
move/from16 v17, v4
|
||
|
|
||
|
move v2, v9
|
||
|
|
||
|
move/from16 v4, v27
|
||
|
|
||
|
move/from16 v6, v28
|
||
|
|
||
|
move/from16 v0, v29
|
||
|
|
||
|
move/from16 v1, v30
|
||
|
|
||
|
move/from16 v31, v20
|
||
|
|
||
|
move/from16 v20, v5
|
||
|
|
||
|
move/from16 v5, v31
|
||
|
|
||
|
goto/16 :goto_0
|
||
|
|
||
|
:cond_4
|
||
|
invoke-interface {v3}, Landroid/database/Cursor;->close()V
|
||
|
|
||
|
invoke-virtual/range {v16 .. v16}, Landroidx/room/RoomSQLiteQuery;->release()V
|
||
|
|
||
|
return-object v10
|
||
|
|
||
|
:catchall_0
|
||
|
move-exception v0
|
||
|
|
||
|
goto :goto_5
|
||
|
|
||
|
:catchall_1
|
||
|
move-exception v0
|
||
|
|
||
|
move-object/from16 v16, v1
|
||
|
|
||
|
:goto_5
|
||
|
invoke-interface {v3}, Landroid/database/Cursor;->close()V
|
||
|
|
||
|
invoke-virtual/range {v16 .. v16}, Landroidx/room/RoomSQLiteQuery;->release()V
|
||
|
|
||
|
goto :goto_7
|
||
|
|
||
|
:goto_6
|
||
|
throw v0
|
||
|
|
||
|
:goto_7
|
||
|
goto :goto_6
|
||
|
.end method
|
||
|
|
||
|
.method public getState(Ljava/lang/String;)Landroidx/work/WorkInfo$State;
|
||
|
.locals 2
|
||
|
|
||
|
const/4 v0, 0x1
|
||
|
|
||
|
const-string v1, "SELECT state FROM workspec WHERE id=?"
|
||
|
|
||
|
invoke-static {v1, v0}, Landroidx/room/RoomSQLiteQuery;->acquire(Ljava/lang/String;I)Landroidx/room/RoomSQLiteQuery;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
if-nez p1, :cond_0
|
||
|
|
||
|
invoke-virtual {v1, v0}, Landroidx/room/RoomSQLiteQuery;->bindNull(I)V
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:cond_0
|
||
|
invoke-virtual {v1, v0, p1}, Landroidx/room/RoomSQLiteQuery;->bindString(ILjava/lang/String;)V
|
||
|
|
||
|
:goto_0
|
||
|
iget-object p1, p0, Landroidx/work/impl/model/WorkSpecDao_Impl;->__db:Landroidx/room/RoomDatabase;
|
||
|
|
||
|
invoke-virtual {p1, v1}, Landroidx/room/RoomDatabase;->query(Landroidx/sqlite/db/SupportSQLiteQuery;)Landroid/database/Cursor;
|
||
|
|
||
|
move-result-object p1
|
||
|
|
||
|
:try_start_0
|
||
|
invoke-interface {p1}, Landroid/database/Cursor;->moveToFirst()Z
|
||
|
|
||
|
move-result v0
|
||
|
|
||
|
if-eqz v0, :cond_1
|
||
|
|
||
|
const/4 v0, 0x0
|
||
|
|
||
|
invoke-interface {p1, v0}, Landroid/database/Cursor;->getInt(I)I
|
||
|
|
||
|
move-result v0
|
||
|
|
||
|
invoke-static {v0}, Landroidx/work/impl/model/WorkTypeConverters;->intToState(I)Landroidx/work/WorkInfo$State;
|
||
|
|
||
|
move-result-object v0
|
||
|
:try_end_0
|
||
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
||
|
|
||
|
goto :goto_1
|
||
|
|
||
|
:cond_1
|
||
|
const/4 v0, 0x0
|
||
|
|
||
|
:goto_1
|
||
|
invoke-interface {p1}, Landroid/database/Cursor;->close()V
|
||
|
|
||
|
invoke-virtual {v1}, Landroidx/room/RoomSQLiteQuery;->release()V
|
||
|
|
||
|
return-object v0
|
||
|
|
||
|
:catchall_0
|
||
|
move-exception v0
|
||
|
|
||
|
invoke-interface {p1}, Landroid/database/Cursor;->close()V
|
||
|
|
||
|
invoke-virtual {v1}, Landroidx/room/RoomSQLiteQuery;->release()V
|
||
|
|
||
|
throw v0
|
||
|
.end method
|
||
|
|
||
|
.method public getUnfinishedWorkWithName(Ljava/lang/String;)Ljava/util/List;
|
||
|
.locals 3
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"(",
|
||
|
"Ljava/lang/String;",
|
||
|
")",
|
||
|
"Ljava/util/List<",
|
||
|
"Ljava/lang/String;",
|
||
|
">;"
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
const/4 v0, 0x1
|
||
|
|
||
|
const-string v1, "SELECT id FROM workspec WHERE state NOT IN (2, 3, 5) AND id IN (SELECT work_spec_id FROM workname WHERE name=?)"
|
||
|
|
||
|
invoke-static {v1, v0}, Landroidx/room/RoomSQLiteQuery;->acquire(Ljava/lang/String;I)Landroidx/room/RoomSQLiteQuery;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
if-nez p1, :cond_0
|
||
|
|
||
|
invoke-virtual {v1, v0}, Landroidx/room/RoomSQLiteQuery;->bindNull(I)V
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:cond_0
|
||
|
invoke-virtual {v1, v0, p1}, Landroidx/room/RoomSQLiteQuery;->bindString(ILjava/lang/String;)V
|
||
|
|
||
|
:goto_0
|
||
|
iget-object p1, p0, Landroidx/work/impl/model/WorkSpecDao_Impl;->__db:Landroidx/room/RoomDatabase;
|
||
|
|
||
|
invoke-virtual {p1, v1}, Landroidx/room/RoomDatabase;->query(Landroidx/sqlite/db/SupportSQLiteQuery;)Landroid/database/Cursor;
|
||
|
|
||
|
move-result-object p1
|
||
|
|
||
|
:try_start_0
|
||
|
new-instance v0, Ljava/util/ArrayList;
|
||
|
|
||
|
invoke-interface {p1}, Landroid/database/Cursor;->getCount()I
|
||
|
|
||
|
move-result v2
|
||
|
|
||
|
invoke-direct {v0, v2}, Ljava/util/ArrayList;-><init>(I)V
|
||
|
|
||
|
:goto_1
|
||
|
invoke-interface {p1}, Landroid/database/Cursor;->moveToNext()Z
|
||
|
|
||
|
move-result v2
|
||
|
|
||
|
if-eqz v2, :cond_1
|
||
|
|
||
|
const/4 v2, 0x0
|
||
|
|
||
|
invoke-interface {p1, v2}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;
|
||
|
|
||
|
move-result-object v2
|
||
|
|
||
|
invoke-interface {v0, v2}, Ljava/util/List;->add(Ljava/lang/Object;)Z
|
||
|
:try_end_0
|
||
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
||
|
|
||
|
goto :goto_1
|
||
|
|
||
|
:cond_1
|
||
|
invoke-interface {p1}, Landroid/database/Cursor;->close()V
|
||
|
|
||
|
invoke-virtual {v1}, Landroidx/room/RoomSQLiteQuery;->release()V
|
||
|
|
||
|
return-object v0
|
||
|
|
||
|
:catchall_0
|
||
|
move-exception v0
|
||
|
|
||
|
invoke-interface {p1}, Landroid/database/Cursor;->close()V
|
||
|
|
||
|
invoke-virtual {v1}, Landroidx/room/RoomSQLiteQuery;->release()V
|
||
|
|
||
|
goto :goto_3
|
||
|
|
||
|
:goto_2
|
||
|
throw v0
|
||
|
|
||
|
:goto_3
|
||
|
goto :goto_2
|
||
|
.end method
|
||
|
|
||
|
.method public getUnfinishedWorkWithTag(Ljava/lang/String;)Ljava/util/List;
|
||
|
.locals 3
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"(",
|
||
|
"Ljava/lang/String;",
|
||
|
")",
|
||
|
"Ljava/util/List<",
|
||
|
"Ljava/lang/String;",
|
||
|
">;"
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
const/4 v0, 0x1
|
||
|
|
||
|
const-string v1, "SELECT id FROM workspec WHERE state NOT IN (2, 3, 5) AND id IN (SELECT work_spec_id FROM worktag WHERE tag=?)"
|
||
|
|
||
|
invoke-static {v1, v0}, Landroidx/room/RoomSQLiteQuery;->acquire(Ljava/lang/String;I)Landroidx/room/RoomSQLiteQuery;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
if-nez p1, :cond_0
|
||
|
|
||
|
invoke-virtual {v1, v0}, Landroidx/room/RoomSQLiteQuery;->bindNull(I)V
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:cond_0
|
||
|
invoke-virtual {v1, v0, p1}, Landroidx/room/RoomSQLiteQuery;->bindString(ILjava/lang/String;)V
|
||
|
|
||
|
:goto_0
|
||
|
iget-object p1, p0, Landroidx/work/impl/model/WorkSpecDao_Impl;->__db:Landroidx/room/RoomDatabase;
|
||
|
|
||
|
invoke-virtual {p1, v1}, Landroidx/room/RoomDatabase;->query(Landroidx/sqlite/db/SupportSQLiteQuery;)Landroid/database/Cursor;
|
||
|
|
||
|
move-result-object p1
|
||
|
|
||
|
:try_start_0
|
||
|
new-instance v0, Ljava/util/ArrayList;
|
||
|
|
||
|
invoke-interface {p1}, Landroid/database/Cursor;->getCount()I
|
||
|
|
||
|
move-result v2
|
||
|
|
||
|
invoke-direct {v0, v2}, Ljava/util/ArrayList;-><init>(I)V
|
||
|
|
||
|
:goto_1
|
||
|
invoke-interface {p1}, Landroid/database/Cursor;->moveToNext()Z
|
||
|
|
||
|
move-result v2
|
||
|
|
||
|
if-eqz v2, :cond_1
|
||
|
|
||
|
const/4 v2, 0x0
|
||
|
|
||
|
invoke-interface {p1, v2}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;
|
||
|
|
||
|
move-result-object v2
|
||
|
|
||
|
invoke-interface {v0, v2}, Ljava/util/List;->add(Ljava/lang/Object;)Z
|
||
|
:try_end_0
|
||
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
||
|
|
||
|
goto :goto_1
|
||
|
|
||
|
:cond_1
|
||
|
invoke-interface {p1}, Landroid/database/Cursor;->close()V
|
||
|
|
||
|
invoke-virtual {v1}, Landroidx/room/RoomSQLiteQuery;->release()V
|
||
|
|
||
|
return-object v0
|
||
|
|
||
|
:catchall_0
|
||
|
move-exception v0
|
||
|
|
||
|
invoke-interface {p1}, Landroid/database/Cursor;->close()V
|
||
|
|
||
|
invoke-virtual {v1}, Landroidx/room/RoomSQLiteQuery;->release()V
|
||
|
|
||
|
goto :goto_3
|
||
|
|
||
|
:goto_2
|
||
|
throw v0
|
||
|
|
||
|
:goto_3
|
||
|
goto :goto_2
|
||
|
.end method
|
||
|
|
||
|
.method public getWorkSpec(Ljava/lang/String;)Landroidx/work/impl/model/WorkSpec;
|
||
|
.locals 25
|
||
|
|
||
|
move-object/from16 v0, p1
|
||
|
|
||
|
const/4 v1, 0x1
|
||
|
|
||
|
const-string v2, "SELECT * FROM workspec WHERE id=?"
|
||
|
|
||
|
invoke-static {v2, v1}, Landroidx/room/RoomSQLiteQuery;->acquire(Ljava/lang/String;I)Landroidx/room/RoomSQLiteQuery;
|
||
|
|
||
|
move-result-object v2
|
||
|
|
||
|
if-nez v0, :cond_0
|
||
|
|
||
|
invoke-virtual {v2, v1}, Landroidx/room/RoomSQLiteQuery;->bindNull(I)V
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:cond_0
|
||
|
invoke-virtual {v2, v1, v0}, Landroidx/room/RoomSQLiteQuery;->bindString(ILjava/lang/String;)V
|
||
|
|
||
|
:goto_0
|
||
|
move-object/from16 v3, p0
|
||
|
|
||
|
iget-object v0, v3, Landroidx/work/impl/model/WorkSpecDao_Impl;->__db:Landroidx/room/RoomDatabase;
|
||
|
|
||
|
invoke-virtual {v0, v2}, Landroidx/room/RoomDatabase;->query(Landroidx/sqlite/db/SupportSQLiteQuery;)Landroid/database/Cursor;
|
||
|
|
||
|
move-result-object v4
|
||
|
|
||
|
:try_start_0
|
||
|
const-string v0, "id"
|
||
|
|
||
|
invoke-interface {v4, v0}, Landroid/database/Cursor;->getColumnIndexOrThrow(Ljava/lang/String;)I
|
||
|
|
||
|
move-result v0
|
||
|
|
||
|
const-string v5, "state"
|
||
|
|
||
|
invoke-interface {v4, v5}, Landroid/database/Cursor;->getColumnIndexOrThrow(Ljava/lang/String;)I
|
||
|
|
||
|
move-result v5
|
||
|
|
||
|
const-string v6, "worker_class_name"
|
||
|
|
||
|
invoke-interface {v4, v6}, Landroid/database/Cursor;->getColumnIndexOrThrow(Ljava/lang/String;)I
|
||
|
|
||
|
move-result v6
|
||
|
|
||
|
const-string v7, "input_merger_class_name"
|
||
|
|
||
|
invoke-interface {v4, v7}, Landroid/database/Cursor;->getColumnIndexOrThrow(Ljava/lang/String;)I
|
||
|
|
||
|
move-result v7
|
||
|
|
||
|
const-string v8, "input"
|
||
|
|
||
|
invoke-interface {v4, v8}, Landroid/database/Cursor;->getColumnIndexOrThrow(Ljava/lang/String;)I
|
||
|
|
||
|
move-result v8
|
||
|
|
||
|
const-string v9, "output"
|
||
|
|
||
|
invoke-interface {v4, v9}, Landroid/database/Cursor;->getColumnIndexOrThrow(Ljava/lang/String;)I
|
||
|
|
||
|
move-result v9
|
||
|
|
||
|
const-string v10, "initial_delay"
|
||
|
|
||
|
invoke-interface {v4, v10}, Landroid/database/Cursor;->getColumnIndexOrThrow(Ljava/lang/String;)I
|
||
|
|
||
|
move-result v10
|
||
|
|
||
|
const-string v11, "interval_duration"
|
||
|
|
||
|
invoke-interface {v4, v11}, Landroid/database/Cursor;->getColumnIndexOrThrow(Ljava/lang/String;)I
|
||
|
|
||
|
move-result v11
|
||
|
|
||
|
const-string v12, "flex_duration"
|
||
|
|
||
|
invoke-interface {v4, v12}, Landroid/database/Cursor;->getColumnIndexOrThrow(Ljava/lang/String;)I
|
||
|
|
||
|
move-result v12
|
||
|
|
||
|
const-string v13, "run_attempt_count"
|
||
|
|
||
|
invoke-interface {v4, v13}, Landroid/database/Cursor;->getColumnIndexOrThrow(Ljava/lang/String;)I
|
||
|
|
||
|
move-result v13
|
||
|
|
||
|
const-string v14, "backoff_policy"
|
||
|
|
||
|
invoke-interface {v4, v14}, Landroid/database/Cursor;->getColumnIndexOrThrow(Ljava/lang/String;)I
|
||
|
|
||
|
move-result v14
|
||
|
|
||
|
const-string v15, "backoff_delay_duration"
|
||
|
|
||
|
invoke-interface {v4, v15}, Landroid/database/Cursor;->getColumnIndexOrThrow(Ljava/lang/String;)I
|
||
|
|
||
|
move-result v15
|
||
|
|
||
|
const-string v1, "period_start_time"
|
||
|
|
||
|
invoke-interface {v4, v1}, Landroid/database/Cursor;->getColumnIndexOrThrow(Ljava/lang/String;)I
|
||
|
|
||
|
move-result v1
|
||
|
|
||
|
const-string v3, "minimum_retention_duration"
|
||
|
|
||
|
invoke-interface {v4, v3}, Landroid/database/Cursor;->getColumnIndexOrThrow(Ljava/lang/String;)I
|
||
|
|
||
|
move-result v3
|
||
|
:try_end_0
|
||
|
.catchall {:try_start_0 .. :try_end_0} :catchall_1
|
||
|
|
||
|
move-object/from16 v16, v2
|
||
|
|
||
|
:try_start_1
|
||
|
const-string v2, "schedule_requested_at"
|
||
|
|
||
|
invoke-interface {v4, v2}, Landroid/database/Cursor;->getColumnIndexOrThrow(Ljava/lang/String;)I
|
||
|
|
||
|
move-result v2
|
||
|
|
||
|
move/from16 p1, v2
|
||
|
|
||
|
const-string v2, "required_network_type"
|
||
|
|
||
|
invoke-interface {v4, v2}, Landroid/database/Cursor;->getColumnIndexOrThrow(Ljava/lang/String;)I
|
||
|
|
||
|
move-result v2
|
||
|
|
||
|
move/from16 v17, v3
|
||
|
|
||
|
const-string v3, "requires_charging"
|
||
|
|
||
|
invoke-interface {v4, v3}, Landroid/database/Cursor;->getColumnIndexOrThrow(Ljava/lang/String;)I
|
||
|
|
||
|
move-result v3
|
||
|
|
||
|
move/from16 v18, v1
|
||
|
|
||
|
const-string v1, "requires_device_idle"
|
||
|
|
||
|
invoke-interface {v4, v1}, Landroid/database/Cursor;->getColumnIndexOrThrow(Ljava/lang/String;)I
|
||
|
|
||
|
move-result v1
|
||
|
|
||
|
move/from16 v19, v15
|
||
|
|
||
|
const-string v15, "requires_battery_not_low"
|
||
|
|
||
|
invoke-interface {v4, v15}, Landroid/database/Cursor;->getColumnIndexOrThrow(Ljava/lang/String;)I
|
||
|
|
||
|
move-result v15
|
||
|
|
||
|
move/from16 v20, v14
|
||
|
|
||
|
const-string v14, "requires_storage_not_low"
|
||
|
|
||
|
invoke-interface {v4, v14}, Landroid/database/Cursor;->getColumnIndexOrThrow(Ljava/lang/String;)I
|
||
|
|
||
|
move-result v14
|
||
|
|
||
|
move/from16 v21, v13
|
||
|
|
||
|
const-string v13, "trigger_content_update_delay"
|
||
|
|
||
|
invoke-interface {v4, v13}, Landroid/database/Cursor;->getColumnIndexOrThrow(Ljava/lang/String;)I
|
||
|
|
||
|
move-result v13
|
||
|
|
||
|
move/from16 v22, v12
|
||
|
|
||
|
const-string v12, "trigger_max_content_delay"
|
||
|
|
||
|
invoke-interface {v4, v12}, Landroid/database/Cursor;->getColumnIndexOrThrow(Ljava/lang/String;)I
|
||
|
|
||
|
move-result v12
|
||
|
|
||
|
move/from16 v23, v11
|
||
|
|
||
|
const-string v11, "content_uri_triggers"
|
||
|
|
||
|
invoke-interface {v4, v11}, Landroid/database/Cursor;->getColumnIndexOrThrow(Ljava/lang/String;)I
|
||
|
|
||
|
move-result v11
|
||
|
|
||
|
invoke-interface {v4}, Landroid/database/Cursor;->moveToFirst()Z
|
||
|
|
||
|
move-result v24
|
||
|
|
||
|
if-eqz v24, :cond_5
|
||
|
|
||
|
invoke-interface {v4, v0}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
invoke-interface {v4, v6}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;
|
||
|
|
||
|
move-result-object v6
|
||
|
|
||
|
move/from16 v24, v10
|
||
|
|
||
|
new-instance v10, Landroidx/work/Constraints;
|
||
|
|
||
|
invoke-direct {v10}, Landroidx/work/Constraints;-><init>()V
|
||
|
|
||
|
invoke-interface {v4, v2}, Landroid/database/Cursor;->getInt(I)I
|
||
|
|
||
|
move-result v2
|
||
|
|
||
|
invoke-static {v2}, Landroidx/work/impl/model/WorkTypeConverters;->intToNetworkType(I)Landroidx/work/NetworkType;
|
||
|
|
||
|
move-result-object v2
|
||
|
|
||
|
invoke-virtual {v10, v2}, Landroidx/work/Constraints;->setRequiredNetworkType(Landroidx/work/NetworkType;)V
|
||
|
|
||
|
invoke-interface {v4, v3}, Landroid/database/Cursor;->getInt(I)I
|
||
|
|
||
|
move-result v2
|
||
|
|
||
|
const/4 v3, 0x0
|
||
|
|
||
|
if-eqz v2, :cond_1
|
||
|
|
||
|
const/4 v2, 0x1
|
||
|
|
||
|
goto :goto_1
|
||
|
|
||
|
:cond_1
|
||
|
const/4 v2, 0x0
|
||
|
|
||
|
:goto_1
|
||
|
invoke-virtual {v10, v2}, Landroidx/work/Constraints;->setRequiresCharging(Z)V
|
||
|
|
||
|
invoke-interface {v4, v1}, Landroid/database/Cursor;->getInt(I)I
|
||
|
|
||
|
move-result v1
|
||
|
|
||
|
if-eqz v1, :cond_2
|
||
|
|
||
|
const/4 v1, 0x1
|
||
|
|
||
|
goto :goto_2
|
||
|
|
||
|
:cond_2
|
||
|
const/4 v1, 0x0
|
||
|
|
||
|
:goto_2
|
||
|
invoke-virtual {v10, v1}, Landroidx/work/Constraints;->setRequiresDeviceIdle(Z)V
|
||
|
|
||
|
invoke-interface {v4, v15}, Landroid/database/Cursor;->getInt(I)I
|
||
|
|
||
|
move-result v1
|
||
|
|
||
|
if-eqz v1, :cond_3
|
||
|
|
||
|
const/4 v1, 0x1
|
||
|
|
||
|
goto :goto_3
|
||
|
|
||
|
:cond_3
|
||
|
const/4 v1, 0x0
|
||
|
|
||
|
:goto_3
|
||
|
invoke-virtual {v10, v1}, Landroidx/work/Constraints;->setRequiresBatteryNotLow(Z)V
|
||
|
|
||
|
invoke-interface {v4, v14}, Landroid/database/Cursor;->getInt(I)I
|
||
|
|
||
|
move-result v1
|
||
|
|
||
|
if-eqz v1, :cond_4
|
||
|
|
||
|
const/4 v3, 0x1
|
||
|
|
||
|
:cond_4
|
||
|
invoke-virtual {v10, v3}, Landroidx/work/Constraints;->setRequiresStorageNotLow(Z)V
|
||
|
|
||
|
invoke-interface {v4, v13}, Landroid/database/Cursor;->getLong(I)J
|
||
|
|
||
|
move-result-wide v1
|
||
|
|
||
|
invoke-virtual {v10, v1, v2}, Landroidx/work/Constraints;->setTriggerContentUpdateDelay(J)V
|
||
|
|
||
|
invoke-interface {v4, v12}, Landroid/database/Cursor;->getLong(I)J
|
||
|
|
||
|
move-result-wide v1
|
||
|
|
||
|
invoke-virtual {v10, v1, v2}, Landroidx/work/Constraints;->setTriggerMaxContentDelay(J)V
|
||
|
|
||
|
invoke-interface {v4, v11}, Landroid/database/Cursor;->getBlob(I)[B
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
invoke-static {v1}, Landroidx/work/impl/model/WorkTypeConverters;->byteArrayToContentUriTriggers([B)Landroidx/work/ContentUriTriggers;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
invoke-virtual {v10, v1}, Landroidx/work/Constraints;->setContentUriTriggers(Landroidx/work/ContentUriTriggers;)V
|
||
|
|
||
|
new-instance v1, Landroidx/work/impl/model/WorkSpec;
|
||
|
|
||
|
invoke-direct {v1, v0, v6}, Landroidx/work/impl/model/WorkSpec;-><init>(Ljava/lang/String;Ljava/lang/String;)V
|
||
|
|
||
|
invoke-interface {v4, v5}, Landroid/database/Cursor;->getInt(I)I
|
||
|
|
||
|
move-result v0
|
||
|
|
||
|
invoke-static {v0}, Landroidx/work/impl/model/WorkTypeConverters;->intToState(I)Landroidx/work/WorkInfo$State;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
iput-object v0, v1, Landroidx/work/impl/model/WorkSpec;->state:Landroidx/work/WorkInfo$State;
|
||
|
|
||
|
invoke-interface {v4, v7}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
iput-object v0, v1, Landroidx/work/impl/model/WorkSpec;->inputMergerClassName:Ljava/lang/String;
|
||
|
|
||
|
invoke-interface {v4, v8}, Landroid/database/Cursor;->getBlob(I)[B
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
invoke-static {v0}, Landroidx/work/Data;->fromByteArray([B)Landroidx/work/Data;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
iput-object v0, v1, Landroidx/work/impl/model/WorkSpec;->input:Landroidx/work/Data;
|
||
|
|
||
|
invoke-interface {v4, v9}, Landroid/database/Cursor;->getBlob(I)[B
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
invoke-static {v0}, Landroidx/work/Data;->fromByteArray([B)Landroidx/work/Data;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
iput-object v0, v1, Landroidx/work/impl/model/WorkSpec;->output:Landroidx/work/Data;
|
||
|
|
||
|
move/from16 v0, v24
|
||
|
|
||
|
invoke-interface {v4, v0}, Landroid/database/Cursor;->getLong(I)J
|
||
|
|
||
|
move-result-wide v2
|
||
|
|
||
|
iput-wide v2, v1, Landroidx/work/impl/model/WorkSpec;->initialDelay:J
|
||
|
|
||
|
move/from16 v0, v23
|
||
|
|
||
|
invoke-interface {v4, v0}, Landroid/database/Cursor;->getLong(I)J
|
||
|
|
||
|
move-result-wide v2
|
||
|
|
||
|
iput-wide v2, v1, Landroidx/work/impl/model/WorkSpec;->intervalDuration:J
|
||
|
|
||
|
move/from16 v0, v22
|
||
|
|
||
|
invoke-interface {v4, v0}, Landroid/database/Cursor;->getLong(I)J
|
||
|
|
||
|
move-result-wide v2
|
||
|
|
||
|
iput-wide v2, v1, Landroidx/work/impl/model/WorkSpec;->flexDuration:J
|
||
|
|
||
|
move/from16 v0, v21
|
||
|
|
||
|
invoke-interface {v4, v0}, Landroid/database/Cursor;->getInt(I)I
|
||
|
|
||
|
move-result v0
|
||
|
|
||
|
iput v0, v1, Landroidx/work/impl/model/WorkSpec;->runAttemptCount:I
|
||
|
|
||
|
move/from16 v0, v20
|
||
|
|
||
|
invoke-interface {v4, v0}, Landroid/database/Cursor;->getInt(I)I
|
||
|
|
||
|
move-result v0
|
||
|
|
||
|
invoke-static {v0}, Landroidx/work/impl/model/WorkTypeConverters;->intToBackoffPolicy(I)Landroidx/work/BackoffPolicy;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
iput-object v0, v1, Landroidx/work/impl/model/WorkSpec;->backoffPolicy:Landroidx/work/BackoffPolicy;
|
||
|
|
||
|
move/from16 v0, v19
|
||
|
|
||
|
invoke-interface {v4, v0}, Landroid/database/Cursor;->getLong(I)J
|
||
|
|
||
|
move-result-wide v2
|
||
|
|
||
|
iput-wide v2, v1, Landroidx/work/impl/model/WorkSpec;->backoffDelayDuration:J
|
||
|
|
||
|
move/from16 v0, v18
|
||
|
|
||
|
invoke-interface {v4, v0}, Landroid/database/Cursor;->getLong(I)J
|
||
|
|
||
|
move-result-wide v2
|
||
|
|
||
|
iput-wide v2, v1, Landroidx/work/impl/model/WorkSpec;->periodStartTime:J
|
||
|
|
||
|
move/from16 v0, v17
|
||
|
|
||
|
invoke-interface {v4, v0}, Landroid/database/Cursor;->getLong(I)J
|
||
|
|
||
|
move-result-wide v2
|
||
|
|
||
|
iput-wide v2, v1, Landroidx/work/impl/model/WorkSpec;->minimumRetentionDuration:J
|
||
|
|
||
|
move/from16 v0, p1
|
||
|
|
||
|
invoke-interface {v4, v0}, Landroid/database/Cursor;->getLong(I)J
|
||
|
|
||
|
move-result-wide v2
|
||
|
|
||
|
iput-wide v2, v1, Landroidx/work/impl/model/WorkSpec;->scheduleRequestedAt:J
|
||
|
|
||
|
iput-object v10, v1, Landroidx/work/impl/model/WorkSpec;->constraints:Landroidx/work/Constraints;
|
||
|
:try_end_1
|
||
|
.catchall {:try_start_1 .. :try_end_1} :catchall_0
|
||
|
|
||
|
goto :goto_4
|
||
|
|
||
|
:cond_5
|
||
|
const/4 v1, 0x0
|
||
|
|
||
|
:goto_4
|
||
|
invoke-interface {v4}, Landroid/database/Cursor;->close()V
|
||
|
|
||
|
invoke-virtual/range {v16 .. v16}, Landroidx/room/RoomSQLiteQuery;->release()V
|
||
|
|
||
|
return-object v1
|
||
|
|
||
|
:catchall_0
|
||
|
move-exception v0
|
||
|
|
||
|
goto :goto_5
|
||
|
|
||
|
:catchall_1
|
||
|
move-exception v0
|
||
|
|
||
|
move-object/from16 v16, v2
|
||
|
|
||
|
:goto_5
|
||
|
invoke-interface {v4}, Landroid/database/Cursor;->close()V
|
||
|
|
||
|
invoke-virtual/range {v16 .. v16}, Landroidx/room/RoomSQLiteQuery;->release()V
|
||
|
|
||
|
throw v0
|
||
|
.end method
|
||
|
|
||
|
.method public getWorkSpecIdAndStatesForName(Ljava/lang/String;)Ljava/util/List;
|
||
|
.locals 6
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"(",
|
||
|
"Ljava/lang/String;",
|
||
|
")",
|
||
|
"Ljava/util/List<",
|
||
|
"Landroidx/work/impl/model/WorkSpec$IdAndState;",
|
||
|
">;"
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
const/4 v0, 0x1
|
||
|
|
||
|
const-string v1, "SELECT id, state FROM workspec WHERE id IN (SELECT work_spec_id FROM workname WHERE name=?)"
|
||
|
|
||
|
invoke-static {v1, v0}, Landroidx/room/RoomSQLiteQuery;->acquire(Ljava/lang/String;I)Landroidx/room/RoomSQLiteQuery;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
if-nez p1, :cond_0
|
||
|
|
||
|
invoke-virtual {v1, v0}, Landroidx/room/RoomSQLiteQuery;->bindNull(I)V
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:cond_0
|
||
|
invoke-virtual {v1, v0, p1}, Landroidx/room/RoomSQLiteQuery;->bindString(ILjava/lang/String;)V
|
||
|
|
||
|
:goto_0
|
||
|
iget-object p1, p0, Landroidx/work/impl/model/WorkSpecDao_Impl;->__db:Landroidx/room/RoomDatabase;
|
||
|
|
||
|
invoke-virtual {p1, v1}, Landroidx/room/RoomDatabase;->query(Landroidx/sqlite/db/SupportSQLiteQuery;)Landroid/database/Cursor;
|
||
|
|
||
|
move-result-object p1
|
||
|
|
||
|
:try_start_0
|
||
|
const-string v0, "id"
|
||
|
|
||
|
invoke-interface {p1, v0}, Landroid/database/Cursor;->getColumnIndexOrThrow(Ljava/lang/String;)I
|
||
|
|
||
|
move-result v0
|
||
|
|
||
|
const-string v2, "state"
|
||
|
|
||
|
invoke-interface {p1, v2}, Landroid/database/Cursor;->getColumnIndexOrThrow(Ljava/lang/String;)I
|
||
|
|
||
|
move-result v2
|
||
|
|
||
|
new-instance v3, Ljava/util/ArrayList;
|
||
|
|
||
|
invoke-interface {p1}, Landroid/database/Cursor;->getCount()I
|
||
|
|
||
|
move-result v4
|
||
|
|
||
|
invoke-direct {v3, v4}, Ljava/util/ArrayList;-><init>(I)V
|
||
|
|
||
|
:goto_1
|
||
|
invoke-interface {p1}, Landroid/database/Cursor;->moveToNext()Z
|
||
|
|
||
|
move-result v4
|
||
|
|
||
|
if-eqz v4, :cond_1
|
||
|
|
||
|
new-instance v4, Landroidx/work/impl/model/WorkSpec$IdAndState;
|
||
|
|
||
|
invoke-direct {v4}, Landroidx/work/impl/model/WorkSpec$IdAndState;-><init>()V
|
||
|
|
||
|
invoke-interface {p1, v0}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;
|
||
|
|
||
|
move-result-object v5
|
||
|
|
||
|
iput-object v5, v4, Landroidx/work/impl/model/WorkSpec$IdAndState;->id:Ljava/lang/String;
|
||
|
|
||
|
invoke-interface {p1, v2}, Landroid/database/Cursor;->getInt(I)I
|
||
|
|
||
|
move-result v5
|
||
|
|
||
|
invoke-static {v5}, Landroidx/work/impl/model/WorkTypeConverters;->intToState(I)Landroidx/work/WorkInfo$State;
|
||
|
|
||
|
move-result-object v5
|
||
|
|
||
|
iput-object v5, v4, Landroidx/work/impl/model/WorkSpec$IdAndState;->state:Landroidx/work/WorkInfo$State;
|
||
|
|
||
|
invoke-interface {v3, v4}, Ljava/util/List;->add(Ljava/lang/Object;)Z
|
||
|
:try_end_0
|
||
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
||
|
|
||
|
goto :goto_1
|
||
|
|
||
|
:cond_1
|
||
|
invoke-interface {p1}, Landroid/database/Cursor;->close()V
|
||
|
|
||
|
invoke-virtual {v1}, Landroidx/room/RoomSQLiteQuery;->release()V
|
||
|
|
||
|
return-object v3
|
||
|
|
||
|
:catchall_0
|
||
|
move-exception v0
|
||
|
|
||
|
invoke-interface {p1}, Landroid/database/Cursor;->close()V
|
||
|
|
||
|
invoke-virtual {v1}, Landroidx/room/RoomSQLiteQuery;->release()V
|
||
|
|
||
|
goto :goto_3
|
||
|
|
||
|
:goto_2
|
||
|
throw v0
|
||
|
|
||
|
:goto_3
|
||
|
goto :goto_2
|
||
|
.end method
|
||
|
|
||
|
.method public getWorkSpecs(Ljava/util/List;)[Landroidx/work/impl/model/WorkSpec;
|
||
|
.locals 32
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"(",
|
||
|
"Ljava/util/List<",
|
||
|
"Ljava/lang/String;",
|
||
|
">;)[",
|
||
|
"Landroidx/work/impl/model/WorkSpec;"
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
invoke-static {}, Landroidx/room/util/StringUtil;->newStringBuilder()Ljava/lang/StringBuilder;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
const-string v1, "SELECT * FROM workspec WHERE id IN ("
|
||
|
|
||
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
invoke-interface/range {p1 .. p1}, Ljava/util/List;->size()I
|
||
|
|
||
|
move-result v1
|
||
|
|
||
|
invoke-static {v0, v1}, Landroidx/room/util/StringUtil;->appendPlaceholders(Ljava/lang/StringBuilder;I)V
|
||
|
|
||
|
const-string v2, ")"
|
||
|
|
||
|
invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
const/4 v2, 0x0
|
||
|
|
||
|
add-int/2addr v1, v2
|
||
|
|
||
|
invoke-static {v0, v1}, Landroidx/room/RoomSQLiteQuery;->acquire(Ljava/lang/String;I)Landroidx/room/RoomSQLiteQuery;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
invoke-interface/range {p1 .. p1}, Ljava/util/List;->iterator()Ljava/util/Iterator;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
const/4 v4, 0x1
|
||
|
|
||
|
:goto_0
|
||
|
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
|
||
|
|
||
|
move-result v5
|
||
|
|
||
|
if-eqz v5, :cond_1
|
||
|
|
||
|
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
||
|
|
||
|
move-result-object v5
|
||
|
|
||
|
check-cast v5, Ljava/lang/String;
|
||
|
|
||
|
if-nez v5, :cond_0
|
||
|
|
||
|
invoke-virtual {v1, v4}, Landroidx/room/RoomSQLiteQuery;->bindNull(I)V
|
||
|
|
||
|
goto :goto_1
|
||
|
|
||
|
:cond_0
|
||
|
invoke-virtual {v1, v4, v5}, Landroidx/room/RoomSQLiteQuery;->bindString(ILjava/lang/String;)V
|
||
|
|
||
|
:goto_1
|
||
|
add-int/lit8 v4, v4, 0x1
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:cond_1
|
||
|
move-object/from16 v4, p0
|
||
|
|
||
|
iget-object v0, v4, Landroidx/work/impl/model/WorkSpecDao_Impl;->__db:Landroidx/room/RoomDatabase;
|
||
|
|
||
|
invoke-virtual {v0, v1}, Landroidx/room/RoomDatabase;->query(Landroidx/sqlite/db/SupportSQLiteQuery;)Landroid/database/Cursor;
|
||
|
|
||
|
move-result-object v5
|
||
|
|
||
|
:try_start_0
|
||
|
const-string v0, "id"
|
||
|
|
||
|
invoke-interface {v5, v0}, Landroid/database/Cursor;->getColumnIndexOrThrow(Ljava/lang/String;)I
|
||
|
|
||
|
move-result v0
|
||
|
|
||
|
const-string v6, "state"
|
||
|
|
||
|
invoke-interface {v5, v6}, Landroid/database/Cursor;->getColumnIndexOrThrow(Ljava/lang/String;)I
|
||
|
|
||
|
move-result v6
|
||
|
|
||
|
const-string v7, "worker_class_name"
|
||
|
|
||
|
invoke-interface {v5, v7}, Landroid/database/Cursor;->getColumnIndexOrThrow(Ljava/lang/String;)I
|
||
|
|
||
|
move-result v7
|
||
|
|
||
|
const-string v8, "input_merger_class_name"
|
||
|
|
||
|
invoke-interface {v5, v8}, Landroid/database/Cursor;->getColumnIndexOrThrow(Ljava/lang/String;)I
|
||
|
|
||
|
move-result v8
|
||
|
|
||
|
const-string v9, "input"
|
||
|
|
||
|
invoke-interface {v5, v9}, Landroid/database/Cursor;->getColumnIndexOrThrow(Ljava/lang/String;)I
|
||
|
|
||
|
move-result v9
|
||
|
|
||
|
const-string v10, "output"
|
||
|
|
||
|
invoke-interface {v5, v10}, Landroid/database/Cursor;->getColumnIndexOrThrow(Ljava/lang/String;)I
|
||
|
|
||
|
move-result v10
|
||
|
|
||
|
const-string v11, "initial_delay"
|
||
|
|
||
|
invoke-interface {v5, v11}, Landroid/database/Cursor;->getColumnIndexOrThrow(Ljava/lang/String;)I
|
||
|
|
||
|
move-result v11
|
||
|
|
||
|
const-string v12, "interval_duration"
|
||
|
|
||
|
invoke-interface {v5, v12}, Landroid/database/Cursor;->getColumnIndexOrThrow(Ljava/lang/String;)I
|
||
|
|
||
|
move-result v12
|
||
|
|
||
|
const-string v13, "flex_duration"
|
||
|
|
||
|
invoke-interface {v5, v13}, Landroid/database/Cursor;->getColumnIndexOrThrow(Ljava/lang/String;)I
|
||
|
|
||
|
move-result v13
|
||
|
|
||
|
const-string v14, "run_attempt_count"
|
||
|
|
||
|
invoke-interface {v5, v14}, Landroid/database/Cursor;->getColumnIndexOrThrow(Ljava/lang/String;)I
|
||
|
|
||
|
move-result v14
|
||
|
|
||
|
const-string v15, "backoff_policy"
|
||
|
|
||
|
invoke-interface {v5, v15}, Landroid/database/Cursor;->getColumnIndexOrThrow(Ljava/lang/String;)I
|
||
|
|
||
|
move-result v15
|
||
|
|
||
|
const-string v2, "backoff_delay_duration"
|
||
|
|
||
|
invoke-interface {v5, v2}, Landroid/database/Cursor;->getColumnIndexOrThrow(Ljava/lang/String;)I
|
||
|
|
||
|
move-result v2
|
||
|
|
||
|
const-string v3, "period_start_time"
|
||
|
|
||
|
invoke-interface {v5, v3}, Landroid/database/Cursor;->getColumnIndexOrThrow(Ljava/lang/String;)I
|
||
|
|
||
|
move-result v3
|
||
|
|
||
|
const-string v4, "minimum_retention_duration"
|
||
|
|
||
|
invoke-interface {v5, v4}, Landroid/database/Cursor;->getColumnIndexOrThrow(Ljava/lang/String;)I
|
||
|
|
||
|
move-result v4
|
||
|
:try_end_0
|
||
|
.catchall {:try_start_0 .. :try_end_0} :catchall_1
|
||
|
|
||
|
move-object/from16 v16, v1
|
||
|
|
||
|
:try_start_1
|
||
|
const-string v1, "schedule_requested_at"
|
||
|
|
||
|
invoke-interface {v5, v1}, Landroid/database/Cursor;->getColumnIndexOrThrow(Ljava/lang/String;)I
|
||
|
|
||
|
move-result v1
|
||
|
|
||
|
move/from16 v17, v1
|
||
|
|
||
|
const-string v1, "required_network_type"
|
||
|
|
||
|
invoke-interface {v5, v1}, Landroid/database/Cursor;->getColumnIndexOrThrow(Ljava/lang/String;)I
|
||
|
|
||
|
move-result v1
|
||
|
|
||
|
move/from16 v18, v4
|
||
|
|
||
|
const-string v4, "requires_charging"
|
||
|
|
||
|
invoke-interface {v5, v4}, Landroid/database/Cursor;->getColumnIndexOrThrow(Ljava/lang/String;)I
|
||
|
|
||
|
move-result v4
|
||
|
|
||
|
move/from16 v19, v3
|
||
|
|
||
|
const-string v3, "requires_device_idle"
|
||
|
|
||
|
invoke-interface {v5, v3}, Landroid/database/Cursor;->getColumnIndexOrThrow(Ljava/lang/String;)I
|
||
|
|
||
|
move-result v3
|
||
|
|
||
|
move/from16 v20, v2
|
||
|
|
||
|
const-string v2, "requires_battery_not_low"
|
||
|
|
||
|
invoke-interface {v5, v2}, Landroid/database/Cursor;->getColumnIndexOrThrow(Ljava/lang/String;)I
|
||
|
|
||
|
move-result v2
|
||
|
|
||
|
move/from16 v21, v15
|
||
|
|
||
|
const-string v15, "requires_storage_not_low"
|
||
|
|
||
|
invoke-interface {v5, v15}, Landroid/database/Cursor;->getColumnIndexOrThrow(Ljava/lang/String;)I
|
||
|
|
||
|
move-result v15
|
||
|
|
||
|
move/from16 v22, v14
|
||
|
|
||
|
const-string v14, "trigger_content_update_delay"
|
||
|
|
||
|
invoke-interface {v5, v14}, Landroid/database/Cursor;->getColumnIndexOrThrow(Ljava/lang/String;)I
|
||
|
|
||
|
move-result v14
|
||
|
|
||
|
move/from16 v23, v13
|
||
|
|
||
|
const-string v13, "trigger_max_content_delay"
|
||
|
|
||
|
invoke-interface {v5, v13}, Landroid/database/Cursor;->getColumnIndexOrThrow(Ljava/lang/String;)I
|
||
|
|
||
|
move-result v13
|
||
|
|
||
|
move/from16 v24, v12
|
||
|
|
||
|
const-string v12, "content_uri_triggers"
|
||
|
|
||
|
invoke-interface {v5, v12}, Landroid/database/Cursor;->getColumnIndexOrThrow(Ljava/lang/String;)I
|
||
|
|
||
|
move-result v12
|
||
|
|
||
|
move/from16 v25, v11
|
||
|
|
||
|
invoke-interface {v5}, Landroid/database/Cursor;->getCount()I
|
||
|
|
||
|
move-result v11
|
||
|
|
||
|
new-array v11, v11, [Landroidx/work/impl/model/WorkSpec;
|
||
|
|
||
|
const/16 v26, 0x0
|
||
|
|
||
|
:goto_2
|
||
|
invoke-interface {v5}, Landroid/database/Cursor;->moveToNext()Z
|
||
|
|
||
|
move-result v27
|
||
|
|
||
|
if-eqz v27, :cond_6
|
||
|
|
||
|
move-object/from16 v27, v11
|
||
|
|
||
|
invoke-interface {v5, v0}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;
|
||
|
|
||
|
move-result-object v11
|
||
|
|
||
|
move/from16 v28, v0
|
||
|
|
||
|
invoke-interface {v5, v7}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
move/from16 v29, v7
|
||
|
|
||
|
new-instance v7, Landroidx/work/Constraints;
|
||
|
|
||
|
invoke-direct {v7}, Landroidx/work/Constraints;-><init>()V
|
||
|
|
||
|
invoke-interface {v5, v1}, Landroid/database/Cursor;->getInt(I)I
|
||
|
|
||
|
move-result v30
|
||
|
|
||
|
move/from16 v31, v1
|
||
|
|
||
|
invoke-static/range {v30 .. v30}, Landroidx/work/impl/model/WorkTypeConverters;->intToNetworkType(I)Landroidx/work/NetworkType;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
invoke-virtual {v7, v1}, Landroidx/work/Constraints;->setRequiredNetworkType(Landroidx/work/NetworkType;)V
|
||
|
|
||
|
invoke-interface {v5, v4}, Landroid/database/Cursor;->getInt(I)I
|
||
|
|
||
|
move-result v1
|
||
|
|
||
|
if-eqz v1, :cond_2
|
||
|
|
||
|
const/4 v1, 0x1
|
||
|
|
||
|
goto :goto_3
|
||
|
|
||
|
:cond_2
|
||
|
const/4 v1, 0x0
|
||
|
|
||
|
:goto_3
|
||
|
invoke-virtual {v7, v1}, Landroidx/work/Constraints;->setRequiresCharging(Z)V
|
||
|
|
||
|
invoke-interface {v5, v3}, Landroid/database/Cursor;->getInt(I)I
|
||
|
|
||
|
move-result v1
|
||
|
|
||
|
if-eqz v1, :cond_3
|
||
|
|
||
|
const/4 v1, 0x1
|
||
|
|
||
|
goto :goto_4
|
||
|
|
||
|
:cond_3
|
||
|
const/4 v1, 0x0
|
||
|
|
||
|
:goto_4
|
||
|
invoke-virtual {v7, v1}, Landroidx/work/Constraints;->setRequiresDeviceIdle(Z)V
|
||
|
|
||
|
invoke-interface {v5, v2}, Landroid/database/Cursor;->getInt(I)I
|
||
|
|
||
|
move-result v1
|
||
|
|
||
|
if-eqz v1, :cond_4
|
||
|
|
||
|
const/4 v1, 0x1
|
||
|
|
||
|
goto :goto_5
|
||
|
|
||
|
:cond_4
|
||
|
const/4 v1, 0x0
|
||
|
|
||
|
:goto_5
|
||
|
invoke-virtual {v7, v1}, Landroidx/work/Constraints;->setRequiresBatteryNotLow(Z)V
|
||
|
|
||
|
invoke-interface {v5, v15}, Landroid/database/Cursor;->getInt(I)I
|
||
|
|
||
|
move-result v1
|
||
|
|
||
|
if-eqz v1, :cond_5
|
||
|
|
||
|
const/4 v1, 0x1
|
||
|
|
||
|
goto :goto_6
|
||
|
|
||
|
:cond_5
|
||
|
const/4 v1, 0x0
|
||
|
|
||
|
:goto_6
|
||
|
invoke-virtual {v7, v1}, Landroidx/work/Constraints;->setRequiresStorageNotLow(Z)V
|
||
|
|
||
|
move/from16 v30, v2
|
||
|
|
||
|
invoke-interface {v5, v14}, Landroid/database/Cursor;->getLong(I)J
|
||
|
|
||
|
move-result-wide v1
|
||
|
|
||
|
invoke-virtual {v7, v1, v2}, Landroidx/work/Constraints;->setTriggerContentUpdateDelay(J)V
|
||
|
|
||
|
invoke-interface {v5, v13}, Landroid/database/Cursor;->getLong(I)J
|
||
|
|
||
|
move-result-wide v1
|
||
|
|
||
|
invoke-virtual {v7, v1, v2}, Landroidx/work/Constraints;->setTriggerMaxContentDelay(J)V
|
||
|
|
||
|
invoke-interface {v5, v12}, Landroid/database/Cursor;->getBlob(I)[B
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
invoke-static {v1}, Landroidx/work/impl/model/WorkTypeConverters;->byteArrayToContentUriTriggers([B)Landroidx/work/ContentUriTriggers;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
invoke-virtual {v7, v1}, Landroidx/work/Constraints;->setContentUriTriggers(Landroidx/work/ContentUriTriggers;)V
|
||
|
|
||
|
new-instance v1, Landroidx/work/impl/model/WorkSpec;
|
||
|
|
||
|
invoke-direct {v1, v11, v0}, Landroidx/work/impl/model/WorkSpec;-><init>(Ljava/lang/String;Ljava/lang/String;)V
|
||
|
|
||
|
invoke-interface {v5, v6}, Landroid/database/Cursor;->getInt(I)I
|
||
|
|
||
|
move-result v0
|
||
|
|
||
|
invoke-static {v0}, Landroidx/work/impl/model/WorkTypeConverters;->intToState(I)Landroidx/work/WorkInfo$State;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
iput-object v0, v1, Landroidx/work/impl/model/WorkSpec;->state:Landroidx/work/WorkInfo$State;
|
||
|
|
||
|
invoke-interface {v5, v8}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
iput-object v0, v1, Landroidx/work/impl/model/WorkSpec;->inputMergerClassName:Ljava/lang/String;
|
||
|
|
||
|
invoke-interface {v5, v9}, Landroid/database/Cursor;->getBlob(I)[B
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
invoke-static {v0}, Landroidx/work/Data;->fromByteArray([B)Landroidx/work/Data;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
iput-object v0, v1, Landroidx/work/impl/model/WorkSpec;->input:Landroidx/work/Data;
|
||
|
|
||
|
invoke-interface {v5, v10}, Landroid/database/Cursor;->getBlob(I)[B
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
invoke-static {v0}, Landroidx/work/Data;->fromByteArray([B)Landroidx/work/Data;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
iput-object v0, v1, Landroidx/work/impl/model/WorkSpec;->output:Landroidx/work/Data;
|
||
|
|
||
|
move v11, v3
|
||
|
|
||
|
move/from16 v0, v25
|
||
|
|
||
|
invoke-interface {v5, v0}, Landroid/database/Cursor;->getLong(I)J
|
||
|
|
||
|
move-result-wide v2
|
||
|
|
||
|
iput-wide v2, v1, Landroidx/work/impl/model/WorkSpec;->initialDelay:J
|
||
|
|
||
|
move/from16 v2, v24
|
||
|
|
||
|
move/from16 v24, v4
|
||
|
|
||
|
invoke-interface {v5, v2}, Landroid/database/Cursor;->getLong(I)J
|
||
|
|
||
|
move-result-wide v3
|
||
|
|
||
|
iput-wide v3, v1, Landroidx/work/impl/model/WorkSpec;->intervalDuration:J
|
||
|
|
||
|
move v4, v8
|
||
|
|
||
|
move/from16 v3, v23
|
||
|
|
||
|
move/from16 v23, v9
|
||
|
|
||
|
invoke-interface {v5, v3}, Landroid/database/Cursor;->getLong(I)J
|
||
|
|
||
|
move-result-wide v8
|
||
|
|
||
|
iput-wide v8, v1, Landroidx/work/impl/model/WorkSpec;->flexDuration:J
|
||
|
|
||
|
move/from16 v8, v22
|
||
|
|
||
|
invoke-interface {v5, v8}, Landroid/database/Cursor;->getInt(I)I
|
||
|
|
||
|
move-result v9
|
||
|
|
||
|
iput v9, v1, Landroidx/work/impl/model/WorkSpec;->runAttemptCount:I
|
||
|
|
||
|
move/from16 v9, v21
|
||
|
|
||
|
invoke-interface {v5, v9}, Landroid/database/Cursor;->getInt(I)I
|
||
|
|
||
|
move-result v21
|
||
|
|
||
|
move/from16 v25, v0
|
||
|
|
||
|
invoke-static/range {v21 .. v21}, Landroidx/work/impl/model/WorkTypeConverters;->intToBackoffPolicy(I)Landroidx/work/BackoffPolicy;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
iput-object v0, v1, Landroidx/work/impl/model/WorkSpec;->backoffPolicy:Landroidx/work/BackoffPolicy;
|
||
|
|
||
|
move/from16 v21, v3
|
||
|
|
||
|
move/from16 v0, v20
|
||
|
|
||
|
move/from16 v20, v2
|
||
|
|
||
|
invoke-interface {v5, v0}, Landroid/database/Cursor;->getLong(I)J
|
||
|
|
||
|
move-result-wide v2
|
||
|
|
||
|
iput-wide v2, v1, Landroidx/work/impl/model/WorkSpec;->backoffDelayDuration:J
|
||
|
|
||
|
move/from16 v2, v19
|
||
|
|
||
|
move/from16 v19, v4
|
||
|
|
||
|
invoke-interface {v5, v2}, Landroid/database/Cursor;->getLong(I)J
|
||
|
|
||
|
move-result-wide v3
|
||
|
|
||
|
iput-wide v3, v1, Landroidx/work/impl/model/WorkSpec;->periodStartTime:J
|
||
|
|
||
|
move/from16 v22, v8
|
||
|
|
||
|
move v4, v9
|
||
|
|
||
|
move/from16 v3, v18
|
||
|
|
||
|
invoke-interface {v5, v3}, Landroid/database/Cursor;->getLong(I)J
|
||
|
|
||
|
move-result-wide v8
|
||
|
|
||
|
iput-wide v8, v1, Landroidx/work/impl/model/WorkSpec;->minimumRetentionDuration:J
|
||
|
|
||
|
move v9, v2
|
||
|
|
||
|
move/from16 v18, v3
|
||
|
|
||
|
move/from16 v8, v17
|
||
|
|
||
|
invoke-interface {v5, v8}, Landroid/database/Cursor;->getLong(I)J
|
||
|
|
||
|
move-result-wide v2
|
||
|
|
||
|
iput-wide v2, v1, Landroidx/work/impl/model/WorkSpec;->scheduleRequestedAt:J
|
||
|
|
||
|
iput-object v7, v1, Landroidx/work/impl/model/WorkSpec;->constraints:Landroidx/work/Constraints;
|
||
|
|
||
|
aput-object v1, v27, v26
|
||
|
:try_end_1
|
||
|
.catchall {:try_start_1 .. :try_end_1} :catchall_0
|
||
|
|
||
|
add-int/lit8 v26, v26, 0x1
|
||
|
|
||
|
move/from16 v17, v8
|
||
|
|
||
|
move v3, v11
|
||
|
|
||
|
move/from16 v8, v19
|
||
|
|
||
|
move-object/from16 v11, v27
|
||
|
|
||
|
move/from16 v7, v29
|
||
|
|
||
|
move/from16 v2, v30
|
||
|
|
||
|
move/from16 v1, v31
|
||
|
|
||
|
move/from16 v19, v9
|
||
|
|
||
|
move/from16 v9, v23
|
||
|
|
||
|
move/from16 v23, v21
|
||
|
|
||
|
move/from16 v21, v4
|
||
|
|
||
|
move/from16 v4, v24
|
||
|
|
||
|
move/from16 v24, v20
|
||
|
|
||
|
move/from16 v20, v0
|
||
|
|
||
|
move/from16 v0, v28
|
||
|
|
||
|
goto/16 :goto_2
|
||
|
|
||
|
:cond_6
|
||
|
move-object/from16 v27, v11
|
||
|
|
||
|
invoke-interface {v5}, Landroid/database/Cursor;->close()V
|
||
|
|
||
|
invoke-virtual/range {v16 .. v16}, Landroidx/room/RoomSQLiteQuery;->release()V
|
||
|
|
||
|
return-object v27
|
||
|
|
||
|
:catchall_0
|
||
|
move-exception v0
|
||
|
|
||
|
goto :goto_7
|
||
|
|
||
|
:catchall_1
|
||
|
move-exception v0
|
||
|
|
||
|
move-object/from16 v16, v1
|
||
|
|
||
|
:goto_7
|
||
|
invoke-interface {v5}, Landroid/database/Cursor;->close()V
|
||
|
|
||
|
invoke-virtual/range {v16 .. v16}, Landroidx/room/RoomSQLiteQuery;->release()V
|
||
|
|
||
|
goto :goto_9
|
||
|
|
||
|
:goto_8
|
||
|
throw v0
|
||
|
|
||
|
:goto_9
|
||
|
goto :goto_8
|
||
|
.end method
|
||
|
|
||
|
.method public getWorkStatusPojoForId(Ljava/lang/String;)Landroidx/work/impl/model/WorkSpec$WorkInfoPojo;
|
||
|
.locals 7
|
||
|
|
||
|
const/4 v0, 0x1
|
||
|
|
||
|
const-string v1, "SELECT id, state, output FROM workspec WHERE id=?"
|
||
|
|
||
|
invoke-static {v1, v0}, Landroidx/room/RoomSQLiteQuery;->acquire(Ljava/lang/String;I)Landroidx/room/RoomSQLiteQuery;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
if-nez p1, :cond_0
|
||
|
|
||
|
invoke-virtual {v1, v0}, Landroidx/room/RoomSQLiteQuery;->bindNull(I)V
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:cond_0
|
||
|
invoke-virtual {v1, v0, p1}, Landroidx/room/RoomSQLiteQuery;->bindString(ILjava/lang/String;)V
|
||
|
|
||
|
:goto_0
|
||
|
iget-object p1, p0, Landroidx/work/impl/model/WorkSpecDao_Impl;->__db:Landroidx/room/RoomDatabase;
|
||
|
|
||
|
invoke-virtual {p1}, Landroidx/room/RoomDatabase;->beginTransaction()V
|
||
|
|
||
|
:try_start_0
|
||
|
iget-object p1, p0, Landroidx/work/impl/model/WorkSpecDao_Impl;->__db:Landroidx/room/RoomDatabase;
|
||
|
|
||
|
invoke-virtual {p1, v1}, Landroidx/room/RoomDatabase;->query(Landroidx/sqlite/db/SupportSQLiteQuery;)Landroid/database/Cursor;
|
||
|
|
||
|
move-result-object p1
|
||
|
:try_end_0
|
||
|
.catchall {:try_start_0 .. :try_end_0} :catchall_1
|
||
|
|
||
|
:try_start_1
|
||
|
new-instance v0, Landroidx/collection/ArrayMap;
|
||
|
|
||
|
invoke-direct {v0}, Landroidx/collection/ArrayMap;-><init>()V
|
||
|
|
||
|
const-string v2, "id"
|
||
|
|
||
|
invoke-interface {p1, v2}, Landroid/database/Cursor;->getColumnIndexOrThrow(Ljava/lang/String;)I
|
||
|
|
||
|
move-result v2
|
||
|
|
||
|
const-string v3, "state"
|
||
|
|
||
|
invoke-interface {p1, v3}, Landroid/database/Cursor;->getColumnIndexOrThrow(Ljava/lang/String;)I
|
||
|
|
||
|
move-result v3
|
||
|
|
||
|
const-string v4, "output"
|
||
|
|
||
|
invoke-interface {p1, v4}, Landroid/database/Cursor;->getColumnIndexOrThrow(Ljava/lang/String;)I
|
||
|
|
||
|
move-result v4
|
||
|
|
||
|
invoke-interface {p1}, Landroid/database/Cursor;->moveToFirst()Z
|
||
|
|
||
|
move-result v5
|
||
|
|
||
|
if-eqz v5, :cond_2
|
||
|
|
||
|
new-instance v5, Landroidx/work/impl/model/WorkSpec$WorkInfoPojo;
|
||
|
|
||
|
invoke-direct {v5}, Landroidx/work/impl/model/WorkSpec$WorkInfoPojo;-><init>()V
|
||
|
|
||
|
invoke-interface {p1, v2}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;
|
||
|
|
||
|
move-result-object v6
|
||
|
|
||
|
iput-object v6, v5, Landroidx/work/impl/model/WorkSpec$WorkInfoPojo;->id:Ljava/lang/String;
|
||
|
|
||
|
invoke-interface {p1, v3}, Landroid/database/Cursor;->getInt(I)I
|
||
|
|
||
|
move-result v3
|
||
|
|
||
|
invoke-static {v3}, Landroidx/work/impl/model/WorkTypeConverters;->intToState(I)Landroidx/work/WorkInfo$State;
|
||
|
|
||
|
move-result-object v3
|
||
|
|
||
|
iput-object v3, v5, Landroidx/work/impl/model/WorkSpec$WorkInfoPojo;->state:Landroidx/work/WorkInfo$State;
|
||
|
|
||
|
invoke-interface {p1, v4}, Landroid/database/Cursor;->getBlob(I)[B
|
||
|
|
||
|
move-result-object v3
|
||
|
|
||
|
invoke-static {v3}, Landroidx/work/Data;->fromByteArray([B)Landroidx/work/Data;
|
||
|
|
||
|
move-result-object v3
|
||
|
|
||
|
iput-object v3, v5, Landroidx/work/impl/model/WorkSpec$WorkInfoPojo;->output:Landroidx/work/Data;
|
||
|
|
||
|
invoke-interface {p1, v2}, Landroid/database/Cursor;->isNull(I)Z
|
||
|
|
||
|
move-result v3
|
||
|
|
||
|
if-nez v3, :cond_3
|
||
|
|
||
|
invoke-interface {p1, v2}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;
|
||
|
|
||
|
move-result-object v2
|
||
|
|
||
|
invoke-virtual {v0, v2}, Landroidx/collection/ArrayMap;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
||
|
|
||
|
move-result-object v3
|
||
|
|
||
|
check-cast v3, Ljava/util/ArrayList;
|
||
|
|
||
|
if-nez v3, :cond_1
|
||
|
|
||
|
new-instance v3, Ljava/util/ArrayList;
|
||
|
|
||
|
invoke-direct {v3}, Ljava/util/ArrayList;-><init>()V
|
||
|
|
||
|
invoke-virtual {v0, v2, v3}, Landroidx/collection/ArrayMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
||
|
|
||
|
:cond_1
|
||
|
iput-object v3, v5, Landroidx/work/impl/model/WorkSpec$WorkInfoPojo;->tags:Ljava/util/List;
|
||
|
|
||
|
goto :goto_1
|
||
|
|
||
|
:cond_2
|
||
|
const/4 v5, 0x0
|
||
|
|
||
|
:cond_3
|
||
|
:goto_1
|
||
|
invoke-direct {p0, v0}, Landroidx/work/impl/model/WorkSpecDao_Impl;->__fetchRelationshipWorkTagAsjavaLangString(Landroidx/collection/ArrayMap;)V
|
||
|
|
||
|
iget-object v0, p0, Landroidx/work/impl/model/WorkSpecDao_Impl;->__db:Landroidx/room/RoomDatabase;
|
||
|
|
||
|
invoke-virtual {v0}, Landroidx/room/RoomDatabase;->setTransactionSuccessful()V
|
||
|
:try_end_1
|
||
|
.catchall {:try_start_1 .. :try_end_1} :catchall_0
|
||
|
|
||
|
:try_start_2
|
||
|
invoke-interface {p1}, Landroid/database/Cursor;->close()V
|
||
|
|
||
|
invoke-virtual {v1}, Landroidx/room/RoomSQLiteQuery;->release()V
|
||
|
:try_end_2
|
||
|
.catchall {:try_start_2 .. :try_end_2} :catchall_1
|
||
|
|
||
|
iget-object p1, p0, Landroidx/work/impl/model/WorkSpecDao_Impl;->__db:Landroidx/room/RoomDatabase;
|
||
|
|
||
|
invoke-virtual {p1}, Landroidx/room/RoomDatabase;->endTransaction()V
|
||
|
|
||
|
return-object v5
|
||
|
|
||
|
:catchall_0
|
||
|
move-exception v0
|
||
|
|
||
|
:try_start_3
|
||
|
invoke-interface {p1}, Landroid/database/Cursor;->close()V
|
||
|
|
||
|
invoke-virtual {v1}, Landroidx/room/RoomSQLiteQuery;->release()V
|
||
|
|
||
|
throw v0
|
||
|
:try_end_3
|
||
|
.catchall {:try_start_3 .. :try_end_3} :catchall_1
|
||
|
|
||
|
:catchall_1
|
||
|
move-exception p1
|
||
|
|
||
|
iget-object v0, p0, Landroidx/work/impl/model/WorkSpecDao_Impl;->__db:Landroidx/room/RoomDatabase;
|
||
|
|
||
|
invoke-virtual {v0}, Landroidx/room/RoomDatabase;->endTransaction()V
|
||
|
|
||
|
throw p1
|
||
|
.end method
|
||
|
|
||
|
.method public getWorkStatusPojoForIds(Ljava/util/List;)Ljava/util/List;
|
||
|
.locals 9
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"(",
|
||
|
"Ljava/util/List<",
|
||
|
"Ljava/lang/String;",
|
||
|
">;)",
|
||
|
"Ljava/util/List<",
|
||
|
"Landroidx/work/impl/model/WorkSpec$WorkInfoPojo;",
|
||
|
">;"
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
invoke-static {}, Landroidx/room/util/StringUtil;->newStringBuilder()Ljava/lang/StringBuilder;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
const-string v1, "SELECT id, state, output FROM workspec WHERE id IN ("
|
||
|
|
||
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
invoke-interface {p1}, Ljava/util/List;->size()I
|
||
|
|
||
|
move-result v1
|
||
|
|
||
|
invoke-static {v0, v1}, Landroidx/room/util/StringUtil;->appendPlaceholders(Ljava/lang/StringBuilder;I)V
|
||
|
|
||
|
const-string v2, ")"
|
||
|
|
||
|
invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
add-int/lit8 v1, v1, 0x0
|
||
|
|
||
|
invoke-static {v0, v1}, Landroidx/room/RoomSQLiteQuery;->acquire(Ljava/lang/String;I)Landroidx/room/RoomSQLiteQuery;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
invoke-interface {p1}, Ljava/util/List;->iterator()Ljava/util/Iterator;
|
||
|
|
||
|
move-result-object p1
|
||
|
|
||
|
const/4 v1, 0x1
|
||
|
|
||
|
:goto_0
|
||
|
invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z
|
||
|
|
||
|
move-result v2
|
||
|
|
||
|
if-eqz v2, :cond_1
|
||
|
|
||
|
invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
||
|
|
||
|
move-result-object v2
|
||
|
|
||
|
check-cast v2, Ljava/lang/String;
|
||
|
|
||
|
if-nez v2, :cond_0
|
||
|
|
||
|
invoke-virtual {v0, v1}, Landroidx/room/RoomSQLiteQuery;->bindNull(I)V
|
||
|
|
||
|
goto :goto_1
|
||
|
|
||
|
:cond_0
|
||
|
invoke-virtual {v0, v1, v2}, Landroidx/room/RoomSQLiteQuery;->bindString(ILjava/lang/String;)V
|
||
|
|
||
|
:goto_1
|
||
|
add-int/lit8 v1, v1, 0x1
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:cond_1
|
||
|
iget-object p1, p0, Landroidx/work/impl/model/WorkSpecDao_Impl;->__db:Landroidx/room/RoomDatabase;
|
||
|
|
||
|
invoke-virtual {p1}, Landroidx/room/RoomDatabase;->beginTransaction()V
|
||
|
|
||
|
:try_start_0
|
||
|
iget-object p1, p0, Landroidx/work/impl/model/WorkSpecDao_Impl;->__db:Landroidx/room/RoomDatabase;
|
||
|
|
||
|
invoke-virtual {p1, v0}, Landroidx/room/RoomDatabase;->query(Landroidx/sqlite/db/SupportSQLiteQuery;)Landroid/database/Cursor;
|
||
|
|
||
|
move-result-object p1
|
||
|
: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 {p1, v2}, Landroid/database/Cursor;->getColumnIndexOrThrow(Ljava/lang/String;)I
|
||
|
|
||
|
move-result v2
|
||
|
|
||
|
const-string v3, "state"
|
||
|
|
||
|
invoke-interface {p1, v3}, Landroid/database/Cursor;->getColumnIndexOrThrow(Ljava/lang/String;)I
|
||
|
|
||
|
move-result v3
|
||
|
|
||
|
const-string v4, "output"
|
||
|
|
||
|
invoke-interface {p1, v4}, Landroid/database/Cursor;->getColumnIndexOrThrow(Ljava/lang/String;)I
|
||
|
|
||
|
move-result v4
|
||
|
|
||
|
new-instance v5, Ljava/util/ArrayList;
|
||
|
|
||
|
invoke-interface {p1}, Landroid/database/Cursor;->getCount()I
|
||
|
|
||
|
move-result v6
|
||
|
|
||
|
invoke-direct {v5, v6}, Ljava/util/ArrayList;-><init>(I)V
|
||
|
|
||
|
:goto_2
|
||
|
invoke-interface {p1}, Landroid/database/Cursor;->moveToNext()Z
|
||
|
|
||
|
move-result v6
|
||
|
|
||
|
if-eqz v6, :cond_4
|
||
|
|
||
|
new-instance v6, Landroidx/work/impl/model/WorkSpec$WorkInfoPojo;
|
||
|
|
||
|
invoke-direct {v6}, Landroidx/work/impl/model/WorkSpec$WorkInfoPojo;-><init>()V
|
||
|
|
||
|
invoke-interface {p1, 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 {p1, 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 {p1, 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 {p1, v2}, Landroid/database/Cursor;->isNull(I)Z
|
||
|
|
||
|
move-result v7
|
||
|
|
||
|
if-nez v7, :cond_3
|
||
|
|
||
|
invoke-interface {p1, 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_2
|
||
|
|
||
|
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_2
|
||
|
iput-object v8, v6, Landroidx/work/impl/model/WorkSpec$WorkInfoPojo;->tags:Ljava/util/List;
|
||
|
|
||
|
:cond_3
|
||
|
invoke-interface {v5, v6}, Ljava/util/List;->add(Ljava/lang/Object;)Z
|
||
|
|
||
|
goto :goto_2
|
||
|
|
||
|
:cond_4
|
||
|
invoke-direct {p0, v1}, Landroidx/work/impl/model/WorkSpecDao_Impl;->__fetchRelationshipWorkTagAsjavaLangString(Landroidx/collection/ArrayMap;)V
|
||
|
|
||
|
iget-object v1, p0, Landroidx/work/impl/model/WorkSpecDao_Impl;->__db:Landroidx/room/RoomDatabase;
|
||
|
|
||
|
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 {p1}, Landroid/database/Cursor;->close()V
|
||
|
|
||
|
invoke-virtual {v0}, Landroidx/room/RoomSQLiteQuery;->release()V
|
||
|
:try_end_2
|
||
|
.catchall {:try_start_2 .. :try_end_2} :catchall_1
|
||
|
|
||
|
iget-object p1, p0, Landroidx/work/impl/model/WorkSpecDao_Impl;->__db:Landroidx/room/RoomDatabase;
|
||
|
|
||
|
invoke-virtual {p1}, Landroidx/room/RoomDatabase;->endTransaction()V
|
||
|
|
||
|
return-object v5
|
||
|
|
||
|
:catchall_0
|
||
|
move-exception v1
|
||
|
|
||
|
:try_start_3
|
||
|
invoke-interface {p1}, Landroid/database/Cursor;->close()V
|
||
|
|
||
|
invoke-virtual {v0}, Landroidx/room/RoomSQLiteQuery;->release()V
|
||
|
|
||
|
throw v1
|
||
|
:try_end_3
|
||
|
.catchall {:try_start_3 .. :try_end_3} :catchall_1
|
||
|
|
||
|
:catchall_1
|
||
|
move-exception p1
|
||
|
|
||
|
iget-object v0, p0, Landroidx/work/impl/model/WorkSpecDao_Impl;->__db:Landroidx/room/RoomDatabase;
|
||
|
|
||
|
invoke-virtual {v0}, Landroidx/room/RoomDatabase;->endTransaction()V
|
||
|
|
||
|
goto :goto_4
|
||
|
|
||
|
:goto_3
|
||
|
throw p1
|
||
|
|
||
|
:goto_4
|
||
|
goto :goto_3
|
||
|
.end method
|
||
|
|
||
|
.method public getWorkStatusPojoForName(Ljava/lang/String;)Ljava/util/List;
|
||
|
.locals 9
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"(",
|
||
|
"Ljava/lang/String;",
|
||
|
")",
|
||
|
"Ljava/util/List<",
|
||
|
"Landroidx/work/impl/model/WorkSpec$WorkInfoPojo;",
|
||
|
">;"
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
const/4 v0, 0x1
|
||
|
|
||
|
const-string v1, "SELECT id, state, output FROM workspec WHERE id IN (SELECT work_spec_id FROM workname WHERE name=?)"
|
||
|
|
||
|
invoke-static {v1, v0}, Landroidx/room/RoomSQLiteQuery;->acquire(Ljava/lang/String;I)Landroidx/room/RoomSQLiteQuery;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
if-nez p1, :cond_0
|
||
|
|
||
|
invoke-virtual {v1, v0}, Landroidx/room/RoomSQLiteQuery;->bindNull(I)V
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:cond_0
|
||
|
invoke-virtual {v1, v0, p1}, Landroidx/room/RoomSQLiteQuery;->bindString(ILjava/lang/String;)V
|
||
|
|
||
|
:goto_0
|
||
|
iget-object p1, p0, Landroidx/work/impl/model/WorkSpecDao_Impl;->__db:Landroidx/room/RoomDatabase;
|
||
|
|
||
|
invoke-virtual {p1}, Landroidx/room/RoomDatabase;->beginTransaction()V
|
||
|
|
||
|
:try_start_0
|
||
|
iget-object p1, p0, Landroidx/work/impl/model/WorkSpecDao_Impl;->__db:Landroidx/room/RoomDatabase;
|
||
|
|
||
|
invoke-virtual {p1, v1}, Landroidx/room/RoomDatabase;->query(Landroidx/sqlite/db/SupportSQLiteQuery;)Landroid/database/Cursor;
|
||
|
|
||
|
move-result-object p1
|
||
|
:try_end_0
|
||
|
.catchall {:try_start_0 .. :try_end_0} :catchall_1
|
||
|
|
||
|
:try_start_1
|
||
|
new-instance v0, Landroidx/collection/ArrayMap;
|
||
|
|
||
|
invoke-direct {v0}, Landroidx/collection/ArrayMap;-><init>()V
|
||
|
|
||
|
const-string v2, "id"
|
||
|
|
||
|
invoke-interface {p1, v2}, Landroid/database/Cursor;->getColumnIndexOrThrow(Ljava/lang/String;)I
|
||
|
|
||
|
move-result v2
|
||
|
|
||
|
const-string v3, "state"
|
||
|
|
||
|
invoke-interface {p1, v3}, Landroid/database/Cursor;->getColumnIndexOrThrow(Ljava/lang/String;)I
|
||
|
|
||
|
move-result v3
|
||
|
|
||
|
const-string v4, "output"
|
||
|
|
||
|
invoke-interface {p1, v4}, Landroid/database/Cursor;->getColumnIndexOrThrow(Ljava/lang/String;)I
|
||
|
|
||
|
move-result v4
|
||
|
|
||
|
new-instance v5, Ljava/util/ArrayList;
|
||
|
|
||
|
invoke-interface {p1}, Landroid/database/Cursor;->getCount()I
|
||
|
|
||
|
move-result v6
|
||
|
|
||
|
invoke-direct {v5, v6}, Ljava/util/ArrayList;-><init>(I)V
|
||
|
|
||
|
:goto_1
|
||
|
invoke-interface {p1}, 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 {p1, 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 {p1, 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 {p1, 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 {p1, v2}, Landroid/database/Cursor;->isNull(I)Z
|
||
|
|
||
|
move-result v7
|
||
|
|
||
|
if-nez v7, :cond_2
|
||
|
|
||
|
invoke-interface {p1, v2}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;
|
||
|
|
||
|
move-result-object v7
|
||
|
|
||
|
invoke-virtual {v0, 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 {v0, 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_1
|
||
|
|
||
|
:cond_3
|
||
|
invoke-direct {p0, v0}, Landroidx/work/impl/model/WorkSpecDao_Impl;->__fetchRelationshipWorkTagAsjavaLangString(Landroidx/collection/ArrayMap;)V
|
||
|
|
||
|
iget-object v0, p0, Landroidx/work/impl/model/WorkSpecDao_Impl;->__db:Landroidx/room/RoomDatabase;
|
||
|
|
||
|
invoke-virtual {v0}, Landroidx/room/RoomDatabase;->setTransactionSuccessful()V
|
||
|
:try_end_1
|
||
|
.catchall {:try_start_1 .. :try_end_1} :catchall_0
|
||
|
|
||
|
:try_start_2
|
||
|
invoke-interface {p1}, Landroid/database/Cursor;->close()V
|
||
|
|
||
|
invoke-virtual {v1}, Landroidx/room/RoomSQLiteQuery;->release()V
|
||
|
:try_end_2
|
||
|
.catchall {:try_start_2 .. :try_end_2} :catchall_1
|
||
|
|
||
|
iget-object p1, p0, Landroidx/work/impl/model/WorkSpecDao_Impl;->__db:Landroidx/room/RoomDatabase;
|
||
|
|
||
|
invoke-virtual {p1}, Landroidx/room/RoomDatabase;->endTransaction()V
|
||
|
|
||
|
return-object v5
|
||
|
|
||
|
:catchall_0
|
||
|
move-exception v0
|
||
|
|
||
|
:try_start_3
|
||
|
invoke-interface {p1}, Landroid/database/Cursor;->close()V
|
||
|
|
||
|
invoke-virtual {v1}, Landroidx/room/RoomSQLiteQuery;->release()V
|
||
|
|
||
|
throw v0
|
||
|
:try_end_3
|
||
|
.catchall {:try_start_3 .. :try_end_3} :catchall_1
|
||
|
|
||
|
:catchall_1
|
||
|
move-exception p1
|
||
|
|
||
|
iget-object v0, p0, Landroidx/work/impl/model/WorkSpecDao_Impl;->__db:Landroidx/room/RoomDatabase;
|
||
|
|
||
|
invoke-virtual {v0}, Landroidx/room/RoomDatabase;->endTransaction()V
|
||
|
|
||
|
goto :goto_3
|
||
|
|
||
|
:goto_2
|
||
|
throw p1
|
||
|
|
||
|
:goto_3
|
||
|
goto :goto_2
|
||
|
.end method
|
||
|
|
||
|
.method public getWorkStatusPojoForTag(Ljava/lang/String;)Ljava/util/List;
|
||
|
.locals 9
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"(",
|
||
|
"Ljava/lang/String;",
|
||
|
")",
|
||
|
"Ljava/util/List<",
|
||
|
"Landroidx/work/impl/model/WorkSpec$WorkInfoPojo;",
|
||
|
">;"
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
const/4 v0, 0x1
|
||
|
|
||
|
const-string v1, "SELECT id, state, output FROM workspec WHERE id IN (SELECT work_spec_id FROM worktag WHERE tag=?)"
|
||
|
|
||
|
invoke-static {v1, v0}, Landroidx/room/RoomSQLiteQuery;->acquire(Ljava/lang/String;I)Landroidx/room/RoomSQLiteQuery;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
if-nez p1, :cond_0
|
||
|
|
||
|
invoke-virtual {v1, v0}, Landroidx/room/RoomSQLiteQuery;->bindNull(I)V
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:cond_0
|
||
|
invoke-virtual {v1, v0, p1}, Landroidx/room/RoomSQLiteQuery;->bindString(ILjava/lang/String;)V
|
||
|
|
||
|
:goto_0
|
||
|
iget-object p1, p0, Landroidx/work/impl/model/WorkSpecDao_Impl;->__db:Landroidx/room/RoomDatabase;
|
||
|
|
||
|
invoke-virtual {p1}, Landroidx/room/RoomDatabase;->beginTransaction()V
|
||
|
|
||
|
:try_start_0
|
||
|
iget-object p1, p0, Landroidx/work/impl/model/WorkSpecDao_Impl;->__db:Landroidx/room/RoomDatabase;
|
||
|
|
||
|
invoke-virtual {p1, v1}, Landroidx/room/RoomDatabase;->query(Landroidx/sqlite/db/SupportSQLiteQuery;)Landroid/database/Cursor;
|
||
|
|
||
|
move-result-object p1
|
||
|
:try_end_0
|
||
|
.catchall {:try_start_0 .. :try_end_0} :catchall_1
|
||
|
|
||
|
:try_start_1
|
||
|
new-instance v0, Landroidx/collection/ArrayMap;
|
||
|
|
||
|
invoke-direct {v0}, Landroidx/collection/ArrayMap;-><init>()V
|
||
|
|
||
|
const-string v2, "id"
|
||
|
|
||
|
invoke-interface {p1, v2}, Landroid/database/Cursor;->getColumnIndexOrThrow(Ljava/lang/String;)I
|
||
|
|
||
|
move-result v2
|
||
|
|
||
|
const-string v3, "state"
|
||
|
|
||
|
invoke-interface {p1, v3}, Landroid/database/Cursor;->getColumnIndexOrThrow(Ljava/lang/String;)I
|
||
|
|
||
|
move-result v3
|
||
|
|
||
|
const-string v4, "output"
|
||
|
|
||
|
invoke-interface {p1, v4}, Landroid/database/Cursor;->getColumnIndexOrThrow(Ljava/lang/String;)I
|
||
|
|
||
|
move-result v4
|
||
|
|
||
|
new-instance v5, Ljava/util/ArrayList;
|
||
|
|
||
|
invoke-interface {p1}, Landroid/database/Cursor;->getCount()I
|
||
|
|
||
|
move-result v6
|
||
|
|
||
|
invoke-direct {v5, v6}, Ljava/util/ArrayList;-><init>(I)V
|
||
|
|
||
|
:goto_1
|
||
|
invoke-interface {p1}, 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 {p1, 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 {p1, 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 {p1, 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 {p1, v2}, Landroid/database/Cursor;->isNull(I)Z
|
||
|
|
||
|
move-result v7
|
||
|
|
||
|
if-nez v7, :cond_2
|
||
|
|
||
|
invoke-interface {p1, v2}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;
|
||
|
|
||
|
move-result-object v7
|
||
|
|
||
|
invoke-virtual {v0, 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 {v0, 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_1
|
||
|
|
||
|
:cond_3
|
||
|
invoke-direct {p0, v0}, Landroidx/work/impl/model/WorkSpecDao_Impl;->__fetchRelationshipWorkTagAsjavaLangString(Landroidx/collection/ArrayMap;)V
|
||
|
|
||
|
iget-object v0, p0, Landroidx/work/impl/model/WorkSpecDao_Impl;->__db:Landroidx/room/RoomDatabase;
|
||
|
|
||
|
invoke-virtual {v0}, Landroidx/room/RoomDatabase;->setTransactionSuccessful()V
|
||
|
:try_end_1
|
||
|
.catchall {:try_start_1 .. :try_end_1} :catchall_0
|
||
|
|
||
|
:try_start_2
|
||
|
invoke-interface {p1}, Landroid/database/Cursor;->close()V
|
||
|
|
||
|
invoke-virtual {v1}, Landroidx/room/RoomSQLiteQuery;->release()V
|
||
|
:try_end_2
|
||
|
.catchall {:try_start_2 .. :try_end_2} :catchall_1
|
||
|
|
||
|
iget-object p1, p0, Landroidx/work/impl/model/WorkSpecDao_Impl;->__db:Landroidx/room/RoomDatabase;
|
||
|
|
||
|
invoke-virtual {p1}, Landroidx/room/RoomDatabase;->endTransaction()V
|
||
|
|
||
|
return-object v5
|
||
|
|
||
|
:catchall_0
|
||
|
move-exception v0
|
||
|
|
||
|
:try_start_3
|
||
|
invoke-interface {p1}, Landroid/database/Cursor;->close()V
|
||
|
|
||
|
invoke-virtual {v1}, Landroidx/room/RoomSQLiteQuery;->release()V
|
||
|
|
||
|
throw v0
|
||
|
:try_end_3
|
||
|
.catchall {:try_start_3 .. :try_end_3} :catchall_1
|
||
|
|
||
|
:catchall_1
|
||
|
move-exception p1
|
||
|
|
||
|
iget-object v0, p0, Landroidx/work/impl/model/WorkSpecDao_Impl;->__db:Landroidx/room/RoomDatabase;
|
||
|
|
||
|
invoke-virtual {v0}, Landroidx/room/RoomDatabase;->endTransaction()V
|
||
|
|
||
|
goto :goto_3
|
||
|
|
||
|
:goto_2
|
||
|
throw p1
|
||
|
|
||
|
:goto_3
|
||
|
goto :goto_2
|
||
|
.end method
|
||
|
|
||
|
.method public getWorkStatusPojoLiveDataForIds(Ljava/util/List;)Landroidx/lifecycle/LiveData;
|
||
|
.locals 3
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"(",
|
||
|
"Ljava/util/List<",
|
||
|
"Ljava/lang/String;",
|
||
|
">;)",
|
||
|
"Landroidx/lifecycle/LiveData<",
|
||
|
"Ljava/util/List<",
|
||
|
"Landroidx/work/impl/model/WorkSpec$WorkInfoPojo;",
|
||
|
">;>;"
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
invoke-static {}, Landroidx/room/util/StringUtil;->newStringBuilder()Ljava/lang/StringBuilder;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
const-string v1, "SELECT id, state, output FROM workspec WHERE id IN ("
|
||
|
|
||
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
invoke-interface {p1}, Ljava/util/List;->size()I
|
||
|
|
||
|
move-result v1
|
||
|
|
||
|
invoke-static {v0, v1}, Landroidx/room/util/StringUtil;->appendPlaceholders(Ljava/lang/StringBuilder;I)V
|
||
|
|
||
|
const-string v2, ")"
|
||
|
|
||
|
invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
add-int/lit8 v1, v1, 0x0
|
||
|
|
||
|
invoke-static {v0, v1}, Landroidx/room/RoomSQLiteQuery;->acquire(Ljava/lang/String;I)Landroidx/room/RoomSQLiteQuery;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
invoke-interface {p1}, Ljava/util/List;->iterator()Ljava/util/Iterator;
|
||
|
|
||
|
move-result-object p1
|
||
|
|
||
|
const/4 v1, 0x1
|
||
|
|
||
|
:goto_0
|
||
|
invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z
|
||
|
|
||
|
move-result v2
|
||
|
|
||
|
if-eqz v2, :cond_1
|
||
|
|
||
|
invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
||
|
|
||
|
move-result-object v2
|
||
|
|
||
|
check-cast v2, Ljava/lang/String;
|
||
|
|
||
|
if-nez v2, :cond_0
|
||
|
|
||
|
invoke-virtual {v0, v1}, Landroidx/room/RoomSQLiteQuery;->bindNull(I)V
|
||
|
|
||
|
goto :goto_1
|
||
|
|
||
|
:cond_0
|
||
|
invoke-virtual {v0, v1, v2}, Landroidx/room/RoomSQLiteQuery;->bindString(ILjava/lang/String;)V
|
||
|
|
||
|
:goto_1
|
||
|
add-int/lit8 v1, v1, 0x1
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:cond_1
|
||
|
new-instance p1, Landroidx/work/impl/model/WorkSpecDao_Impl$10;
|
||
|
|
||
|
invoke-direct {p1, p0, v0}, Landroidx/work/impl/model/WorkSpecDao_Impl$10;-><init>(Landroidx/work/impl/model/WorkSpecDao_Impl;Landroidx/room/RoomSQLiteQuery;)V
|
||
|
|
||
|
invoke-virtual {p1}, Landroidx/work/impl/model/WorkSpecDao_Impl$10;->getLiveData()Landroidx/lifecycle/LiveData;
|
||
|
|
||
|
move-result-object p1
|
||
|
|
||
|
return-object p1
|
||
|
.end method
|
||
|
|
||
|
.method public getWorkStatusPojoLiveDataForName(Ljava/lang/String;)Landroidx/lifecycle/LiveData;
|
||
|
.locals 2
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"(",
|
||
|
"Ljava/lang/String;",
|
||
|
")",
|
||
|
"Landroidx/lifecycle/LiveData<",
|
||
|
"Ljava/util/List<",
|
||
|
"Landroidx/work/impl/model/WorkSpec$WorkInfoPojo;",
|
||
|
">;>;"
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
const/4 v0, 0x1
|
||
|
|
||
|
const-string v1, "SELECT id, state, output FROM workspec WHERE id IN (SELECT work_spec_id FROM workname WHERE name=?)"
|
||
|
|
||
|
invoke-static {v1, v0}, Landroidx/room/RoomSQLiteQuery;->acquire(Ljava/lang/String;I)Landroidx/room/RoomSQLiteQuery;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
if-nez p1, :cond_0
|
||
|
|
||
|
invoke-virtual {v1, v0}, Landroidx/room/RoomSQLiteQuery;->bindNull(I)V
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:cond_0
|
||
|
invoke-virtual {v1, v0, p1}, Landroidx/room/RoomSQLiteQuery;->bindString(ILjava/lang/String;)V
|
||
|
|
||
|
:goto_0
|
||
|
new-instance p1, Landroidx/work/impl/model/WorkSpecDao_Impl$12;
|
||
|
|
||
|
invoke-direct {p1, p0, v1}, Landroidx/work/impl/model/WorkSpecDao_Impl$12;-><init>(Landroidx/work/impl/model/WorkSpecDao_Impl;Landroidx/room/RoomSQLiteQuery;)V
|
||
|
|
||
|
invoke-virtual {p1}, Landroidx/work/impl/model/WorkSpecDao_Impl$12;->getLiveData()Landroidx/lifecycle/LiveData;
|
||
|
|
||
|
move-result-object p1
|
||
|
|
||
|
return-object p1
|
||
|
.end method
|
||
|
|
||
|
.method public getWorkStatusPojoLiveDataForTag(Ljava/lang/String;)Landroidx/lifecycle/LiveData;
|
||
|
.locals 2
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"(",
|
||
|
"Ljava/lang/String;",
|
||
|
")",
|
||
|
"Landroidx/lifecycle/LiveData<",
|
||
|
"Ljava/util/List<",
|
||
|
"Landroidx/work/impl/model/WorkSpec$WorkInfoPojo;",
|
||
|
">;>;"
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
const/4 v0, 0x1
|
||
|
|
||
|
const-string v1, "SELECT id, state, output FROM workspec WHERE id IN (SELECT work_spec_id FROM worktag WHERE tag=?)"
|
||
|
|
||
|
invoke-static {v1, v0}, Landroidx/room/RoomSQLiteQuery;->acquire(Ljava/lang/String;I)Landroidx/room/RoomSQLiteQuery;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
if-nez p1, :cond_0
|
||
|
|
||
|
invoke-virtual {v1, v0}, Landroidx/room/RoomSQLiteQuery;->bindNull(I)V
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:cond_0
|
||
|
invoke-virtual {v1, v0, p1}, Landroidx/room/RoomSQLiteQuery;->bindString(ILjava/lang/String;)V
|
||
|
|
||
|
:goto_0
|
||
|
new-instance p1, Landroidx/work/impl/model/WorkSpecDao_Impl$11;
|
||
|
|
||
|
invoke-direct {p1, p0, v1}, Landroidx/work/impl/model/WorkSpecDao_Impl$11;-><init>(Landroidx/work/impl/model/WorkSpecDao_Impl;Landroidx/room/RoomSQLiteQuery;)V
|
||
|
|
||
|
invoke-virtual {p1}, Landroidx/work/impl/model/WorkSpecDao_Impl$11;->getLiveData()Landroidx/lifecycle/LiveData;
|
||
|
|
||
|
move-result-object p1
|
||
|
|
||
|
return-object p1
|
||
|
.end method
|
||
|
|
||
|
.method public incrementWorkSpecRunAttemptCount(Ljava/lang/String;)I
|
||
|
.locals 2
|
||
|
|
||
|
iget-object v0, p0, Landroidx/work/impl/model/WorkSpecDao_Impl;->__preparedStmtOfIncrementWorkSpecRunAttemptCount:Landroidx/room/SharedSQLiteStatement;
|
||
|
|
||
|
invoke-virtual {v0}, Landroidx/room/SharedSQLiteStatement;->acquire()Landroidx/sqlite/db/SupportSQLiteStatement;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
iget-object v1, p0, Landroidx/work/impl/model/WorkSpecDao_Impl;->__db:Landroidx/room/RoomDatabase;
|
||
|
|
||
|
invoke-virtual {v1}, Landroidx/room/RoomDatabase;->beginTransaction()V
|
||
|
|
||
|
const/4 v1, 0x1
|
||
|
|
||
|
if-nez p1, :cond_0
|
||
|
|
||
|
:try_start_0
|
||
|
invoke-interface {v0, v1}, Landroidx/sqlite/db/SupportSQLiteStatement;->bindNull(I)V
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:cond_0
|
||
|
invoke-interface {v0, v1, p1}, Landroidx/sqlite/db/SupportSQLiteStatement;->bindString(ILjava/lang/String;)V
|
||
|
|
||
|
:goto_0
|
||
|
invoke-interface {v0}, Landroidx/sqlite/db/SupportSQLiteStatement;->executeUpdateDelete()I
|
||
|
|
||
|
move-result p1
|
||
|
|
||
|
iget-object v1, p0, Landroidx/work/impl/model/WorkSpecDao_Impl;->__db:Landroidx/room/RoomDatabase;
|
||
|
|
||
|
invoke-virtual {v1}, Landroidx/room/RoomDatabase;->setTransactionSuccessful()V
|
||
|
:try_end_0
|
||
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
||
|
|
||
|
iget-object v1, p0, Landroidx/work/impl/model/WorkSpecDao_Impl;->__db:Landroidx/room/RoomDatabase;
|
||
|
|
||
|
invoke-virtual {v1}, Landroidx/room/RoomDatabase;->endTransaction()V
|
||
|
|
||
|
iget-object v1, p0, Landroidx/work/impl/model/WorkSpecDao_Impl;->__preparedStmtOfIncrementWorkSpecRunAttemptCount:Landroidx/room/SharedSQLiteStatement;
|
||
|
|
||
|
invoke-virtual {v1, v0}, Landroidx/room/SharedSQLiteStatement;->release(Landroidx/sqlite/db/SupportSQLiteStatement;)V
|
||
|
|
||
|
return p1
|
||
|
|
||
|
:catchall_0
|
||
|
move-exception p1
|
||
|
|
||
|
iget-object v1, p0, Landroidx/work/impl/model/WorkSpecDao_Impl;->__db:Landroidx/room/RoomDatabase;
|
||
|
|
||
|
invoke-virtual {v1}, Landroidx/room/RoomDatabase;->endTransaction()V
|
||
|
|
||
|
iget-object v1, p0, Landroidx/work/impl/model/WorkSpecDao_Impl;->__preparedStmtOfIncrementWorkSpecRunAttemptCount:Landroidx/room/SharedSQLiteStatement;
|
||
|
|
||
|
invoke-virtual {v1, v0}, Landroidx/room/SharedSQLiteStatement;->release(Landroidx/sqlite/db/SupportSQLiteStatement;)V
|
||
|
|
||
|
throw p1
|
||
|
.end method
|
||
|
|
||
|
.method public insertWorkSpec(Landroidx/work/impl/model/WorkSpec;)V
|
||
|
.locals 1
|
||
|
|
||
|
iget-object v0, p0, Landroidx/work/impl/model/WorkSpecDao_Impl;->__db:Landroidx/room/RoomDatabase;
|
||
|
|
||
|
invoke-virtual {v0}, Landroidx/room/RoomDatabase;->beginTransaction()V
|
||
|
|
||
|
:try_start_0
|
||
|
iget-object v0, p0, Landroidx/work/impl/model/WorkSpecDao_Impl;->__insertionAdapterOfWorkSpec:Landroidx/room/EntityInsertionAdapter;
|
||
|
|
||
|
invoke-virtual {v0, p1}, Landroidx/room/EntityInsertionAdapter;->insert(Ljava/lang/Object;)V
|
||
|
|
||
|
iget-object p1, p0, Landroidx/work/impl/model/WorkSpecDao_Impl;->__db:Landroidx/room/RoomDatabase;
|
||
|
|
||
|
invoke-virtual {p1}, Landroidx/room/RoomDatabase;->setTransactionSuccessful()V
|
||
|
:try_end_0
|
||
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
||
|
|
||
|
iget-object p1, p0, Landroidx/work/impl/model/WorkSpecDao_Impl;->__db:Landroidx/room/RoomDatabase;
|
||
|
|
||
|
invoke-virtual {p1}, Landroidx/room/RoomDatabase;->endTransaction()V
|
||
|
|
||
|
return-void
|
||
|
|
||
|
:catchall_0
|
||
|
move-exception p1
|
||
|
|
||
|
iget-object v0, p0, Landroidx/work/impl/model/WorkSpecDao_Impl;->__db:Landroidx/room/RoomDatabase;
|
||
|
|
||
|
invoke-virtual {v0}, Landroidx/room/RoomDatabase;->endTransaction()V
|
||
|
|
||
|
throw p1
|
||
|
.end method
|
||
|
|
||
|
.method public markWorkSpecScheduled(Ljava/lang/String;J)I
|
||
|
.locals 2
|
||
|
|
||
|
iget-object v0, p0, Landroidx/work/impl/model/WorkSpecDao_Impl;->__preparedStmtOfMarkWorkSpecScheduled:Landroidx/room/SharedSQLiteStatement;
|
||
|
|
||
|
invoke-virtual {v0}, Landroidx/room/SharedSQLiteStatement;->acquire()Landroidx/sqlite/db/SupportSQLiteStatement;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
iget-object v1, p0, Landroidx/work/impl/model/WorkSpecDao_Impl;->__db:Landroidx/room/RoomDatabase;
|
||
|
|
||
|
invoke-virtual {v1}, Landroidx/room/RoomDatabase;->beginTransaction()V
|
||
|
|
||
|
const/4 v1, 0x1
|
||
|
|
||
|
:try_start_0
|
||
|
invoke-interface {v0, v1, p2, p3}, Landroidx/sqlite/db/SupportSQLiteStatement;->bindLong(IJ)V
|
||
|
|
||
|
const/4 p2, 0x2
|
||
|
|
||
|
if-nez p1, :cond_0
|
||
|
|
||
|
invoke-interface {v0, p2}, Landroidx/sqlite/db/SupportSQLiteStatement;->bindNull(I)V
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:cond_0
|
||
|
invoke-interface {v0, p2, p1}, Landroidx/sqlite/db/SupportSQLiteStatement;->bindString(ILjava/lang/String;)V
|
||
|
|
||
|
:goto_0
|
||
|
invoke-interface {v0}, Landroidx/sqlite/db/SupportSQLiteStatement;->executeUpdateDelete()I
|
||
|
|
||
|
move-result p1
|
||
|
|
||
|
iget-object p2, p0, Landroidx/work/impl/model/WorkSpecDao_Impl;->__db:Landroidx/room/RoomDatabase;
|
||
|
|
||
|
invoke-virtual {p2}, Landroidx/room/RoomDatabase;->setTransactionSuccessful()V
|
||
|
:try_end_0
|
||
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
||
|
|
||
|
iget-object p2, p0, Landroidx/work/impl/model/WorkSpecDao_Impl;->__db:Landroidx/room/RoomDatabase;
|
||
|
|
||
|
invoke-virtual {p2}, Landroidx/room/RoomDatabase;->endTransaction()V
|
||
|
|
||
|
iget-object p2, p0, Landroidx/work/impl/model/WorkSpecDao_Impl;->__preparedStmtOfMarkWorkSpecScheduled:Landroidx/room/SharedSQLiteStatement;
|
||
|
|
||
|
invoke-virtual {p2, v0}, Landroidx/room/SharedSQLiteStatement;->release(Landroidx/sqlite/db/SupportSQLiteStatement;)V
|
||
|
|
||
|
return p1
|
||
|
|
||
|
:catchall_0
|
||
|
move-exception p1
|
||
|
|
||
|
iget-object p2, p0, Landroidx/work/impl/model/WorkSpecDao_Impl;->__db:Landroidx/room/RoomDatabase;
|
||
|
|
||
|
invoke-virtual {p2}, Landroidx/room/RoomDatabase;->endTransaction()V
|
||
|
|
||
|
iget-object p2, p0, Landroidx/work/impl/model/WorkSpecDao_Impl;->__preparedStmtOfMarkWorkSpecScheduled:Landroidx/room/SharedSQLiteStatement;
|
||
|
|
||
|
invoke-virtual {p2, v0}, Landroidx/room/SharedSQLiteStatement;->release(Landroidx/sqlite/db/SupportSQLiteStatement;)V
|
||
|
|
||
|
throw p1
|
||
|
.end method
|
||
|
|
||
|
.method public pruneFinishedWorkWithZeroDependentsIgnoringKeepForAtLeast()V
|
||
|
.locals 3
|
||
|
|
||
|
iget-object v0, p0, Landroidx/work/impl/model/WorkSpecDao_Impl;->__preparedStmtOfPruneFinishedWorkWithZeroDependentsIgnoringKeepForAtLeast:Landroidx/room/SharedSQLiteStatement;
|
||
|
|
||
|
invoke-virtual {v0}, Landroidx/room/SharedSQLiteStatement;->acquire()Landroidx/sqlite/db/SupportSQLiteStatement;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
iget-object v1, p0, Landroidx/work/impl/model/WorkSpecDao_Impl;->__db:Landroidx/room/RoomDatabase;
|
||
|
|
||
|
invoke-virtual {v1}, Landroidx/room/RoomDatabase;->beginTransaction()V
|
||
|
|
||
|
:try_start_0
|
||
|
invoke-interface {v0}, Landroidx/sqlite/db/SupportSQLiteStatement;->executeUpdateDelete()I
|
||
|
|
||
|
iget-object v1, p0, Landroidx/work/impl/model/WorkSpecDao_Impl;->__db:Landroidx/room/RoomDatabase;
|
||
|
|
||
|
invoke-virtual {v1}, Landroidx/room/RoomDatabase;->setTransactionSuccessful()V
|
||
|
:try_end_0
|
||
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
||
|
|
||
|
iget-object v1, p0, Landroidx/work/impl/model/WorkSpecDao_Impl;->__db:Landroidx/room/RoomDatabase;
|
||
|
|
||
|
invoke-virtual {v1}, Landroidx/room/RoomDatabase;->endTransaction()V
|
||
|
|
||
|
iget-object v1, p0, Landroidx/work/impl/model/WorkSpecDao_Impl;->__preparedStmtOfPruneFinishedWorkWithZeroDependentsIgnoringKeepForAtLeast:Landroidx/room/SharedSQLiteStatement;
|
||
|
|
||
|
invoke-virtual {v1, v0}, Landroidx/room/SharedSQLiteStatement;->release(Landroidx/sqlite/db/SupportSQLiteStatement;)V
|
||
|
|
||
|
return-void
|
||
|
|
||
|
:catchall_0
|
||
|
move-exception v1
|
||
|
|
||
|
iget-object v2, p0, Landroidx/work/impl/model/WorkSpecDao_Impl;->__db:Landroidx/room/RoomDatabase;
|
||
|
|
||
|
invoke-virtual {v2}, Landroidx/room/RoomDatabase;->endTransaction()V
|
||
|
|
||
|
iget-object v2, p0, Landroidx/work/impl/model/WorkSpecDao_Impl;->__preparedStmtOfPruneFinishedWorkWithZeroDependentsIgnoringKeepForAtLeast:Landroidx/room/SharedSQLiteStatement;
|
||
|
|
||
|
invoke-virtual {v2, v0}, Landroidx/room/SharedSQLiteStatement;->release(Landroidx/sqlite/db/SupportSQLiteStatement;)V
|
||
|
|
||
|
throw v1
|
||
|
.end method
|
||
|
|
||
|
.method public resetScheduledState()I
|
||
|
.locals 3
|
||
|
|
||
|
iget-object v0, p0, Landroidx/work/impl/model/WorkSpecDao_Impl;->__preparedStmtOfResetScheduledState:Landroidx/room/SharedSQLiteStatement;
|
||
|
|
||
|
invoke-virtual {v0}, Landroidx/room/SharedSQLiteStatement;->acquire()Landroidx/sqlite/db/SupportSQLiteStatement;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
iget-object v1, p0, Landroidx/work/impl/model/WorkSpecDao_Impl;->__db:Landroidx/room/RoomDatabase;
|
||
|
|
||
|
invoke-virtual {v1}, Landroidx/room/RoomDatabase;->beginTransaction()V
|
||
|
|
||
|
:try_start_0
|
||
|
invoke-interface {v0}, Landroidx/sqlite/db/SupportSQLiteStatement;->executeUpdateDelete()I
|
||
|
|
||
|
move-result v1
|
||
|
|
||
|
iget-object v2, p0, Landroidx/work/impl/model/WorkSpecDao_Impl;->__db:Landroidx/room/RoomDatabase;
|
||
|
|
||
|
invoke-virtual {v2}, Landroidx/room/RoomDatabase;->setTransactionSuccessful()V
|
||
|
:try_end_0
|
||
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
||
|
|
||
|
iget-object v2, p0, Landroidx/work/impl/model/WorkSpecDao_Impl;->__db:Landroidx/room/RoomDatabase;
|
||
|
|
||
|
invoke-virtual {v2}, Landroidx/room/RoomDatabase;->endTransaction()V
|
||
|
|
||
|
iget-object v2, p0, Landroidx/work/impl/model/WorkSpecDao_Impl;->__preparedStmtOfResetScheduledState:Landroidx/room/SharedSQLiteStatement;
|
||
|
|
||
|
invoke-virtual {v2, v0}, Landroidx/room/SharedSQLiteStatement;->release(Landroidx/sqlite/db/SupportSQLiteStatement;)V
|
||
|
|
||
|
return v1
|
||
|
|
||
|
:catchall_0
|
||
|
move-exception v1
|
||
|
|
||
|
iget-object v2, p0, Landroidx/work/impl/model/WorkSpecDao_Impl;->__db:Landroidx/room/RoomDatabase;
|
||
|
|
||
|
invoke-virtual {v2}, Landroidx/room/RoomDatabase;->endTransaction()V
|
||
|
|
||
|
iget-object v2, p0, Landroidx/work/impl/model/WorkSpecDao_Impl;->__preparedStmtOfResetScheduledState:Landroidx/room/SharedSQLiteStatement;
|
||
|
|
||
|
invoke-virtual {v2, v0}, Landroidx/room/SharedSQLiteStatement;->release(Landroidx/sqlite/db/SupportSQLiteStatement;)V
|
||
|
|
||
|
throw v1
|
||
|
.end method
|
||
|
|
||
|
.method public resetWorkSpecRunAttemptCount(Ljava/lang/String;)I
|
||
|
.locals 2
|
||
|
|
||
|
iget-object v0, p0, Landroidx/work/impl/model/WorkSpecDao_Impl;->__preparedStmtOfResetWorkSpecRunAttemptCount:Landroidx/room/SharedSQLiteStatement;
|
||
|
|
||
|
invoke-virtual {v0}, Landroidx/room/SharedSQLiteStatement;->acquire()Landroidx/sqlite/db/SupportSQLiteStatement;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
iget-object v1, p0, Landroidx/work/impl/model/WorkSpecDao_Impl;->__db:Landroidx/room/RoomDatabase;
|
||
|
|
||
|
invoke-virtual {v1}, Landroidx/room/RoomDatabase;->beginTransaction()V
|
||
|
|
||
|
const/4 v1, 0x1
|
||
|
|
||
|
if-nez p1, :cond_0
|
||
|
|
||
|
:try_start_0
|
||
|
invoke-interface {v0, v1}, Landroidx/sqlite/db/SupportSQLiteStatement;->bindNull(I)V
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:cond_0
|
||
|
invoke-interface {v0, v1, p1}, Landroidx/sqlite/db/SupportSQLiteStatement;->bindString(ILjava/lang/String;)V
|
||
|
|
||
|
:goto_0
|
||
|
invoke-interface {v0}, Landroidx/sqlite/db/SupportSQLiteStatement;->executeUpdateDelete()I
|
||
|
|
||
|
move-result p1
|
||
|
|
||
|
iget-object v1, p0, Landroidx/work/impl/model/WorkSpecDao_Impl;->__db:Landroidx/room/RoomDatabase;
|
||
|
|
||
|
invoke-virtual {v1}, Landroidx/room/RoomDatabase;->setTransactionSuccessful()V
|
||
|
:try_end_0
|
||
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
||
|
|
||
|
iget-object v1, p0, Landroidx/work/impl/model/WorkSpecDao_Impl;->__db:Landroidx/room/RoomDatabase;
|
||
|
|
||
|
invoke-virtual {v1}, Landroidx/room/RoomDatabase;->endTransaction()V
|
||
|
|
||
|
iget-object v1, p0, Landroidx/work/impl/model/WorkSpecDao_Impl;->__preparedStmtOfResetWorkSpecRunAttemptCount:Landroidx/room/SharedSQLiteStatement;
|
||
|
|
||
|
invoke-virtual {v1, v0}, Landroidx/room/SharedSQLiteStatement;->release(Landroidx/sqlite/db/SupportSQLiteStatement;)V
|
||
|
|
||
|
return p1
|
||
|
|
||
|
:catchall_0
|
||
|
move-exception p1
|
||
|
|
||
|
iget-object v1, p0, Landroidx/work/impl/model/WorkSpecDao_Impl;->__db:Landroidx/room/RoomDatabase;
|
||
|
|
||
|
invoke-virtual {v1}, Landroidx/room/RoomDatabase;->endTransaction()V
|
||
|
|
||
|
iget-object v1, p0, Landroidx/work/impl/model/WorkSpecDao_Impl;->__preparedStmtOfResetWorkSpecRunAttemptCount:Landroidx/room/SharedSQLiteStatement;
|
||
|
|
||
|
invoke-virtual {v1, v0}, Landroidx/room/SharedSQLiteStatement;->release(Landroidx/sqlite/db/SupportSQLiteStatement;)V
|
||
|
|
||
|
throw p1
|
||
|
.end method
|
||
|
|
||
|
.method public setOutput(Ljava/lang/String;Landroidx/work/Data;)V
|
||
|
.locals 2
|
||
|
|
||
|
iget-object v0, p0, Landroidx/work/impl/model/WorkSpecDao_Impl;->__preparedStmtOfSetOutput:Landroidx/room/SharedSQLiteStatement;
|
||
|
|
||
|
invoke-virtual {v0}, Landroidx/room/SharedSQLiteStatement;->acquire()Landroidx/sqlite/db/SupportSQLiteStatement;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
iget-object v1, p0, Landroidx/work/impl/model/WorkSpecDao_Impl;->__db:Landroidx/room/RoomDatabase;
|
||
|
|
||
|
invoke-virtual {v1}, Landroidx/room/RoomDatabase;->beginTransaction()V
|
||
|
|
||
|
:try_start_0
|
||
|
invoke-static {p2}, Landroidx/work/Data;->toByteArray(Landroidx/work/Data;)[B
|
||
|
|
||
|
move-result-object p2
|
||
|
|
||
|
const/4 v1, 0x1
|
||
|
|
||
|
if-nez p2, :cond_0
|
||
|
|
||
|
invoke-interface {v0, v1}, Landroidx/sqlite/db/SupportSQLiteStatement;->bindNull(I)V
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:cond_0
|
||
|
invoke-interface {v0, v1, p2}, Landroidx/sqlite/db/SupportSQLiteStatement;->bindBlob(I[B)V
|
||
|
|
||
|
:goto_0
|
||
|
const/4 p2, 0x2
|
||
|
|
||
|
if-nez p1, :cond_1
|
||
|
|
||
|
invoke-interface {v0, p2}, Landroidx/sqlite/db/SupportSQLiteStatement;->bindNull(I)V
|
||
|
|
||
|
goto :goto_1
|
||
|
|
||
|
:cond_1
|
||
|
invoke-interface {v0, p2, p1}, Landroidx/sqlite/db/SupportSQLiteStatement;->bindString(ILjava/lang/String;)V
|
||
|
|
||
|
:goto_1
|
||
|
invoke-interface {v0}, Landroidx/sqlite/db/SupportSQLiteStatement;->executeUpdateDelete()I
|
||
|
|
||
|
iget-object p1, p0, Landroidx/work/impl/model/WorkSpecDao_Impl;->__db:Landroidx/room/RoomDatabase;
|
||
|
|
||
|
invoke-virtual {p1}, Landroidx/room/RoomDatabase;->setTransactionSuccessful()V
|
||
|
:try_end_0
|
||
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
||
|
|
||
|
iget-object p1, p0, Landroidx/work/impl/model/WorkSpecDao_Impl;->__db:Landroidx/room/RoomDatabase;
|
||
|
|
||
|
invoke-virtual {p1}, Landroidx/room/RoomDatabase;->endTransaction()V
|
||
|
|
||
|
iget-object p1, p0, Landroidx/work/impl/model/WorkSpecDao_Impl;->__preparedStmtOfSetOutput:Landroidx/room/SharedSQLiteStatement;
|
||
|
|
||
|
invoke-virtual {p1, v0}, Landroidx/room/SharedSQLiteStatement;->release(Landroidx/sqlite/db/SupportSQLiteStatement;)V
|
||
|
|
||
|
return-void
|
||
|
|
||
|
:catchall_0
|
||
|
move-exception p1
|
||
|
|
||
|
iget-object p2, p0, Landroidx/work/impl/model/WorkSpecDao_Impl;->__db:Landroidx/room/RoomDatabase;
|
||
|
|
||
|
invoke-virtual {p2}, Landroidx/room/RoomDatabase;->endTransaction()V
|
||
|
|
||
|
iget-object p2, p0, Landroidx/work/impl/model/WorkSpecDao_Impl;->__preparedStmtOfSetOutput:Landroidx/room/SharedSQLiteStatement;
|
||
|
|
||
|
invoke-virtual {p2, v0}, Landroidx/room/SharedSQLiteStatement;->release(Landroidx/sqlite/db/SupportSQLiteStatement;)V
|
||
|
|
||
|
throw p1
|
||
|
.end method
|
||
|
|
||
|
.method public setPeriodStartTime(Ljava/lang/String;J)V
|
||
|
.locals 2
|
||
|
|
||
|
iget-object v0, p0, Landroidx/work/impl/model/WorkSpecDao_Impl;->__preparedStmtOfSetPeriodStartTime:Landroidx/room/SharedSQLiteStatement;
|
||
|
|
||
|
invoke-virtual {v0}, Landroidx/room/SharedSQLiteStatement;->acquire()Landroidx/sqlite/db/SupportSQLiteStatement;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
iget-object v1, p0, Landroidx/work/impl/model/WorkSpecDao_Impl;->__db:Landroidx/room/RoomDatabase;
|
||
|
|
||
|
invoke-virtual {v1}, Landroidx/room/RoomDatabase;->beginTransaction()V
|
||
|
|
||
|
const/4 v1, 0x1
|
||
|
|
||
|
:try_start_0
|
||
|
invoke-interface {v0, v1, p2, p3}, Landroidx/sqlite/db/SupportSQLiteStatement;->bindLong(IJ)V
|
||
|
|
||
|
const/4 p2, 0x2
|
||
|
|
||
|
if-nez p1, :cond_0
|
||
|
|
||
|
invoke-interface {v0, p2}, Landroidx/sqlite/db/SupportSQLiteStatement;->bindNull(I)V
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:cond_0
|
||
|
invoke-interface {v0, p2, p1}, Landroidx/sqlite/db/SupportSQLiteStatement;->bindString(ILjava/lang/String;)V
|
||
|
|
||
|
:goto_0
|
||
|
invoke-interface {v0}, Landroidx/sqlite/db/SupportSQLiteStatement;->executeUpdateDelete()I
|
||
|
|
||
|
iget-object p1, p0, Landroidx/work/impl/model/WorkSpecDao_Impl;->__db:Landroidx/room/RoomDatabase;
|
||
|
|
||
|
invoke-virtual {p1}, Landroidx/room/RoomDatabase;->setTransactionSuccessful()V
|
||
|
:try_end_0
|
||
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
||
|
|
||
|
iget-object p1, p0, Landroidx/work/impl/model/WorkSpecDao_Impl;->__db:Landroidx/room/RoomDatabase;
|
||
|
|
||
|
invoke-virtual {p1}, Landroidx/room/RoomDatabase;->endTransaction()V
|
||
|
|
||
|
iget-object p1, p0, Landroidx/work/impl/model/WorkSpecDao_Impl;->__preparedStmtOfSetPeriodStartTime:Landroidx/room/SharedSQLiteStatement;
|
||
|
|
||
|
invoke-virtual {p1, v0}, Landroidx/room/SharedSQLiteStatement;->release(Landroidx/sqlite/db/SupportSQLiteStatement;)V
|
||
|
|
||
|
return-void
|
||
|
|
||
|
:catchall_0
|
||
|
move-exception p1
|
||
|
|
||
|
iget-object p2, p0, Landroidx/work/impl/model/WorkSpecDao_Impl;->__db:Landroidx/room/RoomDatabase;
|
||
|
|
||
|
invoke-virtual {p2}, Landroidx/room/RoomDatabase;->endTransaction()V
|
||
|
|
||
|
iget-object p2, p0, Landroidx/work/impl/model/WorkSpecDao_Impl;->__preparedStmtOfSetPeriodStartTime:Landroidx/room/SharedSQLiteStatement;
|
||
|
|
||
|
invoke-virtual {p2, v0}, Landroidx/room/SharedSQLiteStatement;->release(Landroidx/sqlite/db/SupportSQLiteStatement;)V
|
||
|
|
||
|
throw p1
|
||
|
.end method
|
||
|
|
||
|
.method public varargs setState(Landroidx/work/WorkInfo$State;[Ljava/lang/String;)I
|
||
|
.locals 4
|
||
|
|
||
|
invoke-static {}, Landroidx/room/util/StringUtil;->newStringBuilder()Ljava/lang/StringBuilder;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
const-string v1, "UPDATE workspec SET state="
|
||
|
|
||
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
const-string v1, "?"
|
||
|
|
||
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
const-string v1, " WHERE id IN ("
|
||
|
|
||
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
array-length v1, p2
|
||
|
|
||
|
invoke-static {v0, v1}, Landroidx/room/util/StringUtil;->appendPlaceholders(Ljava/lang/StringBuilder;I)V
|
||
|
|
||
|
const-string v1, ")"
|
||
|
|
||
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
iget-object v1, p0, Landroidx/work/impl/model/WorkSpecDao_Impl;->__db:Landroidx/room/RoomDatabase;
|
||
|
|
||
|
invoke-virtual {v1, v0}, Landroidx/room/RoomDatabase;->compileStatement(Ljava/lang/String;)Landroidx/sqlite/db/SupportSQLiteStatement;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
invoke-static {p1}, Landroidx/work/impl/model/WorkTypeConverters;->stateToInt(Landroidx/work/WorkInfo$State;)I
|
||
|
|
||
|
move-result p1
|
||
|
|
||
|
int-to-long v1, p1
|
||
|
|
||
|
const/4 p1, 0x1
|
||
|
|
||
|
invoke-interface {v0, p1, v1, v2}, Landroidx/sqlite/db/SupportSQLiteStatement;->bindLong(IJ)V
|
||
|
|
||
|
array-length p1, p2
|
||
|
|
||
|
const/4 v1, 0x2
|
||
|
|
||
|
const/4 v2, 0x0
|
||
|
|
||
|
:goto_0
|
||
|
if-ge v2, p1, :cond_1
|
||
|
|
||
|
aget-object v3, p2, v2
|
||
|
|
||
|
if-nez v3, :cond_0
|
||
|
|
||
|
invoke-interface {v0, v1}, Landroidx/sqlite/db/SupportSQLiteStatement;->bindNull(I)V
|
||
|
|
||
|
goto :goto_1
|
||
|
|
||
|
:cond_0
|
||
|
invoke-interface {v0, v1, v3}, Landroidx/sqlite/db/SupportSQLiteStatement;->bindString(ILjava/lang/String;)V
|
||
|
|
||
|
:goto_1
|
||
|
add-int/lit8 v1, v1, 0x1
|
||
|
|
||
|
add-int/lit8 v2, v2, 0x1
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:cond_1
|
||
|
iget-object p1, p0, Landroidx/work/impl/model/WorkSpecDao_Impl;->__db:Landroidx/room/RoomDatabase;
|
||
|
|
||
|
invoke-virtual {p1}, Landroidx/room/RoomDatabase;->beginTransaction()V
|
||
|
|
||
|
:try_start_0
|
||
|
invoke-interface {v0}, Landroidx/sqlite/db/SupportSQLiteStatement;->executeUpdateDelete()I
|
||
|
|
||
|
move-result p1
|
||
|
|
||
|
iget-object p2, p0, Landroidx/work/impl/model/WorkSpecDao_Impl;->__db:Landroidx/room/RoomDatabase;
|
||
|
|
||
|
invoke-virtual {p2}, Landroidx/room/RoomDatabase;->setTransactionSuccessful()V
|
||
|
:try_end_0
|
||
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
||
|
|
||
|
iget-object p2, p0, Landroidx/work/impl/model/WorkSpecDao_Impl;->__db:Landroidx/room/RoomDatabase;
|
||
|
|
||
|
invoke-virtual {p2}, Landroidx/room/RoomDatabase;->endTransaction()V
|
||
|
|
||
|
return p1
|
||
|
|
||
|
:catchall_0
|
||
|
move-exception p1
|
||
|
|
||
|
iget-object p2, p0, Landroidx/work/impl/model/WorkSpecDao_Impl;->__db:Landroidx/room/RoomDatabase;
|
||
|
|
||
|
invoke-virtual {p2}, Landroidx/room/RoomDatabase;->endTransaction()V
|
||
|
|
||
|
goto :goto_3
|
||
|
|
||
|
:goto_2
|
||
|
throw p1
|
||
|
|
||
|
:goto_3
|
||
|
goto :goto_2
|
||
|
.end method
|