926 lines
18 KiB
Smali
926 lines
18 KiB
Smali
.class final Lrx/internal/a/an$e;
|
|
.super Lrx/Subscriber;
|
|
.source "OperatorReplay.java"
|
|
|
|
# interfaces
|
|
.implements Lrx/Subscription;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
value = Lrx/internal/a/an;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x18
|
|
name = "e"
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<T:",
|
|
"Ljava/lang/Object;",
|
|
">",
|
|
"Lrx/Subscriber<",
|
|
"TT;>;",
|
|
"Lrx/Subscription;"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# static fields
|
|
.field static final bFO:[Lrx/internal/a/an$b;
|
|
|
|
.field static final bFP:[Lrx/internal/a/an$b;
|
|
|
|
|
|
# instance fields
|
|
.field final bFH:Ljava/util/concurrent/atomic/AtomicBoolean;
|
|
|
|
.field final bFN:Lrx/internal/a/an$d;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Lrx/internal/a/an$d<",
|
|
"TT;>;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field final bFQ:Lrx/internal/util/g;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Lrx/internal/util/g<",
|
|
"Lrx/internal/a/an$b<",
|
|
"TT;>;>;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field bFR:[Lrx/internal/a/an$b;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"[",
|
|
"Lrx/internal/a/an$b<",
|
|
"TT;>;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field volatile bFS:J
|
|
|
|
.field bFT:J
|
|
|
|
.field bFU:J
|
|
|
|
.field bFV:J
|
|
|
|
.field bFW:Ljava/util/List;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/util/List<",
|
|
"Lrx/internal/a/an$b<",
|
|
"TT;>;>;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field bFX:Z
|
|
|
|
.field done:Z
|
|
|
|
.field emitting:Z
|
|
|
|
.field missed:Z
|
|
|
|
.field volatile producer:Lrx/Producer;
|
|
|
|
.field volatile terminated:Z
|
|
|
|
|
|
# direct methods
|
|
.method static constructor <clinit>()V
|
|
.locals 2
|
|
|
|
const/4 v0, 0x0
|
|
|
|
new-array v1, v0, [Lrx/internal/a/an$b;
|
|
|
|
sput-object v1, Lrx/internal/a/an$e;->bFO:[Lrx/internal/a/an$b;
|
|
|
|
new-array v0, v0, [Lrx/internal/a/an$b;
|
|
|
|
sput-object v0, Lrx/internal/a/an$e;->bFP:[Lrx/internal/a/an$b;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Lrx/internal/a/an$d;)V
|
|
.locals 2
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Lrx/internal/a/an$d<",
|
|
"TT;>;)V"
|
|
}
|
|
.end annotation
|
|
|
|
invoke-direct {p0}, Lrx/Subscriber;-><init>()V
|
|
|
|
iput-object p1, p0, Lrx/internal/a/an$e;->bFN:Lrx/internal/a/an$d;
|
|
|
|
new-instance p1, Lrx/internal/util/g;
|
|
|
|
invoke-direct {p1}, Lrx/internal/util/g;-><init>()V
|
|
|
|
iput-object p1, p0, Lrx/internal/a/an$e;->bFQ:Lrx/internal/util/g;
|
|
|
|
sget-object p1, Lrx/internal/a/an$e;->bFO:[Lrx/internal/a/an$b;
|
|
|
|
iput-object p1, p0, Lrx/internal/a/an$e;->bFR:[Lrx/internal/a/an$b;
|
|
|
|
new-instance p1, Ljava/util/concurrent/atomic/AtomicBoolean;
|
|
|
|
invoke-direct {p1}, Ljava/util/concurrent/atomic/AtomicBoolean;-><init>()V
|
|
|
|
iput-object p1, p0, Lrx/internal/a/an$e;->bFH:Ljava/util/concurrent/atomic/AtomicBoolean;
|
|
|
|
const-wide/16 v0, 0x0
|
|
|
|
invoke-virtual {p0, v0, v1}, Lrx/internal/a/an$e;->request(J)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private Ep()[Lrx/internal/a/an$b;
|
|
.locals 5
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"()[",
|
|
"Lrx/internal/a/an$b<",
|
|
"TT;>;"
|
|
}
|
|
.end annotation
|
|
|
|
iget-object v0, p0, Lrx/internal/a/an$e;->bFQ:Lrx/internal/util/g;
|
|
|
|
monitor-enter v0
|
|
|
|
:try_start_0
|
|
iget-object v1, p0, Lrx/internal/a/an$e;->bFQ:Lrx/internal/util/g;
|
|
|
|
iget-object v1, v1, Lrx/internal/util/g;->bIX:[Ljava/lang/Object;
|
|
|
|
array-length v2, v1
|
|
|
|
new-array v3, v2, [Lrx/internal/a/an$b;
|
|
|
|
const/4 v4, 0x0
|
|
|
|
invoke-static {v1, v4, v3, v4, v2}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V
|
|
|
|
monitor-exit v0
|
|
|
|
return-object v3
|
|
|
|
:catchall_0
|
|
move-exception v1
|
|
|
|
monitor-exit v0
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
throw v1
|
|
.end method
|
|
|
|
.method private Eq()V
|
|
.locals 7
|
|
|
|
iget-object v0, p0, Lrx/internal/a/an$e;->bFR:[Lrx/internal/a/an$b;
|
|
|
|
iget-wide v1, p0, Lrx/internal/a/an$e;->bFT:J
|
|
|
|
iget-wide v3, p0, Lrx/internal/a/an$e;->bFS:J
|
|
|
|
const/4 v5, 0x0
|
|
|
|
cmp-long v6, v1, v3
|
|
|
|
if-eqz v6, :cond_1
|
|
|
|
iget-object v1, p0, Lrx/internal/a/an$e;->bFQ:Lrx/internal/util/g;
|
|
|
|
monitor-enter v1
|
|
|
|
:try_start_0
|
|
iget-object v0, p0, Lrx/internal/a/an$e;->bFR:[Lrx/internal/a/an$b;
|
|
|
|
iget-object v2, p0, Lrx/internal/a/an$e;->bFQ:Lrx/internal/util/g;
|
|
|
|
iget-object v2, v2, Lrx/internal/util/g;->bIX:[Ljava/lang/Object;
|
|
|
|
array-length v3, v2
|
|
|
|
array-length v4, v0
|
|
|
|
if-eq v4, v3, :cond_0
|
|
|
|
new-array v0, v3, [Lrx/internal/a/an$b;
|
|
|
|
iput-object v0, p0, Lrx/internal/a/an$e;->bFR:[Lrx/internal/a/an$b;
|
|
|
|
:cond_0
|
|
invoke-static {v2, v5, v0, v5, v3}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V
|
|
|
|
iget-wide v2, p0, Lrx/internal/a/an$e;->bFS:J
|
|
|
|
iput-wide v2, p0, Lrx/internal/a/an$e;->bFT:J
|
|
|
|
monitor-exit v1
|
|
|
|
goto :goto_0
|
|
|
|
:catchall_0
|
|
move-exception v0
|
|
|
|
monitor-exit v1
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
throw v0
|
|
|
|
:cond_1
|
|
:goto_0
|
|
iget-object v1, p0, Lrx/internal/a/an$e;->bFN:Lrx/internal/a/an$d;
|
|
|
|
array-length v2, v0
|
|
|
|
:goto_1
|
|
if-ge v5, v2, :cond_3
|
|
|
|
aget-object v3, v0, v5
|
|
|
|
if-eqz v3, :cond_2
|
|
|
|
invoke-interface {v1, v3}, Lrx/internal/a/an$d;->a(Lrx/internal/a/an$b;)V
|
|
|
|
:cond_2
|
|
add-int/lit8 v5, v5, 0x1
|
|
|
|
goto :goto_1
|
|
|
|
:cond_3
|
|
return-void
|
|
.end method
|
|
|
|
.method private i(JJ)V
|
|
.locals 6
|
|
|
|
iget-wide v0, p0, Lrx/internal/a/an$e;->bFV:J
|
|
|
|
iget-object v2, p0, Lrx/internal/a/an$e;->producer:Lrx/Producer;
|
|
|
|
sub-long p3, p1, p3
|
|
|
|
const-wide/16 v3, 0x0
|
|
|
|
cmp-long v5, p3, v3
|
|
|
|
if-eqz v5, :cond_3
|
|
|
|
iput-wide p1, p0, Lrx/internal/a/an$e;->bFU:J
|
|
|
|
if-eqz v2, :cond_1
|
|
|
|
cmp-long p1, v0, v3
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
iput-wide v3, p0, Lrx/internal/a/an$e;->bFV:J
|
|
|
|
add-long/2addr v0, p3
|
|
|
|
invoke-interface {v2, v0, v1}, Lrx/Producer;->request(J)V
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
invoke-interface {v2, p3, p4}, Lrx/Producer;->request(J)V
|
|
|
|
return-void
|
|
|
|
:cond_1
|
|
add-long/2addr v0, p3
|
|
|
|
cmp-long p1, v0, v3
|
|
|
|
if-gez p1, :cond_2
|
|
|
|
const-wide v0, 0x7fffffffffffffffL
|
|
|
|
:cond_2
|
|
iput-wide v0, p0, Lrx/internal/a/an$e;->bFV:J
|
|
|
|
return-void
|
|
|
|
:cond_3
|
|
cmp-long p1, v0, v3
|
|
|
|
if-eqz p1, :cond_4
|
|
|
|
if-eqz v2, :cond_4
|
|
|
|
iput-wide v3, p0, Lrx/internal/a/an$e;->bFV:J
|
|
|
|
invoke-interface {v2, v0, v1}, Lrx/Producer;->request(J)V
|
|
|
|
:cond_4
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method final b(Lrx/internal/a/an$b;)Z
|
|
.locals 10
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Lrx/internal/a/an$b<",
|
|
"TT;>;)Z"
|
|
}
|
|
.end annotation
|
|
|
|
iget-boolean v0, p0, Lrx/internal/a/an$e;->terminated:Z
|
|
|
|
const/4 v1, 0x0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
return v1
|
|
|
|
:cond_0
|
|
iget-object v0, p0, Lrx/internal/a/an$e;->bFQ:Lrx/internal/util/g;
|
|
|
|
monitor-enter v0
|
|
|
|
:try_start_0
|
|
iget-boolean v2, p0, Lrx/internal/a/an$e;->terminated:Z
|
|
|
|
if-eqz v2, :cond_1
|
|
|
|
monitor-exit v0
|
|
|
|
return v1
|
|
|
|
:cond_1
|
|
iget-object v1, p0, Lrx/internal/a/an$e;->bFQ:Lrx/internal/util/g;
|
|
|
|
iget-object v2, v1, Lrx/internal/util/g;->bIX:[Ljava/lang/Object;
|
|
|
|
iget v3, v1, Lrx/internal/util/g;->mask:I
|
|
|
|
invoke-virtual {p1}, Ljava/lang/Object;->hashCode()I
|
|
|
|
move-result v4
|
|
|
|
invoke-static {v4}, Lrx/internal/util/g;->dI(I)I
|
|
|
|
move-result v4
|
|
|
|
and-int/2addr v4, v3
|
|
|
|
aget-object v5, v2, v4
|
|
|
|
const/4 v6, 0x1
|
|
|
|
if-eqz v5, :cond_3
|
|
|
|
invoke-virtual {v5, p1}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v5
|
|
|
|
if-nez v5, :cond_8
|
|
|
|
:cond_2
|
|
add-int/2addr v4, v6
|
|
|
|
and-int/2addr v4, v3
|
|
|
|
aget-object v5, v2, v4
|
|
|
|
if-eqz v5, :cond_3
|
|
|
|
invoke-virtual {v5, p1}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result v5
|
|
|
|
if-eqz v5, :cond_2
|
|
|
|
goto :goto_1
|
|
|
|
:cond_3
|
|
aput-object p1, v2, v4
|
|
|
|
iget p1, v1, Lrx/internal/util/g;->size:I
|
|
|
|
add-int/2addr p1, v6
|
|
|
|
iput p1, v1, Lrx/internal/util/g;->size:I
|
|
|
|
iget v2, v1, Lrx/internal/util/g;->maxSize:I
|
|
|
|
if-lt p1, v2, :cond_8
|
|
|
|
iget-object p1, v1, Lrx/internal/util/g;->bIX:[Ljava/lang/Object;
|
|
|
|
array-length v2, p1
|
|
|
|
shl-int/lit8 v3, v2, 0x1
|
|
|
|
add-int/lit8 v4, v3, -0x1
|
|
|
|
new-array v5, v3, [Ljava/lang/Object;
|
|
|
|
check-cast v5, [Ljava/lang/Object;
|
|
|
|
iget v7, v1, Lrx/internal/util/g;->size:I
|
|
|
|
:goto_0
|
|
add-int/lit8 v8, v7, -0x1
|
|
|
|
if-eqz v7, :cond_7
|
|
|
|
:cond_4
|
|
add-int/lit8 v2, v2, -0x1
|
|
|
|
aget-object v7, p1, v2
|
|
|
|
if-eqz v7, :cond_4
|
|
|
|
aget-object v7, p1, v2
|
|
|
|
invoke-virtual {v7}, Ljava/lang/Object;->hashCode()I
|
|
|
|
move-result v7
|
|
|
|
invoke-static {v7}, Lrx/internal/util/g;->dI(I)I
|
|
|
|
move-result v7
|
|
|
|
and-int/2addr v7, v4
|
|
|
|
aget-object v9, v5, v7
|
|
|
|
if-eqz v9, :cond_6
|
|
|
|
:cond_5
|
|
add-int/2addr v7, v6
|
|
|
|
and-int/2addr v7, v4
|
|
|
|
aget-object v9, v5, v7
|
|
|
|
if-nez v9, :cond_5
|
|
|
|
:cond_6
|
|
aget-object v9, p1, v2
|
|
|
|
aput-object v9, v5, v7
|
|
|
|
move v7, v8
|
|
|
|
goto :goto_0
|
|
|
|
:cond_7
|
|
iput v4, v1, Lrx/internal/util/g;->mask:I
|
|
|
|
int-to-float p1, v3
|
|
|
|
iget v2, v1, Lrx/internal/util/g;->loadFactor:F
|
|
|
|
mul-float p1, p1, v2
|
|
|
|
float-to-int p1, p1
|
|
|
|
iput p1, v1, Lrx/internal/util/g;->maxSize:I
|
|
|
|
iput-object v5, v1, Lrx/internal/util/g;->bIX:[Ljava/lang/Object;
|
|
|
|
:cond_8
|
|
:goto_1
|
|
iget-wide v1, p0, Lrx/internal/a/an$e;->bFS:J
|
|
|
|
const-wide/16 v3, 0x1
|
|
|
|
add-long/2addr v1, v3
|
|
|
|
iput-wide v1, p0, Lrx/internal/a/an$e;->bFS:J
|
|
|
|
monitor-exit v0
|
|
|
|
return v6
|
|
|
|
:catchall_0
|
|
move-exception p1
|
|
|
|
monitor-exit v0
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
throw p1
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method final c(Lrx/internal/a/an$b;)V
|
|
.locals 9
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Lrx/internal/a/an$b<",
|
|
"TT;>;)V"
|
|
}
|
|
.end annotation
|
|
|
|
invoke-virtual {p0}, Lrx/internal/a/an$e;->isUnsubscribed()Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
monitor-enter p0
|
|
|
|
:try_start_0
|
|
iget-boolean v0, p0, Lrx/internal/a/an$e;->emitting:Z
|
|
|
|
const/4 v1, 0x1
|
|
|
|
if-eqz v0, :cond_3
|
|
|
|
if-eqz p1, :cond_2
|
|
|
|
iget-object v0, p0, Lrx/internal/a/an$e;->bFW:Ljava/util/List;
|
|
|
|
if-nez v0, :cond_1
|
|
|
|
new-instance v0, Ljava/util/ArrayList;
|
|
|
|
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
|
|
|
|
iput-object v0, p0, Lrx/internal/a/an$e;->bFW:Ljava/util/List;
|
|
|
|
:cond_1
|
|
invoke-interface {v0, p1}, Ljava/util/List;->add(Ljava/lang/Object;)Z
|
|
|
|
goto :goto_0
|
|
|
|
:cond_2
|
|
iput-boolean v1, p0, Lrx/internal/a/an$e;->bFX:Z
|
|
|
|
:goto_0
|
|
iput-boolean v1, p0, Lrx/internal/a/an$e;->missed:Z
|
|
|
|
monitor-exit p0
|
|
|
|
return-void
|
|
|
|
:cond_3
|
|
iput-boolean v1, p0, Lrx/internal/a/an$e;->emitting:Z
|
|
|
|
monitor-exit p0
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_1
|
|
|
|
iget-wide v0, p0, Lrx/internal/a/an$e;->bFU:J
|
|
|
|
const/4 v2, 0x0
|
|
|
|
if-eqz p1, :cond_4
|
|
|
|
iget-object p1, p1, Lrx/internal/a/an$b;->totalRequested:Ljava/util/concurrent/atomic/AtomicLong;
|
|
|
|
invoke-virtual {p1}, Ljava/util/concurrent/atomic/AtomicLong;->get()J
|
|
|
|
move-result-wide v3
|
|
|
|
invoke-static {v0, v1, v3, v4}, Ljava/lang/Math;->max(JJ)J
|
|
|
|
move-result-wide v3
|
|
|
|
goto :goto_2
|
|
|
|
:cond_4
|
|
invoke-direct {p0}, Lrx/internal/a/an$e;->Ep()[Lrx/internal/a/an$b;
|
|
|
|
move-result-object p1
|
|
|
|
array-length v3, p1
|
|
|
|
move-wide v5, v0
|
|
|
|
const/4 v4, 0x0
|
|
|
|
:goto_1
|
|
if-ge v4, v3, :cond_6
|
|
|
|
aget-object v7, p1, v4
|
|
|
|
if-eqz v7, :cond_5
|
|
|
|
iget-object v7, v7, Lrx/internal/a/an$b;->totalRequested:Ljava/util/concurrent/atomic/AtomicLong;
|
|
|
|
invoke-virtual {v7}, Ljava/util/concurrent/atomic/AtomicLong;->get()J
|
|
|
|
move-result-wide v7
|
|
|
|
invoke-static {v5, v6, v7, v8}, Ljava/lang/Math;->max(JJ)J
|
|
|
|
move-result-wide v5
|
|
|
|
:cond_5
|
|
add-int/lit8 v4, v4, 0x1
|
|
|
|
goto :goto_1
|
|
|
|
:cond_6
|
|
move-wide v3, v5
|
|
|
|
:goto_2
|
|
invoke-direct {p0, v3, v4, v0, v1}, Lrx/internal/a/an$e;->i(JJ)V
|
|
|
|
:goto_3
|
|
invoke-virtual {p0}, Lrx/internal/a/an$e;->isUnsubscribed()Z
|
|
|
|
move-result p1
|
|
|
|
if-eqz p1, :cond_7
|
|
|
|
return-void
|
|
|
|
:cond_7
|
|
monitor-enter p0
|
|
|
|
:try_start_1
|
|
iget-boolean p1, p0, Lrx/internal/a/an$e;->missed:Z
|
|
|
|
if-nez p1, :cond_8
|
|
|
|
iput-boolean v2, p0, Lrx/internal/a/an$e;->emitting:Z
|
|
|
|
monitor-exit p0
|
|
|
|
return-void
|
|
|
|
:cond_8
|
|
iput-boolean v2, p0, Lrx/internal/a/an$e;->missed:Z
|
|
|
|
iget-object p1, p0, Lrx/internal/a/an$e;->bFW:Ljava/util/List;
|
|
|
|
const/4 v0, 0x0
|
|
|
|
iput-object v0, p0, Lrx/internal/a/an$e;->bFW:Ljava/util/List;
|
|
|
|
iget-boolean v0, p0, Lrx/internal/a/an$e;->bFX:Z
|
|
|
|
iput-boolean v2, p0, Lrx/internal/a/an$e;->bFX:Z
|
|
|
|
monitor-exit p0
|
|
:try_end_1
|
|
.catchall {:try_start_1 .. :try_end_1} :catchall_0
|
|
|
|
iget-wide v3, p0, Lrx/internal/a/an$e;->bFU:J
|
|
|
|
if-eqz p1, :cond_9
|
|
|
|
invoke-interface {p1}, Ljava/util/List;->iterator()Ljava/util/Iterator;
|
|
|
|
move-result-object p1
|
|
|
|
move-wide v5, v3
|
|
|
|
:goto_4
|
|
invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_a
|
|
|
|
invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
move-result-object v1
|
|
|
|
check-cast v1, Lrx/internal/a/an$b;
|
|
|
|
iget-object v1, v1, Lrx/internal/a/an$b;->totalRequested:Ljava/util/concurrent/atomic/AtomicLong;
|
|
|
|
invoke-virtual {v1}, Ljava/util/concurrent/atomic/AtomicLong;->get()J
|
|
|
|
move-result-wide v7
|
|
|
|
invoke-static {v5, v6, v7, v8}, Ljava/lang/Math;->max(JJ)J
|
|
|
|
move-result-wide v5
|
|
|
|
goto :goto_4
|
|
|
|
:cond_9
|
|
move-wide v5, v3
|
|
|
|
:cond_a
|
|
if-eqz v0, :cond_c
|
|
|
|
invoke-direct {p0}, Lrx/internal/a/an$e;->Ep()[Lrx/internal/a/an$b;
|
|
|
|
move-result-object p1
|
|
|
|
array-length v0, p1
|
|
|
|
const/4 v1, 0x0
|
|
|
|
:goto_5
|
|
if-ge v1, v0, :cond_c
|
|
|
|
aget-object v7, p1, v1
|
|
|
|
if-eqz v7, :cond_b
|
|
|
|
iget-object v7, v7, Lrx/internal/a/an$b;->totalRequested:Ljava/util/concurrent/atomic/AtomicLong;
|
|
|
|
invoke-virtual {v7}, Ljava/util/concurrent/atomic/AtomicLong;->get()J
|
|
|
|
move-result-wide v7
|
|
|
|
invoke-static {v5, v6, v7, v8}, Ljava/lang/Math;->max(JJ)J
|
|
|
|
move-result-wide v5
|
|
|
|
:cond_b
|
|
add-int/lit8 v1, v1, 0x1
|
|
|
|
goto :goto_5
|
|
|
|
:cond_c
|
|
invoke-direct {p0, v5, v6, v3, v4}, Lrx/internal/a/an$e;->i(JJ)V
|
|
|
|
goto :goto_3
|
|
|
|
:catchall_0
|
|
move-exception p1
|
|
|
|
:try_start_2
|
|
monitor-exit p0
|
|
:try_end_2
|
|
.catchall {:try_start_2 .. :try_end_2} :catchall_0
|
|
|
|
throw p1
|
|
|
|
:catchall_1
|
|
move-exception p1
|
|
|
|
:try_start_3
|
|
monitor-exit p0
|
|
:try_end_3
|
|
.catchall {:try_start_3 .. :try_end_3} :catchall_1
|
|
|
|
throw p1
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method final init()V
|
|
.locals 1
|
|
|
|
new-instance v0, Lrx/internal/a/an$e$1;
|
|
|
|
invoke-direct {v0, p0}, Lrx/internal/a/an$e$1;-><init>(Lrx/internal/a/an$e;)V
|
|
|
|
invoke-static {v0}, Lrx/subscriptions/c;->g(Lrx/functions/Action0;)Lrx/Subscription;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {p0, v0}, Lrx/internal/a/an$e;->add(Lrx/Subscription;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public final onCompleted()V
|
|
.locals 1
|
|
|
|
iget-boolean v0, p0, Lrx/internal/a/an$e;->done:Z
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
const/4 v0, 0x1
|
|
|
|
iput-boolean v0, p0, Lrx/internal/a/an$e;->done:Z
|
|
|
|
:try_start_0
|
|
iget-object v0, p0, Lrx/internal/a/an$e;->bFN:Lrx/internal/a/an$d;
|
|
|
|
invoke-interface {v0}, Lrx/internal/a/an$d;->complete()V
|
|
|
|
invoke-direct {p0}, Lrx/internal/a/an$e;->Eq()V
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
invoke-virtual {p0}, Lrx/internal/a/an$e;->unsubscribe()V
|
|
|
|
return-void
|
|
|
|
:catchall_0
|
|
move-exception v0
|
|
|
|
invoke-virtual {p0}, Lrx/internal/a/an$e;->unsubscribe()V
|
|
|
|
throw v0
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public final onError(Ljava/lang/Throwable;)V
|
|
.locals 1
|
|
|
|
iget-boolean v0, p0, Lrx/internal/a/an$e;->done:Z
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
const/4 v0, 0x1
|
|
|
|
iput-boolean v0, p0, Lrx/internal/a/an$e;->done:Z
|
|
|
|
:try_start_0
|
|
iget-object v0, p0, Lrx/internal/a/an$e;->bFN:Lrx/internal/a/an$d;
|
|
|
|
invoke-interface {v0, p1}, Lrx/internal/a/an$d;->I(Ljava/lang/Throwable;)V
|
|
|
|
invoke-direct {p0}, Lrx/internal/a/an$e;->Eq()V
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
invoke-virtual {p0}, Lrx/internal/a/an$e;->unsubscribe()V
|
|
|
|
return-void
|
|
|
|
:catchall_0
|
|
move-exception p1
|
|
|
|
invoke-virtual {p0}, Lrx/internal/a/an$e;->unsubscribe()V
|
|
|
|
throw p1
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public final onNext(Ljava/lang/Object;)V
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(TT;)V"
|
|
}
|
|
.end annotation
|
|
|
|
iget-boolean v0, p0, Lrx/internal/a/an$e;->done:Z
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
iget-object v0, p0, Lrx/internal/a/an$e;->bFN:Lrx/internal/a/an$d;
|
|
|
|
invoke-interface {v0, p1}, Lrx/internal/a/an$d;->bH(Ljava/lang/Object;)V
|
|
|
|
invoke-direct {p0}, Lrx/internal/a/an$e;->Eq()V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public final setProducer(Lrx/Producer;)V
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lrx/internal/a/an$e;->producer:Lrx/Producer;
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
iput-object p1, p0, Lrx/internal/a/an$e;->producer:Lrx/Producer;
|
|
|
|
const/4 p1, 0x0
|
|
|
|
invoke-virtual {p0, p1}, Lrx/internal/a/an$e;->c(Lrx/internal/a/an$b;)V
|
|
|
|
invoke-direct {p0}, Lrx/internal/a/an$e;->Eq()V
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
new-instance p1, Ljava/lang/IllegalStateException;
|
|
|
|
const-string v0, "Only a single producer can be set on a Subscriber."
|
|
|
|
invoke-direct {p1, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p1
|
|
.end method
|