2019-02-04 20:08:30 +00:00
|
|
|
.class final Lrx/internal/a/aj$a;
|
|
|
|
.super Lrx/Subscriber;
|
|
|
|
|
|
|
|
# interfaces
|
|
|
|
.implements Lrx/internal/util/c$a;
|
|
|
|
|
|
|
|
|
|
|
|
# annotations
|
|
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
|
|
value = Lrx/internal/a/aj;
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
|
|
accessFlags = 0x18
|
|
|
|
name = "a"
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"<T:",
|
|
|
|
"Ljava/lang/Object;",
|
|
|
|
">",
|
|
|
|
"Lrx/Subscriber<",
|
|
|
|
"TT;>;",
|
|
|
|
"Lrx/internal/util/c$a;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
|
|
|
|
# instance fields
|
2019-02-04 20:20:43 +00:00
|
|
|
.field private final bUE:Ljava/util/concurrent/ConcurrentLinkedQueue;
|
2019-02-04 20:08:30 +00:00
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"Ljava/util/concurrent/ConcurrentLinkedQueue<",
|
|
|
|
"Ljava/lang/Object;",
|
|
|
|
">;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
.end field
|
|
|
|
|
|
|
|
.field private final child:Lrx/Subscriber;
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"Lrx/Subscriber<",
|
|
|
|
"-TT;>;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
.end field
|
|
|
|
|
2019-02-04 20:20:43 +00:00
|
|
|
.field private final cpV:Lrx/functions/Action0;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:20:43 +00:00
|
|
|
.field private final cpW:Lrx/a$d;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:20:43 +00:00
|
|
|
.field private final cpX:Ljava/util/concurrent/atomic/AtomicLong;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:20:43 +00:00
|
|
|
.field private final cpY:Ljava/util/concurrent/atomic/AtomicBoolean;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:20:43 +00:00
|
|
|
.field final cpZ:Lrx/internal/util/c;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
|
|
|
|
# direct methods
|
|
|
|
.method public constructor <init>(Lrx/Subscriber;Ljava/lang/Long;Lrx/functions/Action0;Lrx/a$d;)V
|
|
|
|
.locals 2
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"(",
|
|
|
|
"Lrx/Subscriber<",
|
|
|
|
"-TT;>;",
|
|
|
|
"Ljava/lang/Long;",
|
|
|
|
"Lrx/functions/Action0;",
|
|
|
|
"Lrx/a$d;",
|
|
|
|
")V"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
invoke-direct {p0}, Lrx/Subscriber;-><init>()V
|
|
|
|
|
|
|
|
new-instance v0, Ljava/util/concurrent/ConcurrentLinkedQueue;
|
|
|
|
|
|
|
|
invoke-direct {v0}, Ljava/util/concurrent/ConcurrentLinkedQueue;-><init>()V
|
|
|
|
|
2019-02-04 20:20:43 +00:00
|
|
|
iput-object v0, p0, Lrx/internal/a/aj$a;->bUE:Ljava/util/concurrent/ConcurrentLinkedQueue;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
new-instance v0, Ljava/util/concurrent/atomic/AtomicBoolean;
|
|
|
|
|
|
|
|
const/4 v1, 0x0
|
|
|
|
|
|
|
|
invoke-direct {v0, v1}, Ljava/util/concurrent/atomic/AtomicBoolean;-><init>(Z)V
|
|
|
|
|
2019-02-04 20:20:43 +00:00
|
|
|
iput-object v0, p0, Lrx/internal/a/aj$a;->cpY:Ljava/util/concurrent/atomic/AtomicBoolean;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
iput-object p1, p0, Lrx/internal/a/aj$a;->child:Lrx/Subscriber;
|
|
|
|
|
|
|
|
if-eqz p2, :cond_0
|
|
|
|
|
|
|
|
new-instance p1, Ljava/util/concurrent/atomic/AtomicLong;
|
|
|
|
|
|
|
|
invoke-virtual {p2}, Ljava/lang/Long;->longValue()J
|
|
|
|
|
|
|
|
move-result-wide v0
|
|
|
|
|
|
|
|
invoke-direct {p1, v0, v1}, Ljava/util/concurrent/atomic/AtomicLong;-><init>(J)V
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const/4 p1, 0x0
|
|
|
|
|
|
|
|
:goto_0
|
2019-02-04 20:20:43 +00:00
|
|
|
iput-object p1, p0, Lrx/internal/a/aj$a;->cpX:Ljava/util/concurrent/atomic/AtomicLong;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:20:43 +00:00
|
|
|
iput-object p3, p0, Lrx/internal/a/aj$a;->cpV:Lrx/functions/Action0;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
new-instance p1, Lrx/internal/util/c;
|
|
|
|
|
|
|
|
invoke-direct {p1, p0}, Lrx/internal/util/c;-><init>(Lrx/internal/util/c$a;)V
|
|
|
|
|
2019-02-04 20:20:43 +00:00
|
|
|
iput-object p1, p0, Lrx/internal/a/aj$a;->cpZ:Lrx/internal/util/c;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:20:43 +00:00
|
|
|
iput-object p4, p0, Lrx/internal/a/aj$a;->cpW:Lrx/a$d;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
2019-02-04 20:17:36 +00:00
|
|
|
.method private Ll()Z
|
2019-02-04 20:08:30 +00:00
|
|
|
.locals 6
|
|
|
|
|
2019-02-04 20:20:43 +00:00
|
|
|
iget-object v0, p0, Lrx/internal/a/aj$a;->cpX:Ljava/util/concurrent/atomic/AtomicLong;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
const/4 v1, 0x1
|
|
|
|
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
|
|
|
|
return v1
|
|
|
|
|
|
|
|
:cond_0
|
2019-02-04 20:20:43 +00:00
|
|
|
iget-object v0, p0, Lrx/internal/a/aj$a;->cpX:Ljava/util/concurrent/atomic/AtomicLong;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
invoke-virtual {v0}, Ljava/util/concurrent/atomic/AtomicLong;->get()J
|
|
|
|
|
|
|
|
move-result-wide v2
|
|
|
|
|
|
|
|
const-wide/16 v4, 0x0
|
|
|
|
|
|
|
|
cmp-long v0, v2, v4
|
|
|
|
|
|
|
|
if-gtz v0, :cond_3
|
|
|
|
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
:try_start_0
|
2019-02-04 20:20:43 +00:00
|
|
|
iget-object v4, p0, Lrx/internal/a/aj$a;->cpW:Lrx/a$d;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-04 20:17:36 +00:00
|
|
|
invoke-interface {v4}, Lrx/a$d;->Ku()Z
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
move-result v4
|
|
|
|
|
|
|
|
if-eqz v4, :cond_1
|
|
|
|
|
|
|
|
invoke-virtual {p0}, Lrx/internal/a/aj$a;->poll()Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-result-object v4
|
|
|
|
:try_end_0
|
|
|
|
.catch Lrx/a/c; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
|
|
|
|
if-eqz v4, :cond_1
|
|
|
|
|
|
|
|
const/4 v4, 0x1
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:catch_0
|
|
|
|
move-exception v4
|
|
|
|
|
2019-02-04 20:20:43 +00:00
|
|
|
iget-object v5, p0, Lrx/internal/a/aj$a;->cpY:Ljava/util/concurrent/atomic/AtomicBoolean;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
invoke-virtual {v5, v0, v1}, Ljava/util/concurrent/atomic/AtomicBoolean;->compareAndSet(ZZ)Z
|
|
|
|
|
|
|
|
move-result v5
|
|
|
|
|
|
|
|
if-eqz v5, :cond_1
|
|
|
|
|
|
|
|
invoke-virtual {p0}, Lrx/internal/a/aj$a;->unsubscribe()V
|
|
|
|
|
|
|
|
iget-object v5, p0, Lrx/internal/a/aj$a;->child:Lrx/Subscriber;
|
|
|
|
|
|
|
|
invoke-virtual {v5, v4}, Lrx/Subscriber;->onError(Ljava/lang/Throwable;)V
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
const/4 v4, 0x0
|
|
|
|
|
|
|
|
:goto_0
|
2019-02-04 20:20:43 +00:00
|
|
|
iget-object v5, p0, Lrx/internal/a/aj$a;->cpV:Lrx/functions/Action0;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
if-eqz v5, :cond_2
|
|
|
|
|
|
|
|
:try_start_1
|
2019-02-04 20:20:43 +00:00
|
|
|
iget-object v5, p0, Lrx/internal/a/aj$a;->cpV:Lrx/functions/Action0;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
invoke-interface {v5}, Lrx/functions/Action0;->call()V
|
|
|
|
:try_end_1
|
|
|
|
.catch Ljava/lang/Throwable; {:try_start_1 .. :try_end_1} :catch_1
|
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:catch_1
|
|
|
|
move-exception v1
|
|
|
|
|
|
|
|
invoke-static {v1}, Lrx/a/b;->C(Ljava/lang/Throwable;)V
|
|
|
|
|
2019-02-04 20:20:43 +00:00
|
|
|
iget-object v2, p0, Lrx/internal/a/aj$a;->cpZ:Lrx/internal/util/c;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
invoke-virtual {v2, v1}, Lrx/internal/util/c;->L(Ljava/lang/Throwable;)V
|
|
|
|
|
|
|
|
return v0
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
:goto_1
|
|
|
|
if-nez v4, :cond_3
|
|
|
|
|
|
|
|
return v0
|
|
|
|
|
|
|
|
:cond_3
|
2019-02-04 20:20:43 +00:00
|
|
|
iget-object v0, p0, Lrx/internal/a/aj$a;->cpX:Ljava/util/concurrent/atomic/AtomicLong;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
const-wide/16 v4, 0x1
|
|
|
|
|
|
|
|
sub-long v4, v2, v4
|
|
|
|
|
|
|
|
invoke-virtual {v0, v2, v3, v4, v5}, Ljava/util/concurrent/atomic/AtomicLong;->compareAndSet(JJ)Z
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
|
|
|
return v1
|
|
|
|
.end method
|
|
|
|
|
|
|
|
|
|
|
|
# virtual methods
|
|
|
|
.method public final G(Ljava/lang/Throwable;)V
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
|
|
|
|
iget-object v0, p0, Lrx/internal/a/aj$a;->child:Lrx/Subscriber;
|
|
|
|
|
|
|
|
invoke-virtual {v0, p1}, Lrx/Subscriber;->onError(Ljava/lang/Throwable;)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
iget-object p1, p0, Lrx/internal/a/aj$a;->child:Lrx/Subscriber;
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Lrx/Subscriber;->onCompleted()V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final accept(Ljava/lang/Object;)Z
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
iget-object v0, p0, Lrx/internal/a/aj$a;->child:Lrx/Subscriber;
|
|
|
|
|
|
|
|
invoke-static {v0, p1}, Lrx/internal/a/g;->a(Lrx/e;Ljava/lang/Object;)Z
|
|
|
|
|
|
|
|
move-result p1
|
|
|
|
|
|
|
|
return p1
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final onCompleted()V
|
|
|
|
.locals 2
|
|
|
|
|
2019-02-04 20:20:43 +00:00
|
|
|
iget-object v0, p0, Lrx/internal/a/aj$a;->cpY:Ljava/util/concurrent/atomic/AtomicBoolean;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
invoke-virtual {v0}, Ljava/util/concurrent/atomic/AtomicBoolean;->get()Z
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
|
2019-02-04 20:20:43 +00:00
|
|
|
iget-object v0, p0, Lrx/internal/a/aj$a;->cpZ:Lrx/internal/util/c;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
const/4 v1, 0x1
|
|
|
|
|
|
|
|
iput-boolean v1, v0, Lrx/internal/util/c;->terminated:Z
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Lrx/internal/util/c;->drain()V
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final onError(Ljava/lang/Throwable;)V
|
|
|
|
.locals 1
|
|
|
|
|
2019-02-04 20:20:43 +00:00
|
|
|
iget-object v0, p0, Lrx/internal/a/aj$a;->cpY:Ljava/util/concurrent/atomic/AtomicBoolean;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
invoke-virtual {v0}, Ljava/util/concurrent/atomic/AtomicBoolean;->get()Z
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
|
2019-02-04 20:20:43 +00:00
|
|
|
iget-object v0, p0, Lrx/internal/a/aj$a;->cpZ:Lrx/internal/util/c;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
invoke-virtual {v0, p1}, Lrx/internal/util/c;->L(Ljava/lang/Throwable;)V
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final onNext(Ljava/lang/Object;)V
|
|
|
|
.locals 1
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"(TT;)V"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
2019-02-04 20:17:36 +00:00
|
|
|
invoke-direct {p0}, Lrx/internal/a/aj$a;->Ll()Z
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
|
|
|
|
return-void
|
|
|
|
|
|
|
|
:cond_0
|
2019-02-04 20:20:43 +00:00
|
|
|
iget-object v0, p0, Lrx/internal/a/aj$a;->bUE:Ljava/util/concurrent/ConcurrentLinkedQueue;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
invoke-static {p1}, Lrx/internal/a/g;->cb(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
invoke-virtual {v0, p1}, Ljava/util/concurrent/ConcurrentLinkedQueue;->offer(Ljava/lang/Object;)Z
|
|
|
|
|
2019-02-04 20:20:43 +00:00
|
|
|
iget-object p1, p0, Lrx/internal/a/aj$a;->cpZ:Lrx/internal/util/c;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
invoke-virtual {p1}, Lrx/internal/util/c;->drain()V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final onStart()V
|
|
|
|
.locals 2
|
|
|
|
|
|
|
|
const-wide v0, 0x7fffffffffffffffL
|
|
|
|
|
|
|
|
invoke-virtual {p0, v0, v1}, Lrx/internal/a/aj$a;->request(J)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final peek()Ljava/lang/Object;
|
|
|
|
.locals 1
|
|
|
|
|
2019-02-04 20:20:43 +00:00
|
|
|
iget-object v0, p0, Lrx/internal/a/aj$a;->bUE:Ljava/util/concurrent/ConcurrentLinkedQueue;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
invoke-virtual {v0}, Ljava/util/concurrent/ConcurrentLinkedQueue;->peek()Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final poll()Ljava/lang/Object;
|
|
|
|
.locals 2
|
|
|
|
|
2019-02-04 20:20:43 +00:00
|
|
|
iget-object v0, p0, Lrx/internal/a/aj$a;->bUE:Ljava/util/concurrent/ConcurrentLinkedQueue;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
invoke-virtual {v0}, Ljava/util/concurrent/ConcurrentLinkedQueue;->poll()Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
2019-02-04 20:20:43 +00:00
|
|
|
iget-object v1, p0, Lrx/internal/a/aj$a;->cpX:Ljava/util/concurrent/atomic/AtomicLong;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
2019-02-04 20:20:43 +00:00
|
|
|
iget-object v1, p0, Lrx/internal/a/aj$a;->cpX:Ljava/util/concurrent/atomic/AtomicLong;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
invoke-virtual {v1}, Ljava/util/concurrent/atomic/AtomicLong;->incrementAndGet()J
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
return-object v0
|
|
|
|
.end method
|