139 lines
2.7 KiB
Smali
139 lines
2.7 KiB
Smali
.class public final Ll0/l/b/c;
|
|
.super Ljava/util/concurrent/atomic/AtomicBoolean;
|
|
.source "SingleProducer.java"
|
|
|
|
# interfaces
|
|
.implements Lrx/Producer;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<T:",
|
|
"Ljava/lang/Object;",
|
|
">",
|
|
"Ljava/util/concurrent/atomic/AtomicBoolean;",
|
|
"Lrx/Producer;"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# static fields
|
|
.field public static final serialVersionUID:J = -0x2e8a53b866dafe2cL
|
|
|
|
|
|
# instance fields
|
|
.field public final child:Lrx/Subscriber;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Lrx/Subscriber<",
|
|
"-TT;>;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field public final value:Ljava/lang/Object;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"TT;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Lrx/Subscriber;Ljava/lang/Object;)V
|
|
.locals 0
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Lrx/Subscriber<",
|
|
"-TT;>;TT;)V"
|
|
}
|
|
.end annotation
|
|
|
|
invoke-direct {p0}, Ljava/util/concurrent/atomic/AtomicBoolean;-><init>()V
|
|
|
|
iput-object p1, p0, Ll0/l/b/c;->child:Lrx/Subscriber;
|
|
|
|
iput-object p2, p0, Ll0/l/b/c;->value:Ljava/lang/Object;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public n(J)V
|
|
.locals 3
|
|
|
|
const-wide/16 v0, 0x0
|
|
|
|
cmp-long v2, p1, v0
|
|
|
|
if-ltz v2, :cond_4
|
|
|
|
if-nez v2, :cond_0
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
const/4 p1, 0x0
|
|
|
|
const/4 p2, 0x1
|
|
|
|
invoke-virtual {p0, p1, p2}, Ljava/util/concurrent/atomic/AtomicBoolean;->compareAndSet(ZZ)Z
|
|
|
|
move-result p1
|
|
|
|
if-eqz p1, :cond_3
|
|
|
|
iget-object p1, p0, Ll0/l/b/c;->child:Lrx/Subscriber;
|
|
|
|
invoke-virtual {p1}, Lrx/Subscriber;->isUnsubscribed()Z
|
|
|
|
move-result p2
|
|
|
|
if-eqz p2, :cond_1
|
|
|
|
return-void
|
|
|
|
:cond_1
|
|
iget-object p2, p0, Ll0/l/b/c;->value:Ljava/lang/Object;
|
|
|
|
:try_start_0
|
|
invoke-interface {p1, p2}, Ll0/g;->onNext(Ljava/lang/Object;)V
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
invoke-virtual {p1}, Lrx/Subscriber;->isUnsubscribed()Z
|
|
|
|
move-result p2
|
|
|
|
if-eqz p2, :cond_2
|
|
|
|
return-void
|
|
|
|
:cond_2
|
|
invoke-interface {p1}, Ll0/g;->onCompleted()V
|
|
|
|
goto :goto_0
|
|
|
|
:catchall_0
|
|
move-exception v0
|
|
|
|
invoke-static {v0, p1, p2}, Lc0/j/a;->Y(Ljava/lang/Throwable;Ll0/g;Ljava/lang/Object;)V
|
|
|
|
:cond_3
|
|
:goto_0
|
|
return-void
|
|
|
|
:cond_4
|
|
new-instance p1, Ljava/lang/IllegalArgumentException;
|
|
|
|
const-string p2, "n >= 0 required"
|
|
|
|
invoke-direct {p1, p2}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p1
|
|
.end method
|