1093 lines
26 KiB
Smali
1093 lines
26 KiB
Smali
.class public final Lio/reactivex/processors/UnicastProcessor;
|
|
.super Lio/reactivex/processors/a;
|
|
.source "UnicastProcessor.java"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Lio/reactivex/processors/UnicastProcessor$UnicastQueueSubscription;
|
|
}
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<T:",
|
|
"Ljava/lang/Object;",
|
|
">",
|
|
"Lio/reactivex/processors/a<",
|
|
"TT;>;"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field public final b:Lio/reactivex/internal/queue/a;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Lio/reactivex/internal/queue/a<",
|
|
"TT;>;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field public final c:Ljava/util/concurrent/atomic/AtomicReference;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/util/concurrent/atomic/AtomicReference<",
|
|
"Ljava/lang/Runnable;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field public final d:Z
|
|
|
|
.field public volatile e:Z
|
|
|
|
.field public f:Ljava/lang/Throwable;
|
|
|
|
.field public final g:Ljava/util/concurrent/atomic/AtomicReference;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/util/concurrent/atomic/AtomicReference<",
|
|
"Lok/d<",
|
|
"-TT;>;>;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field public volatile h:Z
|
|
|
|
.field public final i:Ljava/util/concurrent/atomic/AtomicBoolean;
|
|
|
|
.field public final j:Lio/reactivex/internal/subscriptions/BasicIntQueueSubscription;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Lio/reactivex/internal/subscriptions/BasicIntQueueSubscription<",
|
|
"TT;>;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field public final k:Ljava/util/concurrent/atomic/AtomicLong;
|
|
|
|
.field public l:Z
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(I)V
|
|
.locals 2
|
|
|
|
const/4 v0, 0x0
|
|
|
|
const/4 v1, 0x1
|
|
|
|
.line 1
|
|
invoke-direct {p0, p1, v0, v1}, Lio/reactivex/processors/UnicastProcessor;-><init>(ILjava/lang/Runnable;Z)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(ILjava/lang/Runnable;)V
|
|
.locals 1
|
|
|
|
const/4 v0, 0x1
|
|
|
|
.line 2
|
|
invoke-direct {p0, p1, p2, v0}, Lio/reactivex/processors/UnicastProcessor;-><init>(ILjava/lang/Runnable;Z)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(ILjava/lang/Runnable;Z)V
|
|
.locals 2
|
|
|
|
.line 3
|
|
invoke-direct {p0}, Lio/reactivex/processors/a;-><init>()V
|
|
|
|
.line 4
|
|
new-instance v0, Lio/reactivex/internal/queue/a;
|
|
|
|
const-string v1, "capacityHint"
|
|
|
|
invoke-static {p1, v1}, Lio/reactivex/internal/functions/a;->h(ILjava/lang/String;)I
|
|
|
|
move-result p1
|
|
|
|
invoke-direct {v0, p1}, Lio/reactivex/internal/queue/a;-><init>(I)V
|
|
|
|
iput-object v0, p0, Lio/reactivex/processors/UnicastProcessor;->b:Lio/reactivex/internal/queue/a;
|
|
|
|
.line 5
|
|
new-instance p1, Ljava/util/concurrent/atomic/AtomicReference;
|
|
|
|
invoke-direct {p1, p2}, Ljava/util/concurrent/atomic/AtomicReference;-><init>(Ljava/lang/Object;)V
|
|
|
|
iput-object p1, p0, Lio/reactivex/processors/UnicastProcessor;->c:Ljava/util/concurrent/atomic/AtomicReference;
|
|
|
|
.line 6
|
|
iput-boolean p3, p0, Lio/reactivex/processors/UnicastProcessor;->d:Z
|
|
|
|
.line 7
|
|
new-instance p1, Ljava/util/concurrent/atomic/AtomicReference;
|
|
|
|
invoke-direct {p1}, Ljava/util/concurrent/atomic/AtomicReference;-><init>()V
|
|
|
|
iput-object p1, p0, Lio/reactivex/processors/UnicastProcessor;->g:Ljava/util/concurrent/atomic/AtomicReference;
|
|
|
|
.line 8
|
|
new-instance p1, Ljava/util/concurrent/atomic/AtomicBoolean;
|
|
|
|
invoke-direct {p1}, Ljava/util/concurrent/atomic/AtomicBoolean;-><init>()V
|
|
|
|
iput-object p1, p0, Lio/reactivex/processors/UnicastProcessor;->i:Ljava/util/concurrent/atomic/AtomicBoolean;
|
|
|
|
.line 9
|
|
new-instance p1, Lio/reactivex/processors/UnicastProcessor$UnicastQueueSubscription;
|
|
|
|
invoke-direct {p1, p0}, Lio/reactivex/processors/UnicastProcessor$UnicastQueueSubscription;-><init>(Lio/reactivex/processors/UnicastProcessor;)V
|
|
|
|
iput-object p1, p0, Lio/reactivex/processors/UnicastProcessor;->j:Lio/reactivex/internal/subscriptions/BasicIntQueueSubscription;
|
|
|
|
.line 10
|
|
new-instance p1, Ljava/util/concurrent/atomic/AtomicLong;
|
|
|
|
invoke-direct {p1}, Ljava/util/concurrent/atomic/AtomicLong;-><init>()V
|
|
|
|
iput-object p1, p0, Lio/reactivex/processors/UnicastProcessor;->k:Ljava/util/concurrent/atomic/AtomicLong;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static O8()Lio/reactivex/processors/UnicastProcessor;
|
|
.locals 2
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<T:",
|
|
"Ljava/lang/Object;",
|
|
">()",
|
|
"Lio/reactivex/processors/UnicastProcessor<",
|
|
"TT;>;"
|
|
}
|
|
.end annotation
|
|
|
|
.annotation runtime Lio/reactivex/annotations/CheckReturnValue;
|
|
.end annotation
|
|
|
|
.annotation build Lio/reactivex/annotations/NonNull;
|
|
.end annotation
|
|
|
|
.line 1
|
|
new-instance v0, Lio/reactivex/processors/UnicastProcessor;
|
|
|
|
invoke-static {}, Lkh/j;->U()I
|
|
|
|
move-result v1
|
|
|
|
invoke-direct {v0, v1}, Lio/reactivex/processors/UnicastProcessor;-><init>(I)V
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public static P8(I)Lio/reactivex/processors/UnicastProcessor;
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<T:",
|
|
"Ljava/lang/Object;",
|
|
">(I)",
|
|
"Lio/reactivex/processors/UnicastProcessor<",
|
|
"TT;>;"
|
|
}
|
|
.end annotation
|
|
|
|
.annotation runtime Lio/reactivex/annotations/CheckReturnValue;
|
|
.end annotation
|
|
|
|
.annotation build Lio/reactivex/annotations/NonNull;
|
|
.end annotation
|
|
|
|
.line 1
|
|
new-instance v0, Lio/reactivex/processors/UnicastProcessor;
|
|
|
|
invoke-direct {v0, p0}, Lio/reactivex/processors/UnicastProcessor;-><init>(I)V
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public static Q8(ILjava/lang/Runnable;)Lio/reactivex/processors/UnicastProcessor;
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<T:",
|
|
"Ljava/lang/Object;",
|
|
">(I",
|
|
"Ljava/lang/Runnable;",
|
|
")",
|
|
"Lio/reactivex/processors/UnicastProcessor<",
|
|
"TT;>;"
|
|
}
|
|
.end annotation
|
|
|
|
.annotation runtime Lio/reactivex/annotations/CheckReturnValue;
|
|
.end annotation
|
|
|
|
.annotation build Lio/reactivex/annotations/NonNull;
|
|
.end annotation
|
|
|
|
const-string v0, "onTerminate"
|
|
|
|
.line 1
|
|
invoke-static {p1, v0}, Lio/reactivex/internal/functions/a;->g(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
|
|
|
|
.line 2
|
|
new-instance v0, Lio/reactivex/processors/UnicastProcessor;
|
|
|
|
invoke-direct {v0, p0, p1}, Lio/reactivex/processors/UnicastProcessor;-><init>(ILjava/lang/Runnable;)V
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public static R8(ILjava/lang/Runnable;Z)Lio/reactivex/processors/UnicastProcessor;
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<T:",
|
|
"Ljava/lang/Object;",
|
|
">(I",
|
|
"Ljava/lang/Runnable;",
|
|
"Z)",
|
|
"Lio/reactivex/processors/UnicastProcessor<",
|
|
"TT;>;"
|
|
}
|
|
.end annotation
|
|
|
|
.annotation runtime Lio/reactivex/annotations/CheckReturnValue;
|
|
.end annotation
|
|
|
|
.annotation build Lio/reactivex/annotations/NonNull;
|
|
.end annotation
|
|
|
|
const-string v0, "onTerminate"
|
|
|
|
.line 1
|
|
invoke-static {p1, v0}, Lio/reactivex/internal/functions/a;->g(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
|
|
|
|
.line 2
|
|
new-instance v0, Lio/reactivex/processors/UnicastProcessor;
|
|
|
|
invoke-direct {v0, p0, p1, p2}, Lio/reactivex/processors/UnicastProcessor;-><init>(ILjava/lang/Runnable;Z)V
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public static S8(Z)Lio/reactivex/processors/UnicastProcessor;
|
|
.locals 3
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<T:",
|
|
"Ljava/lang/Object;",
|
|
">(Z)",
|
|
"Lio/reactivex/processors/UnicastProcessor<",
|
|
"TT;>;"
|
|
}
|
|
.end annotation
|
|
|
|
.annotation runtime Lio/reactivex/annotations/CheckReturnValue;
|
|
.end annotation
|
|
|
|
.annotation build Lio/reactivex/annotations/NonNull;
|
|
.end annotation
|
|
|
|
.line 1
|
|
new-instance v0, Lio/reactivex/processors/UnicastProcessor;
|
|
|
|
invoke-static {}, Lkh/j;->U()I
|
|
|
|
move-result v1
|
|
|
|
const/4 v2, 0x0
|
|
|
|
invoke-direct {v0, v1, v2, p0}, Lio/reactivex/processors/UnicastProcessor;-><init>(ILjava/lang/Runnable;Z)V
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public I8()Ljava/lang/Throwable;
|
|
.locals 1
|
|
.annotation build Lio/reactivex/annotations/Nullable;
|
|
.end annotation
|
|
|
|
.line 1
|
|
iget-boolean v0, p0, Lio/reactivex/processors/UnicastProcessor;->e:Z
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 2
|
|
iget-object v0, p0, Lio/reactivex/processors/UnicastProcessor;->f:Ljava/lang/Throwable;
|
|
|
|
return-object v0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public J8()Z
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-boolean v0, p0, Lio/reactivex/processors/UnicastProcessor;->e:Z
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
iget-object v0, p0, Lio/reactivex/processors/UnicastProcessor;->f:Ljava/lang/Throwable;
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
const/4 v0, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
:goto_0
|
|
return v0
|
|
.end method
|
|
|
|
.method public K8()Z
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lio/reactivex/processors/UnicastProcessor;->g:Ljava/util/concurrent/atomic/AtomicReference;
|
|
|
|
invoke-virtual {v0}, Ljava/util/concurrent/atomic/AtomicReference;->get()Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
const/4 v0, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
:goto_0
|
|
return v0
|
|
.end method
|
|
|
|
.method public L8()Z
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-boolean v0, p0, Lio/reactivex/processors/UnicastProcessor;->e:Z
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
iget-object v0, p0, Lio/reactivex/processors/UnicastProcessor;->f:Ljava/lang/Throwable;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
const/4 v0, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
:goto_0
|
|
return v0
|
|
.end method
|
|
|
|
.method public N8(ZZZLok/d;Lio/reactivex/internal/queue/a;)Z
|
|
.locals 3
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(ZZZ",
|
|
"Lok/d<",
|
|
"-TT;>;",
|
|
"Lio/reactivex/internal/queue/a<",
|
|
"TT;>;)Z"
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
iget-boolean v0, p0, Lio/reactivex/processors/UnicastProcessor;->h:Z
|
|
|
|
const/4 v1, 0x1
|
|
|
|
const/4 v2, 0x0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 2
|
|
invoke-virtual {p5}, Lio/reactivex/internal/queue/a;->clear()V
|
|
|
|
.line 3
|
|
iget-object p1, p0, Lio/reactivex/processors/UnicastProcessor;->g:Ljava/util/concurrent/atomic/AtomicReference;
|
|
|
|
invoke-virtual {p1, v2}, Ljava/util/concurrent/atomic/AtomicReference;->lazySet(Ljava/lang/Object;)V
|
|
|
|
return v1
|
|
|
|
:cond_0
|
|
if-eqz p2, :cond_3
|
|
|
|
if-eqz p1, :cond_1
|
|
|
|
.line 4
|
|
iget-object p1, p0, Lio/reactivex/processors/UnicastProcessor;->f:Ljava/lang/Throwable;
|
|
|
|
if-eqz p1, :cond_1
|
|
|
|
.line 5
|
|
invoke-virtual {p5}, Lio/reactivex/internal/queue/a;->clear()V
|
|
|
|
.line 6
|
|
iget-object p1, p0, Lio/reactivex/processors/UnicastProcessor;->g:Ljava/util/concurrent/atomic/AtomicReference;
|
|
|
|
invoke-virtual {p1, v2}, Ljava/util/concurrent/atomic/AtomicReference;->lazySet(Ljava/lang/Object;)V
|
|
|
|
.line 7
|
|
iget-object p1, p0, Lio/reactivex/processors/UnicastProcessor;->f:Ljava/lang/Throwable;
|
|
|
|
invoke-interface {p4, p1}, Lok/d;->onError(Ljava/lang/Throwable;)V
|
|
|
|
return v1
|
|
|
|
:cond_1
|
|
if-eqz p3, :cond_3
|
|
|
|
.line 8
|
|
iget-object p1, p0, Lio/reactivex/processors/UnicastProcessor;->f:Ljava/lang/Throwable;
|
|
|
|
.line 9
|
|
iget-object p2, p0, Lio/reactivex/processors/UnicastProcessor;->g:Ljava/util/concurrent/atomic/AtomicReference;
|
|
|
|
invoke-virtual {p2, v2}, Ljava/util/concurrent/atomic/AtomicReference;->lazySet(Ljava/lang/Object;)V
|
|
|
|
if-eqz p1, :cond_2
|
|
|
|
.line 10
|
|
invoke-interface {p4, p1}, Lok/d;->onError(Ljava/lang/Throwable;)V
|
|
|
|
goto :goto_0
|
|
|
|
.line 11
|
|
:cond_2
|
|
invoke-interface {p4}, Lok/d;->onComplete()V
|
|
|
|
:goto_0
|
|
return v1
|
|
|
|
:cond_3
|
|
const/4 p1, 0x0
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method public T8()V
|
|
.locals 2
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lio/reactivex/processors/UnicastProcessor;->c:Ljava/util/concurrent/atomic/AtomicReference;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
invoke-virtual {v0, v1}, Ljava/util/concurrent/atomic/AtomicReference;->getAndSet(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Ljava/lang/Runnable;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 2
|
|
invoke-interface {v0}, Ljava/lang/Runnable;->run()V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public U8()V
|
|
.locals 2
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lio/reactivex/processors/UnicastProcessor;->j:Lio/reactivex/internal/subscriptions/BasicIntQueueSubscription;
|
|
|
|
invoke-virtual {v0}, Ljava/util/concurrent/atomic/AtomicInteger;->getAndIncrement()I
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
const/4 v0, 0x1
|
|
|
|
.line 2
|
|
iget-object v1, p0, Lio/reactivex/processors/UnicastProcessor;->g:Ljava/util/concurrent/atomic/AtomicReference;
|
|
|
|
invoke-virtual {v1}, Ljava/util/concurrent/atomic/AtomicReference;->get()Ljava/lang/Object;
|
|
|
|
move-result-object v1
|
|
|
|
check-cast v1, Lok/d;
|
|
|
|
:goto_0
|
|
if-eqz v1, :cond_2
|
|
|
|
.line 3
|
|
iget-boolean v0, p0, Lio/reactivex/processors/UnicastProcessor;->l:Z
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
.line 4
|
|
invoke-virtual {p0, v1}, Lio/reactivex/processors/UnicastProcessor;->V8(Lok/d;)V
|
|
|
|
goto :goto_1
|
|
|
|
.line 5
|
|
:cond_1
|
|
invoke-virtual {p0, v1}, Lio/reactivex/processors/UnicastProcessor;->W8(Lok/d;)V
|
|
|
|
:goto_1
|
|
return-void
|
|
|
|
.line 6
|
|
:cond_2
|
|
iget-object v1, p0, Lio/reactivex/processors/UnicastProcessor;->j:Lio/reactivex/internal/subscriptions/BasicIntQueueSubscription;
|
|
|
|
neg-int v0, v0
|
|
|
|
invoke-virtual {v1, v0}, Ljava/util/concurrent/atomic/AtomicInteger;->addAndGet(I)I
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_3
|
|
|
|
return-void
|
|
|
|
.line 7
|
|
:cond_3
|
|
iget-object v1, p0, Lio/reactivex/processors/UnicastProcessor;->g:Ljava/util/concurrent/atomic/AtomicReference;
|
|
|
|
invoke-virtual {v1}, Ljava/util/concurrent/atomic/AtomicReference;->get()Ljava/lang/Object;
|
|
|
|
move-result-object v1
|
|
|
|
check-cast v1, Lok/d;
|
|
|
|
goto :goto_0
|
|
.end method
|
|
|
|
.method public V8(Lok/d;)V
|
|
.locals 6
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Lok/d<",
|
|
"-TT;>;)V"
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lio/reactivex/processors/UnicastProcessor;->b:Lio/reactivex/internal/queue/a;
|
|
|
|
.line 2
|
|
iget-boolean v1, p0, Lio/reactivex/processors/UnicastProcessor;->d:Z
|
|
|
|
const/4 v2, 0x1
|
|
|
|
xor-int/2addr v1, v2
|
|
|
|
.line 3
|
|
:cond_0
|
|
iget-boolean v3, p0, Lio/reactivex/processors/UnicastProcessor;->h:Z
|
|
|
|
const/4 v4, 0x0
|
|
|
|
if-eqz v3, :cond_1
|
|
|
|
.line 4
|
|
invoke-virtual {v0}, Lio/reactivex/internal/queue/a;->clear()V
|
|
|
|
.line 5
|
|
iget-object p1, p0, Lio/reactivex/processors/UnicastProcessor;->g:Ljava/util/concurrent/atomic/AtomicReference;
|
|
|
|
invoke-virtual {p1, v4}, Ljava/util/concurrent/atomic/AtomicReference;->lazySet(Ljava/lang/Object;)V
|
|
|
|
return-void
|
|
|
|
.line 6
|
|
:cond_1
|
|
iget-boolean v3, p0, Lio/reactivex/processors/UnicastProcessor;->e:Z
|
|
|
|
if-eqz v1, :cond_2
|
|
|
|
if-eqz v3, :cond_2
|
|
|
|
.line 7
|
|
iget-object v5, p0, Lio/reactivex/processors/UnicastProcessor;->f:Ljava/lang/Throwable;
|
|
|
|
if-eqz v5, :cond_2
|
|
|
|
.line 8
|
|
invoke-virtual {v0}, Lio/reactivex/internal/queue/a;->clear()V
|
|
|
|
.line 9
|
|
iget-object v0, p0, Lio/reactivex/processors/UnicastProcessor;->g:Ljava/util/concurrent/atomic/AtomicReference;
|
|
|
|
invoke-virtual {v0, v4}, Ljava/util/concurrent/atomic/AtomicReference;->lazySet(Ljava/lang/Object;)V
|
|
|
|
.line 10
|
|
iget-object v0, p0, Lio/reactivex/processors/UnicastProcessor;->f:Ljava/lang/Throwable;
|
|
|
|
invoke-interface {p1, v0}, Lok/d;->onError(Ljava/lang/Throwable;)V
|
|
|
|
return-void
|
|
|
|
.line 11
|
|
:cond_2
|
|
invoke-interface {p1, v4}, Lok/d;->onNext(Ljava/lang/Object;)V
|
|
|
|
if-eqz v3, :cond_4
|
|
|
|
.line 12
|
|
iget-object v0, p0, Lio/reactivex/processors/UnicastProcessor;->g:Ljava/util/concurrent/atomic/AtomicReference;
|
|
|
|
invoke-virtual {v0, v4}, Ljava/util/concurrent/atomic/AtomicReference;->lazySet(Ljava/lang/Object;)V
|
|
|
|
.line 13
|
|
iget-object v0, p0, Lio/reactivex/processors/UnicastProcessor;->f:Ljava/lang/Throwable;
|
|
|
|
if-eqz v0, :cond_3
|
|
|
|
.line 14
|
|
invoke-interface {p1, v0}, Lok/d;->onError(Ljava/lang/Throwable;)V
|
|
|
|
goto :goto_0
|
|
|
|
.line 15
|
|
:cond_3
|
|
invoke-interface {p1}, Lok/d;->onComplete()V
|
|
|
|
:goto_0
|
|
return-void
|
|
|
|
.line 16
|
|
:cond_4
|
|
iget-object v3, p0, Lio/reactivex/processors/UnicastProcessor;->j:Lio/reactivex/internal/subscriptions/BasicIntQueueSubscription;
|
|
|
|
neg-int v2, v2
|
|
|
|
invoke-virtual {v3, v2}, Ljava/util/concurrent/atomic/AtomicInteger;->addAndGet(I)I
|
|
|
|
move-result v2
|
|
|
|
if-nez v2, :cond_0
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public W8(Lok/d;)V
|
|
.locals 17
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Lok/d<",
|
|
"-TT;>;)V"
|
|
}
|
|
.end annotation
|
|
|
|
move-object/from16 v6, p0
|
|
|
|
.line 1
|
|
iget-object v7, v6, Lio/reactivex/processors/UnicastProcessor;->b:Lio/reactivex/internal/queue/a;
|
|
|
|
.line 2
|
|
iget-boolean v0, v6, Lio/reactivex/processors/UnicastProcessor;->d:Z
|
|
|
|
const/4 v8, 0x1
|
|
|
|
xor-int/lit8 v9, v0, 0x1
|
|
|
|
move v10, v8
|
|
|
|
.line 3
|
|
:goto_0
|
|
iget-object v0, v6, Lio/reactivex/processors/UnicastProcessor;->k:Ljava/util/concurrent/atomic/AtomicLong;
|
|
|
|
invoke-virtual {v0}, Ljava/util/concurrent/atomic/AtomicLong;->get()J
|
|
|
|
move-result-wide v11
|
|
|
|
const-wide/16 v4, 0x0
|
|
|
|
:goto_1
|
|
cmp-long v15, v11, v4
|
|
|
|
if-eqz v15, :cond_3
|
|
|
|
.line 4
|
|
iget-boolean v2, v6, Lio/reactivex/processors/UnicastProcessor;->e:Z
|
|
|
|
.line 5
|
|
invoke-virtual {v7}, Lio/reactivex/internal/queue/a;->poll()Ljava/lang/Object;
|
|
|
|
move-result-object v3
|
|
|
|
if-nez v3, :cond_0
|
|
|
|
move/from16 v16, v8
|
|
|
|
goto :goto_2
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
move/from16 v16, v0
|
|
|
|
:goto_2
|
|
move-object/from16 v0, p0
|
|
|
|
move v1, v9
|
|
|
|
move-object v8, v3
|
|
|
|
move/from16 v3, v16
|
|
|
|
move-wide v13, v4
|
|
|
|
move-object/from16 v4, p1
|
|
|
|
move-object v5, v7
|
|
|
|
.line 6
|
|
invoke-virtual/range {v0 .. v5}, Lio/reactivex/processors/UnicastProcessor;->N8(ZZZLok/d;Lio/reactivex/internal/queue/a;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
return-void
|
|
|
|
:cond_1
|
|
if-eqz v16, :cond_2
|
|
|
|
goto :goto_3
|
|
|
|
:cond_2
|
|
move-object/from16 v5, p1
|
|
|
|
.line 7
|
|
invoke-interface {v5, v8}, Lok/d;->onNext(Ljava/lang/Object;)V
|
|
|
|
const-wide/16 v0, 0x1
|
|
|
|
add-long/2addr v0, v13
|
|
|
|
move-wide v4, v0
|
|
|
|
const/4 v8, 0x1
|
|
|
|
goto :goto_1
|
|
|
|
:cond_3
|
|
move-wide v13, v4
|
|
|
|
:goto_3
|
|
move-object/from16 v5, p1
|
|
|
|
if-nez v15, :cond_4
|
|
|
|
.line 8
|
|
iget-boolean v2, v6, Lio/reactivex/processors/UnicastProcessor;->e:Z
|
|
|
|
invoke-virtual {v7}, Lio/reactivex/internal/queue/a;->isEmpty()Z
|
|
|
|
move-result v3
|
|
|
|
move-object/from16 v0, p0
|
|
|
|
move v1, v9
|
|
|
|
move-object/from16 v4, p1
|
|
|
|
move-object v5, v7
|
|
|
|
invoke-virtual/range {v0 .. v5}, Lio/reactivex/processors/UnicastProcessor;->N8(ZZZLok/d;Lio/reactivex/internal/queue/a;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_4
|
|
|
|
return-void
|
|
|
|
:cond_4
|
|
const-wide/16 v0, 0x0
|
|
|
|
cmp-long v0, v13, v0
|
|
|
|
if-eqz v0, :cond_5
|
|
|
|
const-wide v0, 0x7fffffffffffffffL
|
|
|
|
cmp-long v0, v11, v0
|
|
|
|
if-eqz v0, :cond_5
|
|
|
|
.line 9
|
|
iget-object v0, v6, Lio/reactivex/processors/UnicastProcessor;->k:Ljava/util/concurrent/atomic/AtomicLong;
|
|
|
|
neg-long v1, v13
|
|
|
|
invoke-virtual {v0, v1, v2}, Ljava/util/concurrent/atomic/AtomicLong;->addAndGet(J)J
|
|
|
|
.line 10
|
|
:cond_5
|
|
iget-object v0, v6, Lio/reactivex/processors/UnicastProcessor;->j:Lio/reactivex/internal/subscriptions/BasicIntQueueSubscription;
|
|
|
|
neg-int v1, v10
|
|
|
|
invoke-virtual {v0, v1}, Ljava/util/concurrent/atomic/AtomicInteger;->addAndGet(I)I
|
|
|
|
move-result v10
|
|
|
|
if-nez v10, :cond_6
|
|
|
|
return-void
|
|
|
|
:cond_6
|
|
const/4 v8, 0x1
|
|
|
|
goto :goto_0
|
|
.end method
|
|
|
|
.method public g6(Lok/d;)V
|
|
.locals 3
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Lok/d<",
|
|
"-TT;>;)V"
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lio/reactivex/processors/UnicastProcessor;->i:Ljava/util/concurrent/atomic/AtomicBoolean;
|
|
|
|
invoke-virtual {v0}, Ljava/util/concurrent/atomic/AtomicBoolean;->get()Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_1
|
|
|
|
iget-object v0, p0, Lio/reactivex/processors/UnicastProcessor;->i:Ljava/util/concurrent/atomic/AtomicBoolean;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
const/4 v2, 0x1
|
|
|
|
invoke-virtual {v0, v1, v2}, Ljava/util/concurrent/atomic/AtomicBoolean;->compareAndSet(ZZ)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
.line 2
|
|
iget-object v0, p0, Lio/reactivex/processors/UnicastProcessor;->j:Lio/reactivex/internal/subscriptions/BasicIntQueueSubscription;
|
|
|
|
invoke-interface {p1, v0}, Lok/d;->onSubscribe(Lok/e;)V
|
|
|
|
.line 3
|
|
iget-object v0, p0, Lio/reactivex/processors/UnicastProcessor;->g:Ljava/util/concurrent/atomic/AtomicReference;
|
|
|
|
invoke-virtual {v0, p1}, Ljava/util/concurrent/atomic/AtomicReference;->set(Ljava/lang/Object;)V
|
|
|
|
.line 4
|
|
iget-boolean p1, p0, Lio/reactivex/processors/UnicastProcessor;->h:Z
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
.line 5
|
|
iget-object p1, p0, Lio/reactivex/processors/UnicastProcessor;->g:Ljava/util/concurrent/atomic/AtomicReference;
|
|
|
|
const/4 v0, 0x0
|
|
|
|
invoke-virtual {p1, v0}, Ljava/util/concurrent/atomic/AtomicReference;->lazySet(Ljava/lang/Object;)V
|
|
|
|
goto :goto_0
|
|
|
|
.line 6
|
|
:cond_0
|
|
invoke-virtual {p0}, Lio/reactivex/processors/UnicastProcessor;->U8()V
|
|
|
|
goto :goto_0
|
|
|
|
.line 7
|
|
:cond_1
|
|
new-instance v0, Ljava/lang/IllegalStateException;
|
|
|
|
const-string v1, "This processor allows only a single Subscriber"
|
|
|
|
invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
invoke-static {v0, p1}, Lio/reactivex/internal/subscriptions/EmptySubscription;->error(Ljava/lang/Throwable;Lok/d;)V
|
|
|
|
:goto_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public onComplete()V
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-boolean v0, p0, Lio/reactivex/processors/UnicastProcessor;->e:Z
|
|
|
|
if-nez v0, :cond_1
|
|
|
|
iget-boolean v0, p0, Lio/reactivex/processors/UnicastProcessor;->h:Z
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x1
|
|
|
|
.line 2
|
|
iput-boolean v0, p0, Lio/reactivex/processors/UnicastProcessor;->e:Z
|
|
|
|
.line 3
|
|
invoke-virtual {p0}, Lio/reactivex/processors/UnicastProcessor;->T8()V
|
|
|
|
.line 4
|
|
invoke-virtual {p0}, Lio/reactivex/processors/UnicastProcessor;->U8()V
|
|
|
|
:cond_1
|
|
:goto_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public onError(Ljava/lang/Throwable;)V
|
|
.locals 1
|
|
|
|
const-string v0, "onError called with null. Null values are generally not allowed in 2.x operators and sources."
|
|
|
|
.line 1
|
|
invoke-static {p1, v0}, Lio/reactivex/internal/functions/a;->g(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
|
|
|
|
.line 2
|
|
iget-boolean v0, p0, Lio/reactivex/processors/UnicastProcessor;->e:Z
|
|
|
|
if-nez v0, :cond_1
|
|
|
|
iget-boolean v0, p0, Lio/reactivex/processors/UnicastProcessor;->h:Z
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
.line 3
|
|
:cond_0
|
|
iput-object p1, p0, Lio/reactivex/processors/UnicastProcessor;->f:Ljava/lang/Throwable;
|
|
|
|
const/4 p1, 0x1
|
|
|
|
.line 4
|
|
iput-boolean p1, p0, Lio/reactivex/processors/UnicastProcessor;->e:Z
|
|
|
|
.line 5
|
|
invoke-virtual {p0}, Lio/reactivex/processors/UnicastProcessor;->T8()V
|
|
|
|
.line 6
|
|
invoke-virtual {p0}, Lio/reactivex/processors/UnicastProcessor;->U8()V
|
|
|
|
return-void
|
|
|
|
.line 7
|
|
:cond_1
|
|
:goto_0
|
|
invoke-static {p1}, Lwh/a;->Y(Ljava/lang/Throwable;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public onNext(Ljava/lang/Object;)V
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(TT;)V"
|
|
}
|
|
.end annotation
|
|
|
|
const-string v0, "onNext called with null. Null values are generally not allowed in 2.x operators and sources."
|
|
|
|
.line 1
|
|
invoke-static {p1, v0}, Lio/reactivex/internal/functions/a;->g(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
|
|
|
|
.line 2
|
|
iget-boolean v0, p0, Lio/reactivex/processors/UnicastProcessor;->e:Z
|
|
|
|
if-nez v0, :cond_1
|
|
|
|
iget-boolean v0, p0, Lio/reactivex/processors/UnicastProcessor;->h:Z
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
.line 3
|
|
:cond_0
|
|
iget-object v0, p0, Lio/reactivex/processors/UnicastProcessor;->b:Lio/reactivex/internal/queue/a;
|
|
|
|
invoke-virtual {v0, p1}, Lio/reactivex/internal/queue/a;->offer(Ljava/lang/Object;)Z
|
|
|
|
.line 4
|
|
invoke-virtual {p0}, Lio/reactivex/processors/UnicastProcessor;->U8()V
|
|
|
|
:cond_1
|
|
:goto_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public onSubscribe(Lok/e;)V
|
|
.locals 2
|
|
|
|
.line 1
|
|
iget-boolean v0, p0, Lio/reactivex/processors/UnicastProcessor;->e:Z
|
|
|
|
if-nez v0, :cond_1
|
|
|
|
iget-boolean v0, p0, Lio/reactivex/processors/UnicastProcessor;->h:Z
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const-wide v0, 0x7fffffffffffffffL
|
|
|
|
.line 2
|
|
invoke-interface {p1, v0, v1}, Lok/e;->request(J)V
|
|
|
|
goto :goto_1
|
|
|
|
.line 3
|
|
:cond_1
|
|
:goto_0
|
|
invoke-interface {p1}, Lok/e;->cancel()V
|
|
|
|
:goto_1
|
|
return-void
|
|
.end method
|