512 lines
11 KiB
Smali
512 lines
11 KiB
Smali
.class public final Lio/reactivex/rxjava3/processors/ReplayProcessor$d;
|
|
.super Ljava/lang/Object;
|
|
.source "ReplayProcessor.java"
|
|
|
|
# interfaces
|
|
.implements Lio/reactivex/rxjava3/processors/ReplayProcessor$a;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
value = Lio/reactivex/rxjava3/processors/ReplayProcessor;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x19
|
|
name = "d"
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<T:",
|
|
"Ljava/lang/Object;",
|
|
">",
|
|
"Ljava/lang/Object;",
|
|
"Lio/reactivex/rxjava3/processors/ReplayProcessor$a<",
|
|
"TT;>;"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field public final a:Ljava/util/List;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/util/List<",
|
|
"TT;>;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field public b:Ljava/lang/Throwable;
|
|
|
|
.field public volatile c:Z
|
|
|
|
.field public volatile d:I
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(I)V
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/MethodParameters;
|
|
accessFlags = {
|
|
0x0
|
|
}
|
|
names = {
|
|
"capacityHint"
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
.line 2
|
|
new-instance v0, Ljava/util/ArrayList;
|
|
|
|
invoke-direct {v0, p1}, Ljava/util/ArrayList;-><init>(I)V
|
|
|
|
iput-object v0, p0, Lio/reactivex/rxjava3/processors/ReplayProcessor$d;->a:Ljava/util/List;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public a(Lio/reactivex/rxjava3/processors/ReplayProcessor$ReplaySubscription;)V
|
|
.locals 13
|
|
.annotation system Ldalvik/annotation/MethodParameters;
|
|
accessFlags = {
|
|
0x0
|
|
}
|
|
names = {
|
|
"rs"
|
|
}
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Lio/reactivex/rxjava3/processors/ReplayProcessor$ReplaySubscription<",
|
|
"TT;>;)V"
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
invoke-virtual {p1}, Ljava/util/concurrent/atomic/AtomicInteger;->getAndIncrement()I
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
return-void
|
|
|
|
.line 2
|
|
:cond_0
|
|
iget-object v0, p0, Lio/reactivex/rxjava3/processors/ReplayProcessor$d;->a:Ljava/util/List;
|
|
|
|
.line 3
|
|
iget-object v1, p1, Lio/reactivex/rxjava3/processors/ReplayProcessor$ReplaySubscription;->downstream:Lok/d;
|
|
|
|
.line 4
|
|
iget-object v2, p1, Lio/reactivex/rxjava3/processors/ReplayProcessor$ReplaySubscription;->index:Ljava/lang/Object;
|
|
|
|
check-cast v2, Ljava/lang/Integer;
|
|
|
|
const/4 v3, 0x0
|
|
|
|
if-eqz v2, :cond_1
|
|
|
|
.line 5
|
|
invoke-virtual {v2}, Ljava/lang/Integer;->intValue()I
|
|
|
|
move-result v3
|
|
|
|
goto :goto_0
|
|
|
|
.line 6
|
|
:cond_1
|
|
invoke-static {v3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object v2
|
|
|
|
iput-object v2, p1, Lio/reactivex/rxjava3/processors/ReplayProcessor$ReplaySubscription;->index:Ljava/lang/Object;
|
|
|
|
.line 7
|
|
:goto_0
|
|
iget-wide v4, p1, Lio/reactivex/rxjava3/processors/ReplayProcessor$ReplaySubscription;->emitted:J
|
|
|
|
const/4 v2, 0x1
|
|
|
|
move v6, v2
|
|
|
|
.line 8
|
|
:cond_2
|
|
iget-object v7, p1, Lio/reactivex/rxjava3/processors/ReplayProcessor$ReplaySubscription;->requested:Ljava/util/concurrent/atomic/AtomicLong;
|
|
|
|
invoke-virtual {v7}, Ljava/util/concurrent/atomic/AtomicLong;->get()J
|
|
|
|
move-result-wide v7
|
|
|
|
:goto_1
|
|
cmp-long v9, v4, v7
|
|
|
|
const/4 v10, 0x0
|
|
|
|
if-eqz v9, :cond_7
|
|
|
|
.line 9
|
|
iget-boolean v11, p1, Lio/reactivex/rxjava3/processors/ReplayProcessor$ReplaySubscription;->cancelled:Z
|
|
|
|
if-eqz v11, :cond_3
|
|
|
|
.line 10
|
|
iput-object v10, p1, Lio/reactivex/rxjava3/processors/ReplayProcessor$ReplaySubscription;->index:Ljava/lang/Object;
|
|
|
|
return-void
|
|
|
|
.line 11
|
|
:cond_3
|
|
iget-boolean v11, p0, Lio/reactivex/rxjava3/processors/ReplayProcessor$d;->c:Z
|
|
|
|
.line 12
|
|
iget v12, p0, Lio/reactivex/rxjava3/processors/ReplayProcessor$d;->d:I
|
|
|
|
if-eqz v11, :cond_5
|
|
|
|
if-ne v3, v12, :cond_5
|
|
|
|
.line 13
|
|
iput-object v10, p1, Lio/reactivex/rxjava3/processors/ReplayProcessor$ReplaySubscription;->index:Ljava/lang/Object;
|
|
|
|
.line 14
|
|
iput-boolean v2, p1, Lio/reactivex/rxjava3/processors/ReplayProcessor$ReplaySubscription;->cancelled:Z
|
|
|
|
.line 15
|
|
iget-object p1, p0, Lio/reactivex/rxjava3/processors/ReplayProcessor$d;->b:Ljava/lang/Throwable;
|
|
|
|
if-nez p1, :cond_4
|
|
|
|
.line 16
|
|
invoke-interface {v1}, Lok/d;->onComplete()V
|
|
|
|
goto :goto_2
|
|
|
|
.line 17
|
|
:cond_4
|
|
invoke-interface {v1, p1}, Lok/d;->onError(Ljava/lang/Throwable;)V
|
|
|
|
:goto_2
|
|
return-void
|
|
|
|
:cond_5
|
|
if-ne v3, v12, :cond_6
|
|
|
|
goto :goto_3
|
|
|
|
.line 18
|
|
:cond_6
|
|
invoke-interface {v0, v3}, Ljava/util/List;->get(I)Ljava/lang/Object;
|
|
|
|
move-result-object v9
|
|
|
|
invoke-interface {v1, v9}, Lok/d;->onNext(Ljava/lang/Object;)V
|
|
|
|
add-int/lit8 v3, v3, 0x1
|
|
|
|
const-wide/16 v9, 0x1
|
|
|
|
add-long/2addr v4, v9
|
|
|
|
goto :goto_1
|
|
|
|
:cond_7
|
|
:goto_3
|
|
if-nez v9, :cond_a
|
|
|
|
.line 19
|
|
iget-boolean v7, p1, Lio/reactivex/rxjava3/processors/ReplayProcessor$ReplaySubscription;->cancelled:Z
|
|
|
|
if-eqz v7, :cond_8
|
|
|
|
.line 20
|
|
iput-object v10, p1, Lio/reactivex/rxjava3/processors/ReplayProcessor$ReplaySubscription;->index:Ljava/lang/Object;
|
|
|
|
return-void
|
|
|
|
.line 21
|
|
:cond_8
|
|
iget-boolean v7, p0, Lio/reactivex/rxjava3/processors/ReplayProcessor$d;->c:Z
|
|
|
|
.line 22
|
|
iget v8, p0, Lio/reactivex/rxjava3/processors/ReplayProcessor$d;->d:I
|
|
|
|
if-eqz v7, :cond_a
|
|
|
|
if-ne v3, v8, :cond_a
|
|
|
|
.line 23
|
|
iput-object v10, p1, Lio/reactivex/rxjava3/processors/ReplayProcessor$ReplaySubscription;->index:Ljava/lang/Object;
|
|
|
|
.line 24
|
|
iput-boolean v2, p1, Lio/reactivex/rxjava3/processors/ReplayProcessor$ReplaySubscription;->cancelled:Z
|
|
|
|
.line 25
|
|
iget-object p1, p0, Lio/reactivex/rxjava3/processors/ReplayProcessor$d;->b:Ljava/lang/Throwable;
|
|
|
|
if-nez p1, :cond_9
|
|
|
|
.line 26
|
|
invoke-interface {v1}, Lok/d;->onComplete()V
|
|
|
|
goto :goto_4
|
|
|
|
.line 27
|
|
:cond_9
|
|
invoke-interface {v1, p1}, Lok/d;->onError(Ljava/lang/Throwable;)V
|
|
|
|
:goto_4
|
|
return-void
|
|
|
|
.line 28
|
|
:cond_a
|
|
invoke-static {v3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object v7
|
|
|
|
iput-object v7, p1, Lio/reactivex/rxjava3/processors/ReplayProcessor$ReplaySubscription;->index:Ljava/lang/Object;
|
|
|
|
.line 29
|
|
iput-wide v4, p1, Lio/reactivex/rxjava3/processors/ReplayProcessor$ReplaySubscription;->emitted:J
|
|
|
|
neg-int v6, v6
|
|
|
|
.line 30
|
|
invoke-virtual {p1, v6}, Ljava/util/concurrent/atomic/AtomicInteger;->addAndGet(I)I
|
|
|
|
move-result v6
|
|
|
|
if-nez v6, :cond_2
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public complete()V
|
|
.locals 1
|
|
|
|
const/4 v0, 0x1
|
|
|
|
.line 1
|
|
iput-boolean v0, p0, Lio/reactivex/rxjava3/processors/ReplayProcessor$d;->c:Z
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public error(Ljava/lang/Throwable;)V
|
|
.locals 0
|
|
.annotation system Ldalvik/annotation/MethodParameters;
|
|
accessFlags = {
|
|
0x0
|
|
}
|
|
names = {
|
|
"ex"
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
iput-object p1, p0, Lio/reactivex/rxjava3/processors/ReplayProcessor$d;->b:Ljava/lang/Throwable;
|
|
|
|
const/4 p1, 0x1
|
|
|
|
.line 2
|
|
iput-boolean p1, p0, Lio/reactivex/rxjava3/processors/ReplayProcessor$d;->c:Z
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public getError()Ljava/lang/Throwable;
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lio/reactivex/rxjava3/processors/ReplayProcessor$d;->b:Ljava/lang/Throwable;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public getValue()Ljava/lang/Object;
|
|
.locals 2
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"()TT;"
|
|
}
|
|
.end annotation
|
|
|
|
.annotation build Lio/reactivex/rxjava3/annotations/Nullable;
|
|
.end annotation
|
|
|
|
.line 1
|
|
iget v0, p0, Lio/reactivex/rxjava3/processors/ReplayProcessor$d;->d:I
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
const/4 v0, 0x0
|
|
|
|
return-object v0
|
|
|
|
.line 2
|
|
:cond_0
|
|
iget-object v1, p0, Lio/reactivex/rxjava3/processors/ReplayProcessor$d;->a:Ljava/util/List;
|
|
|
|
add-int/lit8 v0, v0, -0x1
|
|
|
|
invoke-interface {v1, v0}, Ljava/util/List;->get(I)Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public getValues([Ljava/lang/Object;)[Ljava/lang/Object;
|
|
.locals 5
|
|
.annotation system Ldalvik/annotation/MethodParameters;
|
|
accessFlags = {
|
|
0x0
|
|
}
|
|
names = {
|
|
"array"
|
|
}
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"([TT;)[TT;"
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
iget v0, p0, Lio/reactivex/rxjava3/processors/ReplayProcessor$d;->d:I
|
|
|
|
const/4 v1, 0x0
|
|
|
|
const/4 v2, 0x0
|
|
|
|
if-nez v0, :cond_1
|
|
|
|
.line 2
|
|
array-length v0, p1
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 3
|
|
aput-object v1, p1, v2
|
|
|
|
:cond_0
|
|
return-object p1
|
|
|
|
.line 4
|
|
:cond_1
|
|
iget-object v3, p0, Lio/reactivex/rxjava3/processors/ReplayProcessor$d;->a:Ljava/util/List;
|
|
|
|
.line 5
|
|
array-length v4, p1
|
|
|
|
if-ge v4, v0, :cond_2
|
|
|
|
.line 6
|
|
invoke-virtual {p1}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p1}, Ljava/lang/Class;->getComponentType()Ljava/lang/Class;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-static {p1, v0}, Ljava/lang/reflect/Array;->newInstance(Ljava/lang/Class;I)Ljava/lang/Object;
|
|
|
|
move-result-object p1
|
|
|
|
check-cast p1, [Ljava/lang/Object;
|
|
|
|
:cond_2
|
|
:goto_0
|
|
if-ge v2, v0, :cond_3
|
|
|
|
.line 7
|
|
invoke-interface {v3, v2}, Ljava/util/List;->get(I)Ljava/lang/Object;
|
|
|
|
move-result-object v4
|
|
|
|
aput-object v4, p1, v2
|
|
|
|
add-int/lit8 v2, v2, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
.line 8
|
|
:cond_3
|
|
array-length v2, p1
|
|
|
|
if-le v2, v0, :cond_4
|
|
|
|
.line 9
|
|
aput-object v1, p1, v0
|
|
|
|
:cond_4
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public isDone()Z
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-boolean v0, p0, Lio/reactivex/rxjava3/processors/ReplayProcessor$d;->c:Z
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public next(Ljava/lang/Object;)V
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/MethodParameters;
|
|
accessFlags = {
|
|
0x0
|
|
}
|
|
names = {
|
|
"value"
|
|
}
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(TT;)V"
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lio/reactivex/rxjava3/processors/ReplayProcessor$d;->a:Ljava/util/List;
|
|
|
|
invoke-interface {v0, p1}, Ljava/util/List;->add(Ljava/lang/Object;)Z
|
|
|
|
.line 2
|
|
iget p1, p0, Lio/reactivex/rxjava3/processors/ReplayProcessor$d;->d:I
|
|
|
|
add-int/lit8 p1, p1, 0x1
|
|
|
|
iput p1, p0, Lio/reactivex/rxjava3/processors/ReplayProcessor$d;->d:I
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public size()I
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget v0, p0, Lio/reactivex/rxjava3/processors/ReplayProcessor$d;->d:I
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public trimHead()V
|
|
.locals 0
|
|
|
|
return-void
|
|
.end method
|