84 lines
2.9 KiB
Smali
84 lines
2.9 KiB
Smali
.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
|
|
.method public constructor <init>()V
|
|
.locals 0
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static getFuture(Landroidx/concurrent/futures/CallbackToFutureAdapter$Resolver;)Lf/i/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/i/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
|