188 lines
4.6 KiB
Smali
188 lines
4.6 KiB
Smali
.class public final Lrx/internal/a/am;
|
|
.super Lrx/b/b;
|
|
.source "OperatorPublish.java"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Lrx/internal/a/am$a;,
|
|
Lrx/internal/a/am$b;
|
|
}
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<T:",
|
|
"Ljava/lang/Object;",
|
|
">",
|
|
"Lrx/b/b<",
|
|
"TT;>;"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field final bJy:Lrx/Observable;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Lrx/Observable<",
|
|
"+TT;>;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field final bLY:Ljava/util/concurrent/atomic/AtomicReference;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/util/concurrent/atomic/AtomicReference<",
|
|
"Lrx/internal/a/am$b<",
|
|
"TT;>;>;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
|
|
# direct methods
|
|
.method private constructor <init>(Lrx/Observable$a;Lrx/Observable;Ljava/util/concurrent/atomic/AtomicReference;)V
|
|
.locals 0
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Lrx/Observable$a<",
|
|
"TT;>;",
|
|
"Lrx/Observable<",
|
|
"+TT;>;",
|
|
"Ljava/util/concurrent/atomic/AtomicReference<",
|
|
"Lrx/internal/a/am$b<",
|
|
"TT;>;>;)V"
|
|
}
|
|
.end annotation
|
|
|
|
invoke-direct {p0, p1}, Lrx/b/b;-><init>(Lrx/Observable$a;)V
|
|
|
|
iput-object p2, p0, Lrx/internal/a/am;->bJy:Lrx/Observable;
|
|
|
|
iput-object p3, p0, Lrx/internal/a/am;->bLY:Ljava/util/concurrent/atomic/AtomicReference;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static f(Lrx/Observable;)Lrx/b/b;
|
|
.locals 3
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<T:",
|
|
"Ljava/lang/Object;",
|
|
">(",
|
|
"Lrx/Observable<",
|
|
"+TT;>;)",
|
|
"Lrx/b/b<",
|
|
"TT;>;"
|
|
}
|
|
.end annotation
|
|
|
|
new-instance v0, Ljava/util/concurrent/atomic/AtomicReference;
|
|
|
|
invoke-direct {v0}, Ljava/util/concurrent/atomic/AtomicReference;-><init>()V
|
|
|
|
new-instance v1, Lrx/internal/a/am$1;
|
|
|
|
invoke-direct {v1, v0}, Lrx/internal/a/am$1;-><init>(Ljava/util/concurrent/atomic/AtomicReference;)V
|
|
|
|
new-instance v2, Lrx/internal/a/am;
|
|
|
|
invoke-direct {v2, v1, p0, v0}, Lrx/internal/a/am;-><init>(Lrx/Observable$a;Lrx/Observable;Ljava/util/concurrent/atomic/AtomicReference;)V
|
|
|
|
return-object v2
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final c(Lrx/functions/Action1;)V
|
|
.locals 4
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Lrx/functions/Action1<",
|
|
"-",
|
|
"Lrx/Subscription;",
|
|
">;)V"
|
|
}
|
|
.end annotation
|
|
|
|
:cond_0
|
|
iget-object v0, p0, Lrx/internal/a/am;->bLY:Ljava/util/concurrent/atomic/AtomicReference;
|
|
|
|
invoke-virtual {v0}, Ljava/util/concurrent/atomic/AtomicReference;->get()Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Lrx/internal/a/am$b;
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
invoke-virtual {v0}, Lrx/internal/a/am$b;->isUnsubscribed()Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_2
|
|
|
|
:cond_1
|
|
new-instance v1, Lrx/internal/a/am$b;
|
|
|
|
iget-object v2, p0, Lrx/internal/a/am;->bLY:Ljava/util/concurrent/atomic/AtomicReference;
|
|
|
|
invoke-direct {v1, v2}, Lrx/internal/a/am$b;-><init>(Ljava/util/concurrent/atomic/AtomicReference;)V
|
|
|
|
invoke-virtual {v1}, Lrx/internal/a/am$b;->init()V
|
|
|
|
iget-object v2, p0, Lrx/internal/a/am;->bLY: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-eqz v0, :cond_0
|
|
|
|
move-object v0, v1
|
|
|
|
:cond_2
|
|
iget-object v1, v0, Lrx/internal/a/am$b;->bMe: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, Lrx/internal/a/am$b;->bMe: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_0
|
|
|
|
:cond_3
|
|
const/4 v2, 0x0
|
|
|
|
:goto_0
|
|
invoke-interface {p1, v0}, Lrx/functions/Action1;->call(Ljava/lang/Object;)V
|
|
|
|
if-eqz v2, :cond_4
|
|
|
|
iget-object p1, p0, Lrx/internal/a/am;->bJy:Lrx/Observable;
|
|
|
|
invoke-virtual {p1, v0}, Lrx/Observable;->a(Lrx/Subscriber;)Lrx/Subscription;
|
|
|
|
:cond_4
|
|
return-void
|
|
.end method
|