FlowableAllSingle$AllSubscriber.smali
.class final Lio/reactivex/internal/operators/flowable/FlowableAllSingle$AllSubscriber;
.super Ljava/lang/Object;
.source "FlowableAllSingle.java"
# interfaces
.implements Lio/reactivex/FlowableSubscriber;
.implements Lio/reactivex/disposables/Disposable;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lio/reactivex/internal/operators/flowable/FlowableAllSingle;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x18
name = "AllSubscriber"
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">",
"Ljava/lang/Object;",
"Lio/reactivex/FlowableSubscriber<",
"TT;>;",
"Lio/reactivex/disposables/Disposable;"
}
.end annotation
# instance fields
.field final actual:Lio/reactivex/SingleObserver;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lio/reactivex/SingleObserver<",
"-",
"Ljava/lang/Boolean;",
">;"
}
.end annotation
.end field
.field done:Z
.field final predicate:Lio/reactivex/functions/Predicate;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lio/reactivex/functions/Predicate<",
"-TT;>;"
}
.end annotation
.end field
.field s:Lorg/reactivestreams/Subscription;
# direct methods
.method static constructor <clinit>()V
.registers 1
return-void
.end method
.method constructor <init>(Lio/reactivex/SingleObserver;Lio/reactivex/functions/Predicate;)V
.registers 3
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lio/reactivex/SingleObserver<",
"-",
"Ljava/lang/Boolean;",
">;",
"Lio/reactivex/functions/Predicate<",
"-TT;>;)V"
}
.end annotation
.line 56
.local p0, "this":Lio/reactivex/internal/operators/flowable/FlowableAllSingle$AllSubscriber;, "Lio/reactivex/internal/operators/flowable/FlowableAllSingle$AllSubscriber<TT;>;"
.local p1, "actual":Lio/reactivex/SingleObserver;, "Lio/reactivex/SingleObserver<-Ljava/lang/Boolean;>;"
.local p2, "predicate":Lio/reactivex/functions/Predicate;, "Lio/reactivex/functions/Predicate<-TT;>;"
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 57
iput-object p1, p0, Lio/reactivex/internal/operators/flowable/FlowableAllSingle$AllSubscriber;->actual:Lio/reactivex/SingleObserver;
.line 58
iput-object p2, p0, Lio/reactivex/internal/operators/flowable/FlowableAllSingle$AllSubscriber;->predicate:Lio/reactivex/functions/Predicate;
.line 59
return-void
.end method
# virtual methods
.method public dispose()V
.registers 2
.line 116
.local p0, "this":Lio/reactivex/internal/operators/flowable/FlowableAllSingle$AllSubscriber;, "Lio/reactivex/internal/operators/flowable/FlowableAllSingle$AllSubscriber<TT;>;"
iget-object v0, p0, Lio/reactivex/internal/operators/flowable/FlowableAllSingle$AllSubscriber;->s:Lorg/reactivestreams/Subscription;
invoke-interface {v0}, Lorg/reactivestreams/Subscription;->cancel()V
.line 117
sget-object v0, Lio/reactivex/internal/subscriptions/SubscriptionHelper;->CANCELLED:Lio/reactivex/internal/subscriptions/SubscriptionHelper;
iput-object v0, p0, Lio/reactivex/internal/operators/flowable/FlowableAllSingle$AllSubscriber;->s:Lorg/reactivestreams/Subscription;
.line 118
return-void
.end method
.method public isDisposed()Z
.registers 3
.line 122
.local p0, "this":Lio/reactivex/internal/operators/flowable/FlowableAllSingle$AllSubscriber;, "Lio/reactivex/internal/operators/flowable/FlowableAllSingle$AllSubscriber<TT;>;"
iget-object v0, p0, Lio/reactivex/internal/operators/flowable/FlowableAllSingle$AllSubscriber;->s:Lorg/reactivestreams/Subscription;
sget-object v1, Lio/reactivex/internal/subscriptions/SubscriptionHelper;->CANCELLED:Lio/reactivex/internal/subscriptions/SubscriptionHelper;
if-ne v0, v1, :cond_8
const/4 v0, 0x1
goto :goto_9
:cond_8
const/4 v0, 0x0
:goto_9
return v0
.end method
.method public onComplete()V
.registers 3
.line 105
.local p0, "this":Lio/reactivex/internal/operators/flowable/FlowableAllSingle$AllSubscriber;, "Lio/reactivex/internal/operators/flowable/FlowableAllSingle$AllSubscriber<TT;>;"
iget-boolean v0, p0, Lio/reactivex/internal/operators/flowable/FlowableAllSingle$AllSubscriber;->done:Z
if-eqz v0, :cond_5
.line 106
return-void
.line 108
:cond_5
const/4 v0, 0x1
iput-boolean v0, p0, Lio/reactivex/internal/operators/flowable/FlowableAllSingle$AllSubscriber;->done:Z
.line 109
sget-object v1, Lio/reactivex/internal/subscriptions/SubscriptionHelper;->CANCELLED:Lio/reactivex/internal/subscriptions/SubscriptionHelper;
iput-object v1, p0, Lio/reactivex/internal/operators/flowable/FlowableAllSingle$AllSubscriber;->s:Lorg/reactivestreams/Subscription;
.line 111
iget-object v1, p0, Lio/reactivex/internal/operators/flowable/FlowableAllSingle$AllSubscriber;->actual:Lio/reactivex/SingleObserver;
invoke-static {v0}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;
move-result-object v0
invoke-interface {v1, v0}, Lio/reactivex/SingleObserver;->onSuccess(Ljava/lang/Object;)V
.line 112
return-void
.end method
.method public onError(Ljava/lang/Throwable;)V
.registers 3
.param p1, "t" # Ljava/lang/Throwable;
.line 94
.local p0, "this":Lio/reactivex/internal/operators/flowable/FlowableAllSingle$AllSubscriber;, "Lio/reactivex/internal/operators/flowable/FlowableAllSingle$AllSubscriber<TT;>;"
iget-boolean v0, p0, Lio/reactivex/internal/operators/flowable/FlowableAllSingle$AllSubscriber;->done:Z
if-eqz v0, :cond_8
.line 95
invoke-static {p1}, Lio/reactivex/plugins/RxJavaPlugins;->onError(Ljava/lang/Throwable;)V
.line 96
return-void
.line 98
:cond_8
const/4 v0, 0x1
iput-boolean v0, p0, Lio/reactivex/internal/operators/flowable/FlowableAllSingle$AllSubscriber;->done:Z
.line 99
sget-object v0, Lio/reactivex/internal/subscriptions/SubscriptionHelper;->CANCELLED:Lio/reactivex/internal/subscriptions/SubscriptionHelper;
iput-object v0, p0, Lio/reactivex/internal/operators/flowable/FlowableAllSingle$AllSubscriber;->s:Lorg/reactivestreams/Subscription;
.line 100
iget-object v0, p0, Lio/reactivex/internal/operators/flowable/FlowableAllSingle$AllSubscriber;->actual:Lio/reactivex/SingleObserver;
invoke-interface {v0, p1}, Lio/reactivex/SingleObserver;->onError(Ljava/lang/Throwable;)V
.line 101
return-void
.end method
.method public onNext(Ljava/lang/Object;)V
.registers 5
.annotation system Ldalvik/annotation/Signature;
value = {
"(TT;)V"
}
.end annotation
.line 71
.local p0, "this":Lio/reactivex/internal/operators/flowable/FlowableAllSingle$AllSubscriber;, "Lio/reactivex/internal/operators/flowable/FlowableAllSingle$AllSubscriber<TT;>;"
.local p1, "t":Ljava/lang/Object;, "TT;"
iget-boolean v0, p0, Lio/reactivex/internal/operators/flowable/FlowableAllSingle$AllSubscriber;->done:Z
if-eqz v0, :cond_5
.line 72
return-void
.line 76
:cond_5
:try_start_5
iget-object v0, p0, Lio/reactivex/internal/operators/flowable/FlowableAllSingle$AllSubscriber;->predicate:Lio/reactivex/functions/Predicate;
invoke-interface {v0, p1}, Lio/reactivex/functions/Predicate;->test(Ljava/lang/Object;)Z
move-result v0
:try_end_b
.catchall {:try_start_5 .. :try_end_b} :catchall_25
.line 83
.local v0, "b":Z
nop
.line 84
if-nez v0, :cond_24
.line 85
const/4 v1, 0x1
iput-boolean v1, p0, Lio/reactivex/internal/operators/flowable/FlowableAllSingle$AllSubscriber;->done:Z
.line 86
iget-object v1, p0, Lio/reactivex/internal/operators/flowable/FlowableAllSingle$AllSubscriber;->s:Lorg/reactivestreams/Subscription;
invoke-interface {v1}, Lorg/reactivestreams/Subscription;->cancel()V
.line 87
sget-object v1, Lio/reactivex/internal/subscriptions/SubscriptionHelper;->CANCELLED:Lio/reactivex/internal/subscriptions/SubscriptionHelper;
iput-object v1, p0, Lio/reactivex/internal/operators/flowable/FlowableAllSingle$AllSubscriber;->s:Lorg/reactivestreams/Subscription;
.line 88
iget-object v1, p0, Lio/reactivex/internal/operators/flowable/FlowableAllSingle$AllSubscriber;->actual:Lio/reactivex/SingleObserver;
const/4 v2, 0x0
invoke-static {v2}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;
move-result-object v2
invoke-interface {v1, v2}, Lio/reactivex/SingleObserver;->onSuccess(Ljava/lang/Object;)V
.line 90
:cond_24
return-void
.line 77
.end local v0 # "b":Z
:catchall_25
move-exception v0
.line 78
.local v0, "e":Ljava/lang/Throwable;
invoke-static {v0}, Lio/reactivex/exceptions/Exceptions;->throwIfFatal(Ljava/lang/Throwable;)V
.line 79
iget-object v1, p0, Lio/reactivex/internal/operators/flowable/FlowableAllSingle$AllSubscriber;->s:Lorg/reactivestreams/Subscription;
invoke-interface {v1}, Lorg/reactivestreams/Subscription;->cancel()V
.line 80
sget-object v1, Lio/reactivex/internal/subscriptions/SubscriptionHelper;->CANCELLED:Lio/reactivex/internal/subscriptions/SubscriptionHelper;
iput-object v1, p0, Lio/reactivex/internal/operators/flowable/FlowableAllSingle$AllSubscriber;->s:Lorg/reactivestreams/Subscription;
.line 81
invoke-virtual {p0, v0}, Lio/reactivex/internal/operators/flowable/FlowableAllSingle$AllSubscriber;->onError(Ljava/lang/Throwable;)V
.line 82
return-void
.end method
.method public onSubscribe(Lorg/reactivestreams/Subscription;)V
.registers 4
.param p1, "s" # Lorg/reactivestreams/Subscription;
.line 62
.local p0, "this":Lio/reactivex/internal/operators/flowable/FlowableAllSingle$AllSubscriber;, "Lio/reactivex/internal/operators/flowable/FlowableAllSingle$AllSubscriber<TT;>;"
iget-object v0, p0, Lio/reactivex/internal/operators/flowable/FlowableAllSingle$AllSubscriber;->s:Lorg/reactivestreams/Subscription;
invoke-static {v0, p1}, Lio/reactivex/internal/subscriptions/SubscriptionHelper;->validate(Lorg/reactivestreams/Subscription;Lorg/reactivestreams/Subscription;)Z
move-result v0
if-eqz v0, :cond_17
.line 63
iput-object p1, p0, Lio/reactivex/internal/operators/flowable/FlowableAllSingle$AllSubscriber;->s:Lorg/reactivestreams/Subscription;
.line 64
iget-object v0, p0, Lio/reactivex/internal/operators/flowable/FlowableAllSingle$AllSubscriber;->actual:Lio/reactivex/SingleObserver;
invoke-interface {v0, p0}, Lio/reactivex/SingleObserver;->onSubscribe(Lio/reactivex/disposables/Disposable;)V
.line 65
const-wide v0, 0x7fffffffffffffffL
invoke-interface {p1, v0, v1}, Lorg/reactivestreams/Subscription;->request(J)V
.line 67
:cond_17
return-void
.end method