78 lines
2.6 KiB
Smali
78 lines
2.6 KiB
Smali
.class final Landroidx/work/impl/utils/futures/FutureExtras$2;
|
|
.super Ljava/lang/Object;
|
|
|
|
# interfaces
|
|
.implements Ljava/lang/Runnable;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingMethod;
|
|
value = Landroidx/work/impl/utils/futures/FutureExtras;->flatMap(Lcom/google/a/a/a/a;Ljava/util/concurrent/Executor;Landroidx/arch/core/util/Function;)Lcom/google/a/a/a/a;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x8
|
|
name = null
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field final synthetic val$inputFuture:Lcom/google/a/a/a/a;
|
|
|
|
.field final synthetic val$outputFuture:Landroidx/work/impl/utils/futures/SettableFuture;
|
|
|
|
.field final synthetic val$transformation:Landroidx/arch/core/util/Function;
|
|
|
|
|
|
# direct methods
|
|
.method constructor <init>(Lcom/google/a/a/a/a;Landroidx/arch/core/util/Function;Landroidx/work/impl/utils/futures/SettableFuture;)V
|
|
.locals 0
|
|
|
|
iput-object p1, p0, Landroidx/work/impl/utils/futures/FutureExtras$2;->val$inputFuture:Lcom/google/a/a/a/a;
|
|
|
|
iput-object p2, p0, Landroidx/work/impl/utils/futures/FutureExtras$2;->val$transformation:Landroidx/arch/core/util/Function;
|
|
|
|
iput-object p3, p0, Landroidx/work/impl/utils/futures/FutureExtras$2;->val$outputFuture:Landroidx/work/impl/utils/futures/SettableFuture;
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final run()V
|
|
.locals 2
|
|
|
|
:try_start_0
|
|
iget-object v0, p0, Landroidx/work/impl/utils/futures/FutureExtras$2;->val$inputFuture:Lcom/google/a/a/a/a;
|
|
|
|
invoke-interface {v0}, Lcom/google/a/a/a/a;->get()Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
iget-object v1, p0, Landroidx/work/impl/utils/futures/FutureExtras$2;->val$transformation:Landroidx/arch/core/util/Function;
|
|
|
|
invoke-interface {v1, v0}, Landroidx/arch/core/util/Function;->apply(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Lcom/google/a/a/a/a;
|
|
|
|
iget-object v1, p0, Landroidx/work/impl/utils/futures/FutureExtras$2;->val$outputFuture:Landroidx/work/impl/utils/futures/SettableFuture;
|
|
|
|
invoke-virtual {v1, v0}, Landroidx/work/impl/utils/futures/SettableFuture;->setFuture(Lcom/google/a/a/a/a;)Z
|
|
:try_end_0
|
|
.catch Ljava/lang/Throwable; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
return-void
|
|
|
|
:catch_0
|
|
move-exception v0
|
|
|
|
iget-object v1, p0, Landroidx/work/impl/utils/futures/FutureExtras$2;->val$outputFuture:Landroidx/work/impl/utils/futures/SettableFuture;
|
|
|
|
invoke-virtual {v1, v0}, Landroidx/work/impl/utils/futures/SettableFuture;->setException(Ljava/lang/Throwable;)Z
|
|
|
|
return-void
|
|
.end method
|