563 lines
13 KiB
Smali
563 lines
13 KiB
Smali
.class final Lrx/internal/a/i$c;
|
|
.super Lrx/Subscriber;
|
|
.source "OnSubscribeConcatMap.java"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
value = Lrx/internal/a/i;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x18
|
|
name = "c"
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<T:",
|
|
"Ljava/lang/Object;",
|
|
"R:",
|
|
"Ljava/lang/Object;",
|
|
">",
|
|
"Lrx/Subscriber<",
|
|
"TT;>;"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field volatile active:Z
|
|
|
|
.field final actual:Lrx/Subscriber;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Lrx/Subscriber<",
|
|
"-TR;>;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field final bJB:I
|
|
|
|
.field final bJG:Lrx/internal/b/a;
|
|
|
|
.field final bJH:Lrx/subscriptions/SerialSubscription;
|
|
|
|
.field final bJz:Lrx/functions/b;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Lrx/functions/b<",
|
|
"-TT;+",
|
|
"Lrx/Observable<",
|
|
"+TR;>;>;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field volatile done:Z
|
|
|
|
.field final error:Ljava/util/concurrent/atomic/AtomicReference;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/util/concurrent/atomic/AtomicReference<",
|
|
"Ljava/lang/Throwable;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field final queue:Ljava/util/Queue;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/util/Queue<",
|
|
"Ljava/lang/Object;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field final wip:Ljava/util/concurrent/atomic/AtomicInteger;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Lrx/Subscriber;Lrx/functions/b;II)V
|
|
.locals 0
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Lrx/Subscriber<",
|
|
"-TR;>;",
|
|
"Lrx/functions/b<",
|
|
"-TT;+",
|
|
"Lrx/Observable<",
|
|
"+TR;>;>;II)V"
|
|
}
|
|
.end annotation
|
|
|
|
invoke-direct {p0}, Lrx/Subscriber;-><init>()V
|
|
|
|
iput-object p1, p0, Lrx/internal/a/i$c;->actual:Lrx/Subscriber;
|
|
|
|
iput-object p2, p0, Lrx/internal/a/i$c;->bJz:Lrx/functions/b;
|
|
|
|
iput p4, p0, Lrx/internal/a/i$c;->bJB:I
|
|
|
|
new-instance p1, Lrx/internal/b/a;
|
|
|
|
invoke-direct {p1}, Lrx/internal/b/a;-><init>()V
|
|
|
|
iput-object p1, p0, Lrx/internal/a/i$c;->bJG:Lrx/internal/b/a;
|
|
|
|
new-instance p1, Ljava/util/concurrent/atomic/AtomicInteger;
|
|
|
|
invoke-direct {p1}, Ljava/util/concurrent/atomic/AtomicInteger;-><init>()V
|
|
|
|
iput-object p1, p0, Lrx/internal/a/i$c;->wip:Ljava/util/concurrent/atomic/AtomicInteger;
|
|
|
|
new-instance p1, Ljava/util/concurrent/atomic/AtomicReference;
|
|
|
|
invoke-direct {p1}, Ljava/util/concurrent/atomic/AtomicReference;-><init>()V
|
|
|
|
iput-object p1, p0, Lrx/internal/a/i$c;->error:Ljava/util/concurrent/atomic/AtomicReference;
|
|
|
|
invoke-static {}, Lrx/internal/util/b/ae;->Ln()Z
|
|
|
|
move-result p1
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
new-instance p1, Lrx/internal/util/b/q;
|
|
|
|
invoke-direct {p1, p3}, Lrx/internal/util/b/q;-><init>(I)V
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
new-instance p1, Lrx/internal/util/a/d;
|
|
|
|
invoke-direct {p1, p3}, Lrx/internal/util/a/d;-><init>(I)V
|
|
|
|
:goto_0
|
|
iput-object p1, p0, Lrx/internal/a/i$c;->queue:Ljava/util/Queue;
|
|
|
|
new-instance p1, Lrx/subscriptions/SerialSubscription;
|
|
|
|
invoke-direct {p1}, Lrx/subscriptions/SerialSubscription;-><init>()V
|
|
|
|
iput-object p1, p0, Lrx/internal/a/i$c;->bJH:Lrx/subscriptions/SerialSubscription;
|
|
|
|
int-to-long p1, p3
|
|
|
|
invoke-virtual {p0, p1, p2}, Lrx/internal/a/i$c;->request(J)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private L(Ljava/lang/Throwable;)V
|
|
.locals 1
|
|
|
|
invoke-virtual {p0}, Lrx/internal/a/i$c;->unsubscribe()V
|
|
|
|
iget-object v0, p0, Lrx/internal/a/i$c;->error:Ljava/util/concurrent/atomic/AtomicReference;
|
|
|
|
invoke-static {v0, p1}, Lrx/internal/util/e;->a(Ljava/util/concurrent/atomic/AtomicReference;Ljava/lang/Throwable;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
iget-object p1, p0, Lrx/internal/a/i$c;->error:Ljava/util/concurrent/atomic/AtomicReference;
|
|
|
|
invoke-static {p1}, Lrx/internal/util/e;->b(Ljava/util/concurrent/atomic/AtomicReference;)Ljava/lang/Throwable;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-static {p1}, Lrx/internal/util/e;->S(Ljava/lang/Throwable;)Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
iget-object v0, p0, Lrx/internal/a/i$c;->actual:Lrx/Subscriber;
|
|
|
|
invoke-virtual {v0, p1}, Lrx/Subscriber;->onError(Ljava/lang/Throwable;)V
|
|
|
|
:cond_0
|
|
return-void
|
|
|
|
:cond_1
|
|
invoke-static {p1}, Lrx/c/c;->onError(Ljava/lang/Throwable;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method final aW(J)V
|
|
.locals 3
|
|
|
|
const-wide/16 v0, 0x0
|
|
|
|
cmp-long v2, p1, v0
|
|
|
|
if-eqz v2, :cond_0
|
|
|
|
iget-object v0, p0, Lrx/internal/a/i$c;->bJG:Lrx/internal/b/a;
|
|
|
|
invoke-virtual {v0, p1, p2}, Lrx/internal/b/a;->bc(J)V
|
|
|
|
:cond_0
|
|
const/4 p1, 0x0
|
|
|
|
iput-boolean p1, p0, Lrx/internal/a/i$c;->active:Z
|
|
|
|
invoke-virtual {p0}, Lrx/internal/a/i$c;->drain()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method final bP(Ljava/lang/Object;)V
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(TR;)V"
|
|
}
|
|
.end annotation
|
|
|
|
iget-object v0, p0, Lrx/internal/a/i$c;->actual:Lrx/Subscriber;
|
|
|
|
invoke-virtual {v0, p1}, Lrx/Subscriber;->onNext(Ljava/lang/Object;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method final drain()V
|
|
.locals 7
|
|
|
|
iget-object v0, p0, Lrx/internal/a/i$c;->wip:Ljava/util/concurrent/atomic/AtomicInteger;
|
|
|
|
invoke-virtual {v0}, Ljava/util/concurrent/atomic/AtomicInteger;->getAndIncrement()I
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
iget v0, p0, Lrx/internal/a/i$c;->bJB:I
|
|
|
|
:cond_1
|
|
:goto_0
|
|
iget-object v1, p0, Lrx/internal/a/i$c;->actual:Lrx/Subscriber;
|
|
|
|
invoke-virtual {v1}, Lrx/Subscriber;->isUnsubscribed()Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_2
|
|
|
|
return-void
|
|
|
|
:cond_2
|
|
iget-boolean v1, p0, Lrx/internal/a/i$c;->active:Z
|
|
|
|
if-nez v1, :cond_d
|
|
|
|
const/4 v1, 0x1
|
|
|
|
if-ne v0, v1, :cond_4
|
|
|
|
iget-object v2, p0, Lrx/internal/a/i$c;->error:Ljava/util/concurrent/atomic/AtomicReference;
|
|
|
|
invoke-virtual {v2}, Ljava/util/concurrent/atomic/AtomicReference;->get()Ljava/lang/Object;
|
|
|
|
move-result-object v2
|
|
|
|
if-eqz v2, :cond_4
|
|
|
|
iget-object v0, p0, Lrx/internal/a/i$c;->error:Ljava/util/concurrent/atomic/AtomicReference;
|
|
|
|
invoke-static {v0}, Lrx/internal/util/e;->b(Ljava/util/concurrent/atomic/AtomicReference;)Ljava/lang/Throwable;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-static {v0}, Lrx/internal/util/e;->S(Ljava/lang/Throwable;)Z
|
|
|
|
move-result v1
|
|
|
|
if-nez v1, :cond_3
|
|
|
|
iget-object v1, p0, Lrx/internal/a/i$c;->actual:Lrx/Subscriber;
|
|
|
|
invoke-virtual {v1, v0}, Lrx/Subscriber;->onError(Ljava/lang/Throwable;)V
|
|
|
|
:cond_3
|
|
return-void
|
|
|
|
:cond_4
|
|
iget-boolean v2, p0, Lrx/internal/a/i$c;->done:Z
|
|
|
|
iget-object v3, p0, Lrx/internal/a/i$c;->queue:Ljava/util/Queue;
|
|
|
|
invoke-interface {v3}, Ljava/util/Queue;->poll()Ljava/lang/Object;
|
|
|
|
move-result-object v3
|
|
|
|
if-nez v3, :cond_5
|
|
|
|
const/4 v4, 0x1
|
|
|
|
goto :goto_1
|
|
|
|
:cond_5
|
|
const/4 v4, 0x0
|
|
|
|
:goto_1
|
|
if-eqz v2, :cond_8
|
|
|
|
if-eqz v4, :cond_8
|
|
|
|
iget-object v0, p0, Lrx/internal/a/i$c;->error:Ljava/util/concurrent/atomic/AtomicReference;
|
|
|
|
invoke-static {v0}, Lrx/internal/util/e;->b(Ljava/util/concurrent/atomic/AtomicReference;)Ljava/lang/Throwable;
|
|
|
|
move-result-object v0
|
|
|
|
if-nez v0, :cond_6
|
|
|
|
iget-object v0, p0, Lrx/internal/a/i$c;->actual:Lrx/Subscriber;
|
|
|
|
invoke-virtual {v0}, Lrx/Subscriber;->onCompleted()V
|
|
|
|
return-void
|
|
|
|
:cond_6
|
|
invoke-static {v0}, Lrx/internal/util/e;->S(Ljava/lang/Throwable;)Z
|
|
|
|
move-result v1
|
|
|
|
if-nez v1, :cond_7
|
|
|
|
iget-object v1, p0, Lrx/internal/a/i$c;->actual:Lrx/Subscriber;
|
|
|
|
invoke-virtual {v1, v0}, Lrx/Subscriber;->onError(Ljava/lang/Throwable;)V
|
|
|
|
:cond_7
|
|
return-void
|
|
|
|
:cond_8
|
|
if-nez v4, :cond_d
|
|
|
|
:try_start_0
|
|
iget-object v2, p0, Lrx/internal/a/i$c;->bJz:Lrx/functions/b;
|
|
|
|
invoke-static {v3}, Lrx/internal/a/g;->bN(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object v3
|
|
|
|
invoke-interface {v2, v3}, Lrx/functions/b;->call(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object v2
|
|
|
|
check-cast v2, Lrx/Observable;
|
|
:try_end_0
|
|
.catch Ljava/lang/Throwable; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
if-nez v2, :cond_9
|
|
|
|
new-instance v0, Ljava/lang/NullPointerException;
|
|
|
|
const-string v1, "The source returned by the mapper was null"
|
|
|
|
invoke-direct {v0, v1}, Ljava/lang/NullPointerException;-><init>(Ljava/lang/String;)V
|
|
|
|
invoke-direct {p0, v0}, Lrx/internal/a/i$c;->L(Ljava/lang/Throwable;)V
|
|
|
|
return-void
|
|
|
|
:cond_9
|
|
invoke-static {}, Lrx/Observable;->Ka()Lrx/Observable;
|
|
|
|
move-result-object v3
|
|
|
|
const-wide/16 v4, 0x1
|
|
|
|
if-eq v2, v3, :cond_c
|
|
|
|
instance-of v3, v2, Lrx/internal/util/k;
|
|
|
|
if-eqz v3, :cond_a
|
|
|
|
check-cast v2, Lrx/internal/util/k;
|
|
|
|
iput-boolean v1, p0, Lrx/internal/a/i$c;->active:Z
|
|
|
|
iget-object v1, p0, Lrx/internal/a/i$c;->bJG:Lrx/internal/b/a;
|
|
|
|
new-instance v3, Lrx/internal/a/i$a;
|
|
|
|
iget-object v2, v2, Lrx/internal/util/k;->bPy:Ljava/lang/Object;
|
|
|
|
invoke-direct {v3, v2, p0}, Lrx/internal/a/i$a;-><init>(Ljava/lang/Object;Lrx/internal/a/i$c;)V
|
|
|
|
invoke-virtual {v1, v3}, Lrx/internal/b/a;->setProducer(Lrx/Producer;)V
|
|
|
|
goto :goto_2
|
|
|
|
:cond_a
|
|
new-instance v3, Lrx/internal/a/i$b;
|
|
|
|
invoke-direct {v3, p0}, Lrx/internal/a/i$b;-><init>(Lrx/internal/a/i$c;)V
|
|
|
|
iget-object v6, p0, Lrx/internal/a/i$c;->bJH:Lrx/subscriptions/SerialSubscription;
|
|
|
|
invoke-virtual {v6, v3}, Lrx/subscriptions/SerialSubscription;->f(Lrx/Subscription;)V
|
|
|
|
invoke-virtual {v3}, Lrx/internal/a/i$b;->isUnsubscribed()Z
|
|
|
|
move-result v6
|
|
|
|
if-nez v6, :cond_b
|
|
|
|
iput-boolean v1, p0, Lrx/internal/a/i$c;->active:Z
|
|
|
|
invoke-virtual {v2, v3}, Lrx/Observable;->a(Lrx/Subscriber;)Lrx/Subscription;
|
|
|
|
:goto_2
|
|
invoke-virtual {p0, v4, v5}, Lrx/internal/a/i$c;->request(J)V
|
|
|
|
goto :goto_3
|
|
|
|
:cond_b
|
|
return-void
|
|
|
|
:cond_c
|
|
invoke-virtual {p0, v4, v5}, Lrx/internal/a/i$c;->request(J)V
|
|
|
|
goto/16 :goto_0
|
|
|
|
:catch_0
|
|
move-exception v0
|
|
|
|
invoke-static {v0}, Lrx/a/b;->I(Ljava/lang/Throwable;)V
|
|
|
|
invoke-direct {p0, v0}, Lrx/internal/a/i$c;->L(Ljava/lang/Throwable;)V
|
|
|
|
return-void
|
|
|
|
:cond_d
|
|
:goto_3
|
|
iget-object v1, p0, Lrx/internal/a/i$c;->wip:Ljava/util/concurrent/atomic/AtomicInteger;
|
|
|
|
invoke-virtual {v1}, Ljava/util/concurrent/atomic/AtomicInteger;->decrementAndGet()I
|
|
|
|
move-result v1
|
|
|
|
if-nez v1, :cond_1
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public final onCompleted()V
|
|
.locals 1
|
|
|
|
const/4 v0, 0x1
|
|
|
|
iput-boolean v0, p0, Lrx/internal/a/i$c;->done:Z
|
|
|
|
invoke-virtual {p0}, Lrx/internal/a/i$c;->drain()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public final onError(Ljava/lang/Throwable;)V
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lrx/internal/a/i$c;->error:Ljava/util/concurrent/atomic/AtomicReference;
|
|
|
|
invoke-static {v0, p1}, Lrx/internal/util/e;->a(Ljava/util/concurrent/atomic/AtomicReference;Ljava/lang/Throwable;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_2
|
|
|
|
const/4 p1, 0x1
|
|
|
|
iput-boolean p1, p0, Lrx/internal/a/i$c;->done:Z
|
|
|
|
iget p1, p0, Lrx/internal/a/i$c;->bJB:I
|
|
|
|
if-nez p1, :cond_1
|
|
|
|
iget-object p1, p0, Lrx/internal/a/i$c;->error:Ljava/util/concurrent/atomic/AtomicReference;
|
|
|
|
invoke-static {p1}, Lrx/internal/util/e;->b(Ljava/util/concurrent/atomic/AtomicReference;)Ljava/lang/Throwable;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-static {p1}, Lrx/internal/util/e;->S(Ljava/lang/Throwable;)Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
iget-object v0, p0, Lrx/internal/a/i$c;->actual:Lrx/Subscriber;
|
|
|
|
invoke-virtual {v0, p1}, Lrx/Subscriber;->onError(Ljava/lang/Throwable;)V
|
|
|
|
:cond_0
|
|
iget-object p1, p0, Lrx/internal/a/i$c;->bJH:Lrx/subscriptions/SerialSubscription;
|
|
|
|
invoke-virtual {p1}, Lrx/subscriptions/SerialSubscription;->unsubscribe()V
|
|
|
|
return-void
|
|
|
|
:cond_1
|
|
invoke-virtual {p0}, Lrx/internal/a/i$c;->drain()V
|
|
|
|
return-void
|
|
|
|
:cond_2
|
|
invoke-static {p1}, Lrx/c/c;->onError(Ljava/lang/Throwable;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public final onNext(Ljava/lang/Object;)V
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(TT;)V"
|
|
}
|
|
.end annotation
|
|
|
|
iget-object v0, p0, Lrx/internal/a/i$c;->queue:Ljava/util/Queue;
|
|
|
|
invoke-static {p1}, Lrx/internal/a/g;->bJ(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-interface {v0, p1}, Ljava/util/Queue;->offer(Ljava/lang/Object;)Z
|
|
|
|
move-result p1
|
|
|
|
if-nez p1, :cond_0
|
|
|
|
invoke-virtual {p0}, Lrx/internal/a/i$c;->unsubscribe()V
|
|
|
|
new-instance p1, Lrx/a/c;
|
|
|
|
invoke-direct {p1}, Lrx/a/c;-><init>()V
|
|
|
|
invoke-virtual {p0, p1}, Lrx/internal/a/i$c;->onError(Ljava/lang/Throwable;)V
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
invoke-virtual {p0}, Lrx/internal/a/i$c;->drain()V
|
|
|
|
return-void
|
|
.end method
|