223 lines
6.8 KiB
Smali
223 lines
6.8 KiB
Smali
.class final Lrx/internal/operators/CompletableOnSubscribeConcatIterable$ConcatInnerSubscriber;
|
|
.super Ljava/util/concurrent/atomic/AtomicInteger;
|
|
.source "CompletableOnSubscribeConcatIterable.java"
|
|
|
|
# interfaces
|
|
.implements Lrx/Completable$CompletableSubscriber;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
value = Lrx/internal/operators/CompletableOnSubscribeConcatIterable;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x18
|
|
name = "ConcatInnerSubscriber"
|
|
.end annotation
|
|
|
|
|
|
# static fields
|
|
.field private static final serialVersionUID:J = -0x6e8ac9652ad7cd50L
|
|
|
|
|
|
# instance fields
|
|
.field final actual:Lrx/Completable$CompletableSubscriber;
|
|
|
|
.field index:I
|
|
|
|
.field final sd:Lrx/subscriptions/SerialSubscription;
|
|
|
|
.field final sources:Ljava/util/Iterator;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/util/Iterator",
|
|
"<+",
|
|
"Lrx/Completable;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Lrx/Completable$CompletableSubscriber;Ljava/util/Iterator;)V
|
|
.locals 1
|
|
.param p1, "actual" # Lrx/Completable$CompletableSubscriber;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Lrx/Completable$CompletableSubscriber;",
|
|
"Ljava/util/Iterator",
|
|
"<+",
|
|
"Lrx/Completable;",
|
|
">;)V"
|
|
}
|
|
.end annotation
|
|
|
|
.prologue
|
|
.local p2, "sources":Ljava/util/Iterator;, "Ljava/util/Iterator<+Lrx/Completable;>;"
|
|
invoke-direct {p0}, Ljava/util/concurrent/atomic/AtomicInteger;-><init>()V
|
|
|
|
iput-object p1, p0, Lrx/internal/operators/CompletableOnSubscribeConcatIterable$ConcatInnerSubscriber;->actual:Lrx/Completable$CompletableSubscriber;
|
|
|
|
iput-object p2, p0, Lrx/internal/operators/CompletableOnSubscribeConcatIterable$ConcatInnerSubscriber;->sources:Ljava/util/Iterator;
|
|
|
|
new-instance v0, Lrx/subscriptions/SerialSubscription;
|
|
|
|
invoke-direct {v0}, Lrx/subscriptions/SerialSubscription;-><init>()V
|
|
|
|
iput-object v0, p0, Lrx/internal/operators/CompletableOnSubscribeConcatIterable$ConcatInnerSubscriber;->sd:Lrx/subscriptions/SerialSubscription;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method next()V
|
|
.locals 7
|
|
|
|
.prologue
|
|
iget-object v4, p0, Lrx/internal/operators/CompletableOnSubscribeConcatIterable$ConcatInnerSubscriber;->sd:Lrx/subscriptions/SerialSubscription;
|
|
|
|
invoke-virtual {v4}, Lrx/subscriptions/SerialSubscription;->isUnsubscribed()Z
|
|
|
|
move-result v4
|
|
|
|
if-eqz v4, :cond_1
|
|
|
|
:cond_0
|
|
:goto_0
|
|
return-void
|
|
|
|
:cond_1
|
|
invoke-virtual {p0}, Lrx/internal/operators/CompletableOnSubscribeConcatIterable$ConcatInnerSubscriber;->getAndIncrement()I
|
|
|
|
move-result v4
|
|
|
|
if-nez v4, :cond_0
|
|
|
|
iget-object v0, p0, Lrx/internal/operators/CompletableOnSubscribeConcatIterable$ConcatInnerSubscriber;->sources:Ljava/util/Iterator;
|
|
|
|
.local v0, "a":Ljava/util/Iterator;, "Ljava/util/Iterator<+Lrx/Completable;>;"
|
|
:cond_2
|
|
iget-object v4, p0, Lrx/internal/operators/CompletableOnSubscribeConcatIterable$ConcatInnerSubscriber;->sd:Lrx/subscriptions/SerialSubscription;
|
|
|
|
invoke-virtual {v4}, Lrx/subscriptions/SerialSubscription;->isUnsubscribed()Z
|
|
|
|
move-result v4
|
|
|
|
if-nez v4, :cond_0
|
|
|
|
:try_start_0
|
|
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
|
|
:try_end_0
|
|
.catch Ljava/lang/Throwable; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
move-result v1
|
|
|
|
.local v1, "b":Z
|
|
if-nez v1, :cond_3
|
|
|
|
iget-object v4, p0, Lrx/internal/operators/CompletableOnSubscribeConcatIterable$ConcatInnerSubscriber;->actual:Lrx/Completable$CompletableSubscriber;
|
|
|
|
invoke-interface {v4}, Lrx/Completable$CompletableSubscriber;->onCompleted()V
|
|
|
|
goto :goto_0
|
|
|
|
.end local v1 # "b":Z
|
|
:catch_0
|
|
move-exception v3
|
|
|
|
.local v3, "ex":Ljava/lang/Throwable;
|
|
iget-object v4, p0, Lrx/internal/operators/CompletableOnSubscribeConcatIterable$ConcatInnerSubscriber;->actual:Lrx/Completable$CompletableSubscriber;
|
|
|
|
invoke-interface {v4, v3}, Lrx/Completable$CompletableSubscriber;->onError(Ljava/lang/Throwable;)V
|
|
|
|
goto :goto_0
|
|
|
|
.end local v3 # "ex":Ljava/lang/Throwable;
|
|
.restart local v1 # "b":Z
|
|
:cond_3
|
|
:try_start_1
|
|
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
move-result-object v2
|
|
|
|
check-cast v2, Lrx/Completable;
|
|
:try_end_1
|
|
.catch Ljava/lang/Throwable; {:try_start_1 .. :try_end_1} :catch_1
|
|
|
|
.local v2, "c":Lrx/Completable;
|
|
if-nez v2, :cond_4
|
|
|
|
iget-object v4, p0, Lrx/internal/operators/CompletableOnSubscribeConcatIterable$ConcatInnerSubscriber;->actual:Lrx/Completable$CompletableSubscriber;
|
|
|
|
new-instance v5, Ljava/lang/NullPointerException;
|
|
|
|
const-string v6, "The completable returned is null"
|
|
|
|
invoke-direct {v5, v6}, Ljava/lang/NullPointerException;-><init>(Ljava/lang/String;)V
|
|
|
|
invoke-interface {v4, v5}, Lrx/Completable$CompletableSubscriber;->onError(Ljava/lang/Throwable;)V
|
|
|
|
goto :goto_0
|
|
|
|
.end local v2 # "c":Lrx/Completable;
|
|
:catch_1
|
|
move-exception v3
|
|
|
|
.restart local v3 # "ex":Ljava/lang/Throwable;
|
|
iget-object v4, p0, Lrx/internal/operators/CompletableOnSubscribeConcatIterable$ConcatInnerSubscriber;->actual:Lrx/Completable$CompletableSubscriber;
|
|
|
|
invoke-interface {v4, v3}, Lrx/Completable$CompletableSubscriber;->onError(Ljava/lang/Throwable;)V
|
|
|
|
goto :goto_0
|
|
|
|
.end local v3 # "ex":Ljava/lang/Throwable;
|
|
.restart local v2 # "c":Lrx/Completable;
|
|
:cond_4
|
|
invoke-virtual {v2, p0}, Lrx/Completable;->unsafeSubscribe(Lrx/Completable$CompletableSubscriber;)V
|
|
|
|
invoke-virtual {p0}, Lrx/internal/operators/CompletableOnSubscribeConcatIterable$ConcatInnerSubscriber;->decrementAndGet()I
|
|
|
|
move-result v4
|
|
|
|
if-nez v4, :cond_2
|
|
|
|
goto :goto_0
|
|
.end method
|
|
|
|
.method public onCompleted()V
|
|
.locals 0
|
|
|
|
.prologue
|
|
invoke-virtual {p0}, Lrx/internal/operators/CompletableOnSubscribeConcatIterable$ConcatInnerSubscriber;->next()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public onError(Ljava/lang/Throwable;)V
|
|
.locals 1
|
|
.param p1, "e" # Ljava/lang/Throwable;
|
|
|
|
.prologue
|
|
iget-object v0, p0, Lrx/internal/operators/CompletableOnSubscribeConcatIterable$ConcatInnerSubscriber;->actual:Lrx/Completable$CompletableSubscriber;
|
|
|
|
invoke-interface {v0, p1}, Lrx/Completable$CompletableSubscriber;->onError(Ljava/lang/Throwable;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public onSubscribe(Lrx/Subscription;)V
|
|
.locals 1
|
|
.param p1, "d" # Lrx/Subscription;
|
|
|
|
.prologue
|
|
iget-object v0, p0, Lrx/internal/operators/CompletableOnSubscribeConcatIterable$ConcatInnerSubscriber;->sd:Lrx/subscriptions/SerialSubscription;
|
|
|
|
invoke-virtual {v0, p1}, Lrx/subscriptions/SerialSubscription;->set(Lrx/Subscription;)V
|
|
|
|
return-void
|
|
.end method
|