441 lines
8.7 KiB
Smali
441 lines
8.7 KiB
Smali
.class public final Lsh/f;
|
|
.super Ljava/util/concurrent/CountDownLatch;
|
|
.source "BlockingMultiObserver.java"
|
|
|
|
# interfaces
|
|
.implements Lkh/l0;
|
|
.implements Lkh/d;
|
|
.implements Lkh/t;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<T:",
|
|
"Ljava/lang/Object;",
|
|
">",
|
|
"Ljava/util/concurrent/CountDownLatch;",
|
|
"Lkh/l0<",
|
|
"TT;>;",
|
|
"Lkh/d;",
|
|
"Lkh/t<",
|
|
"TT;>;"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field public a:Ljava/lang/Object;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"TT;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field public b:Ljava/lang/Throwable;
|
|
|
|
.field public c:Lio/reactivex/disposables/b;
|
|
|
|
.field public volatile d:Z
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>()V
|
|
.locals 1
|
|
|
|
const/4 v0, 0x1
|
|
|
|
.line 1
|
|
invoke-direct {p0, v0}, Ljava/util/concurrent/CountDownLatch;-><init>(I)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public a(JLjava/util/concurrent/TimeUnit;)Z
|
|
.locals 4
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Ljava/util/concurrent/CountDownLatch;->getCount()J
|
|
|
|
move-result-wide v0
|
|
|
|
const-wide/16 v2, 0x0
|
|
|
|
cmp-long v0, v0, v2
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 2
|
|
:try_start_0
|
|
invoke-static {}, Lio/reactivex/internal/util/c;->b()V
|
|
|
|
.line 3
|
|
invoke-virtual {p0, p1, p2, p3}, Ljava/util/concurrent/CountDownLatch;->await(JLjava/util/concurrent/TimeUnit;)Z
|
|
|
|
move-result p1
|
|
|
|
if-nez p1, :cond_0
|
|
|
|
.line 4
|
|
invoke-virtual {p0}, Lsh/f;->f()V
|
|
:try_end_0
|
|
.catch Ljava/lang/InterruptedException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
const/4 p1, 0x0
|
|
|
|
return p1
|
|
|
|
:catch_0
|
|
move-exception p1
|
|
|
|
.line 5
|
|
invoke-virtual {p0}, Lsh/f;->f()V
|
|
|
|
.line 6
|
|
invoke-static {p1}, Lio/reactivex/internal/util/ExceptionHelper;->f(Ljava/lang/Throwable;)Ljava/lang/RuntimeException;
|
|
|
|
move-result-object p1
|
|
|
|
throw p1
|
|
|
|
.line 7
|
|
:cond_0
|
|
iget-object p1, p0, Lsh/f;->b:Ljava/lang/Throwable;
|
|
|
|
if-nez p1, :cond_1
|
|
|
|
const/4 p1, 0x1
|
|
|
|
return p1
|
|
|
|
.line 8
|
|
:cond_1
|
|
invoke-static {p1}, Lio/reactivex/internal/util/ExceptionHelper;->f(Ljava/lang/Throwable;)Ljava/lang/RuntimeException;
|
|
|
|
move-result-object p1
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method public b()Ljava/lang/Object;
|
|
.locals 4
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"()TT;"
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Ljava/util/concurrent/CountDownLatch;->getCount()J
|
|
|
|
move-result-wide v0
|
|
|
|
const-wide/16 v2, 0x0
|
|
|
|
cmp-long v0, v0, v2
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 2
|
|
:try_start_0
|
|
invoke-static {}, Lio/reactivex/internal/util/c;->b()V
|
|
|
|
.line 3
|
|
invoke-virtual {p0}, Ljava/util/concurrent/CountDownLatch;->await()V
|
|
:try_end_0
|
|
.catch Ljava/lang/InterruptedException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
goto :goto_0
|
|
|
|
:catch_0
|
|
move-exception v0
|
|
|
|
.line 4
|
|
invoke-virtual {p0}, Lsh/f;->f()V
|
|
|
|
.line 5
|
|
invoke-static {v0}, Lio/reactivex/internal/util/ExceptionHelper;->f(Ljava/lang/Throwable;)Ljava/lang/RuntimeException;
|
|
|
|
move-result-object v0
|
|
|
|
throw v0
|
|
|
|
.line 6
|
|
:cond_0
|
|
:goto_0
|
|
iget-object v0, p0, Lsh/f;->b:Ljava/lang/Throwable;
|
|
|
|
if-nez v0, :cond_1
|
|
|
|
.line 7
|
|
iget-object v0, p0, Lsh/f;->a:Ljava/lang/Object;
|
|
|
|
return-object v0
|
|
|
|
.line 8
|
|
:cond_1
|
|
invoke-static {v0}, Lio/reactivex/internal/util/ExceptionHelper;->f(Ljava/lang/Throwable;)Ljava/lang/RuntimeException;
|
|
|
|
move-result-object v0
|
|
|
|
throw v0
|
|
.end method
|
|
|
|
.method public c(Ljava/lang/Object;)Ljava/lang/Object;
|
|
.locals 4
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(TT;)TT;"
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Ljava/util/concurrent/CountDownLatch;->getCount()J
|
|
|
|
move-result-wide v0
|
|
|
|
const-wide/16 v2, 0x0
|
|
|
|
cmp-long v0, v0, v2
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 2
|
|
:try_start_0
|
|
invoke-static {}, Lio/reactivex/internal/util/c;->b()V
|
|
|
|
.line 3
|
|
invoke-virtual {p0}, Ljava/util/concurrent/CountDownLatch;->await()V
|
|
:try_end_0
|
|
.catch Ljava/lang/InterruptedException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
goto :goto_0
|
|
|
|
:catch_0
|
|
move-exception p1
|
|
|
|
.line 4
|
|
invoke-virtual {p0}, Lsh/f;->f()V
|
|
|
|
.line 5
|
|
invoke-static {p1}, Lio/reactivex/internal/util/ExceptionHelper;->f(Ljava/lang/Throwable;)Ljava/lang/RuntimeException;
|
|
|
|
move-result-object p1
|
|
|
|
throw p1
|
|
|
|
.line 6
|
|
:cond_0
|
|
:goto_0
|
|
iget-object v0, p0, Lsh/f;->b:Ljava/lang/Throwable;
|
|
|
|
if-nez v0, :cond_2
|
|
|
|
.line 7
|
|
iget-object v0, p0, Lsh/f;->a:Ljava/lang/Object;
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
move-object p1, v0
|
|
|
|
:cond_1
|
|
return-object p1
|
|
|
|
.line 8
|
|
:cond_2
|
|
invoke-static {v0}, Lio/reactivex/internal/util/ExceptionHelper;->f(Ljava/lang/Throwable;)Ljava/lang/RuntimeException;
|
|
|
|
move-result-object p1
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method public d()Ljava/lang/Throwable;
|
|
.locals 4
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Ljava/util/concurrent/CountDownLatch;->getCount()J
|
|
|
|
move-result-wide v0
|
|
|
|
const-wide/16 v2, 0x0
|
|
|
|
cmp-long v0, v0, v2
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 2
|
|
:try_start_0
|
|
invoke-static {}, Lio/reactivex/internal/util/c;->b()V
|
|
|
|
.line 3
|
|
invoke-virtual {p0}, Ljava/util/concurrent/CountDownLatch;->await()V
|
|
:try_end_0
|
|
.catch Ljava/lang/InterruptedException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
goto :goto_0
|
|
|
|
:catch_0
|
|
move-exception v0
|
|
|
|
.line 4
|
|
invoke-virtual {p0}, Lsh/f;->f()V
|
|
|
|
return-object v0
|
|
|
|
.line 5
|
|
:cond_0
|
|
:goto_0
|
|
iget-object v0, p0, Lsh/f;->b:Ljava/lang/Throwable;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public e(JLjava/util/concurrent/TimeUnit;)Ljava/lang/Throwable;
|
|
.locals 4
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Ljava/util/concurrent/CountDownLatch;->getCount()J
|
|
|
|
move-result-wide v0
|
|
|
|
const-wide/16 v2, 0x0
|
|
|
|
cmp-long v0, v0, v2
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
.line 2
|
|
:try_start_0
|
|
invoke-static {}, Lio/reactivex/internal/util/c;->b()V
|
|
|
|
.line 3
|
|
invoke-virtual {p0, p1, p2, p3}, Ljava/util/concurrent/CountDownLatch;->await(JLjava/util/concurrent/TimeUnit;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
.line 4
|
|
:cond_0
|
|
invoke-virtual {p0}, Lsh/f;->f()V
|
|
|
|
.line 5
|
|
new-instance v0, Ljava/util/concurrent/TimeoutException;
|
|
|
|
invoke-static {p1, p2, p3}, Lio/reactivex/internal/util/ExceptionHelper;->e(JLjava/util/concurrent/TimeUnit;)Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-direct {v0, p1}, Ljava/util/concurrent/TimeoutException;-><init>(Ljava/lang/String;)V
|
|
|
|
invoke-static {v0}, Lio/reactivex/internal/util/ExceptionHelper;->f(Ljava/lang/Throwable;)Ljava/lang/RuntimeException;
|
|
|
|
move-result-object p1
|
|
|
|
throw p1
|
|
:try_end_0
|
|
.catch Ljava/lang/InterruptedException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
:catch_0
|
|
move-exception p1
|
|
|
|
.line 6
|
|
invoke-virtual {p0}, Lsh/f;->f()V
|
|
|
|
.line 7
|
|
invoke-static {p1}, Lio/reactivex/internal/util/ExceptionHelper;->f(Ljava/lang/Throwable;)Ljava/lang/RuntimeException;
|
|
|
|
move-result-object p1
|
|
|
|
throw p1
|
|
|
|
.line 8
|
|
:cond_1
|
|
:goto_0
|
|
iget-object p1, p0, Lsh/f;->b:Ljava/lang/Throwable;
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public f()V
|
|
.locals 1
|
|
|
|
const/4 v0, 0x1
|
|
|
|
.line 1
|
|
iput-boolean v0, p0, Lsh/f;->d:Z
|
|
|
|
.line 2
|
|
iget-object v0, p0, Lsh/f;->c:Lio/reactivex/disposables/b;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 3
|
|
invoke-interface {v0}, Lio/reactivex/disposables/b;->dispose()V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public onComplete()V
|
|
.locals 0
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Ljava/util/concurrent/CountDownLatch;->countDown()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public onError(Ljava/lang/Throwable;)V
|
|
.locals 0
|
|
|
|
.line 1
|
|
iput-object p1, p0, Lsh/f;->b:Ljava/lang/Throwable;
|
|
|
|
.line 2
|
|
invoke-virtual {p0}, Ljava/util/concurrent/CountDownLatch;->countDown()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public onSubscribe(Lio/reactivex/disposables/b;)V
|
|
.locals 1
|
|
|
|
.line 1
|
|
iput-object p1, p0, Lsh/f;->c:Lio/reactivex/disposables/b;
|
|
|
|
.line 2
|
|
iget-boolean v0, p0, Lsh/f;->d:Z
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 3
|
|
invoke-interface {p1}, Lio/reactivex/disposables/b;->dispose()V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public onSuccess(Ljava/lang/Object;)V
|
|
.locals 0
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(TT;)V"
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
iput-object p1, p0, Lsh/f;->a:Ljava/lang/Object;
|
|
|
|
.line 2
|
|
invoke-virtual {p0}, Ljava/util/concurrent/CountDownLatch;->countDown()V
|
|
|
|
return-void
|
|
.end method
|