apkfuckery/com.discord/smali/androidx/work/OperationKt.smali

155 lines
4.2 KiB
Smali
Raw Normal View History

2020-05-17 12:40:10 +00:00
.class public final Landroidx/work/OperationKt;
.super Ljava/lang/Object;
.source "Operation.kt"
# direct methods
.method public static final await(Landroidx/work/Operation;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
.locals 2
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Landroidx/work/Operation;",
"Lkotlin/coroutines/Continuation<",
"-",
"Landroidx/work/Operation$State$SUCCESS;",
">;)",
"Ljava/lang/Object;"
}
.end annotation
2020-07-23 01:06:17 +00:00
invoke-interface {p0}, Landroidx/work/Operation;->getResult()Lf/h/b/a/a/a;
2020-05-17 12:40:10 +00:00
move-result-object p0
const-string v0, "result"
2020-07-25 00:57:58 +00:00
invoke-static {p0, v0}, Lj0/n/c/h;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2020-05-17 12:40:10 +00:00
invoke-interface {p0}, Ljava/util/concurrent/Future;->isDone()Z
move-result v0
if-eqz v0, :cond_1
:try_start_0
invoke-interface {p0}, Ljava/util/concurrent/Future;->get()Ljava/lang/Object;
move-result-object p0
:try_end_0
.catch Ljava/util/concurrent/ExecutionException; {:try_start_0 .. :try_end_0} :catch_0
goto :goto_0
:catch_0
move-exception p0
invoke-virtual {p0}, Ljava/util/concurrent/ExecutionException;->getCause()Ljava/lang/Throwable;
move-result-object p1
if-eqz p1, :cond_0
move-object p0, p1
:cond_0
throw p0
:cond_1
2020-07-23 01:06:17 +00:00
new-instance v0, Lk0/a/g;
2020-05-17 12:40:10 +00:00
2020-07-25 02:57:47 +00:00
invoke-static {p1}, Lf/n/a/k/a;->intercepted(Lkotlin/coroutines/Continuation;)Lkotlin/coroutines/Continuation;
2020-05-17 12:40:10 +00:00
move-result-object p1
const/4 v1, 0x1
2020-07-23 01:06:17 +00:00
invoke-direct {v0, p1, v1}, Lk0/a/g;-><init>(Lkotlin/coroutines/Continuation;I)V
2020-05-17 12:40:10 +00:00
new-instance p1, Landroidx/work/OperationKt$await$$inlined$suspendCancellableCoroutine$lambda$1;
2020-07-23 01:06:17 +00:00
invoke-direct {p1, v0, p0}, Landroidx/work/OperationKt$await$$inlined$suspendCancellableCoroutine$lambda$1;-><init>(Lk0/a/f;Lf/h/b/a/a/a;)V
2020-05-17 12:40:10 +00:00
sget-object v1, Landroidx/work/DirectExecutor;->INSTANCE:Landroidx/work/DirectExecutor;
2020-07-23 01:06:17 +00:00
invoke-interface {p0, p1, v1}, Lf/h/b/a/a/a;->addListener(Ljava/lang/Runnable;Ljava/util/concurrent/Executor;)V
2020-05-17 12:40:10 +00:00
2020-07-23 01:06:17 +00:00
invoke-virtual {v0}, Lk0/a/g;->k()Ljava/lang/Object;
2020-05-17 12:40:10 +00:00
move-result-object p0
2020-07-25 00:57:58 +00:00
sget-object p1, Lj0/k/g/a;->d:Lj0/k/g/a;
2020-05-17 12:40:10 +00:00
:goto_0
return-object p0
.end method
.method public static final await$$forInline(Landroidx/work/Operation;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
.locals 2
2020-07-23 01:06:17 +00:00
invoke-interface {p0}, Landroidx/work/Operation;->getResult()Lf/h/b/a/a/a;
2020-05-17 12:40:10 +00:00
move-result-object p0
const-string v0, "result"
2020-07-25 00:57:58 +00:00
invoke-static {p0, v0}, Lj0/n/c/h;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2020-05-17 12:40:10 +00:00
invoke-interface {p0}, Ljava/util/concurrent/Future;->isDone()Z
move-result v0
if-eqz v0, :cond_1
:try_start_0
invoke-interface {p0}, Ljava/util/concurrent/Future;->get()Ljava/lang/Object;
move-result-object p0
:try_end_0
.catch Ljava/util/concurrent/ExecutionException; {:try_start_0 .. :try_end_0} :catch_0
goto :goto_0
:catch_0
move-exception p0
invoke-virtual {p0}, Ljava/util/concurrent/ExecutionException;->getCause()Ljava/lang/Throwable;
move-result-object p1
if-eqz p1, :cond_0
move-object p0, p1
:cond_0
throw p0
:cond_1
2020-07-23 01:06:17 +00:00
new-instance v0, Lk0/a/g;
2020-05-17 12:40:10 +00:00
2020-07-25 02:57:47 +00:00
invoke-static {p1}, Lf/n/a/k/a;->intercepted(Lkotlin/coroutines/Continuation;)Lkotlin/coroutines/Continuation;
2020-05-17 12:40:10 +00:00
move-result-object p1
const/4 v1, 0x1
2020-07-23 01:06:17 +00:00
invoke-direct {v0, p1, v1}, Lk0/a/g;-><init>(Lkotlin/coroutines/Continuation;I)V
2020-05-17 12:40:10 +00:00
new-instance p1, Landroidx/work/OperationKt$await$$inlined$suspendCancellableCoroutine$lambda$1;
2020-07-23 01:06:17 +00:00
invoke-direct {p1, v0, p0}, Landroidx/work/OperationKt$await$$inlined$suspendCancellableCoroutine$lambda$1;-><init>(Lk0/a/f;Lf/h/b/a/a/a;)V
2020-05-17 12:40:10 +00:00
sget-object v1, Landroidx/work/DirectExecutor;->INSTANCE:Landroidx/work/DirectExecutor;
2020-07-23 01:06:17 +00:00
invoke-interface {p0, p1, v1}, Lf/h/b/a/a/a;->addListener(Ljava/lang/Runnable;Ljava/util/concurrent/Executor;)V
2020-05-17 12:40:10 +00:00
2020-07-23 01:06:17 +00:00
invoke-virtual {v0}, Lk0/a/g;->k()Ljava/lang/Object;
2020-05-17 12:40:10 +00:00
move-result-object p0
2020-07-25 00:57:58 +00:00
sget-object p1, Lj0/k/g/a;->d:Lj0/k/g/a;
2020-05-17 12:40:10 +00:00
:goto_0
return-object p0
.end method