2020-05-17 12:40:10 +00:00
|
|
|
.class public final Landroidx/work/ListenableFutureKt;
|
|
|
|
.super Ljava/lang/Object;
|
|
|
|
.source "ListenableFuture.kt"
|
|
|
|
|
|
|
|
|
|
|
|
# direct methods
|
2020-07-23 01:06:17 +00:00
|
|
|
.method public static final await(Lf/h/b/a/a/a;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
2020-09-16 23:45:23 +00:00
|
|
|
.locals 3
|
2020-05-17 12:40:10 +00:00
|
|
|
.annotation build Landroidx/annotation/RestrictTo;
|
|
|
|
value = {
|
|
|
|
.enum Landroidx/annotation/RestrictTo$Scope;->LIBRARY_GROUP:Landroidx/annotation/RestrictTo$Scope;
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"<R:",
|
|
|
|
"Ljava/lang/Object;",
|
|
|
|
">(",
|
2020-07-23 01:06:17 +00:00
|
|
|
"Lf/h/b/a/a/a<",
|
2020-05-17 12:40:10 +00:00
|
|
|
"TR;>;",
|
|
|
|
"Lkotlin/coroutines/Continuation<",
|
|
|
|
"-TR;>;)",
|
|
|
|
"Ljava/lang/Object;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
return-object p0
|
|
|
|
|
|
|
|
: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-09-22 06:09:03 +00:00
|
|
|
new-instance v0, Ll0/a/g;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-22 06:09:03 +00:00
|
|
|
invoke-static {p1}, Lk0/j/a;->intercepted(Lkotlin/coroutines/Continuation;)Lkotlin/coroutines/Continuation;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
move-result-object v1
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
const/4 v2, 0x1
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-22 06:09:03 +00:00
|
|
|
invoke-direct {v0, v1, v2}, Ll0/a/g;-><init>(Lkotlin/coroutines/Continuation;I)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
new-instance v1, Landroidx/work/ListenableFutureKt$await$$inlined$suspendCancellableCoroutine$lambda$1;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-22 06:09:03 +00:00
|
|
|
invoke-direct {v1, v0, p0}, Landroidx/work/ListenableFutureKt$await$$inlined$suspendCancellableCoroutine$lambda$1;-><init>(Ll0/a/f;Lf/h/b/a/a/a;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
sget-object v2, Landroidx/work/DirectExecutor;->INSTANCE:Landroidx/work/DirectExecutor;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
invoke-interface {p0, v1, v2}, Lf/h/b/a/a/a;->addListener(Ljava/lang/Runnable;Ljava/util/concurrent/Executor;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-22 06:09:03 +00:00
|
|
|
invoke-virtual {v0}, Ll0/a/g;->k()Ljava/lang/Object;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-result-object p0
|
|
|
|
|
2020-09-22 06:09:03 +00:00
|
|
|
sget-object v0, Lk0/k/g/a;->d:Lk0/k/g/a;
|
2020-09-16 23:45:23 +00:00
|
|
|
|
|
|
|
if-ne p0, v0, :cond_2
|
|
|
|
|
|
|
|
const-string v0, "frame"
|
|
|
|
|
2020-09-22 06:09:03 +00:00
|
|
|
invoke-static {p1, v0}, Lk0/n/c/i;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
:cond_2
|
2020-05-17 12:40:10 +00:00
|
|
|
return-object p0
|
|
|
|
.end method
|
|
|
|
|
2020-07-23 01:06:17 +00:00
|
|
|
.method public static final await$$forInline(Lf/h/b/a/a/a;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
|
2020-09-16 23:45:23 +00:00
|
|
|
.locals 3
|
2020-05-17 12:40:10 +00:00
|
|
|
.annotation build Landroidx/annotation/RestrictTo;
|
|
|
|
value = {
|
|
|
|
.enum Landroidx/annotation/RestrictTo$Scope;->LIBRARY_GROUP:Landroidx/annotation/RestrictTo$Scope;
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
return-object p0
|
|
|
|
|
|
|
|
: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-09-22 06:09:03 +00:00
|
|
|
new-instance v0, Ll0/a/g;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-22 06:09:03 +00:00
|
|
|
invoke-static {p1}, Lk0/j/a;->intercepted(Lkotlin/coroutines/Continuation;)Lkotlin/coroutines/Continuation;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
move-result-object v1
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
const/4 v2, 0x1
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-22 06:09:03 +00:00
|
|
|
invoke-direct {v0, v1, v2}, Ll0/a/g;-><init>(Lkotlin/coroutines/Continuation;I)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
new-instance v1, Landroidx/work/ListenableFutureKt$await$$inlined$suspendCancellableCoroutine$lambda$1;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-22 06:09:03 +00:00
|
|
|
invoke-direct {v1, v0, p0}, Landroidx/work/ListenableFutureKt$await$$inlined$suspendCancellableCoroutine$lambda$1;-><init>(Ll0/a/f;Lf/h/b/a/a/a;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
sget-object v2, Landroidx/work/DirectExecutor;->INSTANCE:Landroidx/work/DirectExecutor;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
invoke-interface {p0, v1, v2}, Lf/h/b/a/a/a;->addListener(Ljava/lang/Runnable;Ljava/util/concurrent/Executor;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-22 06:09:03 +00:00
|
|
|
invoke-virtual {v0}, Ll0/a/g;->k()Ljava/lang/Object;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
move-result-object p0
|
|
|
|
|
2020-09-22 06:09:03 +00:00
|
|
|
sget-object v0, Lk0/k/g/a;->d:Lk0/k/g/a;
|
2020-09-16 23:45:23 +00:00
|
|
|
|
|
|
|
if-ne p0, v0, :cond_2
|
|
|
|
|
|
|
|
const-string v0, "frame"
|
|
|
|
|
2020-09-22 06:09:03 +00:00
|
|
|
invoke-static {p1, v0}, Lk0/n/c/i;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-09-16 23:45:23 +00:00
|
|
|
:cond_2
|
2020-05-17 12:40:10 +00:00
|
|
|
return-object p0
|
|
|
|
.end method
|