OperatorOnBackpressureDrop$2.smali
.class Lrx/internal/operators/OperatorOnBackpressureDrop$2;
.super Lrx/Subscriber;
.source "OperatorOnBackpressureDrop.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lrx/internal/operators/OperatorOnBackpressureDrop;->call(Lrx/Subscriber;)Lrx/Subscriber;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x0
name = null
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Lrx/Subscriber<",
"TT;>;"
}
.end annotation
# instance fields
.field done:Z
.field final synthetic this$0:Lrx/internal/operators/OperatorOnBackpressureDrop;
.field final synthetic val$child:Lrx/Subscriber;
.field final synthetic val$requested:Ljava/util/concurrent/atomic/AtomicLong;
# direct methods
.method constructor <init>(Lrx/internal/operators/OperatorOnBackpressureDrop;Lrx/Subscriber;Lrx/Subscriber;Ljava/util/concurrent/atomic/AtomicLong;)V
.registers 5
.line 1
iput-object p1, p0, Lrx/internal/operators/OperatorOnBackpressureDrop$2;->this$0:Lrx/internal/operators/OperatorOnBackpressureDrop;
iput-object p3, p0, Lrx/internal/operators/OperatorOnBackpressureDrop$2;->val$child:Lrx/Subscriber;
iput-object p4, p0, Lrx/internal/operators/OperatorOnBackpressureDrop$2;->val$requested:Ljava/util/concurrent/atomic/AtomicLong;
invoke-direct {p0, p2}, Lrx/Subscriber;-><init>(Lrx/Subscriber;)V
return-void
.end method
# virtual methods
.method public onCompleted()V
.registers 2
.line 1
iget-boolean v0, p0, Lrx/internal/operators/OperatorOnBackpressureDrop$2;->done:Z
if-nez v0, :cond_c
const/4 v0, 0x1
.line 2
iput-boolean v0, p0, Lrx/internal/operators/OperatorOnBackpressureDrop$2;->done:Z
.line 3
iget-object v0, p0, Lrx/internal/operators/OperatorOnBackpressureDrop$2;->val$child:Lrx/Subscriber;
invoke-interface {v0}, Lrx/Observer;->onCompleted()V
:cond_c
return-void
.end method
.method public onError(Ljava/lang/Throwable;)V
.registers 3
.line 1
iget-boolean v0, p0, Lrx/internal/operators/OperatorOnBackpressureDrop$2;->done:Z
if-nez v0, :cond_d
const/4 v0, 0x1
.line 2
iput-boolean v0, p0, Lrx/internal/operators/OperatorOnBackpressureDrop$2;->done:Z
.line 3
iget-object v0, p0, Lrx/internal/operators/OperatorOnBackpressureDrop$2;->val$child:Lrx/Subscriber;
invoke-interface {v0, p1}, Lrx/Observer;->onError(Ljava/lang/Throwable;)V
goto :goto_10
.line 4
:cond_d
invoke-static {p1}, Lrx/plugins/RxJavaHooks;->onError(Ljava/lang/Throwable;)V
:goto_10
return-void
.end method
.method public onNext(Ljava/lang/Object;)V
.registers 7
.annotation system Ldalvik/annotation/Signature;
value = {
"(TT;)V"
}
.end annotation
.line 1
iget-boolean v0, p0, Lrx/internal/operators/OperatorOnBackpressureDrop$2;->done:Z
if-eqz v0, :cond_5
return-void
.line 2
:cond_5
iget-object v0, p0, Lrx/internal/operators/OperatorOnBackpressureDrop$2;->val$requested:Ljava/util/concurrent/atomic/AtomicLong;
invoke-virtual {v0}, Ljava/util/concurrent/atomic/AtomicLong;->get()J
move-result-wide v0
const-wide/16 v2, 0x0
cmp-long v4, v0, v2
if-lez v4, :cond_1c
.line 3
iget-object v0, p0, Lrx/internal/operators/OperatorOnBackpressureDrop$2;->val$child:Lrx/Subscriber;
invoke-interface {v0, p1}, Lrx/Observer;->onNext(Ljava/lang/Object;)V
.line 4
iget-object p1, p0, Lrx/internal/operators/OperatorOnBackpressureDrop$2;->val$requested:Ljava/util/concurrent/atomic/AtomicLong;
invoke-virtual {p1}, Ljava/util/concurrent/atomic/AtomicLong;->decrementAndGet()J
goto :goto_2a
.line 5
:cond_1c
iget-object v0, p0, Lrx/internal/operators/OperatorOnBackpressureDrop$2;->this$0:Lrx/internal/operators/OperatorOnBackpressureDrop;
iget-object v0, v0, Lrx/internal/operators/OperatorOnBackpressureDrop;->onDrop:Lrx/functions/Action1;
if-eqz v0, :cond_2a
.line 6
:try_start_22
invoke-interface {v0, p1}, Lrx/functions/Action1;->call(Ljava/lang/Object;)V
:try_end_25
.catch Ljava/lang/Throwable; {:try_start_22 .. :try_end_25} :catch_26
goto :goto_2a
:catch_26
move-exception v0
.line 7
invoke-static {v0, p0, p1}, Lrx/exceptions/Exceptions;->throwOrReport(Ljava/lang/Throwable;Lrx/Observer;Ljava/lang/Object;)V
:cond_2a
:goto_2a
return-void
.end method
.method public onStart()V
.registers 3
const-wide v0, 0x7fffffffffffffffL
.line 1
invoke-virtual {p0, v0, v1}, Lrx/Subscriber;->request(J)V
return-void
.end method