230 lines
5.4 KiB
Smali
230 lines
5.4 KiB
Smali
.class final Lio/reactivex/rxjava3/internal/jdk8/FlowableFromStream$StreamConditionalSubscription;
|
|
.super Lio/reactivex/rxjava3/internal/jdk8/FlowableFromStream$AbstractStreamSubscription;
|
|
.source "FlowableFromStream.java"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
value = Lio/reactivex/rxjava3/internal/jdk8/FlowableFromStream;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x19
|
|
name = "StreamConditionalSubscription"
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<T:",
|
|
"Ljava/lang/Object;",
|
|
">",
|
|
"Lio/reactivex/rxjava3/internal/jdk8/FlowableFromStream$AbstractStreamSubscription<",
|
|
"TT;>;"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# static fields
|
|
.field private static final serialVersionUID:J = -0x7e0d232dac4fd48dL
|
|
|
|
|
|
# instance fields
|
|
.field public final downstream:Lei/c;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Lei/c<",
|
|
"-TT;>;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Lei/c;Ljava/util/Iterator;Ljava/lang/AutoCloseable;)V
|
|
.locals 0
|
|
.annotation system Ldalvik/annotation/MethodParameters;
|
|
accessFlags = {
|
|
0x0,
|
|
0x0,
|
|
0x0
|
|
}
|
|
names = {
|
|
"downstream",
|
|
"iterator",
|
|
"closeable"
|
|
}
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Lei/c<",
|
|
"-TT;>;",
|
|
"Ljava/util/Iterator<",
|
|
"TT;>;",
|
|
"Ljava/lang/AutoCloseable;",
|
|
")V"
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
invoke-direct {p0, p2, p3}, Lio/reactivex/rxjava3/internal/jdk8/FlowableFromStream$AbstractStreamSubscription;-><init>(Ljava/util/Iterator;Ljava/lang/AutoCloseable;)V
|
|
|
|
.line 2
|
|
iput-object p1, p0, Lio/reactivex/rxjava3/internal/jdk8/FlowableFromStream$StreamConditionalSubscription;->downstream:Lei/c;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public run(J)V
|
|
.locals 9
|
|
.annotation system Ldalvik/annotation/MethodParameters;
|
|
accessFlags = {
|
|
0x0
|
|
}
|
|
names = {
|
|
"n"
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lio/reactivex/rxjava3/internal/jdk8/FlowableFromStream$AbstractStreamSubscription;->iterator:Ljava/util/Iterator;
|
|
|
|
.line 2
|
|
iget-object v1, p0, Lio/reactivex/rxjava3/internal/jdk8/FlowableFromStream$StreamConditionalSubscription;->downstream:Lei/c;
|
|
|
|
const-wide/16 v2, 0x0
|
|
|
|
move-wide v4, v2
|
|
|
|
.line 3
|
|
:cond_0
|
|
:goto_0
|
|
iget-boolean v6, p0, Lio/reactivex/rxjava3/internal/jdk8/FlowableFromStream$AbstractStreamSubscription;->cancelled:Z
|
|
|
|
if-eqz v6, :cond_1
|
|
|
|
.line 4
|
|
invoke-virtual {p0}, Lio/reactivex/rxjava3/internal/jdk8/FlowableFromStream$AbstractStreamSubscription;->clear()V
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
const/4 v6, 0x1
|
|
|
|
.line 5
|
|
:try_start_0
|
|
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
move-result-object v7
|
|
|
|
const-string v8, "The Stream\'s Iterator returned a null value"
|
|
|
|
invoke-static {v7, v8}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_1
|
|
|
|
.line 6
|
|
invoke-interface {v1, v7}, Lei/c;->tryOnNext(Ljava/lang/Object;)Z
|
|
|
|
move-result v7
|
|
|
|
if-eqz v7, :cond_2
|
|
|
|
const-wide/16 v7, 0x1
|
|
|
|
add-long/2addr v4, v7
|
|
|
|
.line 7
|
|
:cond_2
|
|
iget-boolean v7, p0, Lio/reactivex/rxjava3/internal/jdk8/FlowableFromStream$AbstractStreamSubscription;->cancelled:Z
|
|
|
|
if-eqz v7, :cond_3
|
|
|
|
goto :goto_0
|
|
|
|
.line 8
|
|
:cond_3
|
|
:try_start_1
|
|
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
move-result v7
|
|
|
|
if-nez v7, :cond_4
|
|
|
|
.line 9
|
|
invoke-interface {v1}, Lok/d;->onComplete()V
|
|
|
|
.line 10
|
|
iput-boolean v6, p0, Lio/reactivex/rxjava3/internal/jdk8/FlowableFromStream$AbstractStreamSubscription;->cancelled:Z
|
|
:try_end_1
|
|
.catchall {:try_start_1 .. :try_end_1} :catchall_0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_4
|
|
cmp-long v6, v4, p1
|
|
|
|
if-eqz v6, :cond_5
|
|
|
|
goto :goto_0
|
|
|
|
.line 11
|
|
:cond_5
|
|
invoke-virtual {p0}, Ljava/util/concurrent/atomic/AtomicLong;->get()J
|
|
|
|
move-result-wide p1
|
|
|
|
cmp-long v6, v4, p1
|
|
|
|
if-nez v6, :cond_0
|
|
|
|
.line 12
|
|
invoke-virtual {p0, p1, p2, v2, v3}, Ljava/util/concurrent/atomic/AtomicLong;->compareAndSet(JJ)Z
|
|
|
|
move-result p1
|
|
|
|
if-eqz p1, :cond_6
|
|
|
|
:goto_1
|
|
return-void
|
|
|
|
.line 13
|
|
:cond_6
|
|
invoke-virtual {p0}, Ljava/util/concurrent/atomic/AtomicLong;->get()J
|
|
|
|
move-result-wide p1
|
|
|
|
goto :goto_0
|
|
|
|
:catchall_0
|
|
move-exception v7
|
|
|
|
.line 14
|
|
invoke-static {v7}, Lio/reactivex/rxjava3/exceptions/a;->b(Ljava/lang/Throwable;)V
|
|
|
|
.line 15
|
|
invoke-interface {v1, v7}, Lok/d;->onError(Ljava/lang/Throwable;)V
|
|
|
|
.line 16
|
|
iput-boolean v6, p0, Lio/reactivex/rxjava3/internal/jdk8/FlowableFromStream$AbstractStreamSubscription;->cancelled:Z
|
|
|
|
goto :goto_0
|
|
|
|
:catchall_1
|
|
move-exception v7
|
|
|
|
.line 17
|
|
invoke-static {v7}, Lio/reactivex/rxjava3/exceptions/a;->b(Ljava/lang/Throwable;)V
|
|
|
|
.line 18
|
|
invoke-interface {v1, v7}, Lok/d;->onError(Ljava/lang/Throwable;)V
|
|
|
|
.line 19
|
|
iput-boolean v6, p0, Lio/reactivex/rxjava3/internal/jdk8/FlowableFromStream$AbstractStreamSubscription;->cancelled:Z
|
|
|
|
goto :goto_0
|
|
.end method
|