e.smali
.class public final Lio/reactivex/observers/e;
.super Ljava/lang/Object;
.source "SerializedObserver.java"
# interfaces
.implements Lio/reactivex/disposables/b;
.implements Lio/reactivex/r;
# annotations
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">",
"Ljava/lang/Object;",
"Lio/reactivex/disposables/b;",
"Lio/reactivex/r",
"<TT;>;"
}
.end annotation
# instance fields
.field private actual:Lio/reactivex/r;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lio/reactivex/r",
"<-TT;>;"
}
.end annotation
.end field
.field private bTk:Z
.field private bTl:Lio/reactivex/internal/util/a;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lio/reactivex/internal/util/a",
"<",
"Ljava/lang/Object;",
">;"
}
.end annotation
.end field
.field private volatile done:Z
.field private s:Lio/reactivex/disposables/b;
# direct methods
.method public constructor <init>(Lio/reactivex/r;)V
.registers 3
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lio/reactivex/r",
"<-TT;>;)V"
}
.end annotation
.prologue
.line 51
const/4 v0, 0x0
invoke-direct {p0, p1, v0}, Lio/reactivex/observers/e;-><init>(Lio/reactivex/r;B)V
.line 52
return-void
.end method
.method private constructor <init>(Lio/reactivex/r;B)V
.registers 3
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lio/reactivex/r",
"<-TT;>;B)V"
}
.end annotation
.prologue
.line 61
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 62
iput-object p1, p0, Lio/reactivex/observers/e;->actual:Lio/reactivex/r;
.line 64
return-void
.end method
.method private Qd()V
.registers 7
.prologue
const/4 v5, 0x4
const/4 v1, 0x0
.line 188
:cond_2
monitor-enter p0
.line 189
:try_start_3
iget-object v0, p0, Lio/reactivex/observers/e;->bTl:Lio/reactivex/internal/util/a;
.line 190
if-nez v0, :cond_c
.line 191
const/4 v0, 0x0
iput-boolean v0, p0, Lio/reactivex/observers/e;->bTk:Z
.line 192
monitor-exit p0
.line 198
:goto_b
return-void
.line 194
:cond_c
const/4 v2, 0x0
iput-object v2, p0, Lio/reactivex/observers/e;->bTl:Lio/reactivex/internal/util/a;
.line 195
monitor-exit p0
:try_end_10
.catchall {:try_start_3 .. :try_end_10} :catchall_28
.line 197
iget-object v3, p0, Lio/reactivex/observers/e;->actual:Lio/reactivex/r;
.line 1138
iget-object v0, v0, Lio/reactivex/internal/util/a;->bSY:[Ljava/lang/Object;
move-object v2, v0
.line 1140
:goto_15
if-eqz v2, :cond_34
move v0, v1
.line 1141
:goto_18
if-ge v0, v5, :cond_2e
.line 1142
aget-object v4, v2, v0
.line 1143
if-eqz v4, :cond_2e
.line 1147
invoke-static {v4, v3}, Lio/reactivex/internal/util/NotificationLite;->acceptFull(Ljava/lang/Object;Lio/reactivex/r;)Z
move-result v4
if-eqz v4, :cond_2b
.line 1148
const/4 v0, 0x1
.line 197
:goto_25
if-eqz v0, :cond_2
goto :goto_b
.line 195
:catchall_28
move-exception v0
:try_start_29
monitor-exit p0
:try_end_2a
.catchall {:try_start_29 .. :try_end_2a} :catchall_28
throw v0
.line 1141
:cond_2b
add-int/lit8 v0, v0, 0x1
goto :goto_18
.line 1151
:cond_2e
aget-object v0, v2, v5
check-cast v0, [Ljava/lang/Object;
move-object v2, v0
goto :goto_15
:cond_34
move v0, v1
.line 1153
goto :goto_25
.end method
# virtual methods
.method public final dispose()V
.registers 2
.prologue
.line 78
iget-object v0, p0, Lio/reactivex/observers/e;->s:Lio/reactivex/disposables/b;
invoke-interface {v0}, Lio/reactivex/disposables/b;->dispose()V
.line 79
return-void
.end method
.method public final isDisposed()Z
.registers 2
.prologue
.line 83
iget-object v0, p0, Lio/reactivex/observers/e;->s:Lio/reactivex/disposables/b;
invoke-interface {v0}, Lio/reactivex/disposables/b;->isDisposed()Z
move-result v0
return v0
.end method
.method public final onComplete()V
.registers 3
.prologue
.line 161
iget-boolean v0, p0, Lio/reactivex/observers/e;->done:Z
if-eqz v0, :cond_5
.line 183
:goto_4
return-void
.line 164
:cond_5
monitor-enter p0
.line 165
:try_start_6
iget-boolean v0, p0, Lio/reactivex/observers/e;->done:Z
if-eqz v0, :cond_f
.line 166
monitor-exit p0
goto :goto_4
.line 179
:catchall_c
move-exception v0
monitor-exit p0
:try_end_e
.catchall {:try_start_6 .. :try_end_e} :catchall_c
throw v0
.line 168
:cond_f
:try_start_f
iget-boolean v0, p0, Lio/reactivex/observers/e;->bTk:Z
if-eqz v0, :cond_27
.line 169
iget-object v0, p0, Lio/reactivex/observers/e;->bTl:Lio/reactivex/internal/util/a;
.line 170
if-nez v0, :cond_1e
.line 171
new-instance v0, Lio/reactivex/internal/util/a;
invoke-direct {v0}, Lio/reactivex/internal/util/a;-><init>()V
.line 172
iput-object v0, p0, Lio/reactivex/observers/e;->bTl:Lio/reactivex/internal/util/a;
.line 174
:cond_1e
invoke-static {}, Lio/reactivex/internal/util/NotificationLite;->complete()Ljava/lang/Object;
move-result-object v1
invoke-virtual {v0, v1}, Lio/reactivex/internal/util/a;->add(Ljava/lang/Object;)V
.line 175
monitor-exit p0
goto :goto_4
.line 177
:cond_27
const/4 v0, 0x1
iput-boolean v0, p0, Lio/reactivex/observers/e;->done:Z
.line 178
const/4 v0, 0x1
iput-boolean v0, p0, Lio/reactivex/observers/e;->bTk:Z
.line 179
monitor-exit p0
:try_end_2e
.catchall {:try_start_f .. :try_end_2e} :catchall_c
.line 181
iget-object v0, p0, Lio/reactivex/observers/e;->actual:Lio/reactivex/r;
invoke-interface {v0}, Lio/reactivex/r;->onComplete()V
goto :goto_4
.end method
.method public final onError(Ljava/lang/Throwable;)V
.registers 5
.prologue
const/4 v1, 0x0
const/4 v0, 0x1
.line 120
iget-boolean v2, p0, Lio/reactivex/observers/e;->done:Z
if-eqz v2, :cond_a
.line 121
invoke-static {p1}, Lio/reactivex/d/a;->onError(Ljava/lang/Throwable;)V
.line 157
:goto_9
return-void
.line 125
:cond_a
monitor-enter p0
.line 126
:try_start_b
iget-boolean v2, p0, Lio/reactivex/observers/e;->done:Z
if-eqz v2, :cond_16
.line 148
:goto_f
monitor-exit p0
:try_end_10
.catchall {:try_start_b .. :try_end_10} :catchall_33
.line 150
if-eqz v0, :cond_3e
.line 151
invoke-static {p1}, Lio/reactivex/d/a;->onError(Ljava/lang/Throwable;)V
goto :goto_9
.line 129
:cond_16
:try_start_16
iget-boolean v0, p0, Lio/reactivex/observers/e;->bTk:Z
if-eqz v0, :cond_36
.line 130
const/4 v0, 0x1
iput-boolean v0, p0, Lio/reactivex/observers/e;->done:Z
.line 131
iget-object v0, p0, Lio/reactivex/observers/e;->bTl:Lio/reactivex/internal/util/a;
.line 132
if-nez v0, :cond_28
.line 133
new-instance v0, Lio/reactivex/internal/util/a;
invoke-direct {v0}, Lio/reactivex/internal/util/a;-><init>()V
.line 134
iput-object v0, p0, Lio/reactivex/observers/e;->bTl:Lio/reactivex/internal/util/a;
.line 136
:cond_28
invoke-static {p1}, Lio/reactivex/internal/util/NotificationLite;->error(Ljava/lang/Throwable;)Ljava/lang/Object;
move-result-object v1
.line 1065
iget-object v0, v0, Lio/reactivex/internal/util/a;->bSY:[Ljava/lang/Object;
const/4 v2, 0x0
aput-object v1, v0, v2
.line 142
monitor-exit p0
goto :goto_9
.line 148
:catchall_33
move-exception v0
monitor-exit p0
:try_end_35
.catchall {:try_start_16 .. :try_end_35} :catchall_33
throw v0
.line 144
:cond_36
const/4 v0, 0x1
:try_start_37
iput-boolean v0, p0, Lio/reactivex/observers/e;->done:Z
.line 145
const/4 v0, 0x1
iput-boolean v0, p0, Lio/reactivex/observers/e;->bTk:Z
:try_end_3c
.catchall {:try_start_37 .. :try_end_3c} :catchall_33
move v0, v1
.line 146
goto :goto_f
.line 155
:cond_3e
iget-object v0, p0, Lio/reactivex/observers/e;->actual:Lio/reactivex/r;
invoke-interface {v0, p1}, Lio/reactivex/r;->onError(Ljava/lang/Throwable;)V
goto :goto_9
.end method
.method public final onNext(Ljava/lang/Object;)V
.registers 4
.annotation system Ldalvik/annotation/Signature;
value = {
"(TT;)V"
}
.end annotation
.prologue
.line 89
iget-boolean v0, p0, Lio/reactivex/observers/e;->done:Z
if-eqz v0, :cond_5
.line 116
:goto_4
return-void
.line 92
:cond_5
if-nez p1, :cond_17
.line 93
iget-object v0, p0, Lio/reactivex/observers/e;->s:Lio/reactivex/disposables/b;
invoke-interface {v0}, Lio/reactivex/disposables/b;->dispose()V
.line 94
new-instance v0, Ljava/lang/NullPointerException;
const-string v1, "onNext called with null. Null values are generally not allowed in 2.x operators and sources."
invoke-direct {v0, v1}, Ljava/lang/NullPointerException;-><init>(Ljava/lang/String;)V
invoke-virtual {p0, v0}, Lio/reactivex/observers/e;->onError(Ljava/lang/Throwable;)V
goto :goto_4
.line 97
:cond_17
monitor-enter p0
.line 98
:try_start_18
iget-boolean v0, p0, Lio/reactivex/observers/e;->done:Z
if-eqz v0, :cond_21
.line 99
monitor-exit p0
goto :goto_4
.line 111
:catchall_1e
move-exception v0
monitor-exit p0
:try_end_20
.catchall {:try_start_18 .. :try_end_20} :catchall_1e
throw v0
.line 101
:cond_21
:try_start_21
iget-boolean v0, p0, Lio/reactivex/observers/e;->bTk:Z
if-eqz v0, :cond_39
.line 102
iget-object v0, p0, Lio/reactivex/observers/e;->bTl:Lio/reactivex/internal/util/a;
.line 103
if-nez v0, :cond_30
.line 104
new-instance v0, Lio/reactivex/internal/util/a;
invoke-direct {v0}, Lio/reactivex/internal/util/a;-><init>()V
.line 105
iput-object v0, p0, Lio/reactivex/observers/e;->bTl:Lio/reactivex/internal/util/a;
.line 107
:cond_30
invoke-static {p1}, Lio/reactivex/internal/util/NotificationLite;->next(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v1
invoke-virtual {v0, v1}, Lio/reactivex/internal/util/a;->add(Ljava/lang/Object;)V
.line 108
monitor-exit p0
goto :goto_4
.line 110
:cond_39
const/4 v0, 0x1
iput-boolean v0, p0, Lio/reactivex/observers/e;->bTk:Z
.line 111
monitor-exit p0
:try_end_3d
.catchall {:try_start_21 .. :try_end_3d} :catchall_1e
.line 113
iget-object v0, p0, Lio/reactivex/observers/e;->actual:Lio/reactivex/r;
invoke-interface {v0, p1}, Lio/reactivex/r;->onNext(Ljava/lang/Object;)V
.line 115
invoke-direct {p0}, Lio/reactivex/observers/e;->Qd()V
goto :goto_4
.end method
.method public final onSubscribe(Lio/reactivex/disposables/b;)V
.registers 3
.prologue
.line 68
iget-object v0, p0, Lio/reactivex/observers/e;->s:Lio/reactivex/disposables/b;
invoke-static {v0, p1}, Lio/reactivex/internal/disposables/DisposableHelper;->validate(Lio/reactivex/disposables/b;Lio/reactivex/disposables/b;)Z
move-result v0
if-eqz v0, :cond_f
.line 69
iput-object p1, p0, Lio/reactivex/observers/e;->s:Lio/reactivex/disposables/b;
.line 71
iget-object v0, p0, Lio/reactivex/observers/e;->actual:Lio/reactivex/r;
invoke-interface {v0, p0}, Lio/reactivex/r;->onSubscribe(Lio/reactivex/disposables/b;)V
.line 73
:cond_f
return-void
.end method