450 lines
9.7 KiB
Smali
450 lines
9.7 KiB
Smali
.class public final Lio/reactivex/rxjava3/internal/jdk8/t$b;
|
|
.super Ljava/lang/Object;
|
|
.source "ParallelMapTryOptional.java"
|
|
|
|
# interfaces
|
|
.implements Lei/c;
|
|
.implements Lok/e;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
value = Lio/reactivex/rxjava3/internal/jdk8/t;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x19
|
|
name = "b"
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<T:",
|
|
"Ljava/lang/Object;",
|
|
"R:",
|
|
"Ljava/lang/Object;",
|
|
">",
|
|
"Ljava/lang/Object;",
|
|
"Lei/c<",
|
|
"TT;>;",
|
|
"Lok/e;"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field public final a:Lei/c;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Lei/c<",
|
|
"-TR;>;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field public final b:Lci/o;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Lci/o<",
|
|
"-TT;",
|
|
"Ljava/util/Optional<",
|
|
"+TR;>;>;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field public final c:Lci/c;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Lci/c<",
|
|
"-",
|
|
"Ljava/lang/Long;",
|
|
"-",
|
|
"Ljava/lang/Throwable;",
|
|
"Lio/reactivex/rxjava3/parallel/ParallelFailureHandling;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field public d:Lok/e;
|
|
|
|
.field public e:Z
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Lei/c;Lci/o;Lci/c;)V
|
|
.locals 0
|
|
.annotation system Ldalvik/annotation/MethodParameters;
|
|
accessFlags = {
|
|
0x0,
|
|
0x0,
|
|
0x0
|
|
}
|
|
names = {
|
|
"actual",
|
|
"mapper",
|
|
"errorHandler"
|
|
}
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Lei/c<",
|
|
"-TR;>;",
|
|
"Lci/o<",
|
|
"-TT;",
|
|
"Ljava/util/Optional<",
|
|
"+TR;>;>;",
|
|
"Lci/c<",
|
|
"-",
|
|
"Ljava/lang/Long;",
|
|
"-",
|
|
"Ljava/lang/Throwable;",
|
|
"Lio/reactivex/rxjava3/parallel/ParallelFailureHandling;",
|
|
">;)V"
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
.line 2
|
|
iput-object p1, p0, Lio/reactivex/rxjava3/internal/jdk8/t$b;->a:Lei/c;
|
|
|
|
.line 3
|
|
iput-object p2, p0, Lio/reactivex/rxjava3/internal/jdk8/t$b;->b:Lci/o;
|
|
|
|
.line 4
|
|
iput-object p3, p0, Lio/reactivex/rxjava3/internal/jdk8/t$b;->c:Lci/c;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public cancel()V
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lio/reactivex/rxjava3/internal/jdk8/t$b;->d:Lok/e;
|
|
|
|
invoke-interface {v0}, Lok/e;->cancel()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public onComplete()V
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-boolean v0, p0, Lio/reactivex/rxjava3/internal/jdk8/t$b;->e:Z
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
const/4 v0, 0x1
|
|
|
|
.line 2
|
|
iput-boolean v0, p0, Lio/reactivex/rxjava3/internal/jdk8/t$b;->e:Z
|
|
|
|
.line 3
|
|
iget-object v0, p0, Lio/reactivex/rxjava3/internal/jdk8/t$b;->a:Lei/c;
|
|
|
|
invoke-interface {v0}, Lok/d;->onComplete()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public onError(Ljava/lang/Throwable;)V
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/MethodParameters;
|
|
accessFlags = {
|
|
0x0
|
|
}
|
|
names = {
|
|
"t"
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
iget-boolean v0, p0, Lio/reactivex/rxjava3/internal/jdk8/t$b;->e:Z
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 2
|
|
invoke-static {p1}, Lji/a;->Y(Ljava/lang/Throwable;)V
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
const/4 v0, 0x1
|
|
|
|
.line 3
|
|
iput-boolean v0, p0, Lio/reactivex/rxjava3/internal/jdk8/t$b;->e:Z
|
|
|
|
.line 4
|
|
iget-object v0, p0, Lio/reactivex/rxjava3/internal/jdk8/t$b;->a:Lei/c;
|
|
|
|
invoke-interface {v0, p1}, Lok/d;->onError(Ljava/lang/Throwable;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public onNext(Ljava/lang/Object;)V
|
|
.locals 2
|
|
.annotation system Ldalvik/annotation/MethodParameters;
|
|
accessFlags = {
|
|
0x0
|
|
}
|
|
names = {
|
|
"t"
|
|
}
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(TT;)V"
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
invoke-virtual {p0, p1}, Lio/reactivex/rxjava3/internal/jdk8/t$b;->tryOnNext(Ljava/lang/Object;)Z
|
|
|
|
move-result p1
|
|
|
|
if-nez p1, :cond_0
|
|
|
|
iget-boolean p1, p0, Lio/reactivex/rxjava3/internal/jdk8/t$b;->e:Z
|
|
|
|
if-nez p1, :cond_0
|
|
|
|
.line 2
|
|
iget-object p1, p0, Lio/reactivex/rxjava3/internal/jdk8/t$b;->d:Lok/e;
|
|
|
|
const-wide/16 v0, 0x1
|
|
|
|
invoke-interface {p1, v0, v1}, Lok/e;->request(J)V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public onSubscribe(Lok/e;)V
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/MethodParameters;
|
|
accessFlags = {
|
|
0x0
|
|
}
|
|
names = {
|
|
"s"
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lio/reactivex/rxjava3/internal/jdk8/t$b;->d:Lok/e;
|
|
|
|
invoke-static {v0, p1}, Lio/reactivex/rxjava3/internal/subscriptions/SubscriptionHelper;->validate(Lok/e;Lok/e;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 2
|
|
iput-object p1, p0, Lio/reactivex/rxjava3/internal/jdk8/t$b;->d:Lok/e;
|
|
|
|
.line 3
|
|
iget-object p1, p0, Lio/reactivex/rxjava3/internal/jdk8/t$b;->a:Lei/c;
|
|
|
|
invoke-interface {p1, p0}, Lai/r;->onSubscribe(Lok/e;)V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public request(J)V
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/MethodParameters;
|
|
accessFlags = {
|
|
0x0
|
|
}
|
|
names = {
|
|
"n"
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lio/reactivex/rxjava3/internal/jdk8/t$b;->d:Lok/e;
|
|
|
|
invoke-interface {v0, p1, p2}, Lok/e;->request(J)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public tryOnNext(Ljava/lang/Object;)Z
|
|
.locals 9
|
|
.annotation system Ldalvik/annotation/MethodParameters;
|
|
accessFlags = {
|
|
0x0
|
|
}
|
|
names = {
|
|
"t"
|
|
}
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(TT;)Z"
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
iget-boolean v0, p0, Lio/reactivex/rxjava3/internal/jdk8/t$b;->e:Z
|
|
|
|
const/4 v1, 0x0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
return v1
|
|
|
|
:cond_0
|
|
const-wide/16 v2, 0x0
|
|
|
|
:cond_1
|
|
const/4 v0, 0x1
|
|
|
|
.line 2
|
|
:try_start_0
|
|
iget-object v4, p0, Lio/reactivex/rxjava3/internal/jdk8/t$b;->b:Lci/o;
|
|
|
|
invoke-interface {v4, p1}, Lci/o;->apply(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object v4
|
|
|
|
const-string v5, "The mapper returned a null Optional"
|
|
|
|
invoke-static {v4, v5}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
|
|
|
|
check-cast v4, Ljava/util/Optional;
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
.line 3
|
|
invoke-virtual {v4}, Ljava/util/Optional;->isPresent()Z
|
|
|
|
move-result p1
|
|
|
|
if-eqz p1, :cond_2
|
|
|
|
iget-object p1, p0, Lio/reactivex/rxjava3/internal/jdk8/t$b;->a:Lei/c;
|
|
|
|
invoke-virtual {v4}, Ljava/util/Optional;->get()Ljava/lang/Object;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-interface {p1, v2}, Lei/c;->tryOnNext(Ljava/lang/Object;)Z
|
|
|
|
move-result p1
|
|
|
|
if-eqz p1, :cond_2
|
|
|
|
move v1, v0
|
|
|
|
:cond_2
|
|
return v1
|
|
|
|
:catchall_0
|
|
move-exception v4
|
|
|
|
.line 4
|
|
invoke-static {v4}, Lio/reactivex/rxjava3/exceptions/a;->b(Ljava/lang/Throwable;)V
|
|
|
|
const/4 v5, 0x2
|
|
|
|
.line 5
|
|
:try_start_1
|
|
iget-object v6, p0, Lio/reactivex/rxjava3/internal/jdk8/t$b;->c:Lci/c;
|
|
|
|
const-wide/16 v7, 0x1
|
|
|
|
add-long/2addr v2, v7
|
|
|
|
invoke-static {v2, v3}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
|
|
|
|
move-result-object v7
|
|
|
|
invoke-interface {v6, v7, v4}, Lci/c;->apply(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object v6
|
|
|
|
const-string v7, "The errorHandler returned a null ParallelFailureHandling"
|
|
|
|
invoke-static {v6, v7}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
|
|
|
|
check-cast v6, Lio/reactivex/rxjava3/parallel/ParallelFailureHandling;
|
|
:try_end_1
|
|
.catchall {:try_start_1 .. :try_end_1} :catchall_1
|
|
|
|
.line 6
|
|
sget-object v7, Lio/reactivex/rxjava3/internal/jdk8/t$a;->a:[I
|
|
|
|
invoke-virtual {v6}, Ljava/lang/Enum;->ordinal()I
|
|
|
|
move-result v6
|
|
|
|
aget v6, v7, v6
|
|
|
|
if-eq v6, v0, :cond_1
|
|
|
|
if-eq v6, v5, :cond_4
|
|
|
|
const/4 p1, 0x3
|
|
|
|
if-eq v6, p1, :cond_3
|
|
|
|
.line 7
|
|
invoke-virtual {p0}, Lio/reactivex/rxjava3/internal/jdk8/t$b;->cancel()V
|
|
|
|
.line 8
|
|
invoke-virtual {p0, v4}, Lio/reactivex/rxjava3/internal/jdk8/t$b;->onError(Ljava/lang/Throwable;)V
|
|
|
|
return v1
|
|
|
|
.line 9
|
|
:cond_3
|
|
invoke-virtual {p0}, Lio/reactivex/rxjava3/internal/jdk8/t$b;->cancel()V
|
|
|
|
.line 10
|
|
invoke-virtual {p0}, Lio/reactivex/rxjava3/internal/jdk8/t$b;->onComplete()V
|
|
|
|
:cond_4
|
|
return v1
|
|
|
|
:catchall_1
|
|
move-exception p1
|
|
|
|
.line 11
|
|
invoke-static {p1}, Lio/reactivex/rxjava3/exceptions/a;->b(Ljava/lang/Throwable;)V
|
|
|
|
.line 12
|
|
invoke-virtual {p0}, Lio/reactivex/rxjava3/internal/jdk8/t$b;->cancel()V
|
|
|
|
.line 13
|
|
new-instance v2, Lio/reactivex/rxjava3/exceptions/CompositeException;
|
|
|
|
new-array v3, v5, [Ljava/lang/Throwable;
|
|
|
|
aput-object v4, v3, v1
|
|
|
|
aput-object p1, v3, v0
|
|
|
|
invoke-direct {v2, v3}, Lio/reactivex/rxjava3/exceptions/CompositeException;-><init>([Ljava/lang/Throwable;)V
|
|
|
|
invoke-virtual {p0, v2}, Lio/reactivex/rxjava3/internal/jdk8/t$b;->onError(Ljava/lang/Throwable;)V
|
|
|
|
return v1
|
|
.end method
|