164 lines
3.3 KiB
Smali
164 lines
3.3 KiB
Smali
.class public abstract Ll0/l/a/d;
|
|
.super Lrx/Subscriber;
|
|
.source "DeferredScalarSubscriber.java"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Ll0/l/a/d$a;
|
|
}
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<T:",
|
|
"Ljava/lang/Object;",
|
|
"R:",
|
|
"Ljava/lang/Object;",
|
|
">",
|
|
"Lrx/Subscriber<",
|
|
"TT;>;"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field public final d:Lrx/Subscriber;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Lrx/Subscriber<",
|
|
"-TR;>;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field public e:Z
|
|
|
|
.field public f:Ljava/lang/Object;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"TR;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field public final g:Ljava/util/concurrent/atomic/AtomicInteger;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Lrx/Subscriber;)V
|
|
.locals 0
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Lrx/Subscriber<",
|
|
"-TR;>;)V"
|
|
}
|
|
.end annotation
|
|
|
|
invoke-direct {p0}, Lrx/Subscriber;-><init>()V
|
|
|
|
iput-object p1, p0, Ll0/l/a/d;->d:Lrx/Subscriber;
|
|
|
|
new-instance p1, Ljava/util/concurrent/atomic/AtomicInteger;
|
|
|
|
invoke-direct {p1}, Ljava/util/concurrent/atomic/AtomicInteger;-><init>()V
|
|
|
|
iput-object p1, p0, Ll0/l/a/d;->g:Ljava/util/concurrent/atomic/AtomicInteger;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public onCompleted()V
|
|
.locals 6
|
|
|
|
iget-boolean v0, p0, Ll0/l/a/d;->e:Z
|
|
|
|
if-eqz v0, :cond_4
|
|
|
|
iget-object v0, p0, Ll0/l/a/d;->f:Ljava/lang/Object;
|
|
|
|
iget-object v1, p0, Ll0/l/a/d;->d:Lrx/Subscriber;
|
|
|
|
:cond_0
|
|
iget-object v2, p0, Ll0/l/a/d;->g:Ljava/util/concurrent/atomic/AtomicInteger;
|
|
|
|
invoke-virtual {v2}, Ljava/util/concurrent/atomic/AtomicInteger;->get()I
|
|
|
|
move-result v2
|
|
|
|
const/4 v3, 0x2
|
|
|
|
if-eq v2, v3, :cond_5
|
|
|
|
const/4 v4, 0x3
|
|
|
|
if-eq v2, v4, :cond_5
|
|
|
|
invoke-virtual {v1}, Lrx/Subscriber;->isUnsubscribed()Z
|
|
|
|
move-result v5
|
|
|
|
if-eqz v5, :cond_1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
const/4 v5, 0x1
|
|
|
|
if-ne v2, v5, :cond_3
|
|
|
|
invoke-interface {v1, v0}, Ll0/g;->onNext(Ljava/lang/Object;)V
|
|
|
|
invoke-virtual {v1}, Lrx/Subscriber;->isUnsubscribed()Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_2
|
|
|
|
invoke-interface {v1}, Ll0/g;->onCompleted()V
|
|
|
|
:cond_2
|
|
iget-object v0, p0, Ll0/l/a/d;->g:Ljava/util/concurrent/atomic/AtomicInteger;
|
|
|
|
invoke-virtual {v0, v4}, Ljava/util/concurrent/atomic/AtomicInteger;->lazySet(I)V
|
|
|
|
goto :goto_0
|
|
|
|
:cond_3
|
|
iput-object v0, p0, Ll0/l/a/d;->f:Ljava/lang/Object;
|
|
|
|
iget-object v2, p0, Ll0/l/a/d;->g:Ljava/util/concurrent/atomic/AtomicInteger;
|
|
|
|
const/4 v4, 0x0
|
|
|
|
invoke-virtual {v2, v4, v3}, Ljava/util/concurrent/atomic/AtomicInteger;->compareAndSet(II)Z
|
|
|
|
move-result v2
|
|
|
|
if-eqz v2, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_4
|
|
iget-object v0, p0, Ll0/l/a/d;->d:Lrx/Subscriber;
|
|
|
|
invoke-interface {v0}, Ll0/g;->onCompleted()V
|
|
|
|
:cond_5
|
|
:goto_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public final setProducer(Lrx/Producer;)V
|
|
.locals 2
|
|
|
|
const-wide v0, 0x7fffffffffffffffL
|
|
|
|
invoke-interface {p1, v0, v1}, Lrx/Producer;->n(J)V
|
|
|
|
return-void
|
|
.end method
|