apkfuckery/com.discord/smali/androidx/concurrent/futures/CallbackToFutureAdapter.smali

85 lines
2.9 KiB
Smali
Raw Normal View History

2020-07-08 16:44:49 +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
.method public constructor <init>()V
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
2020-07-23 01:06:17 +00:00
.method public static getFuture(Landroidx/concurrent/futures/CallbackToFutureAdapter$Resolver;)Lf/h/b/a/a/a;
2020-07-08 16:44:49 +00:00
.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;>;)",
2020-07-23 01:06:17 +00:00
"Lf/h/b/a/a/a<",
2020-07-08 16:44:49 +00:00
"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