2019-07-24 11:27:29 +00:00
|
|
|
.class public abstract Landroidx/work/CoroutineWorker;
|
|
|
|
.super Landroidx/work/ListenableWorker;
|
|
|
|
.source "CoroutineWorker.kt"
|
|
|
|
|
|
|
|
|
|
|
|
# instance fields
|
2020-04-11 15:34:05 +00:00
|
|
|
.field public final coroutineContext:La0/a/x;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
.field public final future:Landroidx/work/impl/utils/futures/SettableFuture;
|
2019-07-24 11:27:29 +00:00
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"Landroidx/work/impl/utils/futures/SettableFuture<",
|
|
|
|
"Landroidx/work/ListenableWorker$Result;",
|
|
|
|
">;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
.end field
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
.field public final job:Lkotlinx/coroutines/Job;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
|
|
|
|
# direct methods
|
|
|
|
.method public constructor <init>(Landroid/content/Context;Landroidx/work/WorkerParameters;)V
|
|
|
|
.locals 2
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
const/4 v0, 0x0
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
if-eqz p1, :cond_1
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
if-eqz p2, :cond_0
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-direct {p0, p1, p2}, Landroidx/work/ListenableWorker;-><init>(Landroid/content/Context;Landroidx/work/WorkerParameters;)V
|
|
|
|
|
2020-04-11 15:34:05 +00:00
|
|
|
invoke-static {v0}, Lf/n/a/j/a;->a(Lkotlinx/coroutines/Job;)La0/a/p;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
iput-object p1, p0, Landroidx/work/CoroutineWorker;->job:Lkotlinx/coroutines/Job;
|
|
|
|
|
|
|
|
invoke-static {}, Landroidx/work/impl/utils/futures/SettableFuture;->create()Landroidx/work/impl/utils/futures/SettableFuture;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
const-string p2, "SettableFuture.create()"
|
|
|
|
|
2020-04-11 15:34:05 +00:00
|
|
|
invoke-static {p1, p2}, Lz/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
iput-object p1, p0, Landroidx/work/CoroutineWorker;->future:Landroidx/work/impl/utils/futures/SettableFuture;
|
|
|
|
|
|
|
|
iget-object p1, p0, Landroidx/work/CoroutineWorker;->future:Landroidx/work/impl/utils/futures/SettableFuture;
|
|
|
|
|
|
|
|
new-instance p2, Landroidx/work/CoroutineWorker$1;
|
|
|
|
|
|
|
|
invoke-direct {p2, p0}, Landroidx/work/CoroutineWorker$1;-><init>(Landroidx/work/CoroutineWorker;)V
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
invoke-virtual {p0}, Landroidx/work/ListenableWorker;->getTaskExecutor()Landroidx/work/impl/utils/taskexecutor/TaskExecutor;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
const-string v1, "taskExecutor"
|
|
|
|
|
2020-04-11 15:34:05 +00:00
|
|
|
invoke-static {v0, v1}, Lz/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-10-07 23:23:22 +00:00
|
|
|
invoke-interface {v0}, Landroidx/work/impl/utils/taskexecutor/TaskExecutor;->getBackgroundExecutor()Landroidx/work/impl/utils/SerialExecutor;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
invoke-virtual {p1, p2, v0}, Landroidx/work/impl/utils/futures/AbstractFuture;->addListener(Ljava/lang/Runnable;Ljava/util/concurrent/Executor;)V
|
2019-10-07 23:23:22 +00:00
|
|
|
|
2020-04-11 15:34:05 +00:00
|
|
|
sget-object p1, La0/a/n0;->a:La0/a/x;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2020-04-11 15:34:05 +00:00
|
|
|
iput-object p1, p0, Landroidx/work/CoroutineWorker;->coroutineContext:La0/a/x;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
return-void
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
:cond_0
|
|
|
|
const-string p1, "params"
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2020-04-11 15:34:05 +00:00
|
|
|
invoke-static {p1}, Lz/u/b/j;->a(Ljava/lang/String;)V
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
throw v0
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
const-string p1, "appContext"
|
|
|
|
|
2020-04-11 15:34:05 +00:00
|
|
|
invoke-static {p1}, Lz/u/b/j;->a(Ljava/lang/String;)V
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
throw v0
|
2019-07-24 11:27:29 +00:00
|
|
|
.end method
|
|
|
|
|
2019-10-07 23:23:22 +00:00
|
|
|
.method public static synthetic coroutineContext$annotations()V
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
# virtual methods
|
|
|
|
.method public abstract doWork(Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"(",
|
|
|
|
"Lkotlin/coroutines/Continuation<",
|
|
|
|
"-",
|
|
|
|
"Landroidx/work/ListenableWorker$Result;",
|
|
|
|
">;)",
|
|
|
|
"Ljava/lang/Object;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
.end method
|
|
|
|
|
2020-04-11 15:34:05 +00:00
|
|
|
.method public getCoroutineContext()La0/a/x;
|
2019-07-24 11:27:29 +00:00
|
|
|
.locals 1
|
|
|
|
|
2020-04-11 15:34:05 +00:00
|
|
|
iget-object v0, p0, Landroidx/work/CoroutineWorker;->coroutineContext:La0/a/x;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final getFuture$work_runtime_ktx_release()Landroidx/work/impl/utils/futures/SettableFuture;
|
|
|
|
.locals 1
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"()",
|
|
|
|
"Landroidx/work/impl/utils/futures/SettableFuture<",
|
|
|
|
"Landroidx/work/ListenableWorker$Result;",
|
|
|
|
">;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
iget-object v0, p0, Landroidx/work/CoroutineWorker;->future:Landroidx/work/impl/utils/futures/SettableFuture;
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final getJob$work_runtime_ktx_release()Lkotlinx/coroutines/Job;
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
iget-object v0, p0, Landroidx/work/CoroutineWorker;->job:Lkotlinx/coroutines/Job;
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final onStopped()V
|
|
|
|
.locals 2
|
|
|
|
|
|
|
|
invoke-super {p0}, Landroidx/work/ListenableWorker;->onStopped()V
|
|
|
|
|
|
|
|
iget-object v0, p0, Landroidx/work/CoroutineWorker;->future:Landroidx/work/impl/utils/futures/SettableFuture;
|
|
|
|
|
|
|
|
const/4 v1, 0x0
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
invoke-virtual {v0, v1}, Landroidx/work/impl/utils/futures/AbstractFuture;->cancel(Z)Z
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
2020-04-11 15:34:05 +00:00
|
|
|
.method public final startWork()Lf/k/b/a/a/a;
|
2019-12-13 00:28:30 +00:00
|
|
|
.locals 7
|
2019-07-24 11:27:29 +00:00
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"()",
|
2020-04-11 15:34:05 +00:00
|
|
|
"Lf/k/b/a/a/a<",
|
2019-07-24 11:27:29 +00:00
|
|
|
"Landroidx/work/ListenableWorker$Result;",
|
|
|
|
">;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
2020-04-11 15:34:05 +00:00
|
|
|
invoke-virtual {p0}, Landroidx/work/CoroutineWorker;->getCoroutineContext()La0/a/x;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
iget-object v1, p0, Landroidx/work/CoroutineWorker;->job:Lkotlinx/coroutines/Job;
|
|
|
|
|
2020-04-11 15:34:05 +00:00
|
|
|
invoke-virtual {v0, v1}, Lz/s/a;->plus(Lkotlin/coroutines/CoroutineContext;)Lkotlin/coroutines/CoroutineContext;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
2020-04-11 15:34:05 +00:00
|
|
|
invoke-static {v0}, Lf/n/a/j/a;->a(Lkotlin/coroutines/CoroutineContext;)Lkotlinx/coroutines/CoroutineScope;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-13 00:28:30 +00:00
|
|
|
move-result-object v1
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-13 00:28:30 +00:00
|
|
|
new-instance v4, Landroidx/work/CoroutineWorker$startWork$1;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-13 00:28:30 +00:00
|
|
|
const/4 v0, 0x0
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-13 00:28:30 +00:00
|
|
|
invoke-direct {v4, p0, v0}, Landroidx/work/CoroutineWorker$startWork$1;-><init>(Landroidx/work/CoroutineWorker;Lkotlin/coroutines/Continuation;)V
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-13 00:28:30 +00:00
|
|
|
const/4 v2, 0x0
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
const/4 v3, 0x0
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-13 00:28:30 +00:00
|
|
|
const/4 v5, 0x3
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-13 00:28:30 +00:00
|
|
|
const/4 v6, 0x0
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2020-04-11 15:34:05 +00:00
|
|
|
invoke-static/range {v1 .. v6}, Lf/n/a/j/a;->a(Lkotlinx/coroutines/CoroutineScope;Lkotlin/coroutines/CoroutineContext;La0/a/c0;Lkotlin/jvm/functions/Function2;ILjava/lang/Object;)Lkotlinx/coroutines/Job;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
iget-object v0, p0, Landroidx/work/CoroutineWorker;->future:Landroidx/work/impl/utils/futures/SettableFuture;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|