1143 lines
28 KiB
Smali
1143 lines
28 KiB
Smali
.class public final Lio/reactivex/processors/BehaviorProcessor;
|
|
.super Lio/reactivex/processors/a;
|
|
.source "BehaviorProcessor.java"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Lio/reactivex/processors/BehaviorProcessor$BehaviorSubscription;
|
|
}
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<T:",
|
|
"Ljava/lang/Object;",
|
|
">",
|
|
"Lio/reactivex/processors/a<",
|
|
"TT;>;"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# static fields
|
|
.field public static final i:[Ljava/lang/Object;
|
|
|
|
.field public static final j:[Lio/reactivex/processors/BehaviorProcessor$BehaviorSubscription;
|
|
|
|
.field public static final k:[Lio/reactivex/processors/BehaviorProcessor$BehaviorSubscription;
|
|
|
|
|
|
# instance fields
|
|
.field public final b:Ljava/util/concurrent/atomic/AtomicReference;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/util/concurrent/atomic/AtomicReference<",
|
|
"[",
|
|
"Lio/reactivex/processors/BehaviorProcessor$BehaviorSubscription<",
|
|
"TT;>;>;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field public final c:Ljava/util/concurrent/locks/ReadWriteLock;
|
|
|
|
.field public final d:Ljava/util/concurrent/locks/Lock;
|
|
|
|
.field public final e:Ljava/util/concurrent/locks/Lock;
|
|
|
|
.field public final f:Ljava/util/concurrent/atomic/AtomicReference;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/util/concurrent/atomic/AtomicReference<",
|
|
"Ljava/lang/Object;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field public final g:Ljava/util/concurrent/atomic/AtomicReference;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/util/concurrent/atomic/AtomicReference<",
|
|
"Ljava/lang/Throwable;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field public h:J
|
|
|
|
|
|
# direct methods
|
|
.method public static constructor <clinit>()V
|
|
.locals 2
|
|
|
|
const/4 v0, 0x0
|
|
|
|
new-array v1, v0, [Ljava/lang/Object;
|
|
|
|
.line 1
|
|
sput-object v1, Lio/reactivex/processors/BehaviorProcessor;->i:[Ljava/lang/Object;
|
|
|
|
new-array v1, v0, [Lio/reactivex/processors/BehaviorProcessor$BehaviorSubscription;
|
|
|
|
.line 2
|
|
sput-object v1, Lio/reactivex/processors/BehaviorProcessor;->j:[Lio/reactivex/processors/BehaviorProcessor$BehaviorSubscription;
|
|
|
|
new-array v0, v0, [Lio/reactivex/processors/BehaviorProcessor$BehaviorSubscription;
|
|
|
|
.line 3
|
|
sput-object v0, Lio/reactivex/processors/BehaviorProcessor;->k:[Lio/reactivex/processors/BehaviorProcessor$BehaviorSubscription;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>()V
|
|
.locals 2
|
|
|
|
.line 1
|
|
invoke-direct {p0}, Lio/reactivex/processors/a;-><init>()V
|
|
|
|
.line 2
|
|
new-instance v0, Ljava/util/concurrent/atomic/AtomicReference;
|
|
|
|
invoke-direct {v0}, Ljava/util/concurrent/atomic/AtomicReference;-><init>()V
|
|
|
|
iput-object v0, p0, Lio/reactivex/processors/BehaviorProcessor;->f:Ljava/util/concurrent/atomic/AtomicReference;
|
|
|
|
.line 3
|
|
new-instance v0, Ljava/util/concurrent/locks/ReentrantReadWriteLock;
|
|
|
|
invoke-direct {v0}, Ljava/util/concurrent/locks/ReentrantReadWriteLock;-><init>()V
|
|
|
|
iput-object v0, p0, Lio/reactivex/processors/BehaviorProcessor;->c:Ljava/util/concurrent/locks/ReadWriteLock;
|
|
|
|
.line 4
|
|
invoke-interface {v0}, Ljava/util/concurrent/locks/ReadWriteLock;->readLock()Ljava/util/concurrent/locks/Lock;
|
|
|
|
move-result-object v1
|
|
|
|
iput-object v1, p0, Lio/reactivex/processors/BehaviorProcessor;->d:Ljava/util/concurrent/locks/Lock;
|
|
|
|
.line 5
|
|
invoke-interface {v0}, Ljava/util/concurrent/locks/ReadWriteLock;->writeLock()Ljava/util/concurrent/locks/Lock;
|
|
|
|
move-result-object v0
|
|
|
|
iput-object v0, p0, Lio/reactivex/processors/BehaviorProcessor;->e:Ljava/util/concurrent/locks/Lock;
|
|
|
|
.line 6
|
|
new-instance v0, Ljava/util/concurrent/atomic/AtomicReference;
|
|
|
|
sget-object v1, Lio/reactivex/processors/BehaviorProcessor;->j:[Lio/reactivex/processors/BehaviorProcessor$BehaviorSubscription;
|
|
|
|
invoke-direct {v0, v1}, Ljava/util/concurrent/atomic/AtomicReference;-><init>(Ljava/lang/Object;)V
|
|
|
|
iput-object v0, p0, Lio/reactivex/processors/BehaviorProcessor;->b:Ljava/util/concurrent/atomic/AtomicReference;
|
|
|
|
.line 7
|
|
new-instance v0, Ljava/util/concurrent/atomic/AtomicReference;
|
|
|
|
invoke-direct {v0}, Ljava/util/concurrent/atomic/AtomicReference;-><init>()V
|
|
|
|
iput-object v0, p0, Lio/reactivex/processors/BehaviorProcessor;->g:Ljava/util/concurrent/atomic/AtomicReference;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Ljava/lang/Object;)V
|
|
.locals 2
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(TT;)V"
|
|
}
|
|
.end annotation
|
|
|
|
.line 8
|
|
invoke-direct {p0}, Lio/reactivex/processors/BehaviorProcessor;-><init>()V
|
|
|
|
.line 9
|
|
iget-object v0, p0, Lio/reactivex/processors/BehaviorProcessor;->f:Ljava/util/concurrent/atomic/AtomicReference;
|
|
|
|
const-string v1, "defaultValue is null"
|
|
|
|
invoke-static {p1, v1}, Lio/reactivex/internal/functions/a;->g(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {v0, p1}, Ljava/util/concurrent/atomic/AtomicReference;->lazySet(Ljava/lang/Object;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static O8()Lio/reactivex/processors/BehaviorProcessor;
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<T:",
|
|
"Ljava/lang/Object;",
|
|
">()",
|
|
"Lio/reactivex/processors/BehaviorProcessor<",
|
|
"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/BehaviorProcessor;
|
|
|
|
invoke-direct {v0}, Lio/reactivex/processors/BehaviorProcessor;-><init>()V
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public static P8(Ljava/lang/Object;)Lio/reactivex/processors/BehaviorProcessor;
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<T:",
|
|
"Ljava/lang/Object;",
|
|
">(TT;)",
|
|
"Lio/reactivex/processors/BehaviorProcessor<",
|
|
"TT;>;"
|
|
}
|
|
.end annotation
|
|
|
|
.annotation runtime Lio/reactivex/annotations/CheckReturnValue;
|
|
.end annotation
|
|
|
|
.annotation build Lio/reactivex/annotations/NonNull;
|
|
.end annotation
|
|
|
|
const-string v0, "defaultValue is null"
|
|
|
|
.line 1
|
|
invoke-static {p0, v0}, Lio/reactivex/internal/functions/a;->g(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
|
|
|
|
.line 2
|
|
new-instance v0, Lio/reactivex/processors/BehaviorProcessor;
|
|
|
|
invoke-direct {v0, p0}, Lio/reactivex/processors/BehaviorProcessor;-><init>(Ljava/lang/Object;)V
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public I8()Ljava/lang/Throwable;
|
|
.locals 2
|
|
.annotation build Lio/reactivex/annotations/Nullable;
|
|
.end annotation
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lio/reactivex/processors/BehaviorProcessor;->f:Ljava/util/concurrent/atomic/AtomicReference;
|
|
|
|
invoke-virtual {v0}, Ljava/util/concurrent/atomic/AtomicReference;->get()Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
.line 2
|
|
invoke-static {v0}, Lio/reactivex/internal/util/NotificationLite;->isError(Ljava/lang/Object;)Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
.line 3
|
|
invoke-static {v0}, Lio/reactivex/internal/util/NotificationLite;->getError(Ljava/lang/Object;)Ljava/lang/Throwable;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public J8()Z
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lio/reactivex/processors/BehaviorProcessor;->f:Ljava/util/concurrent/atomic/AtomicReference;
|
|
|
|
invoke-virtual {v0}, Ljava/util/concurrent/atomic/AtomicReference;->get()Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
.line 2
|
|
invoke-static {v0}, Lio/reactivex/internal/util/NotificationLite;->isComplete(Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public K8()Z
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lio/reactivex/processors/BehaviorProcessor;->b:Ljava/util/concurrent/atomic/AtomicReference;
|
|
|
|
invoke-virtual {v0}, Ljava/util/concurrent/atomic/AtomicReference;->get()Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, [Lio/reactivex/processors/BehaviorProcessor$BehaviorSubscription;
|
|
|
|
array-length v0, 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-object v0, p0, Lio/reactivex/processors/BehaviorProcessor;->f:Ljava/util/concurrent/atomic/AtomicReference;
|
|
|
|
invoke-virtual {v0}, Ljava/util/concurrent/atomic/AtomicReference;->get()Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
.line 2
|
|
invoke-static {v0}, Lio/reactivex/internal/util/NotificationLite;->isError(Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public N8(Lio/reactivex/processors/BehaviorProcessor$BehaviorSubscription;)Z
|
|
.locals 4
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Lio/reactivex/processors/BehaviorProcessor$BehaviorSubscription<",
|
|
"TT;>;)Z"
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
:cond_0
|
|
iget-object v0, p0, Lio/reactivex/processors/BehaviorProcessor;->b:Ljava/util/concurrent/atomic/AtomicReference;
|
|
|
|
invoke-virtual {v0}, Ljava/util/concurrent/atomic/AtomicReference;->get()Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, [Lio/reactivex/processors/BehaviorProcessor$BehaviorSubscription;
|
|
|
|
.line 2
|
|
sget-object v1, Lio/reactivex/processors/BehaviorProcessor;->k:[Lio/reactivex/processors/BehaviorProcessor$BehaviorSubscription;
|
|
|
|
const/4 v2, 0x0
|
|
|
|
if-ne v0, v1, :cond_1
|
|
|
|
return v2
|
|
|
|
.line 3
|
|
:cond_1
|
|
array-length v1, v0
|
|
|
|
add-int/lit8 v3, v1, 0x1
|
|
|
|
.line 4
|
|
new-array v3, v3, [Lio/reactivex/processors/BehaviorProcessor$BehaviorSubscription;
|
|
|
|
.line 5
|
|
invoke-static {v0, v2, v3, v2, v1}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V
|
|
|
|
.line 6
|
|
aput-object p1, v3, v1
|
|
|
|
.line 7
|
|
iget-object v1, p0, Lio/reactivex/processors/BehaviorProcessor;->b:Ljava/util/concurrent/atomic/AtomicReference;
|
|
|
|
invoke-virtual {v1, v0, v3}, Ljava/util/concurrent/atomic/AtomicReference;->compareAndSet(Ljava/lang/Object;Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
const/4 p1, 0x1
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method public Q8()Ljava/lang/Object;
|
|
.locals 2
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"()TT;"
|
|
}
|
|
.end annotation
|
|
|
|
.annotation build Lio/reactivex/annotations/Nullable;
|
|
.end annotation
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lio/reactivex/processors/BehaviorProcessor;->f:Ljava/util/concurrent/atomic/AtomicReference;
|
|
|
|
invoke-virtual {v0}, Ljava/util/concurrent/atomic/AtomicReference;->get()Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
.line 2
|
|
invoke-static {v0}, Lio/reactivex/internal/util/NotificationLite;->isComplete(Ljava/lang/Object;)Z
|
|
|
|
move-result v1
|
|
|
|
if-nez v1, :cond_1
|
|
|
|
invoke-static {v0}, Lio/reactivex/internal/util/NotificationLite;->isError(Ljava/lang/Object;)Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
.line 3
|
|
:cond_0
|
|
invoke-static {v0}, Lio/reactivex/internal/util/NotificationLite;->getValue(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
|
|
:cond_1
|
|
:goto_0
|
|
const/4 v0, 0x0
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public R8()[Ljava/lang/Object;
|
|
.locals 2
|
|
.annotation runtime Ljava/lang/Deprecated;
|
|
.end annotation
|
|
|
|
.line 1
|
|
sget-object v0, Lio/reactivex/processors/BehaviorProcessor;->i:[Ljava/lang/Object;
|
|
|
|
.line 2
|
|
invoke-virtual {p0, v0}, Lio/reactivex/processors/BehaviorProcessor;->S8([Ljava/lang/Object;)[Ljava/lang/Object;
|
|
|
|
move-result-object v1
|
|
|
|
if-ne v1, v0, :cond_0
|
|
|
|
const/4 v0, 0x0
|
|
|
|
new-array v0, v0, [Ljava/lang/Object;
|
|
|
|
return-object v0
|
|
|
|
:cond_0
|
|
return-object v1
|
|
.end method
|
|
|
|
.method public S8([Ljava/lang/Object;)[Ljava/lang/Object;
|
|
.locals 5
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"([TT;)[TT;"
|
|
}
|
|
.end annotation
|
|
|
|
.annotation runtime Ljava/lang/Deprecated;
|
|
.end annotation
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lio/reactivex/processors/BehaviorProcessor;->f:Ljava/util/concurrent/atomic/AtomicReference;
|
|
|
|
invoke-virtual {v0}, Ljava/util/concurrent/atomic/AtomicReference;->get()Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
const/4 v1, 0x0
|
|
|
|
const/4 v2, 0x0
|
|
|
|
if-eqz v0, :cond_3
|
|
|
|
.line 2
|
|
invoke-static {v0}, Lio/reactivex/internal/util/NotificationLite;->isComplete(Ljava/lang/Object;)Z
|
|
|
|
move-result v3
|
|
|
|
if-nez v3, :cond_3
|
|
|
|
invoke-static {v0}, Lio/reactivex/internal/util/NotificationLite;->isError(Ljava/lang/Object;)Z
|
|
|
|
move-result v3
|
|
|
|
if-eqz v3, :cond_0
|
|
|
|
goto :goto_1
|
|
|
|
.line 3
|
|
:cond_0
|
|
invoke-static {v0}, Lio/reactivex/internal/util/NotificationLite;->getValue(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
.line 4
|
|
array-length v3, p1
|
|
|
|
const/4 v4, 0x1
|
|
|
|
if-eqz v3, :cond_1
|
|
|
|
.line 5
|
|
aput-object v0, p1, v2
|
|
|
|
.line 6
|
|
array-length v0, p1
|
|
|
|
if-eq v0, v4, :cond_2
|
|
|
|
.line 7
|
|
aput-object v1, p1, v4
|
|
|
|
goto :goto_0
|
|
|
|
.line 8
|
|
:cond_1
|
|
invoke-virtual {p1}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p1}, Ljava/lang/Class;->getComponentType()Ljava/lang/Class;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-static {p1, v4}, Ljava/lang/reflect/Array;->newInstance(Ljava/lang/Class;I)Ljava/lang/Object;
|
|
|
|
move-result-object p1
|
|
|
|
check-cast p1, [Ljava/lang/Object;
|
|
|
|
.line 9
|
|
aput-object v0, p1, v2
|
|
|
|
:cond_2
|
|
:goto_0
|
|
return-object p1
|
|
|
|
.line 10
|
|
:cond_3
|
|
:goto_1
|
|
array-length v0, p1
|
|
|
|
if-eqz v0, :cond_4
|
|
|
|
.line 11
|
|
aput-object v1, p1, v2
|
|
|
|
:cond_4
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public T8()Z
|
|
.locals 2
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lio/reactivex/processors/BehaviorProcessor;->f: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
|
|
|
|
.line 2
|
|
invoke-static {v0}, Lio/reactivex/internal/util/NotificationLite;->isComplete(Ljava/lang/Object;)Z
|
|
|
|
move-result v1
|
|
|
|
if-nez v1, :cond_0
|
|
|
|
invoke-static {v0}, Lio/reactivex/internal/util/NotificationLite;->isError(Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
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 U8(Ljava/lang/Object;)Z
|
|
.locals 7
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(TT;)Z"
|
|
}
|
|
.end annotation
|
|
|
|
const/4 v0, 0x1
|
|
|
|
if-nez p1, :cond_0
|
|
|
|
.line 1
|
|
new-instance p1, Ljava/lang/NullPointerException;
|
|
|
|
const-string v1, "onNext called with null. Null values are generally not allowed in 2.x operators and sources."
|
|
|
|
invoke-direct {p1, v1}, Ljava/lang/NullPointerException;-><init>(Ljava/lang/String;)V
|
|
|
|
invoke-virtual {p0, p1}, Lio/reactivex/processors/BehaviorProcessor;->onError(Ljava/lang/Throwable;)V
|
|
|
|
return v0
|
|
|
|
.line 2
|
|
:cond_0
|
|
iget-object v1, p0, Lio/reactivex/processors/BehaviorProcessor;->b:Ljava/util/concurrent/atomic/AtomicReference;
|
|
|
|
invoke-virtual {v1}, Ljava/util/concurrent/atomic/AtomicReference;->get()Ljava/lang/Object;
|
|
|
|
move-result-object v1
|
|
|
|
check-cast v1, [Lio/reactivex/processors/BehaviorProcessor$BehaviorSubscription;
|
|
|
|
.line 3
|
|
array-length v2, v1
|
|
|
|
const/4 v3, 0x0
|
|
|
|
move v4, v3
|
|
|
|
:goto_0
|
|
if-ge v4, v2, :cond_2
|
|
|
|
aget-object v5, v1, v4
|
|
|
|
.line 4
|
|
invoke-virtual {v5}, Lio/reactivex/processors/BehaviorProcessor$BehaviorSubscription;->isFull()Z
|
|
|
|
move-result v5
|
|
|
|
if-eqz v5, :cond_1
|
|
|
|
return v3
|
|
|
|
:cond_1
|
|
add-int/lit8 v4, v4, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
.line 5
|
|
:cond_2
|
|
invoke-static {p1}, Lio/reactivex/internal/util/NotificationLite;->next(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object p1
|
|
|
|
.line 6
|
|
invoke-virtual {p0, p1}, Lio/reactivex/processors/BehaviorProcessor;->W8(Ljava/lang/Object;)V
|
|
|
|
.line 7
|
|
array-length v2, v1
|
|
|
|
:goto_1
|
|
if-ge v3, v2, :cond_3
|
|
|
|
aget-object v4, v1, v3
|
|
|
|
.line 8
|
|
iget-wide v5, p0, Lio/reactivex/processors/BehaviorProcessor;->h:J
|
|
|
|
invoke-virtual {v4, p1, v5, v6}, Lio/reactivex/processors/BehaviorProcessor$BehaviorSubscription;->emitNext(Ljava/lang/Object;J)V
|
|
|
|
add-int/lit8 v3, v3, 0x1
|
|
|
|
goto :goto_1
|
|
|
|
:cond_3
|
|
return v0
|
|
.end method
|
|
|
|
.method public V8(Lio/reactivex/processors/BehaviorProcessor$BehaviorSubscription;)V
|
|
.locals 6
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Lio/reactivex/processors/BehaviorProcessor$BehaviorSubscription<",
|
|
"TT;>;)V"
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
:cond_0
|
|
iget-object v0, p0, Lio/reactivex/processors/BehaviorProcessor;->b:Ljava/util/concurrent/atomic/AtomicReference;
|
|
|
|
invoke-virtual {v0}, Ljava/util/concurrent/atomic/AtomicReference;->get()Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, [Lio/reactivex/processors/BehaviorProcessor$BehaviorSubscription;
|
|
|
|
.line 2
|
|
array-length v1, v0
|
|
|
|
if-nez v1, :cond_1
|
|
|
|
return-void
|
|
|
|
:cond_1
|
|
const/4 v2, -0x1
|
|
|
|
const/4 v3, 0x0
|
|
|
|
move v4, v3
|
|
|
|
:goto_0
|
|
if-ge v4, v1, :cond_3
|
|
|
|
.line 3
|
|
aget-object v5, v0, v4
|
|
|
|
if-ne v5, p1, :cond_2
|
|
|
|
move v2, v4
|
|
|
|
goto :goto_1
|
|
|
|
:cond_2
|
|
add-int/lit8 v4, v4, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_3
|
|
:goto_1
|
|
if-gez v2, :cond_4
|
|
|
|
return-void
|
|
|
|
:cond_4
|
|
const/4 v4, 0x1
|
|
|
|
if-ne v1, v4, :cond_5
|
|
|
|
.line 4
|
|
sget-object v1, Lio/reactivex/processors/BehaviorProcessor;->j:[Lio/reactivex/processors/BehaviorProcessor$BehaviorSubscription;
|
|
|
|
goto :goto_2
|
|
|
|
:cond_5
|
|
add-int/lit8 v5, v1, -0x1
|
|
|
|
.line 5
|
|
new-array v5, v5, [Lio/reactivex/processors/BehaviorProcessor$BehaviorSubscription;
|
|
|
|
.line 6
|
|
invoke-static {v0, v3, v5, v3, v2}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V
|
|
|
|
add-int/lit8 v3, v2, 0x1
|
|
|
|
sub-int/2addr v1, v2
|
|
|
|
sub-int/2addr v1, v4
|
|
|
|
.line 7
|
|
invoke-static {v0, v3, v5, v2, v1}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V
|
|
|
|
move-object v1, v5
|
|
|
|
.line 8
|
|
:goto_2
|
|
iget-object v2, p0, Lio/reactivex/processors/BehaviorProcessor;->b:Ljava/util/concurrent/atomic/AtomicReference;
|
|
|
|
invoke-virtual {v2, v0, v1}, Ljava/util/concurrent/atomic/AtomicReference;->compareAndSet(Ljava/lang/Object;Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public W8(Ljava/lang/Object;)V
|
|
.locals 5
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lio/reactivex/processors/BehaviorProcessor;->e:Ljava/util/concurrent/locks/Lock;
|
|
|
|
.line 2
|
|
invoke-interface {v0}, Ljava/util/concurrent/locks/Lock;->lock()V
|
|
|
|
.line 3
|
|
iget-wide v1, p0, Lio/reactivex/processors/BehaviorProcessor;->h:J
|
|
|
|
const-wide/16 v3, 0x1
|
|
|
|
add-long/2addr v1, v3
|
|
|
|
iput-wide v1, p0, Lio/reactivex/processors/BehaviorProcessor;->h:J
|
|
|
|
.line 4
|
|
iget-object v1, p0, Lio/reactivex/processors/BehaviorProcessor;->f:Ljava/util/concurrent/atomic/AtomicReference;
|
|
|
|
invoke-virtual {v1, p1}, Ljava/util/concurrent/atomic/AtomicReference;->lazySet(Ljava/lang/Object;)V
|
|
|
|
.line 5
|
|
invoke-interface {v0}, Ljava/util/concurrent/locks/Lock;->unlock()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public X8()I
|
|
.locals 1
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lio/reactivex/processors/BehaviorProcessor;->b:Ljava/util/concurrent/atomic/AtomicReference;
|
|
|
|
invoke-virtual {v0}, Ljava/util/concurrent/atomic/AtomicReference;->get()Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, [Lio/reactivex/processors/BehaviorProcessor$BehaviorSubscription;
|
|
|
|
array-length v0, v0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public Y8(Ljava/lang/Object;)[Lio/reactivex/processors/BehaviorProcessor$BehaviorSubscription;
|
|
.locals 2
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Ljava/lang/Object;",
|
|
")[",
|
|
"Lio/reactivex/processors/BehaviorProcessor$BehaviorSubscription<",
|
|
"TT;>;"
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lio/reactivex/processors/BehaviorProcessor;->b:Ljava/util/concurrent/atomic/AtomicReference;
|
|
|
|
invoke-virtual {v0}, Ljava/util/concurrent/atomic/AtomicReference;->get()Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, [Lio/reactivex/processors/BehaviorProcessor$BehaviorSubscription;
|
|
|
|
.line 2
|
|
sget-object v1, Lio/reactivex/processors/BehaviorProcessor;->k:[Lio/reactivex/processors/BehaviorProcessor$BehaviorSubscription;
|
|
|
|
if-eq v0, v1, :cond_0
|
|
|
|
.line 3
|
|
iget-object v0, p0, Lio/reactivex/processors/BehaviorProcessor;->b:Ljava/util/concurrent/atomic/AtomicReference;
|
|
|
|
invoke-virtual {v0, v1}, Ljava/util/concurrent/atomic/AtomicReference;->getAndSet(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, [Lio/reactivex/processors/BehaviorProcessor$BehaviorSubscription;
|
|
|
|
if-eq v0, v1, :cond_0
|
|
|
|
.line 4
|
|
invoke-virtual {p0, p1}, Lio/reactivex/processors/BehaviorProcessor;->W8(Ljava/lang/Object;)V
|
|
|
|
:cond_0
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public g6(Lok/d;)V
|
|
.locals 2
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Lok/d<",
|
|
"-TT;>;)V"
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
new-instance v0, Lio/reactivex/processors/BehaviorProcessor$BehaviorSubscription;
|
|
|
|
invoke-direct {v0, p1, p0}, Lio/reactivex/processors/BehaviorProcessor$BehaviorSubscription;-><init>(Lok/d;Lio/reactivex/processors/BehaviorProcessor;)V
|
|
|
|
.line 2
|
|
invoke-interface {p1, v0}, Lok/d;->onSubscribe(Lok/e;)V
|
|
|
|
.line 3
|
|
invoke-virtual {p0, v0}, Lio/reactivex/processors/BehaviorProcessor;->N8(Lio/reactivex/processors/BehaviorProcessor$BehaviorSubscription;)Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_1
|
|
|
|
.line 4
|
|
iget-boolean p1, v0, Lio/reactivex/processors/BehaviorProcessor$BehaviorSubscription;->cancelled:Z
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
.line 5
|
|
invoke-virtual {p0, v0}, Lio/reactivex/processors/BehaviorProcessor;->V8(Lio/reactivex/processors/BehaviorProcessor$BehaviorSubscription;)V
|
|
|
|
goto :goto_0
|
|
|
|
.line 6
|
|
:cond_0
|
|
invoke-virtual {v0}, Lio/reactivex/processors/BehaviorProcessor$BehaviorSubscription;->emitFirst()V
|
|
|
|
goto :goto_0
|
|
|
|
.line 7
|
|
:cond_1
|
|
iget-object v0, p0, Lio/reactivex/processors/BehaviorProcessor;->g:Ljava/util/concurrent/atomic/AtomicReference;
|
|
|
|
invoke-virtual {v0}, Ljava/util/concurrent/atomic/AtomicReference;->get()Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Ljava/lang/Throwable;
|
|
|
|
.line 8
|
|
sget-object v1, Lio/reactivex/internal/util/ExceptionHelper;->a:Ljava/lang/Throwable;
|
|
|
|
if-ne v0, v1, :cond_2
|
|
|
|
.line 9
|
|
invoke-interface {p1}, Lok/d;->onComplete()V
|
|
|
|
goto :goto_0
|
|
|
|
.line 10
|
|
:cond_2
|
|
invoke-interface {p1, v0}, Lok/d;->onError(Ljava/lang/Throwable;)V
|
|
|
|
:goto_0
|
|
return-void
|
|
.end method
|
|
|
|
.method public onComplete()V
|
|
.locals 7
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lio/reactivex/processors/BehaviorProcessor;->g:Ljava/util/concurrent/atomic/AtomicReference;
|
|
|
|
sget-object v1, Lio/reactivex/internal/util/ExceptionHelper;->a:Ljava/lang/Throwable;
|
|
|
|
const/4 v2, 0x0
|
|
|
|
invoke-virtual {v0, v2, v1}, Ljava/util/concurrent/atomic/AtomicReference;->compareAndSet(Ljava/lang/Object;Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
return-void
|
|
|
|
.line 2
|
|
:cond_0
|
|
invoke-static {}, Lio/reactivex/internal/util/NotificationLite;->complete()Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
.line 3
|
|
invoke-virtual {p0, v0}, Lio/reactivex/processors/BehaviorProcessor;->Y8(Ljava/lang/Object;)[Lio/reactivex/processors/BehaviorProcessor$BehaviorSubscription;
|
|
|
|
move-result-object v1
|
|
|
|
array-length v2, v1
|
|
|
|
const/4 v3, 0x0
|
|
|
|
:goto_0
|
|
if-ge v3, v2, :cond_1
|
|
|
|
aget-object v4, v1, v3
|
|
|
|
.line 4
|
|
iget-wide v5, p0, Lio/reactivex/processors/BehaviorProcessor;->h:J
|
|
|
|
invoke-virtual {v4, v0, v5, v6}, Lio/reactivex/processors/BehaviorProcessor$BehaviorSubscription;->emitNext(Ljava/lang/Object;J)V
|
|
|
|
add-int/lit8 v3, v3, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
return-void
|
|
.end method
|
|
|
|
.method public onError(Ljava/lang/Throwable;)V
|
|
.locals 6
|
|
|
|
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-object v0, p0, Lio/reactivex/processors/BehaviorProcessor;->g:Ljava/util/concurrent/atomic/AtomicReference;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
invoke-virtual {v0, v1, p1}, Ljava/util/concurrent/atomic/AtomicReference;->compareAndSet(Ljava/lang/Object;Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
.line 3
|
|
invoke-static {p1}, Lwh/a;->Y(Ljava/lang/Throwable;)V
|
|
|
|
return-void
|
|
|
|
.line 4
|
|
:cond_0
|
|
invoke-static {p1}, Lio/reactivex/internal/util/NotificationLite;->error(Ljava/lang/Throwable;)Ljava/lang/Object;
|
|
|
|
move-result-object p1
|
|
|
|
.line 5
|
|
invoke-virtual {p0, p1}, Lio/reactivex/processors/BehaviorProcessor;->Y8(Ljava/lang/Object;)[Lio/reactivex/processors/BehaviorProcessor$BehaviorSubscription;
|
|
|
|
move-result-object v0
|
|
|
|
array-length v1, v0
|
|
|
|
const/4 v2, 0x0
|
|
|
|
:goto_0
|
|
if-ge v2, v1, :cond_1
|
|
|
|
aget-object v3, v0, v2
|
|
|
|
.line 6
|
|
iget-wide v4, p0, Lio/reactivex/processors/BehaviorProcessor;->h:J
|
|
|
|
invoke-virtual {v3, p1, v4, v5}, Lio/reactivex/processors/BehaviorProcessor$BehaviorSubscription;->emitNext(Ljava/lang/Object;J)V
|
|
|
|
add-int/lit8 v2, v2, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
return-void
|
|
.end method
|
|
|
|
.method public onNext(Ljava/lang/Object;)V
|
|
.locals 6
|
|
.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-object v0, p0, Lio/reactivex/processors/BehaviorProcessor;->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
|
|
|
|
return-void
|
|
|
|
.line 3
|
|
:cond_0
|
|
invoke-static {p1}, Lio/reactivex/internal/util/NotificationLite;->next(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object p1
|
|
|
|
.line 4
|
|
invoke-virtual {p0, p1}, Lio/reactivex/processors/BehaviorProcessor;->W8(Ljava/lang/Object;)V
|
|
|
|
.line 5
|
|
iget-object v0, p0, Lio/reactivex/processors/BehaviorProcessor;->b:Ljava/util/concurrent/atomic/AtomicReference;
|
|
|
|
invoke-virtual {v0}, Ljava/util/concurrent/atomic/AtomicReference;->get()Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, [Lio/reactivex/processors/BehaviorProcessor$BehaviorSubscription;
|
|
|
|
array-length v1, v0
|
|
|
|
const/4 v2, 0x0
|
|
|
|
:goto_0
|
|
if-ge v2, v1, :cond_1
|
|
|
|
aget-object v3, v0, v2
|
|
|
|
.line 6
|
|
iget-wide v4, p0, Lio/reactivex/processors/BehaviorProcessor;->h:J
|
|
|
|
invoke-virtual {v3, p1, v4, v5}, Lio/reactivex/processors/BehaviorProcessor$BehaviorSubscription;->emitNext(Ljava/lang/Object;J)V
|
|
|
|
add-int/lit8 v2, v2, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
return-void
|
|
.end method
|
|
|
|
.method public onSubscribe(Lok/e;)V
|
|
.locals 2
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lio/reactivex/processors/BehaviorProcessor;->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
|
|
|
|
.line 2
|
|
invoke-interface {p1}, Lok/e;->cancel()V
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
const-wide v0, 0x7fffffffffffffffL
|
|
|
|
.line 3
|
|
invoke-interface {p1, v0, v1}, Lok/e;->request(J)V
|
|
|
|
return-void
|
|
.end method
|