2019-12-06 03:29:40 +00:00
|
|
|
.class public Landroidx/work/impl/WorkerWrapper$2;
|
2019-07-24 11:27:29 +00:00
|
|
|
.super Ljava/lang/Object;
|
|
|
|
.source "WorkerWrapper.java"
|
|
|
|
|
|
|
|
# interfaces
|
|
|
|
.implements Ljava/lang/Runnable;
|
|
|
|
|
|
|
|
|
|
|
|
# annotations
|
|
|
|
.annotation system Ldalvik/annotation/EnclosingMethod;
|
|
|
|
value = Landroidx/work/impl/WorkerWrapper;->runWorker()V
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
2019-12-06 03:29:40 +00:00
|
|
|
accessFlags = 0x1
|
2019-07-24 11:27:29 +00:00
|
|
|
name = null
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
|
|
|
|
# instance fields
|
2019-12-06 03:29:40 +00:00
|
|
|
.field public final synthetic this$0:Landroidx/work/impl/WorkerWrapper;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
.field public final synthetic val$future:Landroidx/work/impl/utils/futures/SettableFuture;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
.field public final synthetic val$workDescription:Ljava/lang/String;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
|
|
|
|
# direct methods
|
2019-12-06 03:29:40 +00:00
|
|
|
.method public constructor <init>(Landroidx/work/impl/WorkerWrapper;Landroidx/work/impl/utils/futures/SettableFuture;Ljava/lang/String;)V
|
2019-07-24 11:27:29 +00:00
|
|
|
.locals 0
|
|
|
|
|
|
|
|
iput-object p1, p0, Landroidx/work/impl/WorkerWrapper$2;->this$0:Landroidx/work/impl/WorkerWrapper;
|
|
|
|
|
|
|
|
iput-object p2, p0, Landroidx/work/impl/WorkerWrapper$2;->val$future:Landroidx/work/impl/utils/futures/SettableFuture;
|
|
|
|
|
|
|
|
iput-object p3, p0, Landroidx/work/impl/WorkerWrapper$2;->val$workDescription:Ljava/lang/String;
|
|
|
|
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
|
|
|
|
# virtual methods
|
|
|
|
.method public run()V
|
|
|
|
.locals 8
|
2019-12-06 03:29:40 +00:00
|
|
|
.annotation build Landroid/annotation/SuppressLint;
|
|
|
|
value = {
|
|
|
|
"SyntheticAccessor"
|
|
|
|
}
|
|
|
|
.end annotation
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
const/4 v0, 0x1
|
|
|
|
|
|
|
|
const/4 v1, 0x0
|
|
|
|
|
|
|
|
:try_start_0
|
|
|
|
iget-object v2, p0, Landroidx/work/impl/WorkerWrapper$2;->val$future:Landroidx/work/impl/utils/futures/SettableFuture;
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
invoke-virtual {v2}, Landroidx/work/impl/utils/futures/AbstractFuture;->get()Ljava/lang/Object;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
|
|
|
check-cast v2, Landroidx/work/ListenableWorker$Result;
|
|
|
|
|
|
|
|
if-nez v2, :cond_0
|
|
|
|
|
|
|
|
invoke-static {}, Landroidx/work/Logger;->get()Landroidx/work/Logger;
|
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
|
|
|
sget-object v3, Landroidx/work/impl/WorkerWrapper;->TAG:Ljava/lang/String;
|
|
|
|
|
|
|
|
const-string v4, "%s returned a null result. Treating it as a failure."
|
|
|
|
|
|
|
|
new-array v5, v0, [Ljava/lang/Object;
|
|
|
|
|
|
|
|
iget-object v6, p0, Landroidx/work/impl/WorkerWrapper$2;->this$0:Landroidx/work/impl/WorkerWrapper;
|
|
|
|
|
|
|
|
iget-object v6, v6, Landroidx/work/impl/WorkerWrapper;->mWorkSpec:Landroidx/work/impl/model/WorkSpec;
|
|
|
|
|
|
|
|
iget-object v6, v6, Landroidx/work/impl/model/WorkSpec;->workerClassName:Ljava/lang/String;
|
|
|
|
|
|
|
|
aput-object v6, v5, v1
|
|
|
|
|
|
|
|
invoke-static {v4, v5}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v4
|
|
|
|
|
|
|
|
new-array v5, v1, [Ljava/lang/Throwable;
|
|
|
|
|
|
|
|
invoke-virtual {v2, v3, v4, v5}, Landroidx/work/Logger;->error(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Throwable;)V
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
goto :goto_1
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
:cond_0
|
|
|
|
invoke-static {}, Landroidx/work/Logger;->get()Landroidx/work/Logger;
|
|
|
|
|
|
|
|
move-result-object v3
|
|
|
|
|
|
|
|
sget-object v4, Landroidx/work/impl/WorkerWrapper;->TAG:Ljava/lang/String;
|
|
|
|
|
|
|
|
const-string v5, "%s returned a %s result."
|
|
|
|
|
|
|
|
const/4 v6, 0x2
|
|
|
|
|
|
|
|
new-array v6, v6, [Ljava/lang/Object;
|
|
|
|
|
|
|
|
iget-object v7, p0, Landroidx/work/impl/WorkerWrapper$2;->this$0:Landroidx/work/impl/WorkerWrapper;
|
|
|
|
|
|
|
|
iget-object v7, v7, Landroidx/work/impl/WorkerWrapper;->mWorkSpec:Landroidx/work/impl/model/WorkSpec;
|
|
|
|
|
|
|
|
iget-object v7, v7, Landroidx/work/impl/model/WorkSpec;->workerClassName:Ljava/lang/String;
|
|
|
|
|
|
|
|
aput-object v7, v6, v1
|
|
|
|
|
|
|
|
aput-object v2, v6, v0
|
|
|
|
|
|
|
|
invoke-static {v5, v6}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v5
|
|
|
|
|
|
|
|
new-array v6, v1, [Ljava/lang/Throwable;
|
|
|
|
|
|
|
|
invoke-virtual {v3, v4, v5, v6}, Landroidx/work/Logger;->debug(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Throwable;)V
|
|
|
|
|
|
|
|
iget-object v3, p0, Landroidx/work/impl/WorkerWrapper$2;->this$0:Landroidx/work/impl/WorkerWrapper;
|
|
|
|
|
|
|
|
iput-object v2, v3, Landroidx/work/impl/WorkerWrapper;->mResult:Landroidx/work/ListenableWorker$Result;
|
|
|
|
:try_end_0
|
|
|
|
.catch Ljava/util/concurrent/CancellationException; {:try_start_0 .. :try_end_0} :catch_2
|
|
|
|
.catch Ljava/lang/InterruptedException; {:try_start_0 .. :try_end_0} :catch_1
|
|
|
|
.catch Ljava/util/concurrent/ExecutionException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
goto :goto_1
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
:catchall_0
|
|
|
|
move-exception v0
|
|
|
|
|
|
|
|
goto :goto_2
|
|
|
|
|
|
|
|
:catch_0
|
|
|
|
move-exception v2
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
goto :goto_0
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
:catch_1
|
|
|
|
move-exception v2
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
:goto_0
|
2019-07-24 11:27:29 +00:00
|
|
|
:try_start_1
|
|
|
|
invoke-static {}, Landroidx/work/Logger;->get()Landroidx/work/Logger;
|
|
|
|
|
|
|
|
move-result-object v3
|
|
|
|
|
|
|
|
sget-object v4, Landroidx/work/impl/WorkerWrapper;->TAG:Ljava/lang/String;
|
|
|
|
|
|
|
|
const-string v5, "%s failed because it threw an exception/error"
|
|
|
|
|
|
|
|
new-array v6, v0, [Ljava/lang/Object;
|
|
|
|
|
|
|
|
iget-object v7, p0, Landroidx/work/impl/WorkerWrapper$2;->val$workDescription:Ljava/lang/String;
|
|
|
|
|
|
|
|
aput-object v7, v6, v1
|
|
|
|
|
|
|
|
invoke-static {v5, v6}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v5
|
|
|
|
|
|
|
|
new-array v0, v0, [Ljava/lang/Throwable;
|
|
|
|
|
|
|
|
aput-object v2, v0, v1
|
|
|
|
|
|
|
|
invoke-virtual {v3, v4, v5, v0}, Landroidx/work/Logger;->error(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Throwable;)V
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
goto :goto_1
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
:catch_2
|
|
|
|
move-exception v2
|
|
|
|
|
|
|
|
invoke-static {}, Landroidx/work/Logger;->get()Landroidx/work/Logger;
|
|
|
|
|
|
|
|
move-result-object v3
|
|
|
|
|
|
|
|
sget-object v4, Landroidx/work/impl/WorkerWrapper;->TAG:Ljava/lang/String;
|
|
|
|
|
|
|
|
const-string v5, "%s was cancelled"
|
|
|
|
|
|
|
|
new-array v6, v0, [Ljava/lang/Object;
|
|
|
|
|
|
|
|
iget-object v7, p0, Landroidx/work/impl/WorkerWrapper$2;->val$workDescription:Ljava/lang/String;
|
|
|
|
|
|
|
|
aput-object v7, v6, v1
|
|
|
|
|
|
|
|
invoke-static {v5, v6}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v5
|
|
|
|
|
|
|
|
new-array v0, v0, [Ljava/lang/Throwable;
|
|
|
|
|
|
|
|
aput-object v2, v0, v1
|
|
|
|
|
|
|
|
invoke-virtual {v3, v4, v5, v0}, Landroidx/work/Logger;->info(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Throwable;)V
|
|
|
|
:try_end_1
|
|
|
|
.catchall {:try_start_1 .. :try_end_1} :catchall_0
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
:goto_1
|
|
|
|
iget-object v0, p0, Landroidx/work/impl/WorkerWrapper$2;->this$0:Landroidx/work/impl/WorkerWrapper;
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Landroidx/work/impl/WorkerWrapper;->onWorkFinished()V
|
|
|
|
|
|
|
|
return-void
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
:goto_2
|
|
|
|
iget-object v1, p0, Landroidx/work/impl/WorkerWrapper$2;->this$0:Landroidx/work/impl/WorkerWrapper;
|
|
|
|
|
|
|
|
invoke-virtual {v1}, Landroidx/work/impl/WorkerWrapper;->onWorkFinished()V
|
|
|
|
|
|
|
|
throw v0
|
|
|
|
.end method
|