297 lines
7.2 KiB
Smali
297 lines
7.2 KiB
Smali
.class final Lrx/internal/a/w$b;
|
|
.super Lrx/Subscriber;
|
|
.source "OnSubscribeTimeoutTimedWithFallback.java"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
value = Lrx/internal/a/w;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x18
|
|
name = "b"
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Lrx/internal/a/w$b$a;
|
|
}
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<T:",
|
|
"Ljava/lang/Object;",
|
|
">",
|
|
"Lrx/Subscriber<",
|
|
"TT;>;"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field final actual:Lrx/Subscriber;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Lrx/Subscriber<",
|
|
"-TT;>;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field final bAI:Lrx/internal/b/a;
|
|
|
|
.field final bBE:Lrx/Observable;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Lrx/Observable<",
|
|
"+TT;>;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field final bBF:Lrx/Scheduler$Worker;
|
|
|
|
.field final bBG:Ljava/util/concurrent/atomic/AtomicLong;
|
|
|
|
.field final bBH:Lrx/internal/d/a;
|
|
|
|
.field final bBI:Lrx/internal/d/a;
|
|
|
|
.field bBJ:J
|
|
|
|
.field final timeout:J
|
|
|
|
.field final unit:Ljava/util/concurrent/TimeUnit;
|
|
|
|
|
|
# direct methods
|
|
.method constructor <init>(Lrx/Subscriber;JLjava/util/concurrent/TimeUnit;Lrx/Scheduler$Worker;Lrx/Observable;)V
|
|
.locals 0
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Lrx/Subscriber<",
|
|
"-TT;>;J",
|
|
"Ljava/util/concurrent/TimeUnit;",
|
|
"Lrx/Scheduler$Worker;",
|
|
"Lrx/Observable<",
|
|
"+TT;>;)V"
|
|
}
|
|
.end annotation
|
|
|
|
invoke-direct {p0}, Lrx/Subscriber;-><init>()V
|
|
|
|
iput-object p1, p0, Lrx/internal/a/w$b;->actual:Lrx/Subscriber;
|
|
|
|
iput-wide p2, p0, Lrx/internal/a/w$b;->timeout:J
|
|
|
|
iput-object p4, p0, Lrx/internal/a/w$b;->unit:Ljava/util/concurrent/TimeUnit;
|
|
|
|
iput-object p5, p0, Lrx/internal/a/w$b;->bBF:Lrx/Scheduler$Worker;
|
|
|
|
iput-object p6, p0, Lrx/internal/a/w$b;->bBE:Lrx/Observable;
|
|
|
|
new-instance p1, Lrx/internal/b/a;
|
|
|
|
invoke-direct {p1}, Lrx/internal/b/a;-><init>()V
|
|
|
|
iput-object p1, p0, Lrx/internal/a/w$b;->bAI:Lrx/internal/b/a;
|
|
|
|
new-instance p1, Ljava/util/concurrent/atomic/AtomicLong;
|
|
|
|
invoke-direct {p1}, Ljava/util/concurrent/atomic/AtomicLong;-><init>()V
|
|
|
|
iput-object p1, p0, Lrx/internal/a/w$b;->bBG:Ljava/util/concurrent/atomic/AtomicLong;
|
|
|
|
new-instance p1, Lrx/internal/d/a;
|
|
|
|
invoke-direct {p1}, Lrx/internal/d/a;-><init>()V
|
|
|
|
iput-object p1, p0, Lrx/internal/a/w$b;->bBH:Lrx/internal/d/a;
|
|
|
|
new-instance p1, Lrx/internal/d/a;
|
|
|
|
invoke-direct {p1, p0}, Lrx/internal/d/a;-><init>(Lrx/Subscription;)V
|
|
|
|
iput-object p1, p0, Lrx/internal/a/w$b;->bBI:Lrx/internal/d/a;
|
|
|
|
invoke-virtual {p0, p5}, Lrx/internal/a/w$b;->add(Lrx/Subscription;)V
|
|
|
|
iget-object p1, p0, Lrx/internal/a/w$b;->bBH:Lrx/internal/d/a;
|
|
|
|
invoke-virtual {p0, p1}, Lrx/internal/a/w$b;->add(Lrx/Subscription;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method final aF(J)V
|
|
.locals 4
|
|
|
|
iget-object v0, p0, Lrx/internal/a/w$b;->bBH:Lrx/internal/d/a;
|
|
|
|
iget-object v1, p0, Lrx/internal/a/w$b;->bBF:Lrx/Scheduler$Worker;
|
|
|
|
new-instance v2, Lrx/internal/a/w$b$a;
|
|
|
|
invoke-direct {v2, p0, p1, p2}, Lrx/internal/a/w$b$a;-><init>(Lrx/internal/a/w$b;J)V
|
|
|
|
iget-wide p1, p0, Lrx/internal/a/w$b;->timeout:J
|
|
|
|
iget-object v3, p0, Lrx/internal/a/w$b;->unit:Ljava/util/concurrent/TimeUnit;
|
|
|
|
invoke-virtual {v1, v2, p1, p2, v3}, Lrx/Scheduler$Worker;->a(Lrx/functions/Action0;JLjava/util/concurrent/TimeUnit;)Lrx/Subscription;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {v0, p1}, Lrx/internal/d/a;->b(Lrx/Subscription;)Z
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public final onCompleted()V
|
|
.locals 5
|
|
|
|
iget-object v0, p0, Lrx/internal/a/w$b;->bBG:Ljava/util/concurrent/atomic/AtomicLong;
|
|
|
|
const-wide v1, 0x7fffffffffffffffL
|
|
|
|
invoke-virtual {v0, v1, v2}, Ljava/util/concurrent/atomic/AtomicLong;->getAndSet(J)J
|
|
|
|
move-result-wide v3
|
|
|
|
cmp-long v0, v3, v1
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
iget-object v0, p0, Lrx/internal/a/w$b;->bBH:Lrx/internal/d/a;
|
|
|
|
invoke-virtual {v0}, Lrx/internal/d/a;->unsubscribe()V
|
|
|
|
iget-object v0, p0, Lrx/internal/a/w$b;->actual:Lrx/Subscriber;
|
|
|
|
invoke-virtual {v0}, Lrx/Subscriber;->onCompleted()V
|
|
|
|
iget-object v0, p0, Lrx/internal/a/w$b;->bBF:Lrx/Scheduler$Worker;
|
|
|
|
invoke-virtual {v0}, Lrx/Scheduler$Worker;->unsubscribe()V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public final onError(Ljava/lang/Throwable;)V
|
|
.locals 5
|
|
|
|
iget-object v0, p0, Lrx/internal/a/w$b;->bBG:Ljava/util/concurrent/atomic/AtomicLong;
|
|
|
|
const-wide v1, 0x7fffffffffffffffL
|
|
|
|
invoke-virtual {v0, v1, v2}, Ljava/util/concurrent/atomic/AtomicLong;->getAndSet(J)J
|
|
|
|
move-result-wide v3
|
|
|
|
cmp-long v0, v3, v1
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
iget-object v0, p0, Lrx/internal/a/w$b;->bBH:Lrx/internal/d/a;
|
|
|
|
invoke-virtual {v0}, Lrx/internal/d/a;->unsubscribe()V
|
|
|
|
iget-object v0, p0, Lrx/internal/a/w$b;->actual:Lrx/Subscriber;
|
|
|
|
invoke-virtual {v0, p1}, Lrx/Subscriber;->onError(Ljava/lang/Throwable;)V
|
|
|
|
iget-object p1, p0, Lrx/internal/a/w$b;->bBF:Lrx/Scheduler$Worker;
|
|
|
|
invoke-virtual {p1}, Lrx/Scheduler$Worker;->unsubscribe()V
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
invoke-static {p1}, Lrx/c/c;->onError(Ljava/lang/Throwable;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public final onNext(Ljava/lang/Object;)V
|
|
.locals 7
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(TT;)V"
|
|
}
|
|
.end annotation
|
|
|
|
iget-object v0, p0, Lrx/internal/a/w$b;->bBG:Ljava/util/concurrent/atomic/AtomicLong;
|
|
|
|
invoke-virtual {v0}, Ljava/util/concurrent/atomic/AtomicLong;->get()J
|
|
|
|
move-result-wide v0
|
|
|
|
const-wide v2, 0x7fffffffffffffffL
|
|
|
|
cmp-long v4, v0, v2
|
|
|
|
if-eqz v4, :cond_2
|
|
|
|
iget-object v2, p0, Lrx/internal/a/w$b;->bBG:Ljava/util/concurrent/atomic/AtomicLong;
|
|
|
|
const-wide/16 v3, 0x1
|
|
|
|
add-long v5, v0, v3
|
|
|
|
invoke-virtual {v2, v0, v1, v5, v6}, Ljava/util/concurrent/atomic/AtomicLong;->compareAndSet(JJ)Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
iget-object v0, p0, Lrx/internal/a/w$b;->bBH:Lrx/internal/d/a;
|
|
|
|
invoke-virtual {v0}, Lrx/internal/d/a;->get()Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Lrx/Subscription;
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
invoke-interface {v0}, Lrx/Subscription;->unsubscribe()V
|
|
|
|
:cond_1
|
|
iget-wide v0, p0, Lrx/internal/a/w$b;->bBJ:J
|
|
|
|
add-long/2addr v0, v3
|
|
|
|
iput-wide v0, p0, Lrx/internal/a/w$b;->bBJ:J
|
|
|
|
iget-object v0, p0, Lrx/internal/a/w$b;->actual:Lrx/Subscriber;
|
|
|
|
invoke-virtual {v0, p1}, Lrx/Subscriber;->onNext(Ljava/lang/Object;)V
|
|
|
|
invoke-virtual {p0, v5, v6}, Lrx/internal/a/w$b;->aF(J)V
|
|
|
|
return-void
|
|
|
|
:cond_2
|
|
:goto_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public final setProducer(Lrx/Producer;)V
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lrx/internal/a/w$b;->bAI:Lrx/internal/b/a;
|
|
|
|
invoke-virtual {v0, p1}, Lrx/internal/b/a;->setProducer(Lrx/Producer;)V
|
|
|
|
return-void
|
|
.end method
|