203 lines
4.5 KiB
Smali
203 lines
4.5 KiB
Smali
.class abstract Lrx/internal/a/j$a;
|
|
.super Ljava/util/concurrent/atomic/AtomicLong;
|
|
|
|
# interfaces
|
|
.implements Lrx/Emitter;
|
|
.implements Lrx/Producer;
|
|
.implements Lrx/Subscription;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
value = Lrx/internal/a/j;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x408
|
|
name = "a"
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<T:",
|
|
"Ljava/lang/Object;",
|
|
">",
|
|
"Ljava/util/concurrent/atomic/AtomicLong;",
|
|
"Lrx/Emitter<",
|
|
"TT;>;",
|
|
"Lrx/Producer;",
|
|
"Lrx/Subscription;"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# static fields
|
|
.field private static final serialVersionUID:J = 0x65ac35ee8a56a4bfL
|
|
|
|
|
|
# instance fields
|
|
.field final actual:Lrx/Subscriber;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Lrx/Subscriber<",
|
|
"-TT;>;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field final serial:Lrx/subscriptions/SerialSubscription;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Lrx/Subscriber;)V
|
|
.locals 0
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Lrx/Subscriber<",
|
|
"-TT;>;)V"
|
|
}
|
|
.end annotation
|
|
|
|
invoke-direct {p0}, Ljava/util/concurrent/atomic/AtomicLong;-><init>()V
|
|
|
|
iput-object p1, p0, Lrx/internal/a/j$a;->actual:Lrx/Subscriber;
|
|
|
|
new-instance p1, Lrx/subscriptions/SerialSubscription;
|
|
|
|
invoke-direct {p1}, Lrx/subscriptions/SerialSubscription;-><init>()V
|
|
|
|
iput-object p1, p0, Lrx/internal/a/j$a;->serial:Lrx/subscriptions/SerialSubscription;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method KW()V
|
|
.locals 0
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method KX()V
|
|
.locals 0
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public final isUnsubscribed()Z
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lrx/internal/a/j$a;->serial:Lrx/subscriptions/SerialSubscription;
|
|
|
|
invoke-virtual {v0}, Lrx/subscriptions/SerialSubscription;->isUnsubscribed()Z
|
|
|
|
move-result v0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public onCompleted()V
|
|
.locals 2
|
|
|
|
iget-object v0, p0, Lrx/internal/a/j$a;->actual:Lrx/Subscriber;
|
|
|
|
invoke-virtual {v0}, Lrx/Subscriber;->isUnsubscribed()Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
:try_start_0
|
|
iget-object v0, p0, Lrx/internal/a/j$a;->actual:Lrx/Subscriber;
|
|
|
|
invoke-virtual {v0}, Lrx/Subscriber;->onCompleted()V
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
iget-object v0, p0, Lrx/internal/a/j$a;->serial:Lrx/subscriptions/SerialSubscription;
|
|
|
|
invoke-virtual {v0}, Lrx/subscriptions/SerialSubscription;->unsubscribe()V
|
|
|
|
return-void
|
|
|
|
:catchall_0
|
|
move-exception v0
|
|
|
|
iget-object v1, p0, Lrx/internal/a/j$a;->serial:Lrx/subscriptions/SerialSubscription;
|
|
|
|
invoke-virtual {v1}, Lrx/subscriptions/SerialSubscription;->unsubscribe()V
|
|
|
|
throw v0
|
|
.end method
|
|
|
|
.method public onError(Ljava/lang/Throwable;)V
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lrx/internal/a/j$a;->actual:Lrx/Subscriber;
|
|
|
|
invoke-virtual {v0}, Lrx/Subscriber;->isUnsubscribed()Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
:try_start_0
|
|
iget-object v0, p0, Lrx/internal/a/j$a;->actual: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
|
|
|
|
iget-object p1, p0, Lrx/internal/a/j$a;->serial:Lrx/subscriptions/SerialSubscription;
|
|
|
|
invoke-virtual {p1}, Lrx/subscriptions/SerialSubscription;->unsubscribe()V
|
|
|
|
return-void
|
|
|
|
:catchall_0
|
|
move-exception p1
|
|
|
|
iget-object v0, p0, Lrx/internal/a/j$a;->serial:Lrx/subscriptions/SerialSubscription;
|
|
|
|
invoke-virtual {v0}, Lrx/subscriptions/SerialSubscription;->unsubscribe()V
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method public final request(J)V
|
|
.locals 1
|
|
|
|
invoke-static {p1, p2}, Lrx/internal/a/a;->validate(J)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
invoke-static {p0, p1, p2}, Lrx/internal/a/a;->a(Ljava/util/concurrent/atomic/AtomicLong;J)J
|
|
|
|
invoke-virtual {p0}, Lrx/internal/a/j$a;->KX()V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public final unsubscribe()V
|
|
.locals 1
|
|
|
|
iget-object v0, p0, Lrx/internal/a/j$a;->serial:Lrx/subscriptions/SerialSubscription;
|
|
|
|
invoke-virtual {v0}, Lrx/subscriptions/SerialSubscription;->unsubscribe()V
|
|
|
|
invoke-virtual {p0}, Lrx/internal/a/j$a;->KW()V
|
|
|
|
return-void
|
|
.end method
|