87 lines
2.6 KiB
Smali
87 lines
2.6 KiB
Smali
|
.class public abstract Landroidx/work/Worker;
|
||
|
.super Landroidx/work/ListenableWorker;
|
||
|
.source "Worker.java"
|
||
|
|
||
|
|
||
|
# instance fields
|
||
|
.field mFuture: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
|
||
|
|
||
|
|
||
|
# direct methods
|
||
|
.method public constructor <init>(Landroid/content/Context;Landroidx/work/WorkerParameters;)V
|
||
|
.locals 0
|
||
|
.param p1 # Landroid/content/Context;
|
||
|
.annotation build Landroidx/annotation/NonNull;
|
||
|
.end annotation
|
||
|
.end param
|
||
|
.param p2 # Landroidx/work/WorkerParameters;
|
||
|
.annotation build Landroidx/annotation/NonNull;
|
||
|
.end annotation
|
||
|
.end param
|
||
|
.annotation build Landroid/annotation/SuppressLint;
|
||
|
value = {
|
||
|
"BanKeepAnnotation"
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
.annotation build Landroidx/annotation/Keep;
|
||
|
.end annotation
|
||
|
|
||
|
invoke-direct {p0, p1, p2}, Landroidx/work/ListenableWorker;-><init>(Landroid/content/Context;Landroidx/work/WorkerParameters;)V
|
||
|
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
|
||
|
# virtual methods
|
||
|
.method public abstract doWork()Landroidx/work/ListenableWorker$Result;
|
||
|
.annotation build Landroidx/annotation/NonNull;
|
||
|
.end annotation
|
||
|
|
||
|
.annotation build Landroidx/annotation/WorkerThread;
|
||
|
.end annotation
|
||
|
.end method
|
||
|
|
||
|
.method public final startWork()Lcom/google/a/a/a/a;
|
||
|
.locals 2
|
||
|
.annotation build Landroidx/annotation/NonNull;
|
||
|
.end annotation
|
||
|
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"()",
|
||
|
"Lcom/google/a/a/a/a<",
|
||
|
"Landroidx/work/ListenableWorker$Result;",
|
||
|
">;"
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
invoke-static {}, Landroidx/work/impl/utils/futures/SettableFuture;->create()Landroidx/work/impl/utils/futures/SettableFuture;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
iput-object v0, p0, Landroidx/work/Worker;->mFuture:Landroidx/work/impl/utils/futures/SettableFuture;
|
||
|
|
||
|
invoke-virtual {p0}, Landroidx/work/Worker;->getBackgroundExecutor()Ljava/util/concurrent/Executor;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
new-instance v1, Landroidx/work/Worker$1;
|
||
|
|
||
|
invoke-direct {v1, p0}, Landroidx/work/Worker$1;-><init>(Landroidx/work/Worker;)V
|
||
|
|
||
|
invoke-interface {v0, v1}, Ljava/util/concurrent/Executor;->execute(Ljava/lang/Runnable;)V
|
||
|
|
||
|
iget-object v0, p0, Landroidx/work/Worker;->mFuture:Landroidx/work/impl/utils/futures/SettableFuture;
|
||
|
|
||
|
return-object v0
|
||
|
.end method
|