202 lines
5.9 KiB
Smali
202 lines
5.9 KiB
Smali
.class public abstract Landroidx/work/CoroutineWorker;
|
|
.super Landroidx/work/ListenableWorker;
|
|
.source "CoroutineWorker.kt"
|
|
|
|
|
|
# instance fields
|
|
.field public final coroutineContext:Lz/a/x;
|
|
|
|
.field public final future:Landroidx/work/impl/utils/futures/SettableFuture;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Landroidx/work/impl/utils/futures/SettableFuture<",
|
|
"Landroidx/work/ListenableWorker$Result;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field public final job:Lkotlinx/coroutines/Job;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Landroid/content/Context;Landroidx/work/WorkerParameters;)V
|
|
.locals 2
|
|
|
|
const/4 v0, 0x0
|
|
|
|
if-eqz p1, :cond_1
|
|
|
|
if-eqz p2, :cond_0
|
|
|
|
invoke-direct {p0, p1, p2}, Landroidx/work/ListenableWorker;-><init>(Landroid/content/Context;Landroidx/work/WorkerParameters;)V
|
|
|
|
invoke-static {v0}, Le/k/a/c/e/p/g;->a(Lkotlinx/coroutines/Job;)Lz/a/p;
|
|
|
|
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()"
|
|
|
|
invoke-static {p1, p2}, Ly/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
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
|
|
|
|
invoke-virtual {p0}, Landroidx/work/ListenableWorker;->getTaskExecutor()Landroidx/work/impl/utils/taskexecutor/TaskExecutor;
|
|
|
|
move-result-object v0
|
|
|
|
const-string v1, "taskExecutor"
|
|
|
|
invoke-static {v0, v1}, Ly/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
invoke-interface {v0}, Landroidx/work/impl/utils/taskexecutor/TaskExecutor;->getBackgroundExecutor()Landroidx/work/impl/utils/SerialExecutor;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {p1, p2, v0}, Landroidx/work/impl/utils/futures/AbstractFuture;->addListener(Ljava/lang/Runnable;Ljava/util/concurrent/Executor;)V
|
|
|
|
sget-object p1, Lz/a/n0;->a:Lz/a/x;
|
|
|
|
iput-object p1, p0, Landroidx/work/CoroutineWorker;->coroutineContext:Lz/a/x;
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
const-string p1, "params"
|
|
|
|
invoke-static {p1}, Ly/u/b/j;->a(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
|
|
:cond_1
|
|
const-string p1, "appContext"
|
|
|
|
invoke-static {p1}, Ly/u/b/j;->a(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
.end method
|
|
|
|
.method public static synthetic coroutineContext$annotations()V
|
|
.locals 0
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# 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
|
|
|
|
.method public getCoroutineContext()Lz/a/x;
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Landroidx/work/CoroutineWorker;->coroutineContext:Lz/a/x;
|
|
|
|
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
|
|
|
|
invoke-virtual {v0, v1}, Landroidx/work/impl/utils/futures/AbstractFuture;->cancel(Z)Z
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public final startWork()Le/k/b/a/a/a;
|
|
.locals 7
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"()",
|
|
"Le/k/b/a/a/a<",
|
|
"Landroidx/work/ListenableWorker$Result;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
invoke-virtual {p0}, Landroidx/work/CoroutineWorker;->getCoroutineContext()Lz/a/x;
|
|
|
|
move-result-object v0
|
|
|
|
iget-object v1, p0, Landroidx/work/CoroutineWorker;->job:Lkotlinx/coroutines/Job;
|
|
|
|
invoke-virtual {v0, v1}, Ly/s/a;->plus(Lkotlin/coroutines/CoroutineContext;)Lkotlin/coroutines/CoroutineContext;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-static {v0}, Le/k/a/c/e/p/g;->a(Lkotlin/coroutines/CoroutineContext;)Lkotlinx/coroutines/CoroutineScope;
|
|
|
|
move-result-object v1
|
|
|
|
new-instance v4, Landroidx/work/CoroutineWorker$startWork$1;
|
|
|
|
const/4 v0, 0x0
|
|
|
|
invoke-direct {v4, p0, v0}, Landroidx/work/CoroutineWorker$startWork$1;-><init>(Landroidx/work/CoroutineWorker;Lkotlin/coroutines/Continuation;)V
|
|
|
|
const/4 v2, 0x0
|
|
|
|
const/4 v3, 0x0
|
|
|
|
const/4 v5, 0x3
|
|
|
|
const/4 v6, 0x0
|
|
|
|
invoke-static/range {v1 .. v6}, Le/k/a/c/e/p/g;->a(Lkotlinx/coroutines/CoroutineScope;Lkotlin/coroutines/CoroutineContext;Lz/a/c0;Lkotlin/jvm/functions/Function2;ILjava/lang/Object;)Lkotlinx/coroutines/Job;
|
|
|
|
iget-object v0, p0, Landroidx/work/CoroutineWorker;->future:Landroidx/work/impl/utils/futures/SettableFuture;
|
|
|
|
return-object v0
|
|
.end method
|