192 lines
3.9 KiB
Smali
192 lines
3.9 KiB
Smali
.class final Lrx/internal/a/av$1;
|
|
.super Lrx/Subscriber;
|
|
.source "OperatorTake.java"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
value = Lrx/internal/a/av;
|
|
.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 final synthetic bKb:Lrx/Subscriber;
|
|
|
|
.field final synthetic bNa:Lrx/internal/a/av;
|
|
|
|
.field byi:Z
|
|
|
|
.field count:I
|
|
|
|
|
|
# direct methods
|
|
.method constructor <init>(Lrx/internal/a/av;Lrx/Subscriber;)V
|
|
.locals 0
|
|
|
|
iput-object p1, p0, Lrx/internal/a/av$1;->bNa:Lrx/internal/a/av;
|
|
|
|
iput-object p2, p0, Lrx/internal/a/av$1;->bKb:Lrx/Subscriber;
|
|
|
|
invoke-direct {p0}, Lrx/Subscriber;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final onCompleted()V
|
|
.locals 1
|
|
|
|
iget-boolean v0, p0, Lrx/internal/a/av$1;->byi:Z
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
const/4 v0, 0x1
|
|
|
|
iput-boolean v0, p0, Lrx/internal/a/av$1;->byi:Z
|
|
|
|
iget-object v0, p0, Lrx/internal/a/av$1;->bKb:Lrx/Subscriber;
|
|
|
|
invoke-virtual {v0}, Lrx/Subscriber;->onCompleted()V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public final onError(Ljava/lang/Throwable;)V
|
|
.locals 1
|
|
|
|
iget-boolean v0, p0, Lrx/internal/a/av$1;->byi:Z
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
const/4 v0, 0x1
|
|
|
|
iput-boolean v0, p0, Lrx/internal/a/av$1;->byi:Z
|
|
|
|
:try_start_0
|
|
iget-object v0, p0, Lrx/internal/a/av$1;->bKb:Lrx/Subscriber;
|
|
|
|
invoke-virtual {v0, p1}, Lrx/Subscriber;->onError(Ljava/lang/Throwable;)V
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
invoke-virtual {p0}, Lrx/internal/a/av$1;->unsubscribe()V
|
|
|
|
return-void
|
|
|
|
:catchall_0
|
|
move-exception p1
|
|
|
|
invoke-virtual {p0}, Lrx/internal/a/av$1;->unsubscribe()V
|
|
|
|
throw p1
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public final onNext(Ljava/lang/Object;)V
|
|
.locals 3
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(TT;)V"
|
|
}
|
|
.end annotation
|
|
|
|
invoke-virtual {p0}, Lrx/internal/a/av$1;->isUnsubscribed()Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_1
|
|
|
|
iget v0, p0, Lrx/internal/a/av$1;->count:I
|
|
|
|
add-int/lit8 v1, v0, 0x1
|
|
|
|
iput v1, p0, Lrx/internal/a/av$1;->count:I
|
|
|
|
iget-object v1, p0, Lrx/internal/a/av$1;->bNa:Lrx/internal/a/av;
|
|
|
|
iget v1, v1, Lrx/internal/a/av;->limit:I
|
|
|
|
if-ge v0, v1, :cond_1
|
|
|
|
iget v0, p0, Lrx/internal/a/av$1;->count:I
|
|
|
|
iget-object v1, p0, Lrx/internal/a/av$1;->bNa:Lrx/internal/a/av;
|
|
|
|
iget v1, v1, Lrx/internal/a/av;->limit:I
|
|
|
|
const/4 v2, 0x1
|
|
|
|
if-ne v0, v1, :cond_0
|
|
|
|
const/4 v0, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
:goto_0
|
|
iget-object v1, p0, Lrx/internal/a/av$1;->bKb:Lrx/Subscriber;
|
|
|
|
invoke-virtual {v1, p1}, Lrx/Subscriber;->onNext(Ljava/lang/Object;)V
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
iget-boolean p1, p0, Lrx/internal/a/av$1;->byi:Z
|
|
|
|
if-nez p1, :cond_1
|
|
|
|
iput-boolean v2, p0, Lrx/internal/a/av$1;->byi:Z
|
|
|
|
:try_start_0
|
|
iget-object p1, p0, Lrx/internal/a/av$1;->bKb:Lrx/Subscriber;
|
|
|
|
invoke-virtual {p1}, Lrx/Subscriber;->onCompleted()V
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
invoke-virtual {p0}, Lrx/internal/a/av$1;->unsubscribe()V
|
|
|
|
return-void
|
|
|
|
:catchall_0
|
|
move-exception p1
|
|
|
|
invoke-virtual {p0}, Lrx/internal/a/av$1;->unsubscribe()V
|
|
|
|
throw p1
|
|
|
|
:cond_1
|
|
return-void
|
|
.end method
|
|
|
|
.method public final setProducer(Lrx/Producer;)V
|
|
.locals 2
|
|
|
|
iget-object v0, p0, Lrx/internal/a/av$1;->bKb:Lrx/Subscriber;
|
|
|
|
new-instance v1, Lrx/internal/a/av$1$1;
|
|
|
|
invoke-direct {v1, p0, p1}, Lrx/internal/a/av$1$1;-><init>(Lrx/internal/a/av$1;Lrx/Producer;)V
|
|
|
|
invoke-virtual {v0, v1}, Lrx/Subscriber;->setProducer(Lrx/Producer;)V
|
|
|
|
return-void
|
|
.end method
|