727 lines
22 KiB
Smali
727 lines
22 KiB
Smali
|
.class final Lrx/internal/operators/OperatorEagerConcatMap$EagerOuterSubscriber;
|
||
|
.super Lrx/Subscriber;
|
||
|
.source "OperatorEagerConcatMap.java"
|
||
|
|
||
|
|
||
|
# annotations
|
||
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
||
|
value = Lrx/internal/operators/OperatorEagerConcatMap;
|
||
|
.end annotation
|
||
|
|
||
|
.annotation system Ldalvik/annotation/InnerClass;
|
||
|
accessFlags = 0x18
|
||
|
name = "EagerOuterSubscriber"
|
||
|
.end annotation
|
||
|
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"<T:",
|
||
|
"Ljava/lang/Object;",
|
||
|
"R:",
|
||
|
"Ljava/lang/Object;",
|
||
|
">",
|
||
|
"Lrx/Subscriber",
|
||
|
"<TT;>;"
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
|
||
|
# instance fields
|
||
|
.field final actual:Lrx/Subscriber;
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"Lrx/Subscriber",
|
||
|
"<-TR;>;"
|
||
|
}
|
||
|
.end annotation
|
||
|
.end field
|
||
|
|
||
|
.field final bufferSize:I
|
||
|
|
||
|
.field volatile cancelled:Z
|
||
|
|
||
|
.field volatile done:Z
|
||
|
|
||
|
.field error:Ljava/lang/Throwable;
|
||
|
|
||
|
.field final mapper:Lrx/functions/Func1;
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"Lrx/functions/Func1",
|
||
|
"<-TT;+",
|
||
|
"Lrx/Observable",
|
||
|
"<+TR;>;>;"
|
||
|
}
|
||
|
.end annotation
|
||
|
.end field
|
||
|
|
||
|
.field private sharedProducer:Lrx/internal/operators/OperatorEagerConcatMap$EagerOuterProducer;
|
||
|
|
||
|
.field final subscribers:Ljava/util/LinkedList;
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"Ljava/util/LinkedList",
|
||
|
"<",
|
||
|
"Lrx/internal/operators/OperatorEagerConcatMap$EagerInnerSubscriber",
|
||
|
"<TR;>;>;"
|
||
|
}
|
||
|
.end annotation
|
||
|
.end field
|
||
|
|
||
|
.field final wip:Ljava/util/concurrent/atomic/AtomicInteger;
|
||
|
|
||
|
|
||
|
# direct methods
|
||
|
.method public constructor <init>(Lrx/functions/Func1;IILrx/Subscriber;)V
|
||
|
.locals 2
|
||
|
.param p2, "bufferSize" # I
|
||
|
.param p3, "maxConcurrent" # I
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"(",
|
||
|
"Lrx/functions/Func1",
|
||
|
"<-TT;+",
|
||
|
"Lrx/Observable",
|
||
|
"<+TR;>;>;II",
|
||
|
"Lrx/Subscriber",
|
||
|
"<-TR;>;)V"
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
.prologue
|
||
|
.local p0, "this":Lrx/internal/operators/OperatorEagerConcatMap$EagerOuterSubscriber;, "Lrx/internal/operators/OperatorEagerConcatMap$EagerOuterSubscriber<TT;TR;>;"
|
||
|
.local p1, "mapper":Lrx/functions/Func1;, "Lrx/functions/Func1<-TT;+Lrx/Observable<+TR;>;>;"
|
||
|
.local p4, "actual":Lrx/Subscriber;, "Lrx/Subscriber<-TR;>;"
|
||
|
invoke-direct {p0}, Lrx/Subscriber;-><init>()V
|
||
|
|
||
|
iput-object p1, p0, Lrx/internal/operators/OperatorEagerConcatMap$EagerOuterSubscriber;->mapper:Lrx/functions/Func1;
|
||
|
|
||
|
iput p2, p0, Lrx/internal/operators/OperatorEagerConcatMap$EagerOuterSubscriber;->bufferSize:I
|
||
|
|
||
|
iput-object p4, p0, Lrx/internal/operators/OperatorEagerConcatMap$EagerOuterSubscriber;->actual:Lrx/Subscriber;
|
||
|
|
||
|
new-instance v0, Ljava/util/LinkedList;
|
||
|
|
||
|
invoke-direct {v0}, Ljava/util/LinkedList;-><init>()V
|
||
|
|
||
|
iput-object v0, p0, Lrx/internal/operators/OperatorEagerConcatMap$EagerOuterSubscriber;->subscribers:Ljava/util/LinkedList;
|
||
|
|
||
|
new-instance v0, Ljava/util/concurrent/atomic/AtomicInteger;
|
||
|
|
||
|
invoke-direct {v0}, Ljava/util/concurrent/atomic/AtomicInteger;-><init>()V
|
||
|
|
||
|
iput-object v0, p0, Lrx/internal/operators/OperatorEagerConcatMap$EagerOuterSubscriber;->wip:Ljava/util/concurrent/atomic/AtomicInteger;
|
||
|
|
||
|
const v0, 0x7fffffff
|
||
|
|
||
|
if-ne p3, v0, :cond_0
|
||
|
|
||
|
const-wide v0, 0x7fffffffffffffffL
|
||
|
|
||
|
:goto_0
|
||
|
invoke-virtual {p0, v0, v1}, Lrx/internal/operators/OperatorEagerConcatMap$EagerOuterSubscriber;->request(J)V
|
||
|
|
||
|
return-void
|
||
|
|
||
|
:cond_0
|
||
|
int-to-long v0, p3
|
||
|
|
||
|
goto :goto_0
|
||
|
.end method
|
||
|
|
||
|
|
||
|
# virtual methods
|
||
|
.method cleanup()V
|
||
|
.locals 5
|
||
|
|
||
|
.prologue
|
||
|
.local p0, "this":Lrx/internal/operators/OperatorEagerConcatMap$EagerOuterSubscriber;, "Lrx/internal/operators/OperatorEagerConcatMap$EagerOuterSubscriber<TT;TR;>;"
|
||
|
iget-object v4, p0, Lrx/internal/operators/OperatorEagerConcatMap$EagerOuterSubscriber;->subscribers:Ljava/util/LinkedList;
|
||
|
|
||
|
monitor-enter v4
|
||
|
|
||
|
:try_start_0
|
||
|
new-instance v1, Ljava/util/ArrayList;
|
||
|
|
||
|
iget-object v3, p0, Lrx/internal/operators/OperatorEagerConcatMap$EagerOuterSubscriber;->subscribers:Ljava/util/LinkedList;
|
||
|
|
||
|
invoke-direct {v1, v3}, Ljava/util/ArrayList;-><init>(Ljava/util/Collection;)V
|
||
|
|
||
|
.local v1, "list":Ljava/util/List;, "Ljava/util/List<Lrx/Subscription;>;"
|
||
|
iget-object v3, p0, Lrx/internal/operators/OperatorEagerConcatMap$EagerOuterSubscriber;->subscribers:Ljava/util/LinkedList;
|
||
|
|
||
|
invoke-virtual {v3}, Ljava/util/LinkedList;->clear()V
|
||
|
|
||
|
monitor-exit v4
|
||
|
:try_end_0
|
||
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
||
|
|
||
|
invoke-interface {v1}, Ljava/util/List;->iterator()Ljava/util/Iterator;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
.local v0, "i$":Ljava/util/Iterator;
|
||
|
:goto_0
|
||
|
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
|
||
|
|
||
|
move-result v3
|
||
|
|
||
|
if-eqz v3, :cond_0
|
||
|
|
||
|
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
||
|
|
||
|
move-result-object v2
|
||
|
|
||
|
check-cast v2, Lrx/Subscription;
|
||
|
|
||
|
.local v2, "s":Lrx/Subscription;
|
||
|
invoke-interface {v2}, Lrx/Subscription;->unsubscribe()V
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
.end local v0 # "i$":Ljava/util/Iterator;
|
||
|
.end local v1 # "list":Ljava/util/List;, "Ljava/util/List<Lrx/Subscription;>;"
|
||
|
.end local v2 # "s":Lrx/Subscription;
|
||
|
:catchall_0
|
||
|
move-exception v3
|
||
|
|
||
|
:try_start_1
|
||
|
monitor-exit v4
|
||
|
:try_end_1
|
||
|
.catchall {:try_start_1 .. :try_end_1} :catchall_0
|
||
|
|
||
|
throw v3
|
||
|
|
||
|
.restart local v0 # "i$":Ljava/util/Iterator;
|
||
|
.restart local v1 # "list":Ljava/util/List;, "Ljava/util/List<Lrx/Subscription;>;"
|
||
|
:cond_0
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method drain()V
|
||
|
.locals 24
|
||
|
|
||
|
.prologue
|
||
|
.local p0, "this":Lrx/internal/operators/OperatorEagerConcatMap$EagerOuterSubscriber;, "Lrx/internal/operators/OperatorEagerConcatMap$EagerOuterSubscriber<TT;TR;>;"
|
||
|
move-object/from16 v0, p0
|
||
|
|
||
|
iget-object v0, v0, Lrx/internal/operators/OperatorEagerConcatMap$EagerOuterSubscriber;->wip:Ljava/util/concurrent/atomic/AtomicInteger;
|
||
|
|
||
|
move-object/from16 v22, v0
|
||
|
|
||
|
invoke-virtual/range {v22 .. v22}, Ljava/util/concurrent/atomic/AtomicInteger;->getAndIncrement()I
|
||
|
|
||
|
move-result v22
|
||
|
|
||
|
if-eqz v22, :cond_0
|
||
|
|
||
|
:goto_0
|
||
|
return-void
|
||
|
|
||
|
:cond_0
|
||
|
const/4 v14, 0x1
|
||
|
|
||
|
.local v14, "missed":I
|
||
|
move-object/from16 v0, p0
|
||
|
|
||
|
iget-object v0, v0, Lrx/internal/operators/OperatorEagerConcatMap$EagerOuterSubscriber;->sharedProducer:Lrx/internal/operators/OperatorEagerConcatMap$EagerOuterProducer;
|
||
|
|
||
|
move-object/from16 v17, v0
|
||
|
|
||
|
.local v17, "requested":Ljava/util/concurrent/atomic/AtomicLong;
|
||
|
move-object/from16 v0, p0
|
||
|
|
||
|
iget-object v4, v0, Lrx/internal/operators/OperatorEagerConcatMap$EagerOuterSubscriber;->actual:Lrx/Subscriber;
|
||
|
|
||
|
.local v4, "actualSubscriber":Lrx/Subscriber;, "Lrx/Subscriber<-TR;>;"
|
||
|
invoke-static {}, Lrx/internal/operators/NotificationLite;->instance()Lrx/internal/operators/NotificationLite;
|
||
|
|
||
|
move-result-object v15
|
||
|
|
||
|
.local v15, "nl":Lrx/internal/operators/NotificationLite;, "Lrx/internal/operators/NotificationLite<TR;>;"
|
||
|
:cond_1
|
||
|
move-object/from16 v0, p0
|
||
|
|
||
|
iget-boolean v0, v0, Lrx/internal/operators/OperatorEagerConcatMap$EagerOuterSubscriber;->cancelled:Z
|
||
|
|
||
|
move/from16 v22, v0
|
||
|
|
||
|
if-eqz v22, :cond_2
|
||
|
|
||
|
invoke-virtual/range {p0 .. p0}, Lrx/internal/operators/OperatorEagerConcatMap$EagerOuterSubscriber;->cleanup()V
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:cond_2
|
||
|
move-object/from16 v0, p0
|
||
|
|
||
|
iget-boolean v0, v0, Lrx/internal/operators/OperatorEagerConcatMap$EagerOuterSubscriber;->done:Z
|
||
|
|
||
|
move/from16 v16, v0
|
||
|
|
||
|
.local v16, "outerDone":Z
|
||
|
move-object/from16 v0, p0
|
||
|
|
||
|
iget-object v0, v0, Lrx/internal/operators/OperatorEagerConcatMap$EagerOuterSubscriber;->subscribers:Ljava/util/LinkedList;
|
||
|
|
||
|
move-object/from16 v23, v0
|
||
|
|
||
|
monitor-enter v23
|
||
|
|
||
|
:try_start_0
|
||
|
move-object/from16 v0, p0
|
||
|
|
||
|
iget-object v0, v0, Lrx/internal/operators/OperatorEagerConcatMap$EagerOuterSubscriber;->subscribers:Ljava/util/LinkedList;
|
||
|
|
||
|
move-object/from16 v22, v0
|
||
|
|
||
|
invoke-virtual/range {v22 .. v22}, Ljava/util/LinkedList;->peek()Ljava/lang/Object;
|
||
|
|
||
|
move-result-object v13
|
||
|
|
||
|
check-cast v13, Lrx/internal/operators/OperatorEagerConcatMap$EagerInnerSubscriber;
|
||
|
|
||
|
.local v13, "innerSubscriber":Lrx/internal/operators/OperatorEagerConcatMap$EagerInnerSubscriber;, "Lrx/internal/operators/OperatorEagerConcatMap$EagerInnerSubscriber<TR;>;"
|
||
|
monitor-exit v23
|
||
|
:try_end_0
|
||
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
||
|
|
||
|
if-nez v13, :cond_3
|
||
|
|
||
|
const/4 v5, 0x1
|
||
|
|
||
|
.local v5, "empty":Z
|
||
|
:goto_1
|
||
|
if-eqz v16, :cond_5
|
||
|
|
||
|
move-object/from16 v0, p0
|
||
|
|
||
|
iget-object v8, v0, Lrx/internal/operators/OperatorEagerConcatMap$EagerOuterSubscriber;->error:Ljava/lang/Throwable;
|
||
|
|
||
|
.local v8, "error":Ljava/lang/Throwable;
|
||
|
if-eqz v8, :cond_4
|
||
|
|
||
|
invoke-virtual/range {p0 .. p0}, Lrx/internal/operators/OperatorEagerConcatMap$EagerOuterSubscriber;->cleanup()V
|
||
|
|
||
|
invoke-virtual {v4, v8}, Lrx/Subscriber;->onError(Ljava/lang/Throwable;)V
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
.end local v5 # "empty":Z
|
||
|
.end local v8 # "error":Ljava/lang/Throwable;
|
||
|
.end local v13 # "innerSubscriber":Lrx/internal/operators/OperatorEagerConcatMap$EagerInnerSubscriber;, "Lrx/internal/operators/OperatorEagerConcatMap$EagerInnerSubscriber<TR;>;"
|
||
|
:catchall_0
|
||
|
move-exception v22
|
||
|
|
||
|
:try_start_1
|
||
|
monitor-exit v23
|
||
|
:try_end_1
|
||
|
.catchall {:try_start_1 .. :try_end_1} :catchall_0
|
||
|
|
||
|
throw v22
|
||
|
|
||
|
.restart local v13 # "innerSubscriber":Lrx/internal/operators/OperatorEagerConcatMap$EagerInnerSubscriber;, "Lrx/internal/operators/OperatorEagerConcatMap$EagerInnerSubscriber<TR;>;"
|
||
|
:cond_3
|
||
|
const/4 v5, 0x0
|
||
|
|
||
|
goto :goto_1
|
||
|
|
||
|
.restart local v5 # "empty":Z
|
||
|
.restart local v8 # "error":Ljava/lang/Throwable;
|
||
|
:cond_4
|
||
|
if-eqz v5, :cond_5
|
||
|
|
||
|
invoke-virtual {v4}, Lrx/Subscriber;->onCompleted()V
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
.end local v8 # "error":Ljava/lang/Throwable;
|
||
|
:cond_5
|
||
|
if-nez v5, :cond_c
|
||
|
|
||
|
invoke-virtual/range {v17 .. v17}, Ljava/util/concurrent/atomic/AtomicLong;->get()J
|
||
|
|
||
|
move-result-wide v18
|
||
|
|
||
|
.local v18, "requestedAmount":J
|
||
|
const-wide/16 v6, 0x0
|
||
|
|
||
|
.local v6, "emittedAmount":J
|
||
|
const-wide v22, 0x7fffffffffffffffL
|
||
|
|
||
|
cmp-long v22, v18, v22
|
||
|
|
||
|
if-nez v22, :cond_6
|
||
|
|
||
|
const/16 v20, 0x1
|
||
|
|
||
|
.local v20, "unbounded":Z
|
||
|
:goto_2
|
||
|
iget-object v12, v13, Lrx/internal/operators/OperatorEagerConcatMap$EagerInnerSubscriber;->queue:Ljava/util/Queue;
|
||
|
|
||
|
.local v12, "innerQueue":Ljava/util/Queue;, "Ljava/util/Queue<Ljava/lang/Object;>;"
|
||
|
const/4 v10, 0x0
|
||
|
|
||
|
.local v10, "innerDone":Z
|
||
|
:goto_3
|
||
|
iget-boolean v0, v13, Lrx/internal/operators/OperatorEagerConcatMap$EagerInnerSubscriber;->done:Z
|
||
|
|
||
|
move/from16 v16, v0
|
||
|
|
||
|
invoke-interface {v12}, Ljava/util/Queue;->peek()Ljava/lang/Object;
|
||
|
|
||
|
move-result-object v21
|
||
|
|
||
|
.local v21, "v":Ljava/lang/Object;
|
||
|
if-nez v21, :cond_7
|
||
|
|
||
|
const/4 v5, 0x1
|
||
|
|
||
|
:goto_4
|
||
|
if-eqz v16, :cond_d
|
||
|
|
||
|
iget-object v11, v13, Lrx/internal/operators/OperatorEagerConcatMap$EagerInnerSubscriber;->error:Ljava/lang/Throwable;
|
||
|
|
||
|
.local v11, "innerError":Ljava/lang/Throwable;
|
||
|
if-eqz v11, :cond_8
|
||
|
|
||
|
invoke-virtual/range {p0 .. p0}, Lrx/internal/operators/OperatorEagerConcatMap$EagerOuterSubscriber;->cleanup()V
|
||
|
|
||
|
invoke-virtual {v4, v11}, Lrx/Subscriber;->onError(Ljava/lang/Throwable;)V
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
.end local v10 # "innerDone":Z
|
||
|
.end local v11 # "innerError":Ljava/lang/Throwable;
|
||
|
.end local v12 # "innerQueue":Ljava/util/Queue;, "Ljava/util/Queue<Ljava/lang/Object;>;"
|
||
|
.end local v20 # "unbounded":Z
|
||
|
.end local v21 # "v":Ljava/lang/Object;
|
||
|
:cond_6
|
||
|
const/16 v20, 0x0
|
||
|
|
||
|
goto :goto_2
|
||
|
|
||
|
.restart local v10 # "innerDone":Z
|
||
|
.restart local v12 # "innerQueue":Ljava/util/Queue;, "Ljava/util/Queue<Ljava/lang/Object;>;"
|
||
|
.restart local v20 # "unbounded":Z
|
||
|
.restart local v21 # "v":Ljava/lang/Object;
|
||
|
:cond_7
|
||
|
const/4 v5, 0x0
|
||
|
|
||
|
goto :goto_4
|
||
|
|
||
|
.restart local v11 # "innerError":Ljava/lang/Throwable;
|
||
|
:cond_8
|
||
|
if-eqz v5, :cond_d
|
||
|
|
||
|
move-object/from16 v0, p0
|
||
|
|
||
|
iget-object v0, v0, Lrx/internal/operators/OperatorEagerConcatMap$EagerOuterSubscriber;->subscribers:Ljava/util/LinkedList;
|
||
|
|
||
|
move-object/from16 v23, v0
|
||
|
|
||
|
monitor-enter v23
|
||
|
|
||
|
:try_start_2
|
||
|
move-object/from16 v0, p0
|
||
|
|
||
|
iget-object v0, v0, Lrx/internal/operators/OperatorEagerConcatMap$EagerOuterSubscriber;->subscribers:Ljava/util/LinkedList;
|
||
|
|
||
|
move-object/from16 v22, v0
|
||
|
|
||
|
invoke-virtual/range {v22 .. v22}, Ljava/util/LinkedList;->poll()Ljava/lang/Object;
|
||
|
|
||
|
monitor-exit v23
|
||
|
:try_end_2
|
||
|
.catchall {:try_start_2 .. :try_end_2} :catchall_1
|
||
|
|
||
|
invoke-virtual {v13}, Lrx/internal/operators/OperatorEagerConcatMap$EagerInnerSubscriber;->unsubscribe()V
|
||
|
|
||
|
const/4 v10, 0x1
|
||
|
|
||
|
const-wide/16 v22, 0x1
|
||
|
|
||
|
move-object/from16 v0, p0
|
||
|
|
||
|
move-wide/from16 v1, v22
|
||
|
|
||
|
invoke-virtual {v0, v1, v2}, Lrx/internal/operators/OperatorEagerConcatMap$EagerOuterSubscriber;->request(J)V
|
||
|
|
||
|
.end local v11 # "innerError":Ljava/lang/Throwable;
|
||
|
:cond_9
|
||
|
const-wide/16 v22, 0x0
|
||
|
|
||
|
cmp-long v22, v6, v22
|
||
|
|
||
|
if-eqz v22, :cond_b
|
||
|
|
||
|
if-nez v20, :cond_a
|
||
|
|
||
|
move-object/from16 v0, v17
|
||
|
|
||
|
invoke-virtual {v0, v6, v7}, Ljava/util/concurrent/atomic/AtomicLong;->addAndGet(J)J
|
||
|
|
||
|
:cond_a
|
||
|
if-nez v10, :cond_b
|
||
|
|
||
|
neg-long v0, v6
|
||
|
|
||
|
move-wide/from16 v22, v0
|
||
|
|
||
|
move-wide/from16 v0, v22
|
||
|
|
||
|
invoke-virtual {v13, v0, v1}, Lrx/internal/operators/OperatorEagerConcatMap$EagerInnerSubscriber;->requestMore(J)V
|
||
|
|
||
|
:cond_b
|
||
|
if-nez v10, :cond_1
|
||
|
|
||
|
.end local v6 # "emittedAmount":J
|
||
|
.end local v10 # "innerDone":Z
|
||
|
.end local v12 # "innerQueue":Ljava/util/Queue;, "Ljava/util/Queue<Ljava/lang/Object;>;"
|
||
|
.end local v18 # "requestedAmount":J
|
||
|
.end local v20 # "unbounded":Z
|
||
|
.end local v21 # "v":Ljava/lang/Object;
|
||
|
:cond_c
|
||
|
move-object/from16 v0, p0
|
||
|
|
||
|
iget-object v0, v0, Lrx/internal/operators/OperatorEagerConcatMap$EagerOuterSubscriber;->wip:Ljava/util/concurrent/atomic/AtomicInteger;
|
||
|
|
||
|
move-object/from16 v22, v0
|
||
|
|
||
|
neg-int v0, v14
|
||
|
|
||
|
move/from16 v23, v0
|
||
|
|
||
|
invoke-virtual/range {v22 .. v23}, Ljava/util/concurrent/atomic/AtomicInteger;->addAndGet(I)I
|
||
|
|
||
|
move-result v14
|
||
|
|
||
|
if-nez v14, :cond_1
|
||
|
|
||
|
goto/16 :goto_0
|
||
|
|
||
|
.restart local v6 # "emittedAmount":J
|
||
|
.restart local v10 # "innerDone":Z
|
||
|
.restart local v11 # "innerError":Ljava/lang/Throwable;
|
||
|
.restart local v12 # "innerQueue":Ljava/util/Queue;, "Ljava/util/Queue<Ljava/lang/Object;>;"
|
||
|
.restart local v18 # "requestedAmount":J
|
||
|
.restart local v20 # "unbounded":Z
|
||
|
.restart local v21 # "v":Ljava/lang/Object;
|
||
|
:catchall_1
|
||
|
move-exception v22
|
||
|
|
||
|
:try_start_3
|
||
|
monitor-exit v23
|
||
|
:try_end_3
|
||
|
.catchall {:try_start_3 .. :try_end_3} :catchall_1
|
||
|
|
||
|
throw v22
|
||
|
|
||
|
.end local v11 # "innerError":Ljava/lang/Throwable;
|
||
|
:cond_d
|
||
|
if-nez v5, :cond_9
|
||
|
|
||
|
const-wide/16 v22, 0x0
|
||
|
|
||
|
cmp-long v22, v18, v22
|
||
|
|
||
|
if-eqz v22, :cond_9
|
||
|
|
||
|
invoke-interface {v12}, Ljava/util/Queue;->poll()Ljava/lang/Object;
|
||
|
|
||
|
:try_start_4
|
||
|
move-object/from16 v0, v21
|
||
|
|
||
|
invoke-virtual {v15, v0}, Lrx/internal/operators/NotificationLite;->getValue(Ljava/lang/Object;)Ljava/lang/Object;
|
||
|
|
||
|
move-result-object v22
|
||
|
|
||
|
move-object/from16 v0, v22
|
||
|
|
||
|
invoke-virtual {v4, v0}, Lrx/Subscriber;->onNext(Ljava/lang/Object;)V
|
||
|
:try_end_4
|
||
|
.catch Ljava/lang/Throwable; {:try_start_4 .. :try_end_4} :catch_0
|
||
|
|
||
|
const-wide/16 v22, 0x1
|
||
|
|
||
|
sub-long v18, v18, v22
|
||
|
|
||
|
const-wide/16 v22, 0x1
|
||
|
|
||
|
sub-long v6, v6, v22
|
||
|
|
||
|
goto/16 :goto_3
|
||
|
|
||
|
:catch_0
|
||
|
move-exception v9
|
||
|
|
||
|
.local v9, "ex":Ljava/lang/Throwable;
|
||
|
move-object/from16 v0, v21
|
||
|
|
||
|
invoke-static {v9, v4, v0}, Lrx/exceptions/Exceptions;->throwOrReport(Ljava/lang/Throwable;Lrx/Observer;Ljava/lang/Object;)V
|
||
|
|
||
|
goto/16 :goto_0
|
||
|
.end method
|
||
|
|
||
|
.method init()V
|
||
|
.locals 2
|
||
|
|
||
|
.prologue
|
||
|
.local p0, "this":Lrx/internal/operators/OperatorEagerConcatMap$EagerOuterSubscriber;, "Lrx/internal/operators/OperatorEagerConcatMap$EagerOuterSubscriber<TT;TR;>;"
|
||
|
new-instance v0, Lrx/internal/operators/OperatorEagerConcatMap$EagerOuterProducer;
|
||
|
|
||
|
invoke-direct {v0, p0}, Lrx/internal/operators/OperatorEagerConcatMap$EagerOuterProducer;-><init>(Lrx/internal/operators/OperatorEagerConcatMap$EagerOuterSubscriber;)V
|
||
|
|
||
|
iput-object v0, p0, Lrx/internal/operators/OperatorEagerConcatMap$EagerOuterSubscriber;->sharedProducer:Lrx/internal/operators/OperatorEagerConcatMap$EagerOuterProducer;
|
||
|
|
||
|
new-instance v0, Lrx/internal/operators/OperatorEagerConcatMap$EagerOuterSubscriber$1;
|
||
|
|
||
|
invoke-direct {v0, p0}, Lrx/internal/operators/OperatorEagerConcatMap$EagerOuterSubscriber$1;-><init>(Lrx/internal/operators/OperatorEagerConcatMap$EagerOuterSubscriber;)V
|
||
|
|
||
|
invoke-static {v0}, Lrx/subscriptions/Subscriptions;->create(Lrx/functions/Action0;)Lrx/Subscription;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
invoke-virtual {p0, v0}, Lrx/internal/operators/OperatorEagerConcatMap$EagerOuterSubscriber;->add(Lrx/Subscription;)V
|
||
|
|
||
|
iget-object v0, p0, Lrx/internal/operators/OperatorEagerConcatMap$EagerOuterSubscriber;->actual:Lrx/Subscriber;
|
||
|
|
||
|
invoke-virtual {v0, p0}, Lrx/Subscriber;->add(Lrx/Subscription;)V
|
||
|
|
||
|
iget-object v0, p0, Lrx/internal/operators/OperatorEagerConcatMap$EagerOuterSubscriber;->actual:Lrx/Subscriber;
|
||
|
|
||
|
iget-object v1, p0, Lrx/internal/operators/OperatorEagerConcatMap$EagerOuterSubscriber;->sharedProducer:Lrx/internal/operators/OperatorEagerConcatMap$EagerOuterProducer;
|
||
|
|
||
|
invoke-virtual {v0, v1}, Lrx/Subscriber;->setProducer(Lrx/Producer;)V
|
||
|
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method public onCompleted()V
|
||
|
.locals 1
|
||
|
|
||
|
.prologue
|
||
|
.local p0, "this":Lrx/internal/operators/OperatorEagerConcatMap$EagerOuterSubscriber;, "Lrx/internal/operators/OperatorEagerConcatMap$EagerOuterSubscriber<TT;TR;>;"
|
||
|
const/4 v0, 0x1
|
||
|
|
||
|
iput-boolean v0, p0, Lrx/internal/operators/OperatorEagerConcatMap$EagerOuterSubscriber;->done:Z
|
||
|
|
||
|
invoke-virtual {p0}, Lrx/internal/operators/OperatorEagerConcatMap$EagerOuterSubscriber;->drain()V
|
||
|
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method public onError(Ljava/lang/Throwable;)V
|
||
|
.locals 1
|
||
|
.param p1, "e" # Ljava/lang/Throwable;
|
||
|
|
||
|
.prologue
|
||
|
.local p0, "this":Lrx/internal/operators/OperatorEagerConcatMap$EagerOuterSubscriber;, "Lrx/internal/operators/OperatorEagerConcatMap$EagerOuterSubscriber<TT;TR;>;"
|
||
|
iput-object p1, p0, Lrx/internal/operators/OperatorEagerConcatMap$EagerOuterSubscriber;->error:Ljava/lang/Throwable;
|
||
|
|
||
|
const/4 v0, 0x1
|
||
|
|
||
|
iput-boolean v0, p0, Lrx/internal/operators/OperatorEagerConcatMap$EagerOuterSubscriber;->done:Z
|
||
|
|
||
|
invoke-virtual {p0}, Lrx/internal/operators/OperatorEagerConcatMap$EagerOuterSubscriber;->drain()V
|
||
|
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method public onNext(Ljava/lang/Object;)V
|
||
|
.locals 5
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"(TT;)V"
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
.prologue
|
||
|
.local p0, "this":Lrx/internal/operators/OperatorEagerConcatMap$EagerOuterSubscriber;, "Lrx/internal/operators/OperatorEagerConcatMap$EagerOuterSubscriber<TT;TR;>;"
|
||
|
.local p1, "t":Ljava/lang/Object;, "TT;"
|
||
|
:try_start_0
|
||
|
iget-object v3, p0, Lrx/internal/operators/OperatorEagerConcatMap$EagerOuterSubscriber;->mapper:Lrx/functions/Func1;
|
||
|
|
||
|
invoke-interface {v3, p1}, Lrx/functions/Func1;->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
|
||
|
|
||
|
.local v2, "observable":Lrx/Observable;, "Lrx/Observable<+TR;>;"
|
||
|
new-instance v1, Lrx/internal/operators/OperatorEagerConcatMap$EagerInnerSubscriber;
|
||
|
|
||
|
iget v3, p0, Lrx/internal/operators/OperatorEagerConcatMap$EagerOuterSubscriber;->bufferSize:I
|
||
|
|
||
|
invoke-direct {v1, p0, v3}, Lrx/internal/operators/OperatorEagerConcatMap$EagerInnerSubscriber;-><init>(Lrx/internal/operators/OperatorEagerConcatMap$EagerOuterSubscriber;I)V
|
||
|
|
||
|
.local v1, "inner":Lrx/internal/operators/OperatorEagerConcatMap$EagerInnerSubscriber;, "Lrx/internal/operators/OperatorEagerConcatMap$EagerInnerSubscriber<TR;>;"
|
||
|
iget-boolean v3, p0, Lrx/internal/operators/OperatorEagerConcatMap$EagerOuterSubscriber;->cancelled:Z
|
||
|
|
||
|
if-eqz v3, :cond_1
|
||
|
|
||
|
.end local v1 # "inner":Lrx/internal/operators/OperatorEagerConcatMap$EagerInnerSubscriber;, "Lrx/internal/operators/OperatorEagerConcatMap$EagerInnerSubscriber<TR;>;"
|
||
|
.end local v2 # "observable":Lrx/Observable;, "Lrx/Observable<+TR;>;"
|
||
|
:cond_0
|
||
|
:goto_0
|
||
|
return-void
|
||
|
|
||
|
:catch_0
|
||
|
move-exception v0
|
||
|
|
||
|
.local v0, "e":Ljava/lang/Throwable;
|
||
|
iget-object v3, p0, Lrx/internal/operators/OperatorEagerConcatMap$EagerOuterSubscriber;->actual:Lrx/Subscriber;
|
||
|
|
||
|
invoke-static {v0, v3, p1}, Lrx/exceptions/Exceptions;->throwOrReport(Ljava/lang/Throwable;Lrx/Observer;Ljava/lang/Object;)V
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
.end local v0 # "e":Ljava/lang/Throwable;
|
||
|
.restart local v1 # "inner":Lrx/internal/operators/OperatorEagerConcatMap$EagerInnerSubscriber;, "Lrx/internal/operators/OperatorEagerConcatMap$EagerInnerSubscriber<TR;>;"
|
||
|
.restart local v2 # "observable":Lrx/Observable;, "Lrx/Observable<+TR;>;"
|
||
|
:cond_1
|
||
|
iget-object v4, p0, Lrx/internal/operators/OperatorEagerConcatMap$EagerOuterSubscriber;->subscribers:Ljava/util/LinkedList;
|
||
|
|
||
|
monitor-enter v4
|
||
|
|
||
|
:try_start_1
|
||
|
iget-boolean v3, p0, Lrx/internal/operators/OperatorEagerConcatMap$EagerOuterSubscriber;->cancelled:Z
|
||
|
|
||
|
if-eqz v3, :cond_2
|
||
|
|
||
|
monitor-exit v4
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:catchall_0
|
||
|
move-exception v3
|
||
|
|
||
|
monitor-exit v4
|
||
|
:try_end_1
|
||
|
.catchall {:try_start_1 .. :try_end_1} :catchall_0
|
||
|
|
||
|
throw v3
|
||
|
|
||
|
:cond_2
|
||
|
:try_start_2
|
||
|
iget-object v3, p0, Lrx/internal/operators/OperatorEagerConcatMap$EagerOuterSubscriber;->subscribers:Ljava/util/LinkedList;
|
||
|
|
||
|
invoke-virtual {v3, v1}, Ljava/util/LinkedList;->add(Ljava/lang/Object;)Z
|
||
|
|
||
|
monitor-exit v4
|
||
|
:try_end_2
|
||
|
.catchall {:try_start_2 .. :try_end_2} :catchall_0
|
||
|
|
||
|
iget-boolean v3, p0, Lrx/internal/operators/OperatorEagerConcatMap$EagerOuterSubscriber;->cancelled:Z
|
||
|
|
||
|
if-nez v3, :cond_0
|
||
|
|
||
|
invoke-virtual {v2, v1}, Lrx/Observable;->unsafeSubscribe(Lrx/Subscriber;)Lrx/Subscription;
|
||
|
|
||
|
invoke-virtual {p0}, Lrx/internal/operators/OperatorEagerConcatMap$EagerOuterSubscriber;->drain()V
|
||
|
|
||
|
goto :goto_0
|
||
|
.end method
|