2022-06-10 21:38:30 +09:00

294 lines
6.4 KiB
Smali

.class public final Lio/reactivex/internal/operators/parallel/g$a;
.super Ljava/lang/Object;
.source "ParallelMap.java"
# interfaces
.implements Lrh/a;
.implements Lok/e;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lio/reactivex/internal/operators/parallel/g;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = "a"
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
"R:",
"Ljava/lang/Object;",
">",
"Ljava/lang/Object;",
"Lrh/a<",
"TT;>;",
"Lok/e;"
}
.end annotation
# instance fields
.field public final a:Lrh/a;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lrh/a<",
"-TR;>;"
}
.end annotation
.end field
.field public final b:Lph/o;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lph/o<",
"-TT;+TR;>;"
}
.end annotation
.end field
.field public c:Lok/e;
.field public d:Z
# direct methods
.method public constructor <init>(Lrh/a;Lph/o;)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lrh/a<",
"-TR;>;",
"Lph/o<",
"-TT;+TR;>;)V"
}
.end annotation
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 2
iput-object p1, p0, Lio/reactivex/internal/operators/parallel/g$a;->a:Lrh/a;
.line 3
iput-object p2, p0, Lio/reactivex/internal/operators/parallel/g$a;->b:Lph/o;
return-void
.end method
# virtual methods
.method public cancel()V
.locals 1
.line 1
iget-object v0, p0, Lio/reactivex/internal/operators/parallel/g$a;->c: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/internal/operators/parallel/g$a;->d:Z
if-eqz v0, :cond_0
return-void
:cond_0
const/4 v0, 0x1
.line 2
iput-boolean v0, p0, Lio/reactivex/internal/operators/parallel/g$a;->d:Z
.line 3
iget-object v0, p0, Lio/reactivex/internal/operators/parallel/g$a;->a:Lrh/a;
invoke-interface {v0}, Lok/d;->onComplete()V
return-void
.end method
.method public onError(Ljava/lang/Throwable;)V
.locals 1
.line 1
iget-boolean v0, p0, Lio/reactivex/internal/operators/parallel/g$a;->d:Z
if-eqz v0, :cond_0
.line 2
invoke-static {p1}, Lwh/a;->Y(Ljava/lang/Throwable;)V
return-void
:cond_0
const/4 v0, 0x1
.line 3
iput-boolean v0, p0, Lio/reactivex/internal/operators/parallel/g$a;->d:Z
.line 4
iget-object v0, p0, Lio/reactivex/internal/operators/parallel/g$a;->a:Lrh/a;
invoke-interface {v0, p1}, Lok/d;->onError(Ljava/lang/Throwable;)V
return-void
.end method
.method public onNext(Ljava/lang/Object;)V
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(TT;)V"
}
.end annotation
.line 1
iget-boolean v0, p0, Lio/reactivex/internal/operators/parallel/g$a;->d:Z
if-eqz v0, :cond_0
return-void
.line 2
:cond_0
:try_start_0
iget-object v0, p0, Lio/reactivex/internal/operators/parallel/g$a;->b:Lph/o;
invoke-interface {v0, p1}, Lph/o;->apply(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p1
const-string v0, "The mapper returned a null value"
invoke-static {p1, v0}, Lio/reactivex/internal/functions/a;->g(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
move-result-object p1
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
.line 3
iget-object v0, p0, Lio/reactivex/internal/operators/parallel/g$a;->a:Lrh/a;
invoke-interface {v0, p1}, Lok/d;->onNext(Ljava/lang/Object;)V
return-void
:catchall_0
move-exception p1
.line 4
invoke-static {p1}, Lio/reactivex/exceptions/a;->b(Ljava/lang/Throwable;)V
.line 5
invoke-virtual {p0}, Lio/reactivex/internal/operators/parallel/g$a;->cancel()V
.line 6
invoke-virtual {p0, p1}, Lio/reactivex/internal/operators/parallel/g$a;->onError(Ljava/lang/Throwable;)V
return-void
.end method
.method public onSubscribe(Lok/e;)V
.locals 1
.line 1
iget-object v0, p0, Lio/reactivex/internal/operators/parallel/g$a;->c:Lok/e;
invoke-static {v0, p1}, Lio/reactivex/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/internal/operators/parallel/g$a;->c:Lok/e;
.line 3
iget-object p1, p0, Lio/reactivex/internal/operators/parallel/g$a;->a:Lrh/a;
invoke-interface {p1, p0}, Lkh/o;->onSubscribe(Lok/e;)V
:cond_0
return-void
.end method
.method public request(J)V
.locals 1
.line 1
iget-object v0, p0, Lio/reactivex/internal/operators/parallel/g$a;->c:Lok/e;
invoke-interface {v0, p1, p2}, Lok/e;->request(J)V
return-void
.end method
.method public tryOnNext(Ljava/lang/Object;)Z
.locals 2
.annotation system Ldalvik/annotation/Signature;
value = {
"(TT;)Z"
}
.end annotation
.line 1
iget-boolean v0, p0, Lio/reactivex/internal/operators/parallel/g$a;->d:Z
const/4 v1, 0x0
if-eqz v0, :cond_0
return v1
.line 2
:cond_0
:try_start_0
iget-object v0, p0, Lio/reactivex/internal/operators/parallel/g$a;->b:Lph/o;
invoke-interface {v0, p1}, Lph/o;->apply(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p1
const-string v0, "The mapper returned a null value"
invoke-static {p1, v0}, Lio/reactivex/internal/functions/a;->g(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
move-result-object p1
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
.line 3
iget-object v0, p0, Lio/reactivex/internal/operators/parallel/g$a;->a:Lrh/a;
invoke-interface {v0, p1}, Lrh/a;->tryOnNext(Ljava/lang/Object;)Z
move-result p1
return p1
:catchall_0
move-exception p1
.line 4
invoke-static {p1}, Lio/reactivex/exceptions/a;->b(Ljava/lang/Throwable;)V
.line 5
invoke-virtual {p0}, Lio/reactivex/internal/operators/parallel/g$a;->cancel()V
.line 6
invoke-virtual {p0, p1}, Lio/reactivex/internal/operators/parallel/g$a;->onError(Ljava/lang/Throwable;)V
return v1
.end method