193 lines
4.3 KiB
Smali
193 lines
4.3 KiB
Smali
.class final Lrx/internal/a/ap$3;
|
|
.super Lrx/Subscriber;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
value = Lrx/internal/a/ap;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x0
|
|
name = null
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Lrx/Subscriber<",
|
|
"TT;>;"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field final synthetic cnt:Ljava/lang/Object;
|
|
|
|
.field final synthetic cqM:Lrx/internal/a/ap;
|
|
|
|
.field final synthetic cqN:Lrx/internal/a/ap$a;
|
|
|
|
.field private value:Ljava/lang/Object;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"TR;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
|
|
# direct methods
|
|
.method constructor <init>(Lrx/internal/a/ap;Ljava/lang/Object;Lrx/internal/a/ap$a;)V
|
|
.locals 0
|
|
|
|
iput-object p1, p0, Lrx/internal/a/ap$3;->cqM:Lrx/internal/a/ap;
|
|
|
|
iput-object p2, p0, Lrx/internal/a/ap$3;->cnt:Ljava/lang/Object;
|
|
|
|
iput-object p3, p0, Lrx/internal/a/ap$3;->cqN:Lrx/internal/a/ap$a;
|
|
|
|
invoke-direct {p0}, Lrx/Subscriber;-><init>()V
|
|
|
|
iget-object p1, p0, Lrx/internal/a/ap$3;->cnt:Ljava/lang/Object;
|
|
|
|
iput-object p1, p0, Lrx/internal/a/ap$3;->value:Ljava/lang/Object;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final onCompleted()V
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lrx/internal/a/ap$3;->cqN:Lrx/internal/a/ap$a;
|
|
|
|
invoke-virtual {v0}, Lrx/internal/a/ap$a;->onCompleted()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public final onError(Ljava/lang/Throwable;)V
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lrx/internal/a/ap$3;->cqN:Lrx/internal/a/ap$a;
|
|
|
|
invoke-virtual {v0, p1}, Lrx/internal/a/ap$a;->onError(Ljava/lang/Throwable;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public final onNext(Ljava/lang/Object;)V
|
|
.locals 2
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(TT;)V"
|
|
}
|
|
.end annotation
|
|
|
|
iget-object v0, p0, Lrx/internal/a/ap$3;->value:Ljava/lang/Object;
|
|
|
|
:try_start_0
|
|
iget-object v1, p0, Lrx/internal/a/ap$3;->cqM:Lrx/internal/a/ap;
|
|
|
|
iget-object v1, v1, Lrx/internal/a/ap;->cqK:Lrx/functions/Func2;
|
|
|
|
invoke-interface {v1, v0, p1}, Lrx/functions/Func2;->call(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
:try_end_0
|
|
.catch Ljava/lang/Throwable; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
iput-object v0, p0, Lrx/internal/a/ap$3;->value:Ljava/lang/Object;
|
|
|
|
iget-object p1, p0, Lrx/internal/a/ap$3;->cqN:Lrx/internal/a/ap$a;
|
|
|
|
invoke-virtual {p1, v0}, Lrx/internal/a/ap$a;->onNext(Ljava/lang/Object;)V
|
|
|
|
return-void
|
|
|
|
:catch_0
|
|
move-exception v0
|
|
|
|
invoke-static {v0, p0, p1}, Lrx/a/b;->a(Ljava/lang/Throwable;Lrx/e;Ljava/lang/Object;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public final setProducer(Lrx/Producer;)V
|
|
.locals 7
|
|
|
|
iget-object v0, p0, Lrx/internal/a/ap$3;->cqN:Lrx/internal/a/ap$a;
|
|
|
|
if-eqz p1, :cond_3
|
|
|
|
iget-object v1, v0, Lrx/internal/a/ap$a;->requested:Ljava/util/concurrent/atomic/AtomicLong;
|
|
|
|
monitor-enter v1
|
|
|
|
:try_start_0
|
|
iget-object v2, v0, Lrx/internal/a/ap$a;->producer:Lrx/Producer;
|
|
|
|
if-nez v2, :cond_2
|
|
|
|
iget-wide v2, v0, Lrx/internal/a/ap$a;->cqO:J
|
|
|
|
const-wide v4, 0x7fffffffffffffffL
|
|
|
|
cmp-long v6, v2, v4
|
|
|
|
if-eqz v6, :cond_0
|
|
|
|
const-wide/16 v4, 0x1
|
|
|
|
sub-long/2addr v2, v4
|
|
|
|
:cond_0
|
|
const-wide/16 v4, 0x0
|
|
|
|
iput-wide v4, v0, Lrx/internal/a/ap$a;->cqO:J
|
|
|
|
iput-object p1, v0, Lrx/internal/a/ap$a;->producer:Lrx/Producer;
|
|
|
|
monitor-exit v1
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
cmp-long v1, v2, v4
|
|
|
|
if-lez v1, :cond_1
|
|
|
|
invoke-interface {p1, v2, v3}, Lrx/Producer;->request(J)V
|
|
|
|
:cond_1
|
|
invoke-virtual {v0}, Lrx/internal/a/ap$a;->Lf()V
|
|
|
|
return-void
|
|
|
|
:cond_2
|
|
:try_start_1
|
|
new-instance p1, Ljava/lang/IllegalStateException;
|
|
|
|
const-string v0, "Can\'t set more than one Producer!"
|
|
|
|
invoke-direct {p1, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p1
|
|
|
|
:catchall_0
|
|
move-exception p1
|
|
|
|
monitor-exit v1
|
|
:try_end_1
|
|
.catchall {:try_start_1 .. :try_end_1} :catchall_0
|
|
|
|
throw p1
|
|
|
|
:cond_3
|
|
new-instance p1, Ljava/lang/NullPointerException;
|
|
|
|
invoke-direct {p1}, Ljava/lang/NullPointerException;-><init>()V
|
|
|
|
throw p1
|
|
.end method
|