ObservableReplay$UnboundedReplayBuffer.smali
.class final Lio/reactivex/internal/operators/observable/ObservableReplay$UnboundedReplayBuffer;
.super Ljava/util/ArrayList;
# interfaces
.implements Lio/reactivex/internal/operators/observable/ObservableReplay$ReplayBuffer;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lio/reactivex/internal/operators/observable/ObservableReplay;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x18
name = "UnboundedReplayBuffer"
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">",
"Ljava/util/ArrayList<",
"Ljava/lang/Object;",
">;",
"Lio/reactivex/internal/operators/observable/ObservableReplay$ReplayBuffer<",
"TT;>;"
}
.end annotation
# instance fields
.field volatile f:I
# direct methods
.method constructor <init>(I)V
.registers 2
invoke-direct {p0, p1}, Ljava/util/ArrayList;-><init>(I)V
return-void
.end method
# virtual methods
.method public c()V
.registers 2
invoke-static {}, Lio/reactivex/internal/util/NotificationLite;->g()Ljava/lang/Object;
move-result-object v0
invoke-virtual {p0, v0}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
iget v0, p0, Lio/reactivex/internal/operators/observable/ObservableReplay$UnboundedReplayBuffer;->f:I
add-int/lit8 v0, v0, 0x1
iput v0, p0, Lio/reactivex/internal/operators/observable/ObservableReplay$UnboundedReplayBuffer;->f:I
return-void
.end method
.method public h(Lio/reactivex/internal/operators/observable/ObservableReplay$InnerDisposable;)V
.registers 7
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lio/reactivex/internal/operators/observable/ObservableReplay$InnerDisposable<",
"TT;>;)V"
}
.end annotation
invoke-virtual {p1}, Ljava/util/concurrent/atomic/AtomicInteger;->getAndIncrement()I
move-result v0
if-eqz v0, :cond_7
return-void
:cond_7
iget-object v0, p1, Lio/reactivex/internal/operators/observable/ObservableReplay$InnerDisposable;->g:Lio/reactivex/Observer;
const/4 v1, 0x1
:cond_a
invoke-virtual {p1}, Lio/reactivex/internal/operators/observable/ObservableReplay$InnerDisposable;->j()Z
move-result v2
if-eqz v2, :cond_11
return-void
:cond_11
iget v2, p0, Lio/reactivex/internal/operators/observable/ObservableReplay$UnboundedReplayBuffer;->f:I
invoke-virtual {p1}, Lio/reactivex/internal/operators/observable/ObservableReplay$InnerDisposable;->a()Ljava/lang/Object;
move-result-object v3
check-cast v3, Ljava/lang/Integer;
if-eqz v3, :cond_20
invoke-virtual {v3}, Ljava/lang/Integer;->intValue()I
move-result v3
goto :goto_21
:cond_20
const/4 v3, 0x0
:goto_21
if-ge v3, v2, :cond_38
invoke-virtual {p0, v3}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;
move-result-object v4
invoke-static {v4, v0}, Lio/reactivex/internal/util/NotificationLite;->f(Ljava/lang/Object;Lio/reactivex/Observer;)Z
move-result v4
if-eqz v4, :cond_2e
return-void
:cond_2e
invoke-virtual {p1}, Lio/reactivex/internal/operators/observable/ObservableReplay$InnerDisposable;->j()Z
move-result v4
if-eqz v4, :cond_35
return-void
:cond_35
add-int/lit8 v3, v3, 0x1
goto :goto_21
:cond_38
invoke-static {v3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v2
iput-object v2, p1, Lio/reactivex/internal/operators/observable/ObservableReplay$InnerDisposable;->h:Ljava/lang/Object;
neg-int v1, v1
invoke-virtual {p1, v1}, Ljava/util/concurrent/atomic/AtomicInteger;->addAndGet(I)I
move-result v1
if-nez v1, :cond_a
return-void
.end method
.method public i(Ljava/lang/Object;)V
.registers 2
.annotation system Ldalvik/annotation/Signature;
value = {
"(TT;)V"
}
.end annotation
invoke-static {p1}, Lio/reactivex/internal/util/NotificationLite;->k(Ljava/lang/Object;)Ljava/lang/Object;
invoke-virtual {p0, p1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
iget p1, p0, Lio/reactivex/internal/operators/observable/ObservableReplay$UnboundedReplayBuffer;->f:I
add-int/lit8 p1, p1, 0x1
iput p1, p0, Lio/reactivex/internal/operators/observable/ObservableReplay$UnboundedReplayBuffer;->f:I
return-void
.end method
.method public l(Ljava/lang/Throwable;)V
.registers 2
invoke-static {p1}, Lio/reactivex/internal/util/NotificationLite;->j(Ljava/lang/Throwable;)Ljava/lang/Object;
move-result-object p1
invoke-virtual {p0, p1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
iget p1, p0, Lio/reactivex/internal/operators/observable/ObservableReplay$UnboundedReplayBuffer;->f:I
add-int/lit8 p1, p1, 0x1
iput p1, p0, Lio/reactivex/internal/operators/observable/ObservableReplay$UnboundedReplayBuffer;->f:I
return-void
.end method