516 lines
12 KiB
Smali
516 lines
12 KiB
Smali
.class public final Lx/u0;
|
|
.super Ljava/lang/Object;
|
|
.source "LiveDataObservable.java"
|
|
|
|
# interfaces
|
|
.implements Lx/y0;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Lx/u0$a;,
|
|
Lx/u0$b;
|
|
}
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<T:",
|
|
"Ljava/lang/Object;",
|
|
">",
|
|
"Ljava/lang/Object;",
|
|
"Lx/y0<",
|
|
"TT;>;"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field public final a:Landroidx/lifecycle/MutableLiveData;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Landroidx/lifecycle/MutableLiveData<",
|
|
"Lx/u0$b<",
|
|
"TT;>;>;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field public final b:Ljava/util/Map;
|
|
.annotation build Landroidx/annotation/GuardedBy;
|
|
value = "mObservers"
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/util/Map<",
|
|
"Lx/y0$a<",
|
|
"-TT;>;",
|
|
"Lx/u0$a<",
|
|
"TT;>;>;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>()V
|
|
.locals 1
|
|
|
|
.line 1
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
.line 2
|
|
new-instance v0, Landroidx/lifecycle/MutableLiveData;
|
|
|
|
invoke-direct {v0}, Landroidx/lifecycle/MutableLiveData;-><init>()V
|
|
|
|
iput-object v0, p0, Lx/u0;->a:Landroidx/lifecycle/MutableLiveData;
|
|
|
|
.line 3
|
|
new-instance v0, Ljava/util/HashMap;
|
|
|
|
invoke-direct {v0}, Ljava/util/HashMap;-><init>()V
|
|
|
|
iput-object v0, p0, Lx/u0;->b:Ljava/util/Map;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static synthetic d(Lx/u0;Lx/u0$a;)V
|
|
.locals 0
|
|
|
|
invoke-direct {p0, p1}, Lx/u0;->l(Lx/u0$a;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static synthetic e(Lx/u0;Lx/u0$a;Lx/u0$a;)V
|
|
.locals 0
|
|
|
|
invoke-direct {p0, p1, p2}, Lx/u0;->i(Lx/u0$a;Lx/u0$a;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static synthetic f(Lx/u0;Landroidx/concurrent/futures/CallbackToFutureAdapter$a;)V
|
|
.locals 0
|
|
|
|
invoke-direct {p0, p1}, Lx/u0;->j(Landroidx/concurrent/futures/CallbackToFutureAdapter$a;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static synthetic g(Lx/u0;Landroidx/concurrent/futures/CallbackToFutureAdapter$a;)Ljava/lang/Object;
|
|
.locals 0
|
|
|
|
invoke-direct {p0, p1}, Lx/u0;->k(Landroidx/concurrent/futures/CallbackToFutureAdapter$a;)Ljava/lang/Object;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method private synthetic i(Lx/u0$a;Lx/u0$a;)V
|
|
.locals 1
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lx/u0;->a:Landroidx/lifecycle/MutableLiveData;
|
|
|
|
invoke-virtual {v0, p1}, Landroidx/lifecycle/LiveData;->removeObserver(Landroidx/lifecycle/Observer;)V
|
|
|
|
.line 2
|
|
:cond_0
|
|
iget-object p1, p0, Lx/u0;->a:Landroidx/lifecycle/MutableLiveData;
|
|
|
|
invoke-virtual {p1, p2}, Landroidx/lifecycle/LiveData;->observeForever(Landroidx/lifecycle/Observer;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private synthetic j(Landroidx/concurrent/futures/CallbackToFutureAdapter$a;)V
|
|
.locals 2
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lx/u0;->a:Landroidx/lifecycle/MutableLiveData;
|
|
|
|
invoke-virtual {v0}, Landroidx/lifecycle/LiveData;->getValue()Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Lx/u0$b;
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
.line 2
|
|
new-instance v0, Ljava/lang/IllegalStateException;
|
|
|
|
const-string v1, "Observable has not yet been initialized with a value."
|
|
|
|
invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
invoke-virtual {p1, v0}, Landroidx/concurrent/futures/CallbackToFutureAdapter$a;->f(Ljava/lang/Throwable;)Z
|
|
|
|
goto :goto_0
|
|
|
|
.line 3
|
|
:cond_0
|
|
invoke-virtual {v0}, Lx/u0$b;->a()Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_1
|
|
|
|
.line 4
|
|
invoke-virtual {v0}, Lx/u0$b;->e()Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {p1, v0}, Landroidx/concurrent/futures/CallbackToFutureAdapter$a;->c(Ljava/lang/Object;)Z
|
|
|
|
goto :goto_0
|
|
|
|
.line 5
|
|
:cond_1
|
|
invoke-virtual {v0}, Lx/u0$b;->d()Ljava/lang/Throwable;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-static {v1}, Lr1/o;->k(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
.line 6
|
|
invoke-virtual {v0}, Lx/u0$b;->d()Ljava/lang/Throwable;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {p1, v0}, Landroidx/concurrent/futures/CallbackToFutureAdapter$a;->f(Ljava/lang/Throwable;)Z
|
|
|
|
:goto_0
|
|
return-void
|
|
.end method
|
|
|
|
.method private synthetic k(Landroidx/concurrent/futures/CallbackToFutureAdapter$a;)Ljava/lang/Object;
|
|
.locals 2
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/lang/Exception;
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
invoke-static {}, Landroidx/camera/core/impl/utils/executor/a;->e()Ljava/util/concurrent/ScheduledExecutorService;
|
|
|
|
move-result-object v0
|
|
|
|
new-instance v1, Lx/q0;
|
|
|
|
invoke-direct {v1, p0, p1}, Lx/q0;-><init>(Lx/u0;Landroidx/concurrent/futures/CallbackToFutureAdapter$a;)V
|
|
|
|
invoke-interface {v0, v1}, Ljava/util/concurrent/ScheduledExecutorService;->execute(Ljava/lang/Runnable;)V
|
|
|
|
.line 2
|
|
new-instance p1, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {p1}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
invoke-virtual {p1, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
const-string v0, " [fetch@"
|
|
|
|
invoke-virtual {p1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-static {}, Landroid/os/SystemClock;->uptimeMillis()J
|
|
|
|
move-result-wide v0
|
|
|
|
invoke-virtual {p1, v0, v1}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;
|
|
|
|
const-string v0, "]"
|
|
|
|
invoke-virtual {p1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method private synthetic l(Lx/u0$a;)V
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lx/u0;->a:Landroidx/lifecycle/MutableLiveData;
|
|
|
|
invoke-virtual {v0, p1}, Landroidx/lifecycle/LiveData;->removeObserver(Landroidx/lifecycle/Observer;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public a()Lcom/google/common/util/concurrent/ListenableFuture;
|
|
.locals 1
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"()",
|
|
"Lcom/google/common/util/concurrent/ListenableFuture<",
|
|
"TT;>;"
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
new-instance v0, Lx/p0;
|
|
|
|
invoke-direct {v0, p0}, Lx/p0;-><init>(Lx/u0;)V
|
|
|
|
invoke-static {v0}, Landroidx/concurrent/futures/CallbackToFutureAdapter;->a(Landroidx/concurrent/futures/CallbackToFutureAdapter$b;)Lcom/google/common/util/concurrent/ListenableFuture;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public b(Ljava/util/concurrent/Executor;Lx/y0$a;)V
|
|
.locals 3
|
|
.param p1 # Ljava/util/concurrent/Executor;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.param p2 # Lx/y0$a;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation system Ldalvik/annotation/MethodParameters;
|
|
accessFlags = {
|
|
0x0,
|
|
0x0
|
|
}
|
|
names = {
|
|
"executor",
|
|
"observer"
|
|
}
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Ljava/util/concurrent/Executor;",
|
|
"Lx/y0$a<",
|
|
"-TT;>;)V"
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lx/u0;->b:Ljava/util/Map;
|
|
|
|
monitor-enter v0
|
|
|
|
.line 2
|
|
:try_start_0
|
|
iget-object v1, p0, Lx/u0;->b:Ljava/util/Map;
|
|
|
|
invoke-interface {v1, p2}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object v1
|
|
|
|
check-cast v1, Lx/u0$a;
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
.line 3
|
|
invoke-virtual {v1}, Lx/u0$a;->b()V
|
|
|
|
.line 4
|
|
:cond_0
|
|
new-instance v2, Lx/u0$a;
|
|
|
|
invoke-direct {v2, p1, p2}, Lx/u0$a;-><init>(Ljava/util/concurrent/Executor;Lx/y0$a;)V
|
|
|
|
.line 5
|
|
iget-object p1, p0, Lx/u0;->b:Ljava/util/Map;
|
|
|
|
invoke-interface {p1, p2, v2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
.line 6
|
|
invoke-static {}, Landroidx/camera/core/impl/utils/executor/a;->e()Ljava/util/concurrent/ScheduledExecutorService;
|
|
|
|
move-result-object p1
|
|
|
|
new-instance p2, Lx/s0;
|
|
|
|
invoke-direct {p2, p0, v1, v2}, Lx/s0;-><init>(Lx/u0;Lx/u0$a;Lx/u0$a;)V
|
|
|
|
invoke-interface {p1, p2}, Ljava/util/concurrent/ScheduledExecutorService;->execute(Ljava/lang/Runnable;)V
|
|
|
|
.line 7
|
|
monitor-exit v0
|
|
|
|
return-void
|
|
|
|
:catchall_0
|
|
move-exception p1
|
|
|
|
monitor-exit v0
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method public c(Lx/y0$a;)V
|
|
.locals 3
|
|
.param p1 # Lx/y0$a;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation system Ldalvik/annotation/MethodParameters;
|
|
accessFlags = {
|
|
0x0
|
|
}
|
|
names = {
|
|
"observer"
|
|
}
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Lx/y0$a<",
|
|
"-TT;>;)V"
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lx/u0;->b:Ljava/util/Map;
|
|
|
|
monitor-enter v0
|
|
|
|
.line 2
|
|
:try_start_0
|
|
iget-object v1, p0, Lx/u0;->b:Ljava/util/Map;
|
|
|
|
invoke-interface {v1, p1}, Ljava/util/Map;->remove(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object p1
|
|
|
|
check-cast p1, Lx/u0$a;
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
.line 3
|
|
invoke-virtual {p1}, Lx/u0$a;->b()V
|
|
|
|
.line 4
|
|
invoke-static {}, Landroidx/camera/core/impl/utils/executor/a;->e()Ljava/util/concurrent/ScheduledExecutorService;
|
|
|
|
move-result-object v1
|
|
|
|
new-instance v2, Lx/r0;
|
|
|
|
invoke-direct {v2, p0, p1}, Lx/r0;-><init>(Lx/u0;Lx/u0$a;)V
|
|
|
|
invoke-interface {v1, v2}, Ljava/util/concurrent/ScheduledExecutorService;->execute(Ljava/lang/Runnable;)V
|
|
|
|
.line 5
|
|
:cond_0
|
|
monitor-exit v0
|
|
|
|
return-void
|
|
|
|
:catchall_0
|
|
move-exception p1
|
|
|
|
monitor-exit v0
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method public h()Landroidx/lifecycle/LiveData;
|
|
.locals 1
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"()",
|
|
"Landroidx/lifecycle/LiveData<",
|
|
"Lx/u0$b<",
|
|
"TT;>;>;"
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lx/u0;->a:Landroidx/lifecycle/MutableLiveData;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public m(Ljava/lang/Throwable;)V
|
|
.locals 1
|
|
.param p1 # Ljava/lang/Throwable;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation system Ldalvik/annotation/MethodParameters;
|
|
accessFlags = {
|
|
0x0
|
|
}
|
|
names = {
|
|
"error"
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lx/u0;->a:Landroidx/lifecycle/MutableLiveData;
|
|
|
|
invoke-static {p1}, Lx/u0$b;->b(Ljava/lang/Throwable;)Lx/u0$b;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {v0, p1}, Landroidx/lifecycle/MutableLiveData;->postValue(Ljava/lang/Object;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public n(Ljava/lang/Object;)V
|
|
.locals 1
|
|
.param p1 # Ljava/lang/Object;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
.annotation system Ldalvik/annotation/MethodParameters;
|
|
accessFlags = {
|
|
0x0
|
|
}
|
|
names = {
|
|
"value"
|
|
}
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(TT;)V"
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lx/u0;->a:Landroidx/lifecycle/MutableLiveData;
|
|
|
|
invoke-static {p1}, Lx/u0$b;->c(Ljava/lang/Object;)Lx/u0$b;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {v0, p1}, Landroidx/lifecycle/MutableLiveData;->postValue(Ljava/lang/Object;)V
|
|
|
|
return-void
|
|
.end method
|