mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2025-01-09 13:43:22 +00:00
118 lines
3.5 KiB
Smali
118 lines
3.5 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
|
|
.annotation system Ldalvik/annotation/MethodParameters;
|
|
accessFlags = {
|
|
0x0,
|
|
0x0
|
|
}
|
|
names = {
|
|
"context",
|
|
"workerParams"
|
|
}
|
|
.end annotation
|
|
|
|
.line 51
|
|
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;
|
|
.end method
|
|
|
|
.method public getForegroundInfo()Landroidx/work/ForegroundInfo;
|
|
.locals 1
|
|
|
|
.line 127
|
|
new-instance p0, Ljava/lang/IllegalStateException;
|
|
|
|
const-string v0, "Expedited WorkRequests require a Worker to provide an implementation for \n `getForegroundInfo()`"
|
|
|
|
invoke-direct {p0, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p0
|
|
.end method
|
|
|
|
.method public getForegroundInfoAsync()Lcom/google/common/util/concurrent/ListenableFuture;
|
|
.locals 3
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"()",
|
|
"Lcom/google/common/util/concurrent/ListenableFuture<",
|
|
"Landroidx/work/ForegroundInfo;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
.line 95
|
|
invoke-static {}, Landroidx/work/impl/utils/futures/SettableFuture;->create()Landroidx/work/impl/utils/futures/SettableFuture;
|
|
|
|
move-result-object v0
|
|
|
|
.line 96
|
|
invoke-virtual {p0}, Landroidx/work/Worker;->getBackgroundExecutor()Ljava/util/concurrent/Executor;
|
|
|
|
move-result-object v1
|
|
|
|
new-instance v2, Landroidx/work/Worker$2;
|
|
|
|
invoke-direct {v2, p0, v0}, Landroidx/work/Worker$2;-><init>(Landroidx/work/Worker;Landroidx/work/impl/utils/futures/SettableFuture;)V
|
|
|
|
invoke-interface {v1, v2}, Ljava/util/concurrent/Executor;->execute(Ljava/lang/Runnable;)V
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public final startWork()Lcom/google/common/util/concurrent/ListenableFuture;
|
|
.locals 2
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"()",
|
|
"Lcom/google/common/util/concurrent/ListenableFuture<",
|
|
"Landroidx/work/ListenableWorker$Result;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
.line 77
|
|
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;
|
|
|
|
.line 78
|
|
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 p0, p0, Landroidx/work/Worker;->mFuture:Landroidx/work/impl/utils/futures/SettableFuture;
|
|
|
|
return-object p0
|
|
.end method
|