2020-11-12 02:11:44 +00:00
|
|
|
.class public final Landroidx/concurrent/futures/CallbackToFutureAdapter;
|
|
|
|
.super Ljava/lang/Object;
|
|
|
|
.source "CallbackToFutureAdapter.java"
|
|
|
|
|
|
|
|
|
|
|
|
# annotations
|
|
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
|
|
value = {
|
|
|
|
Landroidx/concurrent/futures/CallbackToFutureAdapter$FutureGarbageCollectedException;,
|
|
|
|
Landroidx/concurrent/futures/CallbackToFutureAdapter$Completer;,
|
|
|
|
Landroidx/concurrent/futures/CallbackToFutureAdapter$SafeFuture;,
|
|
|
|
Landroidx/concurrent/futures/CallbackToFutureAdapter$Resolver;
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
|
|
|
|
# direct methods
|
2020-11-16 22:05:17 +00:00
|
|
|
.method private constructor <init>()V
|
2020-11-12 02:11:44 +00:00
|
|
|
.locals 0
|
|
|
|
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public static getFuture(Landroidx/concurrent/futures/CallbackToFutureAdapter$Resolver;)Lf/h/b/a/a/a;
|
|
|
|
.locals 3
|
|
|
|
.param p0 # Landroidx/concurrent/futures/CallbackToFutureAdapter$Resolver;
|
|
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
|
|
.end annotation
|
|
|
|
.end param
|
|
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"<T:",
|
|
|
|
"Ljava/lang/Object;",
|
|
|
|
">(",
|
|
|
|
"Landroidx/concurrent/futures/CallbackToFutureAdapter$Resolver<",
|
|
|
|
"TT;>;)",
|
|
|
|
"Lf/h/b/a/a/a<",
|
|
|
|
"TT;>;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
new-instance v0, Landroidx/concurrent/futures/CallbackToFutureAdapter$Completer;
|
|
|
|
|
|
|
|
invoke-direct {v0}, Landroidx/concurrent/futures/CallbackToFutureAdapter$Completer;-><init>()V
|
|
|
|
|
|
|
|
new-instance v1, Landroidx/concurrent/futures/CallbackToFutureAdapter$SafeFuture;
|
|
|
|
|
|
|
|
invoke-direct {v1, v0}, Landroidx/concurrent/futures/CallbackToFutureAdapter$SafeFuture;-><init>(Landroidx/concurrent/futures/CallbackToFutureAdapter$Completer;)V
|
|
|
|
|
|
|
|
iput-object v1, v0, Landroidx/concurrent/futures/CallbackToFutureAdapter$Completer;->future:Landroidx/concurrent/futures/CallbackToFutureAdapter$SafeFuture;
|
|
|
|
|
|
|
|
invoke-virtual {p0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
|
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
|
|
|
iput-object v2, v0, Landroidx/concurrent/futures/CallbackToFutureAdapter$Completer;->tag:Ljava/lang/Object;
|
|
|
|
|
|
|
|
:try_start_0
|
|
|
|
invoke-interface {p0, v0}, Landroidx/concurrent/futures/CallbackToFutureAdapter$Resolver;->attachCompleter(Landroidx/concurrent/futures/CallbackToFutureAdapter$Completer;)Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-result-object p0
|
|
|
|
|
|
|
|
if-eqz p0, :cond_0
|
|
|
|
|
|
|
|
iput-object p0, v0, Landroidx/concurrent/futures/CallbackToFutureAdapter$Completer;->tag:Ljava/lang/Object;
|
|
|
|
:try_end_0
|
|
|
|
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:catch_0
|
|
|
|
move-exception p0
|
|
|
|
|
|
|
|
invoke-virtual {v1, p0}, Landroidx/concurrent/futures/CallbackToFutureAdapter$SafeFuture;->setException(Ljava/lang/Throwable;)Z
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
:goto_0
|
|
|
|
return-object v1
|
|
|
|
.end method
|