285 lines
7.4 KiB
Smali
285 lines
7.4 KiB
Smali
.class public final Lio/reactivex/internal/operators/flowable/FlowablePublish;
|
|
.super Loh/a;
|
|
.source "FlowablePublish.java"
|
|
|
|
# interfaces
|
|
.implements Lrh/h;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Lio/reactivex/internal/operators/flowable/FlowablePublish$a;,
|
|
Lio/reactivex/internal/operators/flowable/FlowablePublish$InnerSubscriber;,
|
|
Lio/reactivex/internal/operators/flowable/FlowablePublish$PublishSubscriber;
|
|
}
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<T:",
|
|
"Ljava/lang/Object;",
|
|
">",
|
|
"Loh/a<",
|
|
"TT;>;",
|
|
"Lrh/h<",
|
|
"TT;>;"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# static fields
|
|
.field public static final f:J = -0x8000000000000000L
|
|
|
|
|
|
# instance fields
|
|
.field public final b:Lkh/j;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Lkh/j<",
|
|
"TT;>;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field public final c:Ljava/util/concurrent/atomic/AtomicReference;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/util/concurrent/atomic/AtomicReference<",
|
|
"Lio/reactivex/internal/operators/flowable/FlowablePublish$PublishSubscriber<",
|
|
"TT;>;>;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field public final d:I
|
|
|
|
.field public final e:Lok/c;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Lok/c<",
|
|
"TT;>;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Lok/c;Lkh/j;Ljava/util/concurrent/atomic/AtomicReference;I)V
|
|
.locals 0
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Lok/c<",
|
|
"TT;>;",
|
|
"Lkh/j<",
|
|
"TT;>;",
|
|
"Ljava/util/concurrent/atomic/AtomicReference<",
|
|
"Lio/reactivex/internal/operators/flowable/FlowablePublish$PublishSubscriber<",
|
|
"TT;>;>;I)V"
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
invoke-direct {p0}, Loh/a;-><init>()V
|
|
|
|
.line 2
|
|
iput-object p1, p0, Lio/reactivex/internal/operators/flowable/FlowablePublish;->e:Lok/c;
|
|
|
|
.line 3
|
|
iput-object p2, p0, Lio/reactivex/internal/operators/flowable/FlowablePublish;->b:Lkh/j;
|
|
|
|
.line 4
|
|
iput-object p3, p0, Lio/reactivex/internal/operators/flowable/FlowablePublish;->c:Ljava/util/concurrent/atomic/AtomicReference;
|
|
|
|
.line 5
|
|
iput p4, p0, Lio/reactivex/internal/operators/flowable/FlowablePublish;->d:I
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static T8(Lkh/j;I)Loh/a;
|
|
.locals 3
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<T:",
|
|
"Ljava/lang/Object;",
|
|
">(",
|
|
"Lkh/j<",
|
|
"TT;>;I)",
|
|
"Loh/a<",
|
|
"TT;>;"
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
new-instance v0, Ljava/util/concurrent/atomic/AtomicReference;
|
|
|
|
invoke-direct {v0}, Ljava/util/concurrent/atomic/AtomicReference;-><init>()V
|
|
|
|
.line 2
|
|
new-instance v1, Lio/reactivex/internal/operators/flowable/FlowablePublish$a;
|
|
|
|
invoke-direct {v1, v0, p1}, Lio/reactivex/internal/operators/flowable/FlowablePublish$a;-><init>(Ljava/util/concurrent/atomic/AtomicReference;I)V
|
|
|
|
.line 3
|
|
new-instance v2, Lio/reactivex/internal/operators/flowable/FlowablePublish;
|
|
|
|
invoke-direct {v2, v1, p0, v0, p1}, Lio/reactivex/internal/operators/flowable/FlowablePublish;-><init>(Lok/c;Lkh/j;Ljava/util/concurrent/atomic/AtomicReference;I)V
|
|
|
|
invoke-static {v2}, Lwh/a;->T(Loh/a;)Loh/a;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public M8(Lph/g;)V
|
|
.locals 4
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Lph/g<",
|
|
"-",
|
|
"Lio/reactivex/disposables/b;",
|
|
">;)V"
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
:goto_0
|
|
iget-object v0, p0, Lio/reactivex/internal/operators/flowable/FlowablePublish;->c:Ljava/util/concurrent/atomic/AtomicReference;
|
|
|
|
invoke-virtual {v0}, Ljava/util/concurrent/atomic/AtomicReference;->get()Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Lio/reactivex/internal/operators/flowable/FlowablePublish$PublishSubscriber;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 2
|
|
invoke-virtual {v0}, Lio/reactivex/internal/operators/flowable/FlowablePublish$PublishSubscriber;->isDisposed()Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_2
|
|
|
|
.line 3
|
|
:cond_0
|
|
new-instance v1, Lio/reactivex/internal/operators/flowable/FlowablePublish$PublishSubscriber;
|
|
|
|
iget-object v2, p0, Lio/reactivex/internal/operators/flowable/FlowablePublish;->c:Ljava/util/concurrent/atomic/AtomicReference;
|
|
|
|
iget v3, p0, Lio/reactivex/internal/operators/flowable/FlowablePublish;->d:I
|
|
|
|
invoke-direct {v1, v2, v3}, Lio/reactivex/internal/operators/flowable/FlowablePublish$PublishSubscriber;-><init>(Ljava/util/concurrent/atomic/AtomicReference;I)V
|
|
|
|
.line 4
|
|
iget-object v2, p0, Lio/reactivex/internal/operators/flowable/FlowablePublish;->c:Ljava/util/concurrent/atomic/AtomicReference;
|
|
|
|
invoke-virtual {v2, v0, v1}, Ljava/util/concurrent/atomic/AtomicReference;->compareAndSet(Ljava/lang/Object;Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
move-object v0, v1
|
|
|
|
.line 5
|
|
:cond_2
|
|
iget-object v1, v0, Lio/reactivex/internal/operators/flowable/FlowablePublish$PublishSubscriber;->shouldConnect:Ljava/util/concurrent/atomic/AtomicBoolean;
|
|
|
|
invoke-virtual {v1}, Ljava/util/concurrent/atomic/AtomicBoolean;->get()Z
|
|
|
|
move-result v1
|
|
|
|
const/4 v2, 0x1
|
|
|
|
const/4 v3, 0x0
|
|
|
|
if-nez v1, :cond_3
|
|
|
|
iget-object v1, v0, Lio/reactivex/internal/operators/flowable/FlowablePublish$PublishSubscriber;->shouldConnect:Ljava/util/concurrent/atomic/AtomicBoolean;
|
|
|
|
invoke-virtual {v1, v3, v2}, Ljava/util/concurrent/atomic/AtomicBoolean;->compareAndSet(ZZ)Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_3
|
|
|
|
goto :goto_1
|
|
|
|
:cond_3
|
|
move v2, v3
|
|
|
|
.line 6
|
|
:goto_1
|
|
:try_start_0
|
|
invoke-interface {p1, v0}, Lph/g;->accept(Ljava/lang/Object;)V
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
if-eqz v2, :cond_4
|
|
|
|
.line 7
|
|
iget-object p1, p0, Lio/reactivex/internal/operators/flowable/FlowablePublish;->b:Lkh/j;
|
|
|
|
invoke-virtual {p1, v0}, Lkh/j;->f6(Lkh/o;)V
|
|
|
|
:cond_4
|
|
return-void
|
|
|
|
:catchall_0
|
|
move-exception p1
|
|
|
|
.line 8
|
|
invoke-static {p1}, Lio/reactivex/exceptions/a;->b(Ljava/lang/Throwable;)V
|
|
|
|
.line 9
|
|
invoke-static {p1}, Lio/reactivex/internal/util/ExceptionHelper;->f(Ljava/lang/Throwable;)Ljava/lang/RuntimeException;
|
|
|
|
move-result-object p1
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method public g6(Lok/d;)V
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Lok/d<",
|
|
"-TT;>;)V"
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lio/reactivex/internal/operators/flowable/FlowablePublish;->e:Lok/c;
|
|
|
|
invoke-interface {v0, p1}, Lok/c;->subscribe(Lok/d;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public source()Lok/c;
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"()",
|
|
"Lok/c<",
|
|
"TT;>;"
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lio/reactivex/internal/operators/flowable/FlowablePublish;->b:Lkh/j;
|
|
|
|
return-object v0
|
|
.end method
|