This commit is contained in:
2022-06-10 21:38:30 +09:00
commit 27f5152838
51323 changed files with 12934539 additions and 0 deletions
@@ -0,0 +1,146 @@
.class final Lio/reactivex/rxjava3/subjects/AsyncSubject$AsyncDisposable;
.super Lio/reactivex/rxjava3/internal/observers/DeferredScalarDisposable;
.source "AsyncSubject.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lio/reactivex/rxjava3/subjects/AsyncSubject;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = "AsyncDisposable"
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">",
"Lio/reactivex/rxjava3/internal/observers/DeferredScalarDisposable<",
"TT;>;"
}
.end annotation
# static fields
.field private static final serialVersionUID:J = 0x4e215678802bc8d0L
# instance fields
.field public final parent:Lio/reactivex/rxjava3/subjects/AsyncSubject;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lio/reactivex/rxjava3/subjects/AsyncSubject<",
"TT;>;"
}
.end annotation
.end field
# direct methods
.method public constructor <init>(Lai/n0;Lio/reactivex/rxjava3/subjects/AsyncSubject;)V
.locals 0
.annotation system Ldalvik/annotation/MethodParameters;
accessFlags = {
0x0,
0x0
}
names = {
"actual",
"parent"
}
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lai/n0<",
"-TT;>;",
"Lio/reactivex/rxjava3/subjects/AsyncSubject<",
"TT;>;)V"
}
.end annotation
.line 1
invoke-direct {p0, p1}, Lio/reactivex/rxjava3/internal/observers/DeferredScalarDisposable;-><init>(Lai/n0;)V
.line 2
iput-object p2, p0, Lio/reactivex/rxjava3/subjects/AsyncSubject$AsyncDisposable;->parent:Lio/reactivex/rxjava3/subjects/AsyncSubject;
return-void
.end method
# virtual methods
.method public dispose()V
.locals 1
.line 1
invoke-super {p0}, Lio/reactivex/rxjava3/internal/observers/DeferredScalarDisposable;->tryDispose()Z
move-result v0
if-eqz v0, :cond_0
.line 2
iget-object v0, p0, Lio/reactivex/rxjava3/subjects/AsyncSubject$AsyncDisposable;->parent:Lio/reactivex/rxjava3/subjects/AsyncSubject;
invoke-virtual {v0, p0}, Lio/reactivex/rxjava3/subjects/AsyncSubject;->R8(Lio/reactivex/rxjava3/subjects/AsyncSubject$AsyncDisposable;)V
:cond_0
return-void
.end method
.method public onComplete()V
.locals 1
.line 1
invoke-virtual {p0}, Lio/reactivex/rxjava3/internal/observers/DeferredScalarDisposable;->isDisposed()Z
move-result v0
if-nez v0, :cond_0
.line 2
iget-object v0, p0, Lio/reactivex/rxjava3/internal/observers/DeferredScalarDisposable;->downstream:Lai/n0;
invoke-interface {v0}, Lai/n0;->onComplete()V
:cond_0
return-void
.end method
.method public onError(Ljava/lang/Throwable;)V
.locals 1
.annotation system Ldalvik/annotation/MethodParameters;
accessFlags = {
0x0
}
names = {
"t"
}
.end annotation
.line 1
invoke-virtual {p0}, Lio/reactivex/rxjava3/internal/observers/DeferredScalarDisposable;->isDisposed()Z
move-result v0
if-eqz v0, :cond_0
.line 2
invoke-static {p1}, Lji/a;->Y(Ljava/lang/Throwable;)V
goto :goto_0
.line 3
:cond_0
iget-object v0, p0, Lio/reactivex/rxjava3/internal/observers/DeferredScalarDisposable;->downstream:Lai/n0;
invoke-interface {v0, p1}, Lai/n0;->onError(Ljava/lang/Throwable;)V
:goto_0
return-void
.end method
@@ -0,0 +1,763 @@
.class public final Lio/reactivex/rxjava3/subjects/AsyncSubject;
.super Lio/reactivex/rxjava3/subjects/c;
.source "AsyncSubject.java"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lio/reactivex/rxjava3/subjects/AsyncSubject$AsyncDisposable;
}
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">",
"Lio/reactivex/rxjava3/subjects/c<",
"TT;>;"
}
.end annotation
# static fields
.field public static final d:[Lio/reactivex/rxjava3/subjects/AsyncSubject$AsyncDisposable;
.field public static final e:[Lio/reactivex/rxjava3/subjects/AsyncSubject$AsyncDisposable;
# instance fields
.field public final a:Ljava/util/concurrent/atomic/AtomicReference;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/concurrent/atomic/AtomicReference<",
"[",
"Lio/reactivex/rxjava3/subjects/AsyncSubject$AsyncDisposable<",
"TT;>;>;"
}
.end annotation
.end field
.field public b:Ljava/lang/Throwable;
.field public c:Ljava/lang/Object;
.annotation system Ldalvik/annotation/Signature;
value = {
"TT;"
}
.end annotation
.end field
# direct methods
.method public static constructor <clinit>()V
.locals 2
const/4 v0, 0x0
new-array v1, v0, [Lio/reactivex/rxjava3/subjects/AsyncSubject$AsyncDisposable;
.line 1
sput-object v1, Lio/reactivex/rxjava3/subjects/AsyncSubject;->d:[Lio/reactivex/rxjava3/subjects/AsyncSubject$AsyncDisposable;
new-array v0, v0, [Lio/reactivex/rxjava3/subjects/AsyncSubject$AsyncDisposable;
.line 2
sput-object v0, Lio/reactivex/rxjava3/subjects/AsyncSubject;->e:[Lio/reactivex/rxjava3/subjects/AsyncSubject$AsyncDisposable;
return-void
.end method
.method public constructor <init>()V
.locals 2
.line 1
invoke-direct {p0}, Lio/reactivex/rxjava3/subjects/c;-><init>()V
.line 2
new-instance v0, Ljava/util/concurrent/atomic/AtomicReference;
sget-object v1, Lio/reactivex/rxjava3/subjects/AsyncSubject;->d:[Lio/reactivex/rxjava3/subjects/AsyncSubject$AsyncDisposable;
invoke-direct {v0, v1}, Ljava/util/concurrent/atomic/AtomicReference;-><init>(Ljava/lang/Object;)V
iput-object v0, p0, Lio/reactivex/rxjava3/subjects/AsyncSubject;->a:Ljava/util/concurrent/atomic/AtomicReference;
return-void
.end method
.method public static O8()Lio/reactivex/rxjava3/subjects/AsyncSubject;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">()",
"Lio/reactivex/rxjava3/subjects/AsyncSubject<",
"TT;>;"
}
.end annotation
.annotation runtime Lio/reactivex/rxjava3/annotations/CheckReturnValue;
.end annotation
.annotation build Lio/reactivex/rxjava3/annotations/NonNull;
.end annotation
.line 1
new-instance v0, Lio/reactivex/rxjava3/subjects/AsyncSubject;
invoke-direct {v0}, Lio/reactivex/rxjava3/subjects/AsyncSubject;-><init>()V
return-object v0
.end method
# virtual methods
.method public I8()Ljava/lang/Throwable;
.locals 2
.annotation runtime Lio/reactivex/rxjava3/annotations/CheckReturnValue;
.end annotation
.line 1
iget-object v0, p0, Lio/reactivex/rxjava3/subjects/AsyncSubject;->a:Ljava/util/concurrent/atomic/AtomicReference;
invoke-virtual {v0}, Ljava/util/concurrent/atomic/AtomicReference;->get()Ljava/lang/Object;
move-result-object v0
sget-object v1, Lio/reactivex/rxjava3/subjects/AsyncSubject;->e:[Lio/reactivex/rxjava3/subjects/AsyncSubject$AsyncDisposable;
if-ne v0, v1, :cond_0
iget-object v0, p0, Lio/reactivex/rxjava3/subjects/AsyncSubject;->b:Ljava/lang/Throwable;
goto :goto_0
:cond_0
const/4 v0, 0x0
:goto_0
return-object v0
.end method
.method public J8()Z
.locals 2
.annotation runtime Lio/reactivex/rxjava3/annotations/CheckReturnValue;
.end annotation
.line 1
iget-object v0, p0, Lio/reactivex/rxjava3/subjects/AsyncSubject;->a:Ljava/util/concurrent/atomic/AtomicReference;
invoke-virtual {v0}, Ljava/util/concurrent/atomic/AtomicReference;->get()Ljava/lang/Object;
move-result-object v0
sget-object v1, Lio/reactivex/rxjava3/subjects/AsyncSubject;->e:[Lio/reactivex/rxjava3/subjects/AsyncSubject$AsyncDisposable;
if-ne v0, v1, :cond_0
iget-object v0, p0, Lio/reactivex/rxjava3/subjects/AsyncSubject;->b: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
.annotation runtime Lio/reactivex/rxjava3/annotations/CheckReturnValue;
.end annotation
.line 1
iget-object v0, p0, Lio/reactivex/rxjava3/subjects/AsyncSubject;->a: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/rxjava3/subjects/AsyncSubject$AsyncDisposable;
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 2
.annotation runtime Lio/reactivex/rxjava3/annotations/CheckReturnValue;
.end annotation
.line 1
iget-object v0, p0, Lio/reactivex/rxjava3/subjects/AsyncSubject;->a:Ljava/util/concurrent/atomic/AtomicReference;
invoke-virtual {v0}, Ljava/util/concurrent/atomic/AtomicReference;->get()Ljava/lang/Object;
move-result-object v0
sget-object v1, Lio/reactivex/rxjava3/subjects/AsyncSubject;->e:[Lio/reactivex/rxjava3/subjects/AsyncSubject$AsyncDisposable;
if-ne v0, v1, :cond_0
iget-object v0, p0, Lio/reactivex/rxjava3/subjects/AsyncSubject;->b: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(Lio/reactivex/rxjava3/subjects/AsyncSubject$AsyncDisposable;)Z
.locals 4
.annotation system Ldalvik/annotation/MethodParameters;
accessFlags = {
0x0
}
names = {
"ps"
}
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lio/reactivex/rxjava3/subjects/AsyncSubject$AsyncDisposable<",
"TT;>;)Z"
}
.end annotation
.line 1
:cond_0
iget-object v0, p0, Lio/reactivex/rxjava3/subjects/AsyncSubject;->a: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/rxjava3/subjects/AsyncSubject$AsyncDisposable;
.line 2
sget-object v1, Lio/reactivex/rxjava3/subjects/AsyncSubject;->e:[Lio/reactivex/rxjava3/subjects/AsyncSubject$AsyncDisposable;
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/rxjava3/subjects/AsyncSubject$AsyncDisposable;
.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/rxjava3/subjects/AsyncSubject;->a: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 P8()Ljava/lang/Object;
.locals 2
.annotation system Ldalvik/annotation/Signature;
value = {
"()TT;"
}
.end annotation
.annotation runtime Lio/reactivex/rxjava3/annotations/CheckReturnValue;
.end annotation
.annotation build Lio/reactivex/rxjava3/annotations/Nullable;
.end annotation
.line 1
iget-object v0, p0, Lio/reactivex/rxjava3/subjects/AsyncSubject;->a:Ljava/util/concurrent/atomic/AtomicReference;
invoke-virtual {v0}, Ljava/util/concurrent/atomic/AtomicReference;->get()Ljava/lang/Object;
move-result-object v0
sget-object v1, Lio/reactivex/rxjava3/subjects/AsyncSubject;->e:[Lio/reactivex/rxjava3/subjects/AsyncSubject$AsyncDisposable;
if-ne v0, v1, :cond_0
iget-object v0, p0, Lio/reactivex/rxjava3/subjects/AsyncSubject;->c:Ljava/lang/Object;
goto :goto_0
:cond_0
const/4 v0, 0x0
:goto_0
return-object v0
.end method
.method public Q8()Z
.locals 2
.annotation runtime Lio/reactivex/rxjava3/annotations/CheckReturnValue;
.end annotation
.line 1
iget-object v0, p0, Lio/reactivex/rxjava3/subjects/AsyncSubject;->a:Ljava/util/concurrent/atomic/AtomicReference;
invoke-virtual {v0}, Ljava/util/concurrent/atomic/AtomicReference;->get()Ljava/lang/Object;
move-result-object v0
sget-object v1, Lio/reactivex/rxjava3/subjects/AsyncSubject;->e:[Lio/reactivex/rxjava3/subjects/AsyncSubject$AsyncDisposable;
if-ne v0, v1, :cond_0
iget-object v0, p0, Lio/reactivex/rxjava3/subjects/AsyncSubject;->c:Ljava/lang/Object;
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 R8(Lio/reactivex/rxjava3/subjects/AsyncSubject$AsyncDisposable;)V
.locals 6
.annotation system Ldalvik/annotation/MethodParameters;
accessFlags = {
0x0
}
names = {
"ps"
}
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lio/reactivex/rxjava3/subjects/AsyncSubject$AsyncDisposable<",
"TT;>;)V"
}
.end annotation
.line 1
:cond_0
iget-object v0, p0, Lio/reactivex/rxjava3/subjects/AsyncSubject;->a: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/rxjava3/subjects/AsyncSubject$AsyncDisposable;
.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/rxjava3/subjects/AsyncSubject;->d:[Lio/reactivex/rxjava3/subjects/AsyncSubject$AsyncDisposable;
goto :goto_2
:cond_5
add-int/lit8 v5, v1, -0x1
.line 5
new-array v5, v5, [Lio/reactivex/rxjava3/subjects/AsyncSubject$AsyncDisposable;
.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/rxjava3/subjects/AsyncSubject;->a: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 l6(Lai/n0;)V
.locals 2
.annotation system Ldalvik/annotation/MethodParameters;
accessFlags = {
0x0
}
names = {
"observer"
}
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lai/n0<",
"-TT;>;)V"
}
.end annotation
.line 1
new-instance v0, Lio/reactivex/rxjava3/subjects/AsyncSubject$AsyncDisposable;
invoke-direct {v0, p1, p0}, Lio/reactivex/rxjava3/subjects/AsyncSubject$AsyncDisposable;-><init>(Lai/n0;Lio/reactivex/rxjava3/subjects/AsyncSubject;)V
.line 2
invoke-interface {p1, v0}, Lai/n0;->onSubscribe(Lio/reactivex/rxjava3/disposables/c;)V
.line 3
invoke-virtual {p0, v0}, Lio/reactivex/rxjava3/subjects/AsyncSubject;->N8(Lio/reactivex/rxjava3/subjects/AsyncSubject$AsyncDisposable;)Z
move-result v1
if-eqz v1, :cond_0
.line 4
invoke-virtual {v0}, Lio/reactivex/rxjava3/internal/observers/DeferredScalarDisposable;->isDisposed()Z
move-result p1
if-eqz p1, :cond_3
.line 5
invoke-virtual {p0, v0}, Lio/reactivex/rxjava3/subjects/AsyncSubject;->R8(Lio/reactivex/rxjava3/subjects/AsyncSubject$AsyncDisposable;)V
goto :goto_0
.line 6
:cond_0
iget-object v1, p0, Lio/reactivex/rxjava3/subjects/AsyncSubject;->b:Ljava/lang/Throwable;
if-eqz v1, :cond_1
.line 7
invoke-interface {p1, v1}, Lai/n0;->onError(Ljava/lang/Throwable;)V
goto :goto_0
.line 8
:cond_1
iget-object p1, p0, Lio/reactivex/rxjava3/subjects/AsyncSubject;->c:Ljava/lang/Object;
if-eqz p1, :cond_2
.line 9
invoke-virtual {v0, p1}, Lio/reactivex/rxjava3/internal/observers/DeferredScalarDisposable;->complete(Ljava/lang/Object;)V
goto :goto_0
.line 10
:cond_2
invoke-virtual {v0}, Lio/reactivex/rxjava3/subjects/AsyncSubject$AsyncDisposable;->onComplete()V
:cond_3
:goto_0
return-void
.end method
.method public onComplete()V
.locals 5
.line 1
iget-object v0, p0, Lio/reactivex/rxjava3/subjects/AsyncSubject;->a:Ljava/util/concurrent/atomic/AtomicReference;
invoke-virtual {v0}, Ljava/util/concurrent/atomic/AtomicReference;->get()Ljava/lang/Object;
move-result-object v0
sget-object v1, Lio/reactivex/rxjava3/subjects/AsyncSubject;->e:[Lio/reactivex/rxjava3/subjects/AsyncSubject$AsyncDisposable;
if-ne v0, v1, :cond_0
return-void
.line 2
:cond_0
iget-object v0, p0, Lio/reactivex/rxjava3/subjects/AsyncSubject;->c:Ljava/lang/Object;
.line 3
iget-object v2, p0, Lio/reactivex/rxjava3/subjects/AsyncSubject;->a:Ljava/util/concurrent/atomic/AtomicReference;
invoke-virtual {v2, v1}, Ljava/util/concurrent/atomic/AtomicReference;->getAndSet(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v1
check-cast v1, [Lio/reactivex/rxjava3/subjects/AsyncSubject$AsyncDisposable;
const/4 v2, 0x0
if-nez v0, :cond_1
.line 4
array-length v0, v1
:goto_0
if-ge v2, v0, :cond_2
aget-object v3, v1, v2
.line 5
invoke-virtual {v3}, Lio/reactivex/rxjava3/subjects/AsyncSubject$AsyncDisposable;->onComplete()V
add-int/lit8 v2, v2, 0x1
goto :goto_0
.line 6
:cond_1
array-length v3, v1
:goto_1
if-ge v2, v3, :cond_2
aget-object v4, v1, v2
.line 7
invoke-virtual {v4, v0}, Lio/reactivex/rxjava3/internal/observers/DeferredScalarDisposable;->complete(Ljava/lang/Object;)V
add-int/lit8 v2, v2, 0x1
goto :goto_1
:cond_2
return-void
.end method
.method public onError(Ljava/lang/Throwable;)V
.locals 4
.annotation system Ldalvik/annotation/MethodParameters;
accessFlags = {
0x0
}
names = {
"t"
}
.end annotation
const-string v0, "onError called with a null Throwable."
.line 1
invoke-static {p1, v0}, Lio/reactivex/rxjava3/internal/util/ExceptionHelper;->d(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
.line 2
iget-object v0, p0, Lio/reactivex/rxjava3/subjects/AsyncSubject;->a:Ljava/util/concurrent/atomic/AtomicReference;
invoke-virtual {v0}, Ljava/util/concurrent/atomic/AtomicReference;->get()Ljava/lang/Object;
move-result-object v0
sget-object v1, Lio/reactivex/rxjava3/subjects/AsyncSubject;->e:[Lio/reactivex/rxjava3/subjects/AsyncSubject$AsyncDisposable;
if-ne v0, v1, :cond_0
.line 3
invoke-static {p1}, Lji/a;->Y(Ljava/lang/Throwable;)V
return-void
:cond_0
const/4 v0, 0x0
.line 4
iput-object v0, p0, Lio/reactivex/rxjava3/subjects/AsyncSubject;->c:Ljava/lang/Object;
.line 5
iput-object p1, p0, Lio/reactivex/rxjava3/subjects/AsyncSubject;->b:Ljava/lang/Throwable;
.line 6
iget-object v0, p0, Lio/reactivex/rxjava3/subjects/AsyncSubject;->a: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/rxjava3/subjects/AsyncSubject$AsyncDisposable;
array-length v1, v0
const/4 v2, 0x0
:goto_0
if-ge v2, v1, :cond_1
aget-object v3, v0, v2
.line 7
invoke-virtual {v3, p1}, Lio/reactivex/rxjava3/subjects/AsyncSubject$AsyncDisposable;->onError(Ljava/lang/Throwable;)V
add-int/lit8 v2, v2, 0x1
goto :goto_0
:cond_1
return-void
.end method
.method public onNext(Ljava/lang/Object;)V
.locals 2
.annotation system Ldalvik/annotation/MethodParameters;
accessFlags = {
0x0
}
names = {
"t"
}
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"(TT;)V"
}
.end annotation
const-string v0, "onNext called with a null value."
.line 1
invoke-static {p1, v0}, Lio/reactivex/rxjava3/internal/util/ExceptionHelper;->d(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
.line 2
iget-object v0, p0, Lio/reactivex/rxjava3/subjects/AsyncSubject;->a:Ljava/util/concurrent/atomic/AtomicReference;
invoke-virtual {v0}, Ljava/util/concurrent/atomic/AtomicReference;->get()Ljava/lang/Object;
move-result-object v0
sget-object v1, Lio/reactivex/rxjava3/subjects/AsyncSubject;->e:[Lio/reactivex/rxjava3/subjects/AsyncSubject$AsyncDisposable;
if-ne v0, v1, :cond_0
return-void
.line 3
:cond_0
iput-object p1, p0, Lio/reactivex/rxjava3/subjects/AsyncSubject;->c:Ljava/lang/Object;
return-void
.end method
.method public onSubscribe(Lio/reactivex/rxjava3/disposables/c;)V
.locals 2
.annotation system Ldalvik/annotation/MethodParameters;
accessFlags = {
0x0
}
names = {
"d"
}
.end annotation
.line 1
iget-object v0, p0, Lio/reactivex/rxjava3/subjects/AsyncSubject;->a:Ljava/util/concurrent/atomic/AtomicReference;
invoke-virtual {v0}, Ljava/util/concurrent/atomic/AtomicReference;->get()Ljava/lang/Object;
move-result-object v0
sget-object v1, Lio/reactivex/rxjava3/subjects/AsyncSubject;->e:[Lio/reactivex/rxjava3/subjects/AsyncSubject$AsyncDisposable;
if-ne v0, v1, :cond_0
.line 2
invoke-interface {p1}, Lio/reactivex/rxjava3/disposables/c;->dispose()V
:cond_0
return-void
.end method
@@ -0,0 +1,105 @@
.class final Lio/reactivex/rxjava3/subjects/CompletableSubject$CompletableDisposable;
.super Ljava/util/concurrent/atomic/AtomicReference;
.source "CompletableSubject.java"
# interfaces
.implements Lio/reactivex/rxjava3/disposables/c;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lio/reactivex/rxjava3/subjects/CompletableSubject;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = "CompletableDisposable"
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/concurrent/atomic/AtomicReference<",
"Lio/reactivex/rxjava3/subjects/CompletableSubject;",
">;",
"Lio/reactivex/rxjava3/disposables/c;"
}
.end annotation
# static fields
.field private static final serialVersionUID:J = -0x6a2d77ea7e969284L
# instance fields
.field public final downstream:Lai/d;
# direct methods
.method public constructor <init>(Lai/d;Lio/reactivex/rxjava3/subjects/CompletableSubject;)V
.locals 0
.annotation system Ldalvik/annotation/MethodParameters;
accessFlags = {
0x0,
0x0
}
names = {
"actual",
"parent"
}
.end annotation
.line 1
invoke-direct {p0}, Ljava/util/concurrent/atomic/AtomicReference;-><init>()V
.line 2
iput-object p1, p0, Lio/reactivex/rxjava3/subjects/CompletableSubject$CompletableDisposable;->downstream:Lai/d;
.line 3
invoke-virtual {p0, p2}, Ljava/util/concurrent/atomic/AtomicReference;->lazySet(Ljava/lang/Object;)V
return-void
.end method
# virtual methods
.method public dispose()V
.locals 1
const/4 v0, 0x0
.line 1
invoke-virtual {p0, v0}, Ljava/util/concurrent/atomic/AtomicReference;->getAndSet(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Lio/reactivex/rxjava3/subjects/CompletableSubject;
if-eqz v0, :cond_0
.line 2
invoke-virtual {v0, p0}, Lio/reactivex/rxjava3/subjects/CompletableSubject;->I1(Lio/reactivex/rxjava3/subjects/CompletableSubject$CompletableDisposable;)V
:cond_0
return-void
.end method
.method public isDisposed()Z
.locals 1
.line 1
invoke-virtual {p0}, Ljava/util/concurrent/atomic/AtomicReference;->get()Ljava/lang/Object;
move-result-object 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
@@ -0,0 +1,590 @@
.class public final Lio/reactivex/rxjava3/subjects/CompletableSubject;
.super Lai/a;
.source "CompletableSubject.java"
# interfaces
.implements Lai/d;
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lio/reactivex/rxjava3/subjects/CompletableSubject$CompletableDisposable;
}
.end annotation
# static fields
.field public static final d:[Lio/reactivex/rxjava3/subjects/CompletableSubject$CompletableDisposable;
.field public static final e:[Lio/reactivex/rxjava3/subjects/CompletableSubject$CompletableDisposable;
# instance fields
.field public final a:Ljava/util/concurrent/atomic/AtomicReference;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/concurrent/atomic/AtomicReference<",
"[",
"Lio/reactivex/rxjava3/subjects/CompletableSubject$CompletableDisposable;",
">;"
}
.end annotation
.end field
.field public final b:Ljava/util/concurrent/atomic/AtomicBoolean;
.field public c:Ljava/lang/Throwable;
# direct methods
.method public static constructor <clinit>()V
.locals 2
const/4 v0, 0x0
new-array v1, v0, [Lio/reactivex/rxjava3/subjects/CompletableSubject$CompletableDisposable;
.line 1
sput-object v1, Lio/reactivex/rxjava3/subjects/CompletableSubject;->d:[Lio/reactivex/rxjava3/subjects/CompletableSubject$CompletableDisposable;
new-array v0, v0, [Lio/reactivex/rxjava3/subjects/CompletableSubject$CompletableDisposable;
.line 2
sput-object v0, Lio/reactivex/rxjava3/subjects/CompletableSubject;->e:[Lio/reactivex/rxjava3/subjects/CompletableSubject$CompletableDisposable;
return-void
.end method
.method public constructor <init>()V
.locals 2
.line 1
invoke-direct {p0}, Lai/a;-><init>()V
.line 2
new-instance v0, Ljava/util/concurrent/atomic/AtomicBoolean;
invoke-direct {v0}, Ljava/util/concurrent/atomic/AtomicBoolean;-><init>()V
iput-object v0, p0, Lio/reactivex/rxjava3/subjects/CompletableSubject;->b:Ljava/util/concurrent/atomic/AtomicBoolean;
.line 3
new-instance v0, Ljava/util/concurrent/atomic/AtomicReference;
sget-object v1, Lio/reactivex/rxjava3/subjects/CompletableSubject;->d:[Lio/reactivex/rxjava3/subjects/CompletableSubject$CompletableDisposable;
invoke-direct {v0, v1}, Ljava/util/concurrent/atomic/AtomicReference;-><init>(Ljava/lang/Object;)V
iput-object v0, p0, Lio/reactivex/rxjava3/subjects/CompletableSubject;->a:Ljava/util/concurrent/atomic/AtomicReference;
return-void
.end method
.method public static C1()Lio/reactivex/rxjava3/subjects/CompletableSubject;
.locals 1
.annotation runtime Lio/reactivex/rxjava3/annotations/CheckReturnValue;
.end annotation
.annotation build Lio/reactivex/rxjava3/annotations/NonNull;
.end annotation
.line 1
new-instance v0, Lio/reactivex/rxjava3/subjects/CompletableSubject;
invoke-direct {v0}, Lio/reactivex/rxjava3/subjects/CompletableSubject;-><init>()V
return-object v0
.end method
# virtual methods
.method public B1(Lio/reactivex/rxjava3/subjects/CompletableSubject$CompletableDisposable;)Z
.locals 4
.annotation system Ldalvik/annotation/MethodParameters;
accessFlags = {
0x0
}
names = {
"inner"
}
.end annotation
.line 1
:cond_0
iget-object v0, p0, Lio/reactivex/rxjava3/subjects/CompletableSubject;->a: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/rxjava3/subjects/CompletableSubject$CompletableDisposable;
.line 2
sget-object v1, Lio/reactivex/rxjava3/subjects/CompletableSubject;->e:[Lio/reactivex/rxjava3/subjects/CompletableSubject$CompletableDisposable;
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/rxjava3/subjects/CompletableSubject$CompletableDisposable;
.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/rxjava3/subjects/CompletableSubject;->a: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 D1()Ljava/lang/Throwable;
.locals 2
.annotation build Lio/reactivex/rxjava3/annotations/Nullable;
.end annotation
.line 1
iget-object v0, p0, Lio/reactivex/rxjava3/subjects/CompletableSubject;->a:Ljava/util/concurrent/atomic/AtomicReference;
invoke-virtual {v0}, Ljava/util/concurrent/atomic/AtomicReference;->get()Ljava/lang/Object;
move-result-object v0
sget-object v1, Lio/reactivex/rxjava3/subjects/CompletableSubject;->e:[Lio/reactivex/rxjava3/subjects/CompletableSubject$CompletableDisposable;
if-ne v0, v1, :cond_0
.line 2
iget-object v0, p0, Lio/reactivex/rxjava3/subjects/CompletableSubject;->c:Ljava/lang/Throwable;
return-object v0
:cond_0
const/4 v0, 0x0
return-object v0
.end method
.method public E1()Z
.locals 2
.line 1
iget-object v0, p0, Lio/reactivex/rxjava3/subjects/CompletableSubject;->a:Ljava/util/concurrent/atomic/AtomicReference;
invoke-virtual {v0}, Ljava/util/concurrent/atomic/AtomicReference;->get()Ljava/lang/Object;
move-result-object v0
sget-object v1, Lio/reactivex/rxjava3/subjects/CompletableSubject;->e:[Lio/reactivex/rxjava3/subjects/CompletableSubject$CompletableDisposable;
if-ne v0, v1, :cond_0
iget-object v0, p0, Lio/reactivex/rxjava3/subjects/CompletableSubject;->c: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 F1()Z
.locals 1
.line 1
iget-object v0, p0, Lio/reactivex/rxjava3/subjects/CompletableSubject;->a: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/rxjava3/subjects/CompletableSubject$CompletableDisposable;
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 G1()Z
.locals 2
.line 1
iget-object v0, p0, Lio/reactivex/rxjava3/subjects/CompletableSubject;->a:Ljava/util/concurrent/atomic/AtomicReference;
invoke-virtual {v0}, Ljava/util/concurrent/atomic/AtomicReference;->get()Ljava/lang/Object;
move-result-object v0
sget-object v1, Lio/reactivex/rxjava3/subjects/CompletableSubject;->e:[Lio/reactivex/rxjava3/subjects/CompletableSubject$CompletableDisposable;
if-ne v0, v1, :cond_0
iget-object v0, p0, Lio/reactivex/rxjava3/subjects/CompletableSubject;->c: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 H1()I
.locals 1
.line 1
iget-object v0, p0, Lio/reactivex/rxjava3/subjects/CompletableSubject;->a: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/rxjava3/subjects/CompletableSubject$CompletableDisposable;
array-length v0, v0
return v0
.end method
.method public I1(Lio/reactivex/rxjava3/subjects/CompletableSubject$CompletableDisposable;)V
.locals 6
.annotation system Ldalvik/annotation/MethodParameters;
accessFlags = {
0x0
}
names = {
"inner"
}
.end annotation
.line 1
:cond_0
iget-object v0, p0, Lio/reactivex/rxjava3/subjects/CompletableSubject;->a: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/rxjava3/subjects/CompletableSubject$CompletableDisposable;
.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/rxjava3/subjects/CompletableSubject;->d:[Lio/reactivex/rxjava3/subjects/CompletableSubject$CompletableDisposable;
goto :goto_2
:cond_5
add-int/lit8 v5, v1, -0x1
.line 5
new-array v5, v5, [Lio/reactivex/rxjava3/subjects/CompletableSubject$CompletableDisposable;
.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/rxjava3/subjects/CompletableSubject;->a: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 Y0(Lai/d;)V
.locals 2
.annotation system Ldalvik/annotation/MethodParameters;
accessFlags = {
0x0
}
names = {
"observer"
}
.end annotation
.line 1
new-instance v0, Lio/reactivex/rxjava3/subjects/CompletableSubject$CompletableDisposable;
invoke-direct {v0, p1, p0}, Lio/reactivex/rxjava3/subjects/CompletableSubject$CompletableDisposable;-><init>(Lai/d;Lio/reactivex/rxjava3/subjects/CompletableSubject;)V
.line 2
invoke-interface {p1, v0}, Lai/d;->onSubscribe(Lio/reactivex/rxjava3/disposables/c;)V
.line 3
invoke-virtual {p0, v0}, Lio/reactivex/rxjava3/subjects/CompletableSubject;->B1(Lio/reactivex/rxjava3/subjects/CompletableSubject$CompletableDisposable;)Z
move-result v1
if-eqz v1, :cond_0
.line 4
invoke-virtual {v0}, Lio/reactivex/rxjava3/subjects/CompletableSubject$CompletableDisposable;->isDisposed()Z
move-result p1
if-eqz p1, :cond_2
.line 5
invoke-virtual {p0, v0}, Lio/reactivex/rxjava3/subjects/CompletableSubject;->I1(Lio/reactivex/rxjava3/subjects/CompletableSubject$CompletableDisposable;)V
goto :goto_0
.line 6
:cond_0
iget-object v0, p0, Lio/reactivex/rxjava3/subjects/CompletableSubject;->c:Ljava/lang/Throwable;
if-eqz v0, :cond_1
.line 7
invoke-interface {p1, v0}, Lai/d;->onError(Ljava/lang/Throwable;)V
goto :goto_0
.line 8
:cond_1
invoke-interface {p1}, Lai/d;->onComplete()V
:cond_2
:goto_0
return-void
.end method
.method public onComplete()V
.locals 4
.line 1
iget-object v0, p0, Lio/reactivex/rxjava3/subjects/CompletableSubject;->b: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_0
.line 2
iget-object v0, p0, Lio/reactivex/rxjava3/subjects/CompletableSubject;->a:Ljava/util/concurrent/atomic/AtomicReference;
sget-object v2, Lio/reactivex/rxjava3/subjects/CompletableSubject;->e:[Lio/reactivex/rxjava3/subjects/CompletableSubject$CompletableDisposable;
invoke-virtual {v0, v2}, Ljava/util/concurrent/atomic/AtomicReference;->getAndSet(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v0
check-cast v0, [Lio/reactivex/rxjava3/subjects/CompletableSubject$CompletableDisposable;
array-length v2, v0
:goto_0
if-ge v1, v2, :cond_0
aget-object v3, v0, v1
.line 3
iget-object v3, v3, Lio/reactivex/rxjava3/subjects/CompletableSubject$CompletableDisposable;->downstream:Lai/d;
invoke-interface {v3}, Lai/d;->onComplete()V
add-int/lit8 v1, v1, 0x1
goto :goto_0
:cond_0
return-void
.end method
.method public onError(Ljava/lang/Throwable;)V
.locals 4
.annotation system Ldalvik/annotation/MethodParameters;
accessFlags = {
0x0
}
names = {
"e"
}
.end annotation
const-string v0, "onError called with a null Throwable."
.line 1
invoke-static {p1, v0}, Lio/reactivex/rxjava3/internal/util/ExceptionHelper;->d(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
.line 2
iget-object v0, p0, Lio/reactivex/rxjava3/subjects/CompletableSubject;->b: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_0
.line 3
iput-object p1, p0, Lio/reactivex/rxjava3/subjects/CompletableSubject;->c:Ljava/lang/Throwable;
.line 4
iget-object v0, p0, Lio/reactivex/rxjava3/subjects/CompletableSubject;->a:Ljava/util/concurrent/atomic/AtomicReference;
sget-object v2, Lio/reactivex/rxjava3/subjects/CompletableSubject;->e:[Lio/reactivex/rxjava3/subjects/CompletableSubject$CompletableDisposable;
invoke-virtual {v0, v2}, Ljava/util/concurrent/atomic/AtomicReference;->getAndSet(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v0
check-cast v0, [Lio/reactivex/rxjava3/subjects/CompletableSubject$CompletableDisposable;
array-length v2, v0
:goto_0
if-ge v1, v2, :cond_1
aget-object v3, v0, v1
.line 5
iget-object v3, v3, Lio/reactivex/rxjava3/subjects/CompletableSubject$CompletableDisposable;->downstream:Lai/d;
invoke-interface {v3, p1}, Lai/d;->onError(Ljava/lang/Throwable;)V
add-int/lit8 v1, v1, 0x1
goto :goto_0
.line 6
:cond_0
invoke-static {p1}, Lji/a;->Y(Ljava/lang/Throwable;)V
:cond_1
return-void
.end method
.method public onSubscribe(Lio/reactivex/rxjava3/disposables/c;)V
.locals 2
.annotation system Ldalvik/annotation/MethodParameters;
accessFlags = {
0x0
}
names = {
"d"
}
.end annotation
.line 1
iget-object v0, p0, Lio/reactivex/rxjava3/subjects/CompletableSubject;->a:Ljava/util/concurrent/atomic/AtomicReference;
invoke-virtual {v0}, Ljava/util/concurrent/atomic/AtomicReference;->get()Ljava/lang/Object;
move-result-object v0
sget-object v1, Lio/reactivex/rxjava3/subjects/CompletableSubject;->e:[Lio/reactivex/rxjava3/subjects/CompletableSubject$CompletableDisposable;
if-ne v0, v1, :cond_0
.line 2
invoke-interface {p1}, Lio/reactivex/rxjava3/disposables/c;->dispose()V
:cond_0
return-void
.end method
@@ -0,0 +1,125 @@
.class final Lio/reactivex/rxjava3/subjects/MaybeSubject$MaybeDisposable;
.super Ljava/util/concurrent/atomic/AtomicReference;
.source "MaybeSubject.java"
# interfaces
.implements Lio/reactivex/rxjava3/disposables/c;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lio/reactivex/rxjava3/subjects/MaybeSubject;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = "MaybeDisposable"
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">",
"Ljava/util/concurrent/atomic/AtomicReference<",
"Lio/reactivex/rxjava3/subjects/MaybeSubject<",
"TT;>;>;",
"Lio/reactivex/rxjava3/disposables/c;"
}
.end annotation
# static fields
.field private static final serialVersionUID:J = -0x6a2d77ea7e969284L
# instance fields
.field public final downstream:Lai/y;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lai/y<",
"-TT;>;"
}
.end annotation
.end field
# direct methods
.method public constructor <init>(Lai/y;Lio/reactivex/rxjava3/subjects/MaybeSubject;)V
.locals 0
.annotation system Ldalvik/annotation/MethodParameters;
accessFlags = {
0x0,
0x0
}
names = {
"actual",
"parent"
}
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lai/y<",
"-TT;>;",
"Lio/reactivex/rxjava3/subjects/MaybeSubject<",
"TT;>;)V"
}
.end annotation
.line 1
invoke-direct {p0}, Ljava/util/concurrent/atomic/AtomicReference;-><init>()V
.line 2
iput-object p1, p0, Lio/reactivex/rxjava3/subjects/MaybeSubject$MaybeDisposable;->downstream:Lai/y;
.line 3
invoke-virtual {p0, p2}, Ljava/util/concurrent/atomic/AtomicReference;->lazySet(Ljava/lang/Object;)V
return-void
.end method
# virtual methods
.method public dispose()V
.locals 1
const/4 v0, 0x0
.line 1
invoke-virtual {p0, v0}, Ljava/util/concurrent/atomic/AtomicReference;->getAndSet(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Lio/reactivex/rxjava3/subjects/MaybeSubject;
if-eqz v0, :cond_0
.line 2
invoke-virtual {v0, p0}, Lio/reactivex/rxjava3/subjects/MaybeSubject;->d3(Lio/reactivex/rxjava3/subjects/MaybeSubject$MaybeDisposable;)V
:cond_0
return-void
.end method
.method public isDisposed()Z
.locals 1
.line 1
invoke-virtual {p0}, Ljava/util/concurrent/atomic/AtomicReference;->get()Ljava/lang/Object;
move-result-object 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
@@ -0,0 +1,790 @@
.class public final Lio/reactivex/rxjava3/subjects/MaybeSubject;
.super Lai/v;
.source "MaybeSubject.java"
# interfaces
.implements Lai/y;
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lio/reactivex/rxjava3/subjects/MaybeSubject$MaybeDisposable;
}
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">",
"Lai/v<",
"TT;>;",
"Lai/y<",
"TT;>;"
}
.end annotation
# static fields
.field public static final e:[Lio/reactivex/rxjava3/subjects/MaybeSubject$MaybeDisposable;
.field public static final f:[Lio/reactivex/rxjava3/subjects/MaybeSubject$MaybeDisposable;
# instance fields
.field public final a:Ljava/util/concurrent/atomic/AtomicReference;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/concurrent/atomic/AtomicReference<",
"[",
"Lio/reactivex/rxjava3/subjects/MaybeSubject$MaybeDisposable<",
"TT;>;>;"
}
.end annotation
.end field
.field public final b:Ljava/util/concurrent/atomic/AtomicBoolean;
.field public c:Ljava/lang/Object;
.annotation system Ldalvik/annotation/Signature;
value = {
"TT;"
}
.end annotation
.end field
.field public d:Ljava/lang/Throwable;
# direct methods
.method public static constructor <clinit>()V
.locals 2
const/4 v0, 0x0
new-array v1, v0, [Lio/reactivex/rxjava3/subjects/MaybeSubject$MaybeDisposable;
.line 1
sput-object v1, Lio/reactivex/rxjava3/subjects/MaybeSubject;->e:[Lio/reactivex/rxjava3/subjects/MaybeSubject$MaybeDisposable;
new-array v0, v0, [Lio/reactivex/rxjava3/subjects/MaybeSubject$MaybeDisposable;
.line 2
sput-object v0, Lio/reactivex/rxjava3/subjects/MaybeSubject;->f:[Lio/reactivex/rxjava3/subjects/MaybeSubject$MaybeDisposable;
return-void
.end method
.method public constructor <init>()V
.locals 2
.line 1
invoke-direct {p0}, Lai/v;-><init>()V
.line 2
new-instance v0, Ljava/util/concurrent/atomic/AtomicBoolean;
invoke-direct {v0}, Ljava/util/concurrent/atomic/AtomicBoolean;-><init>()V
iput-object v0, p0, Lio/reactivex/rxjava3/subjects/MaybeSubject;->b:Ljava/util/concurrent/atomic/AtomicBoolean;
.line 3
new-instance v0, Ljava/util/concurrent/atomic/AtomicReference;
sget-object v1, Lio/reactivex/rxjava3/subjects/MaybeSubject;->e:[Lio/reactivex/rxjava3/subjects/MaybeSubject$MaybeDisposable;
invoke-direct {v0, v1}, Ljava/util/concurrent/atomic/AtomicReference;-><init>(Ljava/lang/Object;)V
iput-object v0, p0, Lio/reactivex/rxjava3/subjects/MaybeSubject;->a:Ljava/util/concurrent/atomic/AtomicReference;
return-void
.end method
.method public static V2()Lio/reactivex/rxjava3/subjects/MaybeSubject;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">()",
"Lio/reactivex/rxjava3/subjects/MaybeSubject<",
"TT;>;"
}
.end annotation
.annotation runtime Lio/reactivex/rxjava3/annotations/CheckReturnValue;
.end annotation
.annotation build Lio/reactivex/rxjava3/annotations/NonNull;
.end annotation
.line 1
new-instance v0, Lio/reactivex/rxjava3/subjects/MaybeSubject;
invoke-direct {v0}, Lio/reactivex/rxjava3/subjects/MaybeSubject;-><init>()V
return-object v0
.end method
# virtual methods
.method public U1(Lai/y;)V
.locals 2
.annotation system Ldalvik/annotation/MethodParameters;
accessFlags = {
0x0
}
names = {
"observer"
}
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lai/y<",
"-TT;>;)V"
}
.end annotation
.line 1
new-instance v0, Lio/reactivex/rxjava3/subjects/MaybeSubject$MaybeDisposable;
invoke-direct {v0, p1, p0}, Lio/reactivex/rxjava3/subjects/MaybeSubject$MaybeDisposable;-><init>(Lai/y;Lio/reactivex/rxjava3/subjects/MaybeSubject;)V
.line 2
invoke-interface {p1, v0}, Lai/y;->onSubscribe(Lio/reactivex/rxjava3/disposables/c;)V
.line 3
invoke-virtual {p0, v0}, Lio/reactivex/rxjava3/subjects/MaybeSubject;->U2(Lio/reactivex/rxjava3/subjects/MaybeSubject$MaybeDisposable;)Z
move-result v1
if-eqz v1, :cond_0
.line 4
invoke-virtual {v0}, Lio/reactivex/rxjava3/subjects/MaybeSubject$MaybeDisposable;->isDisposed()Z
move-result p1
if-eqz p1, :cond_3
.line 5
invoke-virtual {p0, v0}, Lio/reactivex/rxjava3/subjects/MaybeSubject;->d3(Lio/reactivex/rxjava3/subjects/MaybeSubject$MaybeDisposable;)V
goto :goto_0
.line 6
:cond_0
iget-object v0, p0, Lio/reactivex/rxjava3/subjects/MaybeSubject;->d:Ljava/lang/Throwable;
if-eqz v0, :cond_1
.line 7
invoke-interface {p1, v0}, Lai/y;->onError(Ljava/lang/Throwable;)V
goto :goto_0
.line 8
:cond_1
iget-object v0, p0, Lio/reactivex/rxjava3/subjects/MaybeSubject;->c:Ljava/lang/Object;
if-nez v0, :cond_2
.line 9
invoke-interface {p1}, Lai/y;->onComplete()V
goto :goto_0
.line 10
:cond_2
invoke-interface {p1, v0}, Lai/y;->onSuccess(Ljava/lang/Object;)V
:cond_3
:goto_0
return-void
.end method
.method public U2(Lio/reactivex/rxjava3/subjects/MaybeSubject$MaybeDisposable;)Z
.locals 4
.annotation system Ldalvik/annotation/MethodParameters;
accessFlags = {
0x0
}
names = {
"inner"
}
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lio/reactivex/rxjava3/subjects/MaybeSubject$MaybeDisposable<",
"TT;>;)Z"
}
.end annotation
.line 1
:cond_0
iget-object v0, p0, Lio/reactivex/rxjava3/subjects/MaybeSubject;->a: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/rxjava3/subjects/MaybeSubject$MaybeDisposable;
.line 2
sget-object v1, Lio/reactivex/rxjava3/subjects/MaybeSubject;->f:[Lio/reactivex/rxjava3/subjects/MaybeSubject$MaybeDisposable;
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/rxjava3/subjects/MaybeSubject$MaybeDisposable;
.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/rxjava3/subjects/MaybeSubject;->a: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 W2()Ljava/lang/Throwable;
.locals 2
.annotation build Lio/reactivex/rxjava3/annotations/Nullable;
.end annotation
.line 1
iget-object v0, p0, Lio/reactivex/rxjava3/subjects/MaybeSubject;->a:Ljava/util/concurrent/atomic/AtomicReference;
invoke-virtual {v0}, Ljava/util/concurrent/atomic/AtomicReference;->get()Ljava/lang/Object;
move-result-object v0
sget-object v1, Lio/reactivex/rxjava3/subjects/MaybeSubject;->f:[Lio/reactivex/rxjava3/subjects/MaybeSubject$MaybeDisposable;
if-ne v0, v1, :cond_0
.line 2
iget-object v0, p0, Lio/reactivex/rxjava3/subjects/MaybeSubject;->d:Ljava/lang/Throwable;
return-object v0
:cond_0
const/4 v0, 0x0
return-object v0
.end method
.method public X2()Ljava/lang/Object;
.locals 2
.annotation system Ldalvik/annotation/Signature;
value = {
"()TT;"
}
.end annotation
.annotation build Lio/reactivex/rxjava3/annotations/Nullable;
.end annotation
.line 1
iget-object v0, p0, Lio/reactivex/rxjava3/subjects/MaybeSubject;->a:Ljava/util/concurrent/atomic/AtomicReference;
invoke-virtual {v0}, Ljava/util/concurrent/atomic/AtomicReference;->get()Ljava/lang/Object;
move-result-object v0
sget-object v1, Lio/reactivex/rxjava3/subjects/MaybeSubject;->f:[Lio/reactivex/rxjava3/subjects/MaybeSubject$MaybeDisposable;
if-ne v0, v1, :cond_0
.line 2
iget-object v0, p0, Lio/reactivex/rxjava3/subjects/MaybeSubject;->c:Ljava/lang/Object;
return-object v0
:cond_0
const/4 v0, 0x0
return-object v0
.end method
.method public Y2()Z
.locals 2
.line 1
iget-object v0, p0, Lio/reactivex/rxjava3/subjects/MaybeSubject;->a:Ljava/util/concurrent/atomic/AtomicReference;
invoke-virtual {v0}, Ljava/util/concurrent/atomic/AtomicReference;->get()Ljava/lang/Object;
move-result-object v0
sget-object v1, Lio/reactivex/rxjava3/subjects/MaybeSubject;->f:[Lio/reactivex/rxjava3/subjects/MaybeSubject$MaybeDisposable;
if-ne v0, v1, :cond_0
iget-object v0, p0, Lio/reactivex/rxjava3/subjects/MaybeSubject;->c:Ljava/lang/Object;
if-nez v0, :cond_0
iget-object v0, p0, Lio/reactivex/rxjava3/subjects/MaybeSubject;->d: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 Z2()Z
.locals 1
.line 1
iget-object v0, p0, Lio/reactivex/rxjava3/subjects/MaybeSubject;->a: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/rxjava3/subjects/MaybeSubject$MaybeDisposable;
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 a3()Z
.locals 2
.line 1
iget-object v0, p0, Lio/reactivex/rxjava3/subjects/MaybeSubject;->a:Ljava/util/concurrent/atomic/AtomicReference;
invoke-virtual {v0}, Ljava/util/concurrent/atomic/AtomicReference;->get()Ljava/lang/Object;
move-result-object v0
sget-object v1, Lio/reactivex/rxjava3/subjects/MaybeSubject;->f:[Lio/reactivex/rxjava3/subjects/MaybeSubject$MaybeDisposable;
if-ne v0, v1, :cond_0
iget-object v0, p0, Lio/reactivex/rxjava3/subjects/MaybeSubject;->d: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 b3()Z
.locals 2
.line 1
iget-object v0, p0, Lio/reactivex/rxjava3/subjects/MaybeSubject;->a:Ljava/util/concurrent/atomic/AtomicReference;
invoke-virtual {v0}, Ljava/util/concurrent/atomic/AtomicReference;->get()Ljava/lang/Object;
move-result-object v0
sget-object v1, Lio/reactivex/rxjava3/subjects/MaybeSubject;->f:[Lio/reactivex/rxjava3/subjects/MaybeSubject$MaybeDisposable;
if-ne v0, v1, :cond_0
iget-object v0, p0, Lio/reactivex/rxjava3/subjects/MaybeSubject;->c:Ljava/lang/Object;
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 c3()I
.locals 1
.line 1
iget-object v0, p0, Lio/reactivex/rxjava3/subjects/MaybeSubject;->a: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/rxjava3/subjects/MaybeSubject$MaybeDisposable;
array-length v0, v0
return v0
.end method
.method public d3(Lio/reactivex/rxjava3/subjects/MaybeSubject$MaybeDisposable;)V
.locals 6
.annotation system Ldalvik/annotation/MethodParameters;
accessFlags = {
0x0
}
names = {
"inner"
}
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lio/reactivex/rxjava3/subjects/MaybeSubject$MaybeDisposable<",
"TT;>;)V"
}
.end annotation
.line 1
:cond_0
iget-object v0, p0, Lio/reactivex/rxjava3/subjects/MaybeSubject;->a: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/rxjava3/subjects/MaybeSubject$MaybeDisposable;
.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/rxjava3/subjects/MaybeSubject;->e:[Lio/reactivex/rxjava3/subjects/MaybeSubject$MaybeDisposable;
goto :goto_2
:cond_5
add-int/lit8 v5, v1, -0x1
.line 5
new-array v5, v5, [Lio/reactivex/rxjava3/subjects/MaybeSubject$MaybeDisposable;
.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/rxjava3/subjects/MaybeSubject;->a: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 onComplete()V
.locals 4
.line 1
iget-object v0, p0, Lio/reactivex/rxjava3/subjects/MaybeSubject;->b: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_0
.line 2
iget-object v0, p0, Lio/reactivex/rxjava3/subjects/MaybeSubject;->a:Ljava/util/concurrent/atomic/AtomicReference;
sget-object v2, Lio/reactivex/rxjava3/subjects/MaybeSubject;->f:[Lio/reactivex/rxjava3/subjects/MaybeSubject$MaybeDisposable;
invoke-virtual {v0, v2}, Ljava/util/concurrent/atomic/AtomicReference;->getAndSet(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v0
check-cast v0, [Lio/reactivex/rxjava3/subjects/MaybeSubject$MaybeDisposable;
array-length v2, v0
:goto_0
if-ge v1, v2, :cond_0
aget-object v3, v0, v1
.line 3
iget-object v3, v3, Lio/reactivex/rxjava3/subjects/MaybeSubject$MaybeDisposable;->downstream:Lai/y;
invoke-interface {v3}, Lai/y;->onComplete()V
add-int/lit8 v1, v1, 0x1
goto :goto_0
:cond_0
return-void
.end method
.method public onError(Ljava/lang/Throwable;)V
.locals 4
.annotation system Ldalvik/annotation/MethodParameters;
accessFlags = {
0x0
}
names = {
"e"
}
.end annotation
const-string v0, "onError called with a null Throwable."
.line 1
invoke-static {p1, v0}, Lio/reactivex/rxjava3/internal/util/ExceptionHelper;->d(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
.line 2
iget-object v0, p0, Lio/reactivex/rxjava3/subjects/MaybeSubject;->b: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_0
.line 3
iput-object p1, p0, Lio/reactivex/rxjava3/subjects/MaybeSubject;->d:Ljava/lang/Throwable;
.line 4
iget-object v0, p0, Lio/reactivex/rxjava3/subjects/MaybeSubject;->a:Ljava/util/concurrent/atomic/AtomicReference;
sget-object v2, Lio/reactivex/rxjava3/subjects/MaybeSubject;->f:[Lio/reactivex/rxjava3/subjects/MaybeSubject$MaybeDisposable;
invoke-virtual {v0, v2}, Ljava/util/concurrent/atomic/AtomicReference;->getAndSet(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v0
check-cast v0, [Lio/reactivex/rxjava3/subjects/MaybeSubject$MaybeDisposable;
array-length v2, v0
:goto_0
if-ge v1, v2, :cond_1
aget-object v3, v0, v1
.line 5
iget-object v3, v3, Lio/reactivex/rxjava3/subjects/MaybeSubject$MaybeDisposable;->downstream:Lai/y;
invoke-interface {v3, p1}, Lai/y;->onError(Ljava/lang/Throwable;)V
add-int/lit8 v1, v1, 0x1
goto :goto_0
.line 6
:cond_0
invoke-static {p1}, Lji/a;->Y(Ljava/lang/Throwable;)V
:cond_1
return-void
.end method
.method public onSubscribe(Lio/reactivex/rxjava3/disposables/c;)V
.locals 2
.annotation system Ldalvik/annotation/MethodParameters;
accessFlags = {
0x0
}
names = {
"d"
}
.end annotation
.line 1
iget-object v0, p0, Lio/reactivex/rxjava3/subjects/MaybeSubject;->a:Ljava/util/concurrent/atomic/AtomicReference;
invoke-virtual {v0}, Ljava/util/concurrent/atomic/AtomicReference;->get()Ljava/lang/Object;
move-result-object v0
sget-object v1, Lio/reactivex/rxjava3/subjects/MaybeSubject;->f:[Lio/reactivex/rxjava3/subjects/MaybeSubject$MaybeDisposable;
if-ne v0, v1, :cond_0
.line 2
invoke-interface {p1}, Lio/reactivex/rxjava3/disposables/c;->dispose()V
:cond_0
return-void
.end method
.method public onSuccess(Ljava/lang/Object;)V
.locals 4
.annotation system Ldalvik/annotation/MethodParameters;
accessFlags = {
0x0
}
names = {
"value"
}
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"(TT;)V"
}
.end annotation
const-string v0, "onSuccess called with a null value."
.line 1
invoke-static {p1, v0}, Lio/reactivex/rxjava3/internal/util/ExceptionHelper;->d(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
.line 2
iget-object v0, p0, Lio/reactivex/rxjava3/subjects/MaybeSubject;->b: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_0
.line 3
iput-object p1, p0, Lio/reactivex/rxjava3/subjects/MaybeSubject;->c:Ljava/lang/Object;
.line 4
iget-object v0, p0, Lio/reactivex/rxjava3/subjects/MaybeSubject;->a:Ljava/util/concurrent/atomic/AtomicReference;
sget-object v2, Lio/reactivex/rxjava3/subjects/MaybeSubject;->f:[Lio/reactivex/rxjava3/subjects/MaybeSubject$MaybeDisposable;
invoke-virtual {v0, v2}, Ljava/util/concurrent/atomic/AtomicReference;->getAndSet(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v0
check-cast v0, [Lio/reactivex/rxjava3/subjects/MaybeSubject$MaybeDisposable;
array-length v2, v0
:goto_0
if-ge v1, v2, :cond_0
aget-object v3, v0, v1
.line 5
iget-object v3, v3, Lio/reactivex/rxjava3/subjects/MaybeSubject$MaybeDisposable;->downstream:Lai/y;
invoke-interface {v3, p1}, Lai/y;->onSuccess(Ljava/lang/Object;)V
add-int/lit8 v1, v1, 0x1
goto :goto_0
:cond_0
return-void
.end method
@@ -0,0 +1,209 @@
.class final Lio/reactivex/rxjava3/subjects/PublishSubject$PublishDisposable;
.super Ljava/util/concurrent/atomic/AtomicBoolean;
.source "PublishSubject.java"
# interfaces
.implements Lio/reactivex/rxjava3/disposables/c;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lio/reactivex/rxjava3/subjects/PublishSubject;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = "PublishDisposable"
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">",
"Ljava/util/concurrent/atomic/AtomicBoolean;",
"Lio/reactivex/rxjava3/disposables/c;"
}
.end annotation
# static fields
.field private static final serialVersionUID:J = 0x3171d4005ebf93feL
# instance fields
.field public final downstream:Lai/n0;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lai/n0<",
"-TT;>;"
}
.end annotation
.end field
.field public final parent:Lio/reactivex/rxjava3/subjects/PublishSubject;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lio/reactivex/rxjava3/subjects/PublishSubject<",
"TT;>;"
}
.end annotation
.end field
# direct methods
.method public constructor <init>(Lai/n0;Lio/reactivex/rxjava3/subjects/PublishSubject;)V
.locals 0
.annotation system Ldalvik/annotation/MethodParameters;
accessFlags = {
0x0,
0x0
}
names = {
"actual",
"parent"
}
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lai/n0<",
"-TT;>;",
"Lio/reactivex/rxjava3/subjects/PublishSubject<",
"TT;>;)V"
}
.end annotation
.line 1
invoke-direct {p0}, Ljava/util/concurrent/atomic/AtomicBoolean;-><init>()V
.line 2
iput-object p1, p0, Lio/reactivex/rxjava3/subjects/PublishSubject$PublishDisposable;->downstream:Lai/n0;
.line 3
iput-object p2, p0, Lio/reactivex/rxjava3/subjects/PublishSubject$PublishDisposable;->parent:Lio/reactivex/rxjava3/subjects/PublishSubject;
return-void
.end method
# virtual methods
.method public dispose()V
.locals 2
const/4 v0, 0x0
const/4 v1, 0x1
.line 1
invoke-virtual {p0, v0, v1}, Ljava/util/concurrent/atomic/AtomicBoolean;->compareAndSet(ZZ)Z
move-result v0
if-eqz v0, :cond_0
.line 2
iget-object v0, p0, Lio/reactivex/rxjava3/subjects/PublishSubject$PublishDisposable;->parent:Lio/reactivex/rxjava3/subjects/PublishSubject;
invoke-virtual {v0, p0}, Lio/reactivex/rxjava3/subjects/PublishSubject;->P8(Lio/reactivex/rxjava3/subjects/PublishSubject$PublishDisposable;)V
:cond_0
return-void
.end method
.method public isDisposed()Z
.locals 1
.line 1
invoke-virtual {p0}, Ljava/util/concurrent/atomic/AtomicBoolean;->get()Z
move-result v0
return v0
.end method
.method public onComplete()V
.locals 1
.line 1
invoke-virtual {p0}, Ljava/util/concurrent/atomic/AtomicBoolean;->get()Z
move-result v0
if-nez v0, :cond_0
.line 2
iget-object v0, p0, Lio/reactivex/rxjava3/subjects/PublishSubject$PublishDisposable;->downstream:Lai/n0;
invoke-interface {v0}, Lai/n0;->onComplete()V
:cond_0
return-void
.end method
.method public onError(Ljava/lang/Throwable;)V
.locals 1
.annotation system Ldalvik/annotation/MethodParameters;
accessFlags = {
0x0
}
names = {
"t"
}
.end annotation
.line 1
invoke-virtual {p0}, Ljava/util/concurrent/atomic/AtomicBoolean;->get()Z
move-result v0
if-eqz v0, :cond_0
.line 2
invoke-static {p1}, Lji/a;->Y(Ljava/lang/Throwable;)V
goto :goto_0
.line 3
:cond_0
iget-object v0, p0, Lio/reactivex/rxjava3/subjects/PublishSubject$PublishDisposable;->downstream:Lai/n0;
invoke-interface {v0, p1}, Lai/n0;->onError(Ljava/lang/Throwable;)V
:goto_0
return-void
.end method
.method public onNext(Ljava/lang/Object;)V
.locals 1
.annotation system Ldalvik/annotation/MethodParameters;
accessFlags = {
0x0
}
names = {
"t"
}
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"(TT;)V"
}
.end annotation
.line 1
invoke-virtual {p0}, Ljava/util/concurrent/atomic/AtomicBoolean;->get()Z
move-result v0
if-nez v0, :cond_0
.line 2
iget-object v0, p0, Lio/reactivex/rxjava3/subjects/PublishSubject$PublishDisposable;->downstream:Lai/n0;
invoke-interface {v0, p1}, Lai/n0;->onNext(Ljava/lang/Object;)V
:cond_0
return-void
.end method
@@ -0,0 +1,671 @@
.class public final Lio/reactivex/rxjava3/subjects/PublishSubject;
.super Lio/reactivex/rxjava3/subjects/c;
.source "PublishSubject.java"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lio/reactivex/rxjava3/subjects/PublishSubject$PublishDisposable;
}
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">",
"Lio/reactivex/rxjava3/subjects/c<",
"TT;>;"
}
.end annotation
# static fields
.field public static final c:[Lio/reactivex/rxjava3/subjects/PublishSubject$PublishDisposable;
.field public static final d:[Lio/reactivex/rxjava3/subjects/PublishSubject$PublishDisposable;
# instance fields
.field public final a:Ljava/util/concurrent/atomic/AtomicReference;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/concurrent/atomic/AtomicReference<",
"[",
"Lio/reactivex/rxjava3/subjects/PublishSubject$PublishDisposable<",
"TT;>;>;"
}
.end annotation
.end field
.field public b:Ljava/lang/Throwable;
# direct methods
.method public static constructor <clinit>()V
.locals 2
const/4 v0, 0x0
new-array v1, v0, [Lio/reactivex/rxjava3/subjects/PublishSubject$PublishDisposable;
.line 1
sput-object v1, Lio/reactivex/rxjava3/subjects/PublishSubject;->c:[Lio/reactivex/rxjava3/subjects/PublishSubject$PublishDisposable;
new-array v0, v0, [Lio/reactivex/rxjava3/subjects/PublishSubject$PublishDisposable;
.line 2
sput-object v0, Lio/reactivex/rxjava3/subjects/PublishSubject;->d:[Lio/reactivex/rxjava3/subjects/PublishSubject$PublishDisposable;
return-void
.end method
.method public constructor <init>()V
.locals 2
.line 1
invoke-direct {p0}, Lio/reactivex/rxjava3/subjects/c;-><init>()V
.line 2
new-instance v0, Ljava/util/concurrent/atomic/AtomicReference;
sget-object v1, Lio/reactivex/rxjava3/subjects/PublishSubject;->d:[Lio/reactivex/rxjava3/subjects/PublishSubject$PublishDisposable;
invoke-direct {v0, v1}, Ljava/util/concurrent/atomic/AtomicReference;-><init>(Ljava/lang/Object;)V
iput-object v0, p0, Lio/reactivex/rxjava3/subjects/PublishSubject;->a:Ljava/util/concurrent/atomic/AtomicReference;
return-void
.end method
.method public static O8()Lio/reactivex/rxjava3/subjects/PublishSubject;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">()",
"Lio/reactivex/rxjava3/subjects/PublishSubject<",
"TT;>;"
}
.end annotation
.annotation runtime Lio/reactivex/rxjava3/annotations/CheckReturnValue;
.end annotation
.annotation build Lio/reactivex/rxjava3/annotations/NonNull;
.end annotation
.line 1
new-instance v0, Lio/reactivex/rxjava3/subjects/PublishSubject;
invoke-direct {v0}, Lio/reactivex/rxjava3/subjects/PublishSubject;-><init>()V
return-object v0
.end method
# virtual methods
.method public I8()Ljava/lang/Throwable;
.locals 2
.annotation runtime Lio/reactivex/rxjava3/annotations/CheckReturnValue;
.end annotation
.annotation build Lio/reactivex/rxjava3/annotations/Nullable;
.end annotation
.line 1
iget-object v0, p0, Lio/reactivex/rxjava3/subjects/PublishSubject;->a:Ljava/util/concurrent/atomic/AtomicReference;
invoke-virtual {v0}, Ljava/util/concurrent/atomic/AtomicReference;->get()Ljava/lang/Object;
move-result-object v0
sget-object v1, Lio/reactivex/rxjava3/subjects/PublishSubject;->c:[Lio/reactivex/rxjava3/subjects/PublishSubject$PublishDisposable;
if-ne v0, v1, :cond_0
.line 2
iget-object v0, p0, Lio/reactivex/rxjava3/subjects/PublishSubject;->b:Ljava/lang/Throwable;
return-object v0
:cond_0
const/4 v0, 0x0
return-object v0
.end method
.method public J8()Z
.locals 2
.annotation runtime Lio/reactivex/rxjava3/annotations/CheckReturnValue;
.end annotation
.line 1
iget-object v0, p0, Lio/reactivex/rxjava3/subjects/PublishSubject;->a:Ljava/util/concurrent/atomic/AtomicReference;
invoke-virtual {v0}, Ljava/util/concurrent/atomic/AtomicReference;->get()Ljava/lang/Object;
move-result-object v0
sget-object v1, Lio/reactivex/rxjava3/subjects/PublishSubject;->c:[Lio/reactivex/rxjava3/subjects/PublishSubject$PublishDisposable;
if-ne v0, v1, :cond_0
iget-object v0, p0, Lio/reactivex/rxjava3/subjects/PublishSubject;->b: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
.annotation runtime Lio/reactivex/rxjava3/annotations/CheckReturnValue;
.end annotation
.line 1
iget-object v0, p0, Lio/reactivex/rxjava3/subjects/PublishSubject;->a: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/rxjava3/subjects/PublishSubject$PublishDisposable;
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 2
.annotation runtime Lio/reactivex/rxjava3/annotations/CheckReturnValue;
.end annotation
.line 1
iget-object v0, p0, Lio/reactivex/rxjava3/subjects/PublishSubject;->a:Ljava/util/concurrent/atomic/AtomicReference;
invoke-virtual {v0}, Ljava/util/concurrent/atomic/AtomicReference;->get()Ljava/lang/Object;
move-result-object v0
sget-object v1, Lio/reactivex/rxjava3/subjects/PublishSubject;->c:[Lio/reactivex/rxjava3/subjects/PublishSubject$PublishDisposable;
if-ne v0, v1, :cond_0
iget-object v0, p0, Lio/reactivex/rxjava3/subjects/PublishSubject;->b: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(Lio/reactivex/rxjava3/subjects/PublishSubject$PublishDisposable;)Z
.locals 4
.annotation system Ldalvik/annotation/MethodParameters;
accessFlags = {
0x0
}
names = {
"ps"
}
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lio/reactivex/rxjava3/subjects/PublishSubject$PublishDisposable<",
"TT;>;)Z"
}
.end annotation
.line 1
:cond_0
iget-object v0, p0, Lio/reactivex/rxjava3/subjects/PublishSubject;->a: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/rxjava3/subjects/PublishSubject$PublishDisposable;
.line 2
sget-object v1, Lio/reactivex/rxjava3/subjects/PublishSubject;->c:[Lio/reactivex/rxjava3/subjects/PublishSubject$PublishDisposable;
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/rxjava3/subjects/PublishSubject$PublishDisposable;
.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/rxjava3/subjects/PublishSubject;->a: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 P8(Lio/reactivex/rxjava3/subjects/PublishSubject$PublishDisposable;)V
.locals 6
.annotation system Ldalvik/annotation/MethodParameters;
accessFlags = {
0x0
}
names = {
"ps"
}
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lio/reactivex/rxjava3/subjects/PublishSubject$PublishDisposable<",
"TT;>;)V"
}
.end annotation
.line 1
:cond_0
iget-object v0, p0, Lio/reactivex/rxjava3/subjects/PublishSubject;->a: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/rxjava3/subjects/PublishSubject$PublishDisposable;
.line 2
sget-object v1, Lio/reactivex/rxjava3/subjects/PublishSubject;->c:[Lio/reactivex/rxjava3/subjects/PublishSubject$PublishDisposable;
if-eq v0, v1, :cond_6
sget-object v1, Lio/reactivex/rxjava3/subjects/PublishSubject;->d:[Lio/reactivex/rxjava3/subjects/PublishSubject$PublishDisposable;
if-ne v0, v1, :cond_1
goto :goto_3
.line 3
:cond_1
array-length v1, v0
const/4 v2, -0x1
const/4 v3, 0x0
move v4, v3
:goto_0
if-ge v4, v1, :cond_3
.line 4
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 5
sget-object v1, Lio/reactivex/rxjava3/subjects/PublishSubject;->d:[Lio/reactivex/rxjava3/subjects/PublishSubject$PublishDisposable;
goto :goto_2
:cond_5
add-int/lit8 v5, v1, -0x1
.line 6
new-array v5, v5, [Lio/reactivex/rxjava3/subjects/PublishSubject$PublishDisposable;
.line 7
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 8
invoke-static {v0, v3, v5, v2, v1}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V
move-object v1, v5
.line 9
:goto_2
iget-object v2, p0, Lio/reactivex/rxjava3/subjects/PublishSubject;->a: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
:cond_6
:goto_3
return-void
.end method
.method public l6(Lai/n0;)V
.locals 2
.annotation system Ldalvik/annotation/MethodParameters;
accessFlags = {
0x0
}
names = {
"t"
}
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lai/n0<",
"-TT;>;)V"
}
.end annotation
.line 1
new-instance v0, Lio/reactivex/rxjava3/subjects/PublishSubject$PublishDisposable;
invoke-direct {v0, p1, p0}, Lio/reactivex/rxjava3/subjects/PublishSubject$PublishDisposable;-><init>(Lai/n0;Lio/reactivex/rxjava3/subjects/PublishSubject;)V
.line 2
invoke-interface {p1, v0}, Lai/n0;->onSubscribe(Lio/reactivex/rxjava3/disposables/c;)V
.line 3
invoke-virtual {p0, v0}, Lio/reactivex/rxjava3/subjects/PublishSubject;->N8(Lio/reactivex/rxjava3/subjects/PublishSubject$PublishDisposable;)Z
move-result v1
if-eqz v1, :cond_0
.line 4
invoke-virtual {v0}, Lio/reactivex/rxjava3/subjects/PublishSubject$PublishDisposable;->isDisposed()Z
move-result p1
if-eqz p1, :cond_2
.line 5
invoke-virtual {p0, v0}, Lio/reactivex/rxjava3/subjects/PublishSubject;->P8(Lio/reactivex/rxjava3/subjects/PublishSubject$PublishDisposable;)V
goto :goto_0
.line 6
:cond_0
iget-object v0, p0, Lio/reactivex/rxjava3/subjects/PublishSubject;->b:Ljava/lang/Throwable;
if-eqz v0, :cond_1
.line 7
invoke-interface {p1, v0}, Lai/n0;->onError(Ljava/lang/Throwable;)V
goto :goto_0
.line 8
:cond_1
invoke-interface {p1}, Lai/n0;->onComplete()V
:cond_2
:goto_0
return-void
.end method
.method public onComplete()V
.locals 4
.line 1
iget-object v0, p0, Lio/reactivex/rxjava3/subjects/PublishSubject;->a:Ljava/util/concurrent/atomic/AtomicReference;
invoke-virtual {v0}, Ljava/util/concurrent/atomic/AtomicReference;->get()Ljava/lang/Object;
move-result-object v0
sget-object v1, Lio/reactivex/rxjava3/subjects/PublishSubject;->c:[Lio/reactivex/rxjava3/subjects/PublishSubject$PublishDisposable;
if-ne v0, v1, :cond_0
return-void
.line 2
:cond_0
iget-object v0, p0, Lio/reactivex/rxjava3/subjects/PublishSubject;->a: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/rxjava3/subjects/PublishSubject$PublishDisposable;
array-length v1, v0
const/4 v2, 0x0
:goto_0
if-ge v2, v1, :cond_1
aget-object v3, v0, v2
.line 3
invoke-virtual {v3}, Lio/reactivex/rxjava3/subjects/PublishSubject$PublishDisposable;->onComplete()V
add-int/lit8 v2, v2, 0x1
goto :goto_0
:cond_1
return-void
.end method
.method public onError(Ljava/lang/Throwable;)V
.locals 4
.annotation system Ldalvik/annotation/MethodParameters;
accessFlags = {
0x0
}
names = {
"t"
}
.end annotation
const-string v0, "onError called with a null Throwable."
.line 1
invoke-static {p1, v0}, Lio/reactivex/rxjava3/internal/util/ExceptionHelper;->d(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
.line 2
iget-object v0, p0, Lio/reactivex/rxjava3/subjects/PublishSubject;->a:Ljava/util/concurrent/atomic/AtomicReference;
invoke-virtual {v0}, Ljava/util/concurrent/atomic/AtomicReference;->get()Ljava/lang/Object;
move-result-object v0
sget-object v1, Lio/reactivex/rxjava3/subjects/PublishSubject;->c:[Lio/reactivex/rxjava3/subjects/PublishSubject$PublishDisposable;
if-ne v0, v1, :cond_0
.line 3
invoke-static {p1}, Lji/a;->Y(Ljava/lang/Throwable;)V
return-void
.line 4
:cond_0
iput-object p1, p0, Lio/reactivex/rxjava3/subjects/PublishSubject;->b:Ljava/lang/Throwable;
.line 5
iget-object v0, p0, Lio/reactivex/rxjava3/subjects/PublishSubject;->a: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/rxjava3/subjects/PublishSubject$PublishDisposable;
array-length v1, v0
const/4 v2, 0x0
:goto_0
if-ge v2, v1, :cond_1
aget-object v3, v0, v2
.line 6
invoke-virtual {v3, p1}, Lio/reactivex/rxjava3/subjects/PublishSubject$PublishDisposable;->onError(Ljava/lang/Throwable;)V
add-int/lit8 v2, v2, 0x1
goto :goto_0
:cond_1
return-void
.end method
.method public onNext(Ljava/lang/Object;)V
.locals 4
.annotation system Ldalvik/annotation/MethodParameters;
accessFlags = {
0x0
}
names = {
"t"
}
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"(TT;)V"
}
.end annotation
const-string v0, "onNext called with a null value."
.line 1
invoke-static {p1, v0}, Lio/reactivex/rxjava3/internal/util/ExceptionHelper;->d(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
.line 2
iget-object v0, p0, Lio/reactivex/rxjava3/subjects/PublishSubject;->a: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/rxjava3/subjects/PublishSubject$PublishDisposable;
array-length v1, v0
const/4 v2, 0x0
:goto_0
if-ge v2, v1, :cond_0
aget-object v3, v0, v2
.line 3
invoke-virtual {v3, p1}, Lio/reactivex/rxjava3/subjects/PublishSubject$PublishDisposable;->onNext(Ljava/lang/Object;)V
add-int/lit8 v2, v2, 0x1
goto :goto_0
:cond_0
return-void
.end method
.method public onSubscribe(Lio/reactivex/rxjava3/disposables/c;)V
.locals 2
.annotation system Ldalvik/annotation/MethodParameters;
accessFlags = {
0x0
}
names = {
"d"
}
.end annotation
.line 1
iget-object v0, p0, Lio/reactivex/rxjava3/subjects/PublishSubject;->a:Ljava/util/concurrent/atomic/AtomicReference;
invoke-virtual {v0}, Ljava/util/concurrent/atomic/AtomicReference;->get()Ljava/lang/Object;
move-result-object v0
sget-object v1, Lio/reactivex/rxjava3/subjects/PublishSubject;->c:[Lio/reactivex/rxjava3/subjects/PublishSubject$PublishDisposable;
if-ne v0, v1, :cond_0
.line 2
invoke-interface {p1}, Lio/reactivex/rxjava3/disposables/c;->dispose()V
:cond_0
return-void
.end method
@@ -0,0 +1,67 @@
.class final Lio/reactivex/rxjava3/subjects/ReplaySubject$Node;
.super Ljava/util/concurrent/atomic/AtomicReference;
.source "ReplaySubject.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lio/reactivex/rxjava3/subjects/ReplaySubject;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = "Node"
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">",
"Ljava/util/concurrent/atomic/AtomicReference<",
"Lio/reactivex/rxjava3/subjects/ReplaySubject$Node<",
"TT;>;>;"
}
.end annotation
# static fields
.field private static final serialVersionUID:J = 0x58e06200f2edb94cL
# instance fields
.field public final value:Ljava/lang/Object;
.annotation system Ldalvik/annotation/Signature;
value = {
"TT;"
}
.end annotation
.end field
# direct methods
.method public constructor <init>(Ljava/lang/Object;)V
.locals 0
.annotation system Ldalvik/annotation/MethodParameters;
accessFlags = {
0x0
}
names = {
"value"
}
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"(TT;)V"
}
.end annotation
.line 1
invoke-direct {p0}, Ljava/util/concurrent/atomic/AtomicReference;-><init>()V
.line 2
iput-object p1, p0, Lio/reactivex/rxjava3/subjects/ReplaySubject$Node;->value:Ljava/lang/Object;
return-void
.end method
@@ -0,0 +1,125 @@
.class final Lio/reactivex/rxjava3/subjects/ReplaySubject$ReplayDisposable;
.super Ljava/util/concurrent/atomic/AtomicInteger;
.source "ReplaySubject.java"
# interfaces
.implements Lio/reactivex/rxjava3/disposables/c;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lio/reactivex/rxjava3/subjects/ReplaySubject;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = "ReplayDisposable"
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">",
"Ljava/util/concurrent/atomic/AtomicInteger;",
"Lio/reactivex/rxjava3/disposables/c;"
}
.end annotation
# static fields
.field private static final serialVersionUID:J = 0x679849349531b12L
# instance fields
.field public volatile cancelled:Z
.field public final downstream:Lai/n0;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lai/n0<",
"-TT;>;"
}
.end annotation
.end field
.field public index:Ljava/lang/Object;
.field public final state:Lio/reactivex/rxjava3/subjects/ReplaySubject;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lio/reactivex/rxjava3/subjects/ReplaySubject<",
"TT;>;"
}
.end annotation
.end field
# direct methods
.method public constructor <init>(Lai/n0;Lio/reactivex/rxjava3/subjects/ReplaySubject;)V
.locals 0
.annotation system Ldalvik/annotation/MethodParameters;
accessFlags = {
0x0,
0x0
}
names = {
"actual",
"state"
}
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lai/n0<",
"-TT;>;",
"Lio/reactivex/rxjava3/subjects/ReplaySubject<",
"TT;>;)V"
}
.end annotation
.line 1
invoke-direct {p0}, Ljava/util/concurrent/atomic/AtomicInteger;-><init>()V
.line 2
iput-object p1, p0, Lio/reactivex/rxjava3/subjects/ReplaySubject$ReplayDisposable;->downstream:Lai/n0;
.line 3
iput-object p2, p0, Lio/reactivex/rxjava3/subjects/ReplaySubject$ReplayDisposable;->state:Lio/reactivex/rxjava3/subjects/ReplaySubject;
return-void
.end method
# virtual methods
.method public dispose()V
.locals 1
.line 1
iget-boolean v0, p0, Lio/reactivex/rxjava3/subjects/ReplaySubject$ReplayDisposable;->cancelled:Z
if-nez v0, :cond_0
const/4 v0, 0x1
.line 2
iput-boolean v0, p0, Lio/reactivex/rxjava3/subjects/ReplaySubject$ReplayDisposable;->cancelled:Z
.line 3
iget-object v0, p0, Lio/reactivex/rxjava3/subjects/ReplaySubject$ReplayDisposable;->state:Lio/reactivex/rxjava3/subjects/ReplaySubject;
invoke-virtual {v0, p0}, Lio/reactivex/rxjava3/subjects/ReplaySubject;->a9(Lio/reactivex/rxjava3/subjects/ReplaySubject$ReplayDisposable;)V
:cond_0
return-void
.end method
.method public isDisposed()Z
.locals 1
.line 1
iget-boolean v0, p0, Lio/reactivex/rxjava3/subjects/ReplaySubject$ReplayDisposable;->cancelled:Z
return v0
.end method
@@ -0,0 +1,935 @@
.class final Lio/reactivex/rxjava3/subjects/ReplaySubject$SizeAndTimeBoundReplayBuffer;
.super Ljava/util/concurrent/atomic/AtomicReference;
.source "ReplaySubject.java"
# interfaces
.implements Lio/reactivex/rxjava3/subjects/ReplaySubject$a;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lio/reactivex/rxjava3/subjects/ReplaySubject;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = "SizeAndTimeBoundReplayBuffer"
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">",
"Ljava/util/concurrent/atomic/AtomicReference<",
"Ljava/lang/Object;",
">;",
"Lio/reactivex/rxjava3/subjects/ReplaySubject$a<",
"TT;>;"
}
.end annotation
# static fields
.field private static final serialVersionUID:J = -0x6fcd9699e42b76b5L
# instance fields
.field public volatile done:Z
.field public volatile head:Lio/reactivex/rxjava3/subjects/ReplaySubject$TimedNode;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lio/reactivex/rxjava3/subjects/ReplaySubject$TimedNode<",
"Ljava/lang/Object;",
">;"
}
.end annotation
.end field
.field public final maxAge:J
.field public final maxSize:I
.field public final scheduler:Lai/o0;
.field public size:I
.field public tail:Lio/reactivex/rxjava3/subjects/ReplaySubject$TimedNode;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lio/reactivex/rxjava3/subjects/ReplaySubject$TimedNode<",
"Ljava/lang/Object;",
">;"
}
.end annotation
.end field
.field public final unit:Ljava/util/concurrent/TimeUnit;
# direct methods
.method public constructor <init>(IJLjava/util/concurrent/TimeUnit;Lai/o0;)V
.locals 0
.annotation system Ldalvik/annotation/MethodParameters;
accessFlags = {
0x0,
0x0,
0x0,
0x0
}
names = {
"maxSize",
"maxAge",
"unit",
"scheduler"
}
.end annotation
.line 1
invoke-direct {p0}, Ljava/util/concurrent/atomic/AtomicReference;-><init>()V
.line 2
iput p1, p0, Lio/reactivex/rxjava3/subjects/ReplaySubject$SizeAndTimeBoundReplayBuffer;->maxSize:I
.line 3
iput-wide p2, p0, Lio/reactivex/rxjava3/subjects/ReplaySubject$SizeAndTimeBoundReplayBuffer;->maxAge:J
.line 4
iput-object p4, p0, Lio/reactivex/rxjava3/subjects/ReplaySubject$SizeAndTimeBoundReplayBuffer;->unit:Ljava/util/concurrent/TimeUnit;
.line 5
iput-object p5, p0, Lio/reactivex/rxjava3/subjects/ReplaySubject$SizeAndTimeBoundReplayBuffer;->scheduler:Lai/o0;
.line 6
new-instance p1, Lio/reactivex/rxjava3/subjects/ReplaySubject$TimedNode;
const/4 p2, 0x0
const-wide/16 p3, 0x0
invoke-direct {p1, p2, p3, p4}, Lio/reactivex/rxjava3/subjects/ReplaySubject$TimedNode;-><init>(Ljava/lang/Object;J)V
.line 7
iput-object p1, p0, Lio/reactivex/rxjava3/subjects/ReplaySubject$SizeAndTimeBoundReplayBuffer;->tail:Lio/reactivex/rxjava3/subjects/ReplaySubject$TimedNode;
.line 8
iput-object p1, p0, Lio/reactivex/rxjava3/subjects/ReplaySubject$SizeAndTimeBoundReplayBuffer;->head:Lio/reactivex/rxjava3/subjects/ReplaySubject$TimedNode;
return-void
.end method
# virtual methods
.method public add(Ljava/lang/Object;)V
.locals 3
.annotation system Ldalvik/annotation/MethodParameters;
accessFlags = {
0x0
}
names = {
"value"
}
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"(TT;)V"
}
.end annotation
.line 1
new-instance v0, Lio/reactivex/rxjava3/subjects/ReplaySubject$TimedNode;
iget-object v1, p0, Lio/reactivex/rxjava3/subjects/ReplaySubject$SizeAndTimeBoundReplayBuffer;->scheduler:Lai/o0;
iget-object v2, p0, Lio/reactivex/rxjava3/subjects/ReplaySubject$SizeAndTimeBoundReplayBuffer;->unit:Ljava/util/concurrent/TimeUnit;
invoke-virtual {v1, v2}, Lai/o0;->e(Ljava/util/concurrent/TimeUnit;)J
move-result-wide v1
invoke-direct {v0, p1, v1, v2}, Lio/reactivex/rxjava3/subjects/ReplaySubject$TimedNode;-><init>(Ljava/lang/Object;J)V
.line 2
iget-object p1, p0, Lio/reactivex/rxjava3/subjects/ReplaySubject$SizeAndTimeBoundReplayBuffer;->tail:Lio/reactivex/rxjava3/subjects/ReplaySubject$TimedNode;
.line 3
iput-object v0, p0, Lio/reactivex/rxjava3/subjects/ReplaySubject$SizeAndTimeBoundReplayBuffer;->tail:Lio/reactivex/rxjava3/subjects/ReplaySubject$TimedNode;
.line 4
iget v1, p0, Lio/reactivex/rxjava3/subjects/ReplaySubject$SizeAndTimeBoundReplayBuffer;->size:I
add-int/lit8 v1, v1, 0x1
iput v1, p0, Lio/reactivex/rxjava3/subjects/ReplaySubject$SizeAndTimeBoundReplayBuffer;->size:I
.line 5
invoke-virtual {p1, v0}, Ljava/util/concurrent/atomic/AtomicReference;->set(Ljava/lang/Object;)V
.line 6
invoke-virtual {p0}, Lio/reactivex/rxjava3/subjects/ReplaySubject$SizeAndTimeBoundReplayBuffer;->trim()V
return-void
.end method
.method public addFinal(Ljava/lang/Object;)V
.locals 3
.annotation system Ldalvik/annotation/MethodParameters;
accessFlags = {
0x0
}
names = {
"notificationLite"
}
.end annotation
.line 1
new-instance v0, Lio/reactivex/rxjava3/subjects/ReplaySubject$TimedNode;
const-wide v1, 0x7fffffffffffffffL
invoke-direct {v0, p1, v1, v2}, Lio/reactivex/rxjava3/subjects/ReplaySubject$TimedNode;-><init>(Ljava/lang/Object;J)V
.line 2
iget-object p1, p0, Lio/reactivex/rxjava3/subjects/ReplaySubject$SizeAndTimeBoundReplayBuffer;->tail:Lio/reactivex/rxjava3/subjects/ReplaySubject$TimedNode;
.line 3
iput-object v0, p0, Lio/reactivex/rxjava3/subjects/ReplaySubject$SizeAndTimeBoundReplayBuffer;->tail:Lio/reactivex/rxjava3/subjects/ReplaySubject$TimedNode;
.line 4
iget v1, p0, Lio/reactivex/rxjava3/subjects/ReplaySubject$SizeAndTimeBoundReplayBuffer;->size:I
const/4 v2, 0x1
add-int/2addr v1, v2
iput v1, p0, Lio/reactivex/rxjava3/subjects/ReplaySubject$SizeAndTimeBoundReplayBuffer;->size:I
.line 5
invoke-virtual {p1, v0}, Ljava/util/concurrent/atomic/AtomicReference;->lazySet(Ljava/lang/Object;)V
.line 6
invoke-virtual {p0}, Lio/reactivex/rxjava3/subjects/ReplaySubject$SizeAndTimeBoundReplayBuffer;->trimFinal()V
.line 7
iput-boolean v2, p0, Lio/reactivex/rxjava3/subjects/ReplaySubject$SizeAndTimeBoundReplayBuffer;->done:Z
return-void
.end method
.method public getHead()Lio/reactivex/rxjava3/subjects/ReplaySubject$TimedNode;
.locals 7
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Lio/reactivex/rxjava3/subjects/ReplaySubject$TimedNode<",
"Ljava/lang/Object;",
">;"
}
.end annotation
.line 1
iget-object v0, p0, Lio/reactivex/rxjava3/subjects/ReplaySubject$SizeAndTimeBoundReplayBuffer;->head:Lio/reactivex/rxjava3/subjects/ReplaySubject$TimedNode;
.line 2
iget-object v1, p0, Lio/reactivex/rxjava3/subjects/ReplaySubject$SizeAndTimeBoundReplayBuffer;->scheduler:Lai/o0;
iget-object v2, p0, Lio/reactivex/rxjava3/subjects/ReplaySubject$SizeAndTimeBoundReplayBuffer;->unit:Ljava/util/concurrent/TimeUnit;
invoke-virtual {v1, v2}, Lai/o0;->e(Ljava/util/concurrent/TimeUnit;)J
move-result-wide v1
iget-wide v3, p0, Lio/reactivex/rxjava3/subjects/ReplaySubject$SizeAndTimeBoundReplayBuffer;->maxAge:J
sub-long/2addr v1, v3
.line 3
invoke-virtual {v0}, Ljava/util/concurrent/atomic/AtomicReference;->get()Ljava/lang/Object;
move-result-object v3
check-cast v3, Lio/reactivex/rxjava3/subjects/ReplaySubject$TimedNode;
:goto_0
move-object v6, v3
move-object v3, v0
move-object v0, v6
if-eqz v0, :cond_1
.line 4
iget-wide v4, v0, Lio/reactivex/rxjava3/subjects/ReplaySubject$TimedNode;->time:J
cmp-long v4, v4, v1
if-lez v4, :cond_0
goto :goto_1
.line 5
:cond_0
invoke-virtual {v0}, Ljava/util/concurrent/atomic/AtomicReference;->get()Ljava/lang/Object;
move-result-object v3
check-cast v3, Lio/reactivex/rxjava3/subjects/ReplaySubject$TimedNode;
goto :goto_0
:cond_1
:goto_1
return-object v3
.end method
.method public getValue()Ljava/lang/Object;
.locals 7
.annotation system Ldalvik/annotation/Signature;
value = {
"()TT;"
}
.end annotation
.annotation build Lio/reactivex/rxjava3/annotations/Nullable;
.end annotation
.line 1
iget-object v0, p0, Lio/reactivex/rxjava3/subjects/ReplaySubject$SizeAndTimeBoundReplayBuffer;->head:Lio/reactivex/rxjava3/subjects/ReplaySubject$TimedNode;
const/4 v1, 0x0
move-object v2, v1
.line 2
:goto_0
invoke-virtual {v0}, Ljava/util/concurrent/atomic/AtomicReference;->get()Ljava/lang/Object;
move-result-object v3
check-cast v3, Lio/reactivex/rxjava3/subjects/ReplaySubject$TimedNode;
if-nez v3, :cond_4
.line 3
iget-object v3, p0, Lio/reactivex/rxjava3/subjects/ReplaySubject$SizeAndTimeBoundReplayBuffer;->scheduler:Lai/o0;
iget-object v4, p0, Lio/reactivex/rxjava3/subjects/ReplaySubject$SizeAndTimeBoundReplayBuffer;->unit:Ljava/util/concurrent/TimeUnit;
invoke-virtual {v3, v4}, Lai/o0;->e(Ljava/util/concurrent/TimeUnit;)J
move-result-wide v3
iget-wide v5, p0, Lio/reactivex/rxjava3/subjects/ReplaySubject$SizeAndTimeBoundReplayBuffer;->maxAge:J
sub-long/2addr v3, v5
.line 4
iget-wide v5, v0, Lio/reactivex/rxjava3/subjects/ReplaySubject$TimedNode;->time:J
cmp-long v3, v5, v3
if-gez v3, :cond_0
return-object v1
.line 5
:cond_0
iget-object v0, v0, Lio/reactivex/rxjava3/subjects/ReplaySubject$TimedNode;->value:Ljava/lang/Object;
if-nez v0, :cond_1
return-object v1
.line 6
:cond_1
invoke-static {v0}, Lio/reactivex/rxjava3/internal/util/NotificationLite;->isComplete(Ljava/lang/Object;)Z
move-result v1
if-nez v1, :cond_3
invoke-static {v0}, Lio/reactivex/rxjava3/internal/util/NotificationLite;->isError(Ljava/lang/Object;)Z
move-result v1
if-eqz v1, :cond_2
goto :goto_1
:cond_2
return-object v0
.line 7
:cond_3
:goto_1
iget-object v0, v2, Lio/reactivex/rxjava3/subjects/ReplaySubject$TimedNode;->value:Ljava/lang/Object;
return-object v0
:cond_4
move-object v2, v0
move-object v0, v3
goto :goto_0
.end method
.method public getValues([Ljava/lang/Object;)[Ljava/lang/Object;
.locals 5
.annotation system Ldalvik/annotation/MethodParameters;
accessFlags = {
0x0
}
names = {
"array"
}
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"([TT;)[TT;"
}
.end annotation
.line 1
invoke-virtual {p0}, Lio/reactivex/rxjava3/subjects/ReplaySubject$SizeAndTimeBoundReplayBuffer;->getHead()Lio/reactivex/rxjava3/subjects/ReplaySubject$TimedNode;
move-result-object v0
.line 2
invoke-virtual {p0, v0}, Lio/reactivex/rxjava3/subjects/ReplaySubject$SizeAndTimeBoundReplayBuffer;->size(Lio/reactivex/rxjava3/subjects/ReplaySubject$TimedNode;)I
move-result v1
const/4 v2, 0x0
const/4 v3, 0x0
if-nez v1, :cond_0
.line 3
array-length v0, p1
if-eqz v0, :cond_3
.line 4
aput-object v2, p1, v3
goto :goto_1
.line 5
:cond_0
array-length v4, p1
if-ge v4, v1, :cond_1
.line 6
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, v1}, Ljava/lang/reflect/Array;->newInstance(Ljava/lang/Class;I)Ljava/lang/Object;
move-result-object p1
check-cast p1, [Ljava/lang/Object;
:cond_1
:goto_0
if-eq v3, v1, :cond_2
.line 7
invoke-virtual {v0}, Ljava/util/concurrent/atomic/AtomicReference;->get()Ljava/lang/Object;
move-result-object v0
check-cast v0, Lio/reactivex/rxjava3/subjects/ReplaySubject$TimedNode;
.line 8
iget-object v4, v0, Lio/reactivex/rxjava3/subjects/ReplaySubject$TimedNode;->value:Ljava/lang/Object;
aput-object v4, p1, v3
add-int/lit8 v3, v3, 0x1
goto :goto_0
.line 9
:cond_2
array-length v0, p1
if-le v0, v1, :cond_3
.line 10
aput-object v2, p1, v1
:cond_3
:goto_1
return-object p1
.end method
.method public replay(Lio/reactivex/rxjava3/subjects/ReplaySubject$ReplayDisposable;)V
.locals 7
.annotation system Ldalvik/annotation/MethodParameters;
accessFlags = {
0x0
}
names = {
"rs"
}
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lio/reactivex/rxjava3/subjects/ReplaySubject$ReplayDisposable<",
"TT;>;)V"
}
.end annotation
.line 1
invoke-virtual {p1}, Ljava/util/concurrent/atomic/AtomicInteger;->getAndIncrement()I
move-result v0
if-eqz v0, :cond_0
return-void
.line 2
:cond_0
iget-object v0, p1, Lio/reactivex/rxjava3/subjects/ReplaySubject$ReplayDisposable;->downstream:Lai/n0;
.line 3
iget-object v1, p1, Lio/reactivex/rxjava3/subjects/ReplaySubject$ReplayDisposable;->index:Ljava/lang/Object;
check-cast v1, Lio/reactivex/rxjava3/subjects/ReplaySubject$TimedNode;
const/4 v2, 0x1
if-nez v1, :cond_1
.line 4
invoke-virtual {p0}, Lio/reactivex/rxjava3/subjects/ReplaySubject$SizeAndTimeBoundReplayBuffer;->getHead()Lio/reactivex/rxjava3/subjects/ReplaySubject$TimedNode;
move-result-object v1
:cond_1
move v3, v2
.line 5
:cond_2
:goto_0
iget-boolean v4, p1, Lio/reactivex/rxjava3/subjects/ReplaySubject$ReplayDisposable;->cancelled:Z
const/4 v5, 0x0
if-eqz v4, :cond_3
.line 6
iput-object v5, p1, Lio/reactivex/rxjava3/subjects/ReplaySubject$ReplayDisposable;->index:Ljava/lang/Object;
return-void
.line 7
:cond_3
invoke-virtual {v1}, Ljava/util/concurrent/atomic/AtomicReference;->get()Ljava/lang/Object;
move-result-object v4
check-cast v4, Lio/reactivex/rxjava3/subjects/ReplaySubject$TimedNode;
if-nez v4, :cond_4
.line 8
iput-object v1, p1, Lio/reactivex/rxjava3/subjects/ReplaySubject$ReplayDisposable;->index:Ljava/lang/Object;
neg-int v3, v3
.line 9
invoke-virtual {p1, v3}, Ljava/util/concurrent/atomic/AtomicInteger;->addAndGet(I)I
move-result v3
if-nez v3, :cond_2
return-void
.line 10
:cond_4
iget-object v1, v4, Lio/reactivex/rxjava3/subjects/ReplaySubject$TimedNode;->value:Ljava/lang/Object;
.line 11
iget-boolean v6, p0, Lio/reactivex/rxjava3/subjects/ReplaySubject$SizeAndTimeBoundReplayBuffer;->done:Z
if-eqz v6, :cond_6
.line 12
invoke-virtual {v4}, Ljava/util/concurrent/atomic/AtomicReference;->get()Ljava/lang/Object;
move-result-object v6
if-nez v6, :cond_6
.line 13
invoke-static {v1}, Lio/reactivex/rxjava3/internal/util/NotificationLite;->isComplete(Ljava/lang/Object;)Z
move-result v3
if-eqz v3, :cond_5
.line 14
invoke-interface {v0}, Lai/n0;->onComplete()V
goto :goto_1
.line 15
:cond_5
invoke-static {v1}, Lio/reactivex/rxjava3/internal/util/NotificationLite;->getError(Ljava/lang/Object;)Ljava/lang/Throwable;
move-result-object v1
invoke-interface {v0, v1}, Lai/n0;->onError(Ljava/lang/Throwable;)V
.line 16
:goto_1
iput-object v5, p1, Lio/reactivex/rxjava3/subjects/ReplaySubject$ReplayDisposable;->index:Ljava/lang/Object;
.line 17
iput-boolean v2, p1, Lio/reactivex/rxjava3/subjects/ReplaySubject$ReplayDisposable;->cancelled:Z
return-void
.line 18
:cond_6
invoke-interface {v0, v1}, Lai/n0;->onNext(Ljava/lang/Object;)V
move-object v1, v4
goto :goto_0
.end method
.method public size()I
.locals 1
.line 1
invoke-virtual {p0}, Lio/reactivex/rxjava3/subjects/ReplaySubject$SizeAndTimeBoundReplayBuffer;->getHead()Lio/reactivex/rxjava3/subjects/ReplaySubject$TimedNode;
move-result-object v0
invoke-virtual {p0, v0}, Lio/reactivex/rxjava3/subjects/ReplaySubject$SizeAndTimeBoundReplayBuffer;->size(Lio/reactivex/rxjava3/subjects/ReplaySubject$TimedNode;)I
move-result v0
return v0
.end method
.method public size(Lio/reactivex/rxjava3/subjects/ReplaySubject$TimedNode;)I
.locals 2
.annotation system Ldalvik/annotation/MethodParameters;
accessFlags = {
0x0
}
names = {
"h"
}
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lio/reactivex/rxjava3/subjects/ReplaySubject$TimedNode<",
"Ljava/lang/Object;",
">;)I"
}
.end annotation
const/4 v0, 0x0
:goto_0
const v1, 0x7fffffff
if-eq v0, v1, :cond_2
.line 2
invoke-virtual {p1}, Ljava/util/concurrent/atomic/AtomicReference;->get()Ljava/lang/Object;
move-result-object v1
check-cast v1, Lio/reactivex/rxjava3/subjects/ReplaySubject$TimedNode;
if-nez v1, :cond_1
.line 3
iget-object p1, p1, Lio/reactivex/rxjava3/subjects/ReplaySubject$TimedNode;->value:Ljava/lang/Object;
.line 4
invoke-static {p1}, Lio/reactivex/rxjava3/internal/util/NotificationLite;->isComplete(Ljava/lang/Object;)Z
move-result v1
if-nez v1, :cond_0
invoke-static {p1}, Lio/reactivex/rxjava3/internal/util/NotificationLite;->isError(Ljava/lang/Object;)Z
move-result p1
if-eqz p1, :cond_2
:cond_0
add-int/lit8 v0, v0, -0x1
goto :goto_1
:cond_1
add-int/lit8 v0, v0, 0x1
move-object p1, v1
goto :goto_0
:cond_2
:goto_1
return v0
.end method
.method public trim()V
.locals 7
.line 1
iget v0, p0, Lio/reactivex/rxjava3/subjects/ReplaySubject$SizeAndTimeBoundReplayBuffer;->size:I
iget v1, p0, Lio/reactivex/rxjava3/subjects/ReplaySubject$SizeAndTimeBoundReplayBuffer;->maxSize:I
const/4 v2, 0x1
if-le v0, v1, :cond_0
sub-int/2addr v0, v2
.line 2
iput v0, p0, Lio/reactivex/rxjava3/subjects/ReplaySubject$SizeAndTimeBoundReplayBuffer;->size:I
.line 3
iget-object v0, p0, Lio/reactivex/rxjava3/subjects/ReplaySubject$SizeAndTimeBoundReplayBuffer;->head:Lio/reactivex/rxjava3/subjects/ReplaySubject$TimedNode;
.line 4
invoke-virtual {v0}, Ljava/util/concurrent/atomic/AtomicReference;->get()Ljava/lang/Object;
move-result-object v0
check-cast v0, Lio/reactivex/rxjava3/subjects/ReplaySubject$TimedNode;
iput-object v0, p0, Lio/reactivex/rxjava3/subjects/ReplaySubject$SizeAndTimeBoundReplayBuffer;->head:Lio/reactivex/rxjava3/subjects/ReplaySubject$TimedNode;
.line 5
:cond_0
iget-object v0, p0, Lio/reactivex/rxjava3/subjects/ReplaySubject$SizeAndTimeBoundReplayBuffer;->scheduler:Lai/o0;
iget-object v1, p0, Lio/reactivex/rxjava3/subjects/ReplaySubject$SizeAndTimeBoundReplayBuffer;->unit:Ljava/util/concurrent/TimeUnit;
invoke-virtual {v0, v1}, Lai/o0;->e(Ljava/util/concurrent/TimeUnit;)J
move-result-wide v0
iget-wide v3, p0, Lio/reactivex/rxjava3/subjects/ReplaySubject$SizeAndTimeBoundReplayBuffer;->maxAge:J
sub-long/2addr v0, v3
.line 6
iget-object v3, p0, Lio/reactivex/rxjava3/subjects/ReplaySubject$SizeAndTimeBoundReplayBuffer;->head:Lio/reactivex/rxjava3/subjects/ReplaySubject$TimedNode;
.line 7
:goto_0
iget v4, p0, Lio/reactivex/rxjava3/subjects/ReplaySubject$SizeAndTimeBoundReplayBuffer;->size:I
if-gt v4, v2, :cond_1
.line 8
iput-object v3, p0, Lio/reactivex/rxjava3/subjects/ReplaySubject$SizeAndTimeBoundReplayBuffer;->head:Lio/reactivex/rxjava3/subjects/ReplaySubject$TimedNode;
goto :goto_1
.line 9
:cond_1
invoke-virtual {v3}, Ljava/util/concurrent/atomic/AtomicReference;->get()Ljava/lang/Object;
move-result-object v4
check-cast v4, Lio/reactivex/rxjava3/subjects/ReplaySubject$TimedNode;
.line 10
iget-wide v5, v4, Lio/reactivex/rxjava3/subjects/ReplaySubject$TimedNode;->time:J
cmp-long v5, v5, v0
if-lez v5, :cond_2
.line 11
iput-object v3, p0, Lio/reactivex/rxjava3/subjects/ReplaySubject$SizeAndTimeBoundReplayBuffer;->head:Lio/reactivex/rxjava3/subjects/ReplaySubject$TimedNode;
:goto_1
return-void
.line 12
:cond_2
iget v3, p0, Lio/reactivex/rxjava3/subjects/ReplaySubject$SizeAndTimeBoundReplayBuffer;->size:I
sub-int/2addr v3, v2
iput v3, p0, Lio/reactivex/rxjava3/subjects/ReplaySubject$SizeAndTimeBoundReplayBuffer;->size:I
move-object v3, v4
goto :goto_0
.end method
.method public trimFinal()V
.locals 10
.line 1
iget-object v0, p0, Lio/reactivex/rxjava3/subjects/ReplaySubject$SizeAndTimeBoundReplayBuffer;->scheduler:Lai/o0;
iget-object v1, p0, Lio/reactivex/rxjava3/subjects/ReplaySubject$SizeAndTimeBoundReplayBuffer;->unit:Ljava/util/concurrent/TimeUnit;
invoke-virtual {v0, v1}, Lai/o0;->e(Ljava/util/concurrent/TimeUnit;)J
move-result-wide v0
iget-wide v2, p0, Lio/reactivex/rxjava3/subjects/ReplaySubject$SizeAndTimeBoundReplayBuffer;->maxAge:J
sub-long/2addr v0, v2
.line 2
iget-object v2, p0, Lio/reactivex/rxjava3/subjects/ReplaySubject$SizeAndTimeBoundReplayBuffer;->head:Lio/reactivex/rxjava3/subjects/ReplaySubject$TimedNode;
.line 3
:goto_0
invoke-virtual {v2}, Ljava/util/concurrent/atomic/AtomicReference;->get()Ljava/lang/Object;
move-result-object v3
check-cast v3, Lio/reactivex/rxjava3/subjects/ReplaySubject$TimedNode;
.line 4
invoke-virtual {v3}, Ljava/util/concurrent/atomic/AtomicReference;->get()Ljava/lang/Object;
move-result-object v4
const-wide/16 v5, 0x0
const/4 v7, 0x0
if-nez v4, :cond_1
.line 5
iget-object v0, v2, Lio/reactivex/rxjava3/subjects/ReplaySubject$TimedNode;->value:Ljava/lang/Object;
if-eqz v0, :cond_0
.line 6
new-instance v0, Lio/reactivex/rxjava3/subjects/ReplaySubject$TimedNode;
invoke-direct {v0, v7, v5, v6}, Lio/reactivex/rxjava3/subjects/ReplaySubject$TimedNode;-><init>(Ljava/lang/Object;J)V
.line 7
invoke-virtual {v2}, Ljava/util/concurrent/atomic/AtomicReference;->get()Ljava/lang/Object;
move-result-object v1
invoke-virtual {v0, v1}, Ljava/util/concurrent/atomic/AtomicReference;->lazySet(Ljava/lang/Object;)V
.line 8
iput-object v0, p0, Lio/reactivex/rxjava3/subjects/ReplaySubject$SizeAndTimeBoundReplayBuffer;->head:Lio/reactivex/rxjava3/subjects/ReplaySubject$TimedNode;
goto :goto_1
.line 9
:cond_0
iput-object v2, p0, Lio/reactivex/rxjava3/subjects/ReplaySubject$SizeAndTimeBoundReplayBuffer;->head:Lio/reactivex/rxjava3/subjects/ReplaySubject$TimedNode;
goto :goto_1
.line 10
:cond_1
iget-wide v8, v3, Lio/reactivex/rxjava3/subjects/ReplaySubject$TimedNode;->time:J
cmp-long v4, v8, v0
if-lez v4, :cond_3
.line 11
iget-object v0, v2, Lio/reactivex/rxjava3/subjects/ReplaySubject$TimedNode;->value:Ljava/lang/Object;
if-eqz v0, :cond_2
.line 12
new-instance v0, Lio/reactivex/rxjava3/subjects/ReplaySubject$TimedNode;
invoke-direct {v0, v7, v5, v6}, Lio/reactivex/rxjava3/subjects/ReplaySubject$TimedNode;-><init>(Ljava/lang/Object;J)V
.line 13
invoke-virtual {v2}, Ljava/util/concurrent/atomic/AtomicReference;->get()Ljava/lang/Object;
move-result-object v1
invoke-virtual {v0, v1}, Ljava/util/concurrent/atomic/AtomicReference;->lazySet(Ljava/lang/Object;)V
.line 14
iput-object v0, p0, Lio/reactivex/rxjava3/subjects/ReplaySubject$SizeAndTimeBoundReplayBuffer;->head:Lio/reactivex/rxjava3/subjects/ReplaySubject$TimedNode;
goto :goto_1
.line 15
:cond_2
iput-object v2, p0, Lio/reactivex/rxjava3/subjects/ReplaySubject$SizeAndTimeBoundReplayBuffer;->head:Lio/reactivex/rxjava3/subjects/ReplaySubject$TimedNode;
:goto_1
return-void
:cond_3
move-object v2, v3
goto :goto_0
.end method
.method public trimHead()V
.locals 5
.line 1
iget-object v0, p0, Lio/reactivex/rxjava3/subjects/ReplaySubject$SizeAndTimeBoundReplayBuffer;->head:Lio/reactivex/rxjava3/subjects/ReplaySubject$TimedNode;
.line 2
iget-object v1, v0, Lio/reactivex/rxjava3/subjects/ReplaySubject$TimedNode;->value:Ljava/lang/Object;
if-eqz v1, :cond_0
.line 3
new-instance v1, Lio/reactivex/rxjava3/subjects/ReplaySubject$TimedNode;
const/4 v2, 0x0
const-wide/16 v3, 0x0
invoke-direct {v1, v2, v3, v4}, Lio/reactivex/rxjava3/subjects/ReplaySubject$TimedNode;-><init>(Ljava/lang/Object;J)V
.line 4
invoke-virtual {v0}, Ljava/util/concurrent/atomic/AtomicReference;->get()Ljava/lang/Object;
move-result-object v0
invoke-virtual {v1, v0}, Ljava/util/concurrent/atomic/AtomicReference;->lazySet(Ljava/lang/Object;)V
.line 5
iput-object v1, p0, Lio/reactivex/rxjava3/subjects/ReplaySubject$SizeAndTimeBoundReplayBuffer;->head:Lio/reactivex/rxjava3/subjects/ReplaySubject$TimedNode;
:cond_0
return-void
.end method
@@ -0,0 +1,618 @@
.class final Lio/reactivex/rxjava3/subjects/ReplaySubject$SizeBoundReplayBuffer;
.super Ljava/util/concurrent/atomic/AtomicReference;
.source "ReplaySubject.java"
# interfaces
.implements Lio/reactivex/rxjava3/subjects/ReplaySubject$a;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lio/reactivex/rxjava3/subjects/ReplaySubject;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = "SizeBoundReplayBuffer"
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">",
"Ljava/util/concurrent/atomic/AtomicReference<",
"Ljava/lang/Object;",
">;",
"Lio/reactivex/rxjava3/subjects/ReplaySubject$a<",
"TT;>;"
}
.end annotation
# static fields
.field private static final serialVersionUID:J = 0xf5f291fe2c1030bL
# instance fields
.field public volatile done:Z
.field public volatile head:Lio/reactivex/rxjava3/subjects/ReplaySubject$Node;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lio/reactivex/rxjava3/subjects/ReplaySubject$Node<",
"Ljava/lang/Object;",
">;"
}
.end annotation
.end field
.field public final maxSize:I
.field public size:I
.field public tail:Lio/reactivex/rxjava3/subjects/ReplaySubject$Node;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lio/reactivex/rxjava3/subjects/ReplaySubject$Node<",
"Ljava/lang/Object;",
">;"
}
.end annotation
.end field
# direct methods
.method public constructor <init>(I)V
.locals 1
.annotation system Ldalvik/annotation/MethodParameters;
accessFlags = {
0x0
}
names = {
"maxSize"
}
.end annotation
.line 1
invoke-direct {p0}, Ljava/util/concurrent/atomic/AtomicReference;-><init>()V
.line 2
iput p1, p0, Lio/reactivex/rxjava3/subjects/ReplaySubject$SizeBoundReplayBuffer;->maxSize:I
.line 3
new-instance p1, Lio/reactivex/rxjava3/subjects/ReplaySubject$Node;
const/4 v0, 0x0
invoke-direct {p1, v0}, Lio/reactivex/rxjava3/subjects/ReplaySubject$Node;-><init>(Ljava/lang/Object;)V
.line 4
iput-object p1, p0, Lio/reactivex/rxjava3/subjects/ReplaySubject$SizeBoundReplayBuffer;->tail:Lio/reactivex/rxjava3/subjects/ReplaySubject$Node;
.line 5
iput-object p1, p0, Lio/reactivex/rxjava3/subjects/ReplaySubject$SizeBoundReplayBuffer;->head:Lio/reactivex/rxjava3/subjects/ReplaySubject$Node;
return-void
.end method
# virtual methods
.method public add(Ljava/lang/Object;)V
.locals 2
.annotation system Ldalvik/annotation/MethodParameters;
accessFlags = {
0x0
}
names = {
"value"
}
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"(TT;)V"
}
.end annotation
.line 1
new-instance v0, Lio/reactivex/rxjava3/subjects/ReplaySubject$Node;
invoke-direct {v0, p1}, Lio/reactivex/rxjava3/subjects/ReplaySubject$Node;-><init>(Ljava/lang/Object;)V
.line 2
iget-object p1, p0, Lio/reactivex/rxjava3/subjects/ReplaySubject$SizeBoundReplayBuffer;->tail:Lio/reactivex/rxjava3/subjects/ReplaySubject$Node;
.line 3
iput-object v0, p0, Lio/reactivex/rxjava3/subjects/ReplaySubject$SizeBoundReplayBuffer;->tail:Lio/reactivex/rxjava3/subjects/ReplaySubject$Node;
.line 4
iget v1, p0, Lio/reactivex/rxjava3/subjects/ReplaySubject$SizeBoundReplayBuffer;->size:I
add-int/lit8 v1, v1, 0x1
iput v1, p0, Lio/reactivex/rxjava3/subjects/ReplaySubject$SizeBoundReplayBuffer;->size:I
.line 5
invoke-virtual {p1, v0}, Ljava/util/concurrent/atomic/AtomicReference;->set(Ljava/lang/Object;)V
.line 6
invoke-virtual {p0}, Lio/reactivex/rxjava3/subjects/ReplaySubject$SizeBoundReplayBuffer;->trim()V
return-void
.end method
.method public addFinal(Ljava/lang/Object;)V
.locals 3
.annotation system Ldalvik/annotation/MethodParameters;
accessFlags = {
0x0
}
names = {
"notificationLite"
}
.end annotation
.line 1
new-instance v0, Lio/reactivex/rxjava3/subjects/ReplaySubject$Node;
invoke-direct {v0, p1}, Lio/reactivex/rxjava3/subjects/ReplaySubject$Node;-><init>(Ljava/lang/Object;)V
.line 2
iget-object p1, p0, Lio/reactivex/rxjava3/subjects/ReplaySubject$SizeBoundReplayBuffer;->tail:Lio/reactivex/rxjava3/subjects/ReplaySubject$Node;
.line 3
iput-object v0, p0, Lio/reactivex/rxjava3/subjects/ReplaySubject$SizeBoundReplayBuffer;->tail:Lio/reactivex/rxjava3/subjects/ReplaySubject$Node;
.line 4
iget v1, p0, Lio/reactivex/rxjava3/subjects/ReplaySubject$SizeBoundReplayBuffer;->size:I
const/4 v2, 0x1
add-int/2addr v1, v2
iput v1, p0, Lio/reactivex/rxjava3/subjects/ReplaySubject$SizeBoundReplayBuffer;->size:I
.line 5
invoke-virtual {p1, v0}, Ljava/util/concurrent/atomic/AtomicReference;->lazySet(Ljava/lang/Object;)V
.line 6
invoke-virtual {p0}, Lio/reactivex/rxjava3/subjects/ReplaySubject$SizeBoundReplayBuffer;->trimHead()V
.line 7
iput-boolean v2, p0, Lio/reactivex/rxjava3/subjects/ReplaySubject$SizeBoundReplayBuffer;->done:Z
return-void
.end method
.method public getValue()Ljava/lang/Object;
.locals 4
.annotation system Ldalvik/annotation/Signature;
value = {
"()TT;"
}
.end annotation
.annotation build Lio/reactivex/rxjava3/annotations/Nullable;
.end annotation
.line 1
iget-object v0, p0, Lio/reactivex/rxjava3/subjects/ReplaySubject$SizeBoundReplayBuffer;->head:Lio/reactivex/rxjava3/subjects/ReplaySubject$Node;
const/4 v1, 0x0
move-object v2, v1
.line 2
:goto_0
invoke-virtual {v0}, Ljava/util/concurrent/atomic/AtomicReference;->get()Ljava/lang/Object;
move-result-object v3
check-cast v3, Lio/reactivex/rxjava3/subjects/ReplaySubject$Node;
if-nez v3, :cond_3
.line 3
iget-object v0, v0, Lio/reactivex/rxjava3/subjects/ReplaySubject$Node;->value:Ljava/lang/Object;
if-nez v0, :cond_0
return-object v1
.line 4
:cond_0
invoke-static {v0}, Lio/reactivex/rxjava3/internal/util/NotificationLite;->isComplete(Ljava/lang/Object;)Z
move-result v1
if-nez v1, :cond_2
invoke-static {v0}, Lio/reactivex/rxjava3/internal/util/NotificationLite;->isError(Ljava/lang/Object;)Z
move-result v1
if-eqz v1, :cond_1
goto :goto_1
:cond_1
return-object v0
.line 5
:cond_2
:goto_1
iget-object v0, v2, Lio/reactivex/rxjava3/subjects/ReplaySubject$Node;->value:Ljava/lang/Object;
return-object v0
:cond_3
move-object v2, v0
move-object v0, v3
goto :goto_0
.end method
.method public getValues([Ljava/lang/Object;)[Ljava/lang/Object;
.locals 5
.annotation system Ldalvik/annotation/MethodParameters;
accessFlags = {
0x0
}
names = {
"array"
}
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"([TT;)[TT;"
}
.end annotation
.line 1
iget-object v0, p0, Lio/reactivex/rxjava3/subjects/ReplaySubject$SizeBoundReplayBuffer;->head:Lio/reactivex/rxjava3/subjects/ReplaySubject$Node;
.line 2
invoke-virtual {p0}, Lio/reactivex/rxjava3/subjects/ReplaySubject$SizeBoundReplayBuffer;->size()I
move-result v1
const/4 v2, 0x0
const/4 v3, 0x0
if-nez v1, :cond_0
.line 3
array-length v0, p1
if-eqz v0, :cond_3
.line 4
aput-object v2, p1, v3
goto :goto_1
.line 5
:cond_0
array-length v4, p1
if-ge v4, v1, :cond_1
.line 6
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, v1}, Ljava/lang/reflect/Array;->newInstance(Ljava/lang/Class;I)Ljava/lang/Object;
move-result-object p1
check-cast p1, [Ljava/lang/Object;
:cond_1
:goto_0
if-eq v3, v1, :cond_2
.line 7
invoke-virtual {v0}, Ljava/util/concurrent/atomic/AtomicReference;->get()Ljava/lang/Object;
move-result-object v0
check-cast v0, Lio/reactivex/rxjava3/subjects/ReplaySubject$Node;
.line 8
iget-object v4, v0, Lio/reactivex/rxjava3/subjects/ReplaySubject$Node;->value:Ljava/lang/Object;
aput-object v4, p1, v3
add-int/lit8 v3, v3, 0x1
goto :goto_0
.line 9
:cond_2
array-length v0, p1
if-le v0, v1, :cond_3
.line 10
aput-object v2, p1, v1
:cond_3
:goto_1
return-object p1
.end method
.method public replay(Lio/reactivex/rxjava3/subjects/ReplaySubject$ReplayDisposable;)V
.locals 7
.annotation system Ldalvik/annotation/MethodParameters;
accessFlags = {
0x0
}
names = {
"rs"
}
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lio/reactivex/rxjava3/subjects/ReplaySubject$ReplayDisposable<",
"TT;>;)V"
}
.end annotation
.line 1
invoke-virtual {p1}, Ljava/util/concurrent/atomic/AtomicInteger;->getAndIncrement()I
move-result v0
if-eqz v0, :cond_0
return-void
.line 2
:cond_0
iget-object v0, p1, Lio/reactivex/rxjava3/subjects/ReplaySubject$ReplayDisposable;->downstream:Lai/n0;
.line 3
iget-object v1, p1, Lio/reactivex/rxjava3/subjects/ReplaySubject$ReplayDisposable;->index:Ljava/lang/Object;
check-cast v1, Lio/reactivex/rxjava3/subjects/ReplaySubject$Node;
const/4 v2, 0x1
if-nez v1, :cond_1
.line 4
iget-object v1, p0, Lio/reactivex/rxjava3/subjects/ReplaySubject$SizeBoundReplayBuffer;->head:Lio/reactivex/rxjava3/subjects/ReplaySubject$Node;
:cond_1
move v3, v2
.line 5
:cond_2
:goto_0
iget-boolean v4, p1, Lio/reactivex/rxjava3/subjects/ReplaySubject$ReplayDisposable;->cancelled:Z
const/4 v5, 0x0
if-eqz v4, :cond_3
.line 6
iput-object v5, p1, Lio/reactivex/rxjava3/subjects/ReplaySubject$ReplayDisposable;->index:Ljava/lang/Object;
return-void
.line 7
:cond_3
invoke-virtual {v1}, Ljava/util/concurrent/atomic/AtomicReference;->get()Ljava/lang/Object;
move-result-object v4
check-cast v4, Lio/reactivex/rxjava3/subjects/ReplaySubject$Node;
if-nez v4, :cond_5
.line 8
invoke-virtual {v1}, Ljava/util/concurrent/atomic/AtomicReference;->get()Ljava/lang/Object;
move-result-object v4
if-eqz v4, :cond_4
goto :goto_0
.line 9
:cond_4
iput-object v1, p1, Lio/reactivex/rxjava3/subjects/ReplaySubject$ReplayDisposable;->index:Ljava/lang/Object;
neg-int v3, v3
.line 10
invoke-virtual {p1, v3}, Ljava/util/concurrent/atomic/AtomicInteger;->addAndGet(I)I
move-result v3
if-nez v3, :cond_2
return-void
.line 11
:cond_5
iget-object v1, v4, Lio/reactivex/rxjava3/subjects/ReplaySubject$Node;->value:Ljava/lang/Object;
.line 12
iget-boolean v6, p0, Lio/reactivex/rxjava3/subjects/ReplaySubject$SizeBoundReplayBuffer;->done:Z
if-eqz v6, :cond_7
.line 13
invoke-virtual {v4}, Ljava/util/concurrent/atomic/AtomicReference;->get()Ljava/lang/Object;
move-result-object v6
if-nez v6, :cond_7
.line 14
invoke-static {v1}, Lio/reactivex/rxjava3/internal/util/NotificationLite;->isComplete(Ljava/lang/Object;)Z
move-result v3
if-eqz v3, :cond_6
.line 15
invoke-interface {v0}, Lai/n0;->onComplete()V
goto :goto_1
.line 16
:cond_6
invoke-static {v1}, Lio/reactivex/rxjava3/internal/util/NotificationLite;->getError(Ljava/lang/Object;)Ljava/lang/Throwable;
move-result-object v1
invoke-interface {v0, v1}, Lai/n0;->onError(Ljava/lang/Throwable;)V
.line 17
:goto_1
iput-object v5, p1, Lio/reactivex/rxjava3/subjects/ReplaySubject$ReplayDisposable;->index:Ljava/lang/Object;
.line 18
iput-boolean v2, p1, Lio/reactivex/rxjava3/subjects/ReplaySubject$ReplayDisposable;->cancelled:Z
return-void
.line 19
:cond_7
invoke-interface {v0, v1}, Lai/n0;->onNext(Ljava/lang/Object;)V
move-object v1, v4
goto :goto_0
.end method
.method public size()I
.locals 3
.line 1
iget-object v0, p0, Lio/reactivex/rxjava3/subjects/ReplaySubject$SizeBoundReplayBuffer;->head:Lio/reactivex/rxjava3/subjects/ReplaySubject$Node;
const/4 v1, 0x0
:goto_0
const v2, 0x7fffffff
if-eq v1, v2, :cond_2
.line 2
invoke-virtual {v0}, Ljava/util/concurrent/atomic/AtomicReference;->get()Ljava/lang/Object;
move-result-object v2
check-cast v2, Lio/reactivex/rxjava3/subjects/ReplaySubject$Node;
if-nez v2, :cond_1
.line 3
iget-object v0, v0, Lio/reactivex/rxjava3/subjects/ReplaySubject$Node;->value:Ljava/lang/Object;
.line 4
invoke-static {v0}, Lio/reactivex/rxjava3/internal/util/NotificationLite;->isComplete(Ljava/lang/Object;)Z
move-result v2
if-nez v2, :cond_0
invoke-static {v0}, Lio/reactivex/rxjava3/internal/util/NotificationLite;->isError(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_2
:cond_0
add-int/lit8 v1, v1, -0x1
goto :goto_1
:cond_1
add-int/lit8 v1, v1, 0x1
move-object v0, v2
goto :goto_0
:cond_2
:goto_1
return v1
.end method
.method public trim()V
.locals 2
.line 1
iget v0, p0, Lio/reactivex/rxjava3/subjects/ReplaySubject$SizeBoundReplayBuffer;->size:I
iget v1, p0, Lio/reactivex/rxjava3/subjects/ReplaySubject$SizeBoundReplayBuffer;->maxSize:I
if-le v0, v1, :cond_0
add-int/lit8 v0, v0, -0x1
.line 2
iput v0, p0, Lio/reactivex/rxjava3/subjects/ReplaySubject$SizeBoundReplayBuffer;->size:I
.line 3
iget-object v0, p0, Lio/reactivex/rxjava3/subjects/ReplaySubject$SizeBoundReplayBuffer;->head:Lio/reactivex/rxjava3/subjects/ReplaySubject$Node;
.line 4
invoke-virtual {v0}, Ljava/util/concurrent/atomic/AtomicReference;->get()Ljava/lang/Object;
move-result-object v0
check-cast v0, Lio/reactivex/rxjava3/subjects/ReplaySubject$Node;
iput-object v0, p0, Lio/reactivex/rxjava3/subjects/ReplaySubject$SizeBoundReplayBuffer;->head:Lio/reactivex/rxjava3/subjects/ReplaySubject$Node;
:cond_0
return-void
.end method
.method public trimHead()V
.locals 3
.line 1
iget-object v0, p0, Lio/reactivex/rxjava3/subjects/ReplaySubject$SizeBoundReplayBuffer;->head:Lio/reactivex/rxjava3/subjects/ReplaySubject$Node;
.line 2
iget-object v1, v0, Lio/reactivex/rxjava3/subjects/ReplaySubject$Node;->value:Ljava/lang/Object;
if-eqz v1, :cond_0
.line 3
new-instance v1, Lio/reactivex/rxjava3/subjects/ReplaySubject$Node;
const/4 v2, 0x0
invoke-direct {v1, v2}, Lio/reactivex/rxjava3/subjects/ReplaySubject$Node;-><init>(Ljava/lang/Object;)V
.line 4
invoke-virtual {v0}, Ljava/util/concurrent/atomic/AtomicReference;->get()Ljava/lang/Object;
move-result-object v0
invoke-virtual {v1, v0}, Ljava/util/concurrent/atomic/AtomicReference;->lazySet(Ljava/lang/Object;)V
.line 5
iput-object v1, p0, Lio/reactivex/rxjava3/subjects/ReplaySubject$SizeBoundReplayBuffer;->head:Lio/reactivex/rxjava3/subjects/ReplaySubject$Node;
:cond_0
return-void
.end method
@@ -0,0 +1,74 @@
.class final Lio/reactivex/rxjava3/subjects/ReplaySubject$TimedNode;
.super Ljava/util/concurrent/atomic/AtomicReference;
.source "ReplaySubject.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lio/reactivex/rxjava3/subjects/ReplaySubject;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = "TimedNode"
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">",
"Ljava/util/concurrent/atomic/AtomicReference<",
"Lio/reactivex/rxjava3/subjects/ReplaySubject$TimedNode<",
"TT;>;>;"
}
.end annotation
# static fields
.field private static final serialVersionUID:J = 0x58e06200f2edb94cL
# instance fields
.field public final time:J
.field public final value:Ljava/lang/Object;
.annotation system Ldalvik/annotation/Signature;
value = {
"TT;"
}
.end annotation
.end field
# direct methods
.method public constructor <init>(Ljava/lang/Object;J)V
.locals 0
.annotation system Ldalvik/annotation/MethodParameters;
accessFlags = {
0x0,
0x0
}
names = {
"value",
"time"
}
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"(TT;J)V"
}
.end annotation
.line 1
invoke-direct {p0}, Ljava/util/concurrent/atomic/AtomicReference;-><init>()V
.line 2
iput-object p1, p0, Lio/reactivex/rxjava3/subjects/ReplaySubject$TimedNode;->value:Ljava/lang/Object;
.line 3
iput-wide p2, p0, Lio/reactivex/rxjava3/subjects/ReplaySubject$TimedNode;->time:J
return-void
.end method
@@ -0,0 +1,569 @@
.class final Lio/reactivex/rxjava3/subjects/ReplaySubject$UnboundedReplayBuffer;
.super Ljava/util/concurrent/atomic/AtomicReference;
.source "ReplaySubject.java"
# interfaces
.implements Lio/reactivex/rxjava3/subjects/ReplaySubject$a;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lio/reactivex/rxjava3/subjects/ReplaySubject;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = "UnboundedReplayBuffer"
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">",
"Ljava/util/concurrent/atomic/AtomicReference<",
"Ljava/lang/Object;",
">;",
"Lio/reactivex/rxjava3/subjects/ReplaySubject$a<",
"TT;>;"
}
.end annotation
# static fields
.field private static final serialVersionUID:J = -0xa2f4068c73be4b3L
# instance fields
.field public final buffer:Ljava/util/List;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/List<",
"Ljava/lang/Object;",
">;"
}
.end annotation
.end field
.field public volatile done:Z
.field public volatile size:I
# direct methods
.method public constructor <init>(I)V
.locals 1
.annotation system Ldalvik/annotation/MethodParameters;
accessFlags = {
0x0
}
names = {
"capacityHint"
}
.end annotation
.line 1
invoke-direct {p0}, Ljava/util/concurrent/atomic/AtomicReference;-><init>()V
.line 2
new-instance v0, Ljava/util/ArrayList;
invoke-direct {v0, p1}, Ljava/util/ArrayList;-><init>(I)V
iput-object v0, p0, Lio/reactivex/rxjava3/subjects/ReplaySubject$UnboundedReplayBuffer;->buffer:Ljava/util/List;
return-void
.end method
# virtual methods
.method public add(Ljava/lang/Object;)V
.locals 1
.annotation system Ldalvik/annotation/MethodParameters;
accessFlags = {
0x0
}
names = {
"value"
}
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"(TT;)V"
}
.end annotation
.line 1
iget-object v0, p0, Lio/reactivex/rxjava3/subjects/ReplaySubject$UnboundedReplayBuffer;->buffer:Ljava/util/List;
invoke-interface {v0, p1}, Ljava/util/List;->add(Ljava/lang/Object;)Z
.line 2
iget p1, p0, Lio/reactivex/rxjava3/subjects/ReplaySubject$UnboundedReplayBuffer;->size:I
add-int/lit8 p1, p1, 0x1
iput p1, p0, Lio/reactivex/rxjava3/subjects/ReplaySubject$UnboundedReplayBuffer;->size:I
return-void
.end method
.method public addFinal(Ljava/lang/Object;)V
.locals 1
.annotation system Ldalvik/annotation/MethodParameters;
accessFlags = {
0x0
}
names = {
"notificationLite"
}
.end annotation
.line 1
iget-object v0, p0, Lio/reactivex/rxjava3/subjects/ReplaySubject$UnboundedReplayBuffer;->buffer:Ljava/util/List;
invoke-interface {v0, p1}, Ljava/util/List;->add(Ljava/lang/Object;)Z
.line 2
invoke-virtual {p0}, Lio/reactivex/rxjava3/subjects/ReplaySubject$UnboundedReplayBuffer;->trimHead()V
.line 3
iget p1, p0, Lio/reactivex/rxjava3/subjects/ReplaySubject$UnboundedReplayBuffer;->size:I
const/4 v0, 0x1
add-int/2addr p1, v0
iput p1, p0, Lio/reactivex/rxjava3/subjects/ReplaySubject$UnboundedReplayBuffer;->size:I
.line 4
iput-boolean v0, p0, Lio/reactivex/rxjava3/subjects/ReplaySubject$UnboundedReplayBuffer;->done:Z
return-void
.end method
.method public getValue()Ljava/lang/Object;
.locals 5
.annotation system Ldalvik/annotation/Signature;
value = {
"()TT;"
}
.end annotation
.annotation build Lio/reactivex/rxjava3/annotations/Nullable;
.end annotation
.line 1
iget v0, p0, Lio/reactivex/rxjava3/subjects/ReplaySubject$UnboundedReplayBuffer;->size:I
const/4 v1, 0x0
if-eqz v0, :cond_3
.line 2
iget-object v2, p0, Lio/reactivex/rxjava3/subjects/ReplaySubject$UnboundedReplayBuffer;->buffer:Ljava/util/List;
add-int/lit8 v3, v0, -0x1
.line 3
invoke-interface {v2, v3}, Ljava/util/List;->get(I)Ljava/lang/Object;
move-result-object v3
.line 4
invoke-static {v3}, Lio/reactivex/rxjava3/internal/util/NotificationLite;->isComplete(Ljava/lang/Object;)Z
move-result v4
if-nez v4, :cond_1
invoke-static {v3}, Lio/reactivex/rxjava3/internal/util/NotificationLite;->isError(Ljava/lang/Object;)Z
move-result v4
if-eqz v4, :cond_0
goto :goto_0
:cond_0
return-object v3
:cond_1
:goto_0
const/4 v3, 0x1
if-ne v0, v3, :cond_2
return-object v1
:cond_2
add-int/lit8 v0, v0, -0x2
.line 5
invoke-interface {v2, v0}, Ljava/util/List;->get(I)Ljava/lang/Object;
move-result-object v0
return-object v0
:cond_3
return-object v1
.end method
.method public getValues([Ljava/lang/Object;)[Ljava/lang/Object;
.locals 6
.annotation system Ldalvik/annotation/MethodParameters;
accessFlags = {
0x0
}
names = {
"array"
}
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"([TT;)[TT;"
}
.end annotation
.line 1
iget v0, p0, Lio/reactivex/rxjava3/subjects/ReplaySubject$UnboundedReplayBuffer;->size:I
const/4 v1, 0x0
const/4 v2, 0x0
if-nez v0, :cond_1
.line 2
array-length v0, p1
if-eqz v0, :cond_0
.line 3
aput-object v1, p1, v2
:cond_0
return-object p1
.line 4
:cond_1
iget-object v3, p0, Lio/reactivex/rxjava3/subjects/ReplaySubject$UnboundedReplayBuffer;->buffer:Ljava/util/List;
add-int/lit8 v4, v0, -0x1
.line 5
invoke-interface {v3, v4}, Ljava/util/List;->get(I)Ljava/lang/Object;
move-result-object v4
.line 6
invoke-static {v4}, Lio/reactivex/rxjava3/internal/util/NotificationLite;->isComplete(Ljava/lang/Object;)Z
move-result v5
if-nez v5, :cond_2
invoke-static {v4}, Lio/reactivex/rxjava3/internal/util/NotificationLite;->isError(Ljava/lang/Object;)Z
move-result v4
if-eqz v4, :cond_4
:cond_2
add-int/lit8 v0, v0, -0x1
if-nez v0, :cond_4
.line 7
array-length v0, p1
if-eqz v0, :cond_3
.line 8
aput-object v1, p1, v2
:cond_3
return-object p1
.line 9
:cond_4
array-length v4, p1
if-ge v4, v0, :cond_5
.line 10
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, v0}, Ljava/lang/reflect/Array;->newInstance(Ljava/lang/Class;I)Ljava/lang/Object;
move-result-object p1
check-cast p1, [Ljava/lang/Object;
:cond_5
:goto_0
if-ge v2, v0, :cond_6
.line 11
invoke-interface {v3, v2}, Ljava/util/List;->get(I)Ljava/lang/Object;
move-result-object v4
aput-object v4, p1, v2
add-int/lit8 v2, v2, 0x1
goto :goto_0
.line 12
:cond_6
array-length v2, p1
if-le v2, v0, :cond_7
.line 13
aput-object v1, p1, v0
:cond_7
return-object p1
.end method
.method public replay(Lio/reactivex/rxjava3/subjects/ReplaySubject$ReplayDisposable;)V
.locals 9
.annotation system Ldalvik/annotation/MethodParameters;
accessFlags = {
0x0
}
names = {
"rs"
}
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lio/reactivex/rxjava3/subjects/ReplaySubject$ReplayDisposable<",
"TT;>;)V"
}
.end annotation
.line 1
invoke-virtual {p1}, Ljava/util/concurrent/atomic/AtomicInteger;->getAndIncrement()I
move-result v0
if-eqz v0, :cond_0
return-void
.line 2
:cond_0
iget-object v0, p0, Lio/reactivex/rxjava3/subjects/ReplaySubject$UnboundedReplayBuffer;->buffer:Ljava/util/List;
.line 3
iget-object v1, p1, Lio/reactivex/rxjava3/subjects/ReplaySubject$ReplayDisposable;->downstream:Lai/n0;
.line 4
iget-object v2, p1, Lio/reactivex/rxjava3/subjects/ReplaySubject$ReplayDisposable;->index:Ljava/lang/Object;
check-cast v2, Ljava/lang/Integer;
const/4 v3, 0x0
const/4 v4, 0x1
if-eqz v2, :cond_1
.line 5
invoke-virtual {v2}, Ljava/lang/Integer;->intValue()I
move-result v3
goto :goto_0
.line 6
:cond_1
invoke-static {v3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v2
iput-object v2, p1, Lio/reactivex/rxjava3/subjects/ReplaySubject$ReplayDisposable;->index:Ljava/lang/Object;
:goto_0
move v2, v4
.line 7
:cond_2
:goto_1
iget-boolean v5, p1, Lio/reactivex/rxjava3/subjects/ReplaySubject$ReplayDisposable;->cancelled:Z
const/4 v6, 0x0
if-eqz v5, :cond_3
.line 8
iput-object v6, p1, Lio/reactivex/rxjava3/subjects/ReplaySubject$ReplayDisposable;->index:Ljava/lang/Object;
return-void
.line 9
:cond_3
iget v5, p0, Lio/reactivex/rxjava3/subjects/ReplaySubject$UnboundedReplayBuffer;->size:I
:goto_2
if-eq v5, v3, :cond_7
.line 10
iget-boolean v7, p1, Lio/reactivex/rxjava3/subjects/ReplaySubject$ReplayDisposable;->cancelled:Z
if-eqz v7, :cond_4
.line 11
iput-object v6, p1, Lio/reactivex/rxjava3/subjects/ReplaySubject$ReplayDisposable;->index:Ljava/lang/Object;
return-void
.line 12
:cond_4
invoke-interface {v0, v3}, Ljava/util/List;->get(I)Ljava/lang/Object;
move-result-object v7
.line 13
iget-boolean v8, p0, Lio/reactivex/rxjava3/subjects/ReplaySubject$UnboundedReplayBuffer;->done:Z
if-eqz v8, :cond_6
add-int/lit8 v8, v3, 0x1
if-ne v8, v5, :cond_6
.line 14
iget v5, p0, Lio/reactivex/rxjava3/subjects/ReplaySubject$UnboundedReplayBuffer;->size:I
if-ne v8, v5, :cond_6
.line 15
invoke-static {v7}, Lio/reactivex/rxjava3/internal/util/NotificationLite;->isComplete(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_5
.line 16
invoke-interface {v1}, Lai/n0;->onComplete()V
goto :goto_3
.line 17
:cond_5
invoke-static {v7}, Lio/reactivex/rxjava3/internal/util/NotificationLite;->getError(Ljava/lang/Object;)Ljava/lang/Throwable;
move-result-object v0
invoke-interface {v1, v0}, Lai/n0;->onError(Ljava/lang/Throwable;)V
.line 18
:goto_3
iput-object v6, p1, Lio/reactivex/rxjava3/subjects/ReplaySubject$ReplayDisposable;->index:Ljava/lang/Object;
.line 19
iput-boolean v4, p1, Lio/reactivex/rxjava3/subjects/ReplaySubject$ReplayDisposable;->cancelled:Z
return-void
.line 20
:cond_6
invoke-interface {v1, v7}, Lai/n0;->onNext(Ljava/lang/Object;)V
add-int/lit8 v3, v3, 0x1
goto :goto_2
.line 21
:cond_7
iget v5, p0, Lio/reactivex/rxjava3/subjects/ReplaySubject$UnboundedReplayBuffer;->size:I
if-eq v3, v5, :cond_8
goto :goto_1
.line 22
:cond_8
invoke-static {v3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v5
iput-object v5, p1, Lio/reactivex/rxjava3/subjects/ReplaySubject$ReplayDisposable;->index:Ljava/lang/Object;
neg-int v2, v2
.line 23
invoke-virtual {p1, v2}, Ljava/util/concurrent/atomic/AtomicInteger;->addAndGet(I)I
move-result v2
if-nez v2, :cond_2
return-void
.end method
.method public size()I
.locals 4
.line 1
iget v0, p0, Lio/reactivex/rxjava3/subjects/ReplaySubject$UnboundedReplayBuffer;->size:I
if-eqz v0, :cond_2
.line 2
iget-object v1, p0, Lio/reactivex/rxjava3/subjects/ReplaySubject$UnboundedReplayBuffer;->buffer:Ljava/util/List;
add-int/lit8 v2, v0, -0x1
invoke-interface {v1, v2}, Ljava/util/List;->get(I)Ljava/lang/Object;
move-result-object v1
.line 3
invoke-static {v1}, Lio/reactivex/rxjava3/internal/util/NotificationLite;->isComplete(Ljava/lang/Object;)Z
move-result v3
if-nez v3, :cond_1
invoke-static {v1}, Lio/reactivex/rxjava3/internal/util/NotificationLite;->isError(Ljava/lang/Object;)Z
move-result v1
if-eqz v1, :cond_0
goto :goto_0
:cond_0
return v0
:cond_1
:goto_0
return v2
:cond_2
const/4 v0, 0x0
return v0
.end method
.method public trimHead()V
.locals 0
return-void
.end method
@@ -0,0 +1,122 @@
.class public interface abstract Lio/reactivex/rxjava3/subjects/ReplaySubject$a;
.super Ljava/lang/Object;
.source "ReplaySubject.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lio/reactivex/rxjava3/subjects/ReplaySubject;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x609
name = "a"
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">",
"Ljava/lang/Object;"
}
.end annotation
# virtual methods
.method public abstract add(Ljava/lang/Object;)V
.annotation system Ldalvik/annotation/MethodParameters;
accessFlags = {
0x0
}
names = {
"value"
}
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"(TT;)V"
}
.end annotation
.end method
.method public abstract addFinal(Ljava/lang/Object;)V
.annotation system Ldalvik/annotation/MethodParameters;
accessFlags = {
0x0
}
names = {
"notificationLite"
}
.end annotation
.end method
.method public abstract compareAndSet(Ljava/lang/Object;Ljava/lang/Object;)Z
.annotation system Ldalvik/annotation/MethodParameters;
accessFlags = {
0x0,
0x0
}
names = {
"expected",
"next"
}
.end annotation
.end method
.method public abstract get()Ljava/lang/Object;
.end method
.method public abstract getValue()Ljava/lang/Object;
.annotation system Ldalvik/annotation/Signature;
value = {
"()TT;"
}
.end annotation
.annotation build Lio/reactivex/rxjava3/annotations/Nullable;
.end annotation
.end method
.method public abstract getValues([Ljava/lang/Object;)[Ljava/lang/Object;
.annotation system Ldalvik/annotation/MethodParameters;
accessFlags = {
0x0
}
names = {
"array"
}
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"([TT;)[TT;"
}
.end annotation
.end method
.method public abstract replay(Lio/reactivex/rxjava3/subjects/ReplaySubject$ReplayDisposable;)V
.annotation system Ldalvik/annotation/MethodParameters;
accessFlags = {
0x0
}
names = {
"rs"
}
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lio/reactivex/rxjava3/subjects/ReplaySubject$ReplayDisposable<",
"TT;>;)V"
}
.end annotation
.end method
.method public abstract size()I
.end method
.method public abstract trimHead()V
.end method
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,125 @@
.class final Lio/reactivex/rxjava3/subjects/SingleSubject$SingleDisposable;
.super Ljava/util/concurrent/atomic/AtomicReference;
.source "SingleSubject.java"
# interfaces
.implements Lio/reactivex/rxjava3/disposables/c;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lio/reactivex/rxjava3/subjects/SingleSubject;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = "SingleDisposable"
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">",
"Ljava/util/concurrent/atomic/AtomicReference<",
"Lio/reactivex/rxjava3/subjects/SingleSubject<",
"TT;>;>;",
"Lio/reactivex/rxjava3/disposables/c;"
}
.end annotation
# static fields
.field private static final serialVersionUID:J = -0x6a2d77ea7e969284L
# instance fields
.field public final downstream:Lai/s0;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lai/s0<",
"-TT;>;"
}
.end annotation
.end field
# direct methods
.method public constructor <init>(Lai/s0;Lio/reactivex/rxjava3/subjects/SingleSubject;)V
.locals 0
.annotation system Ldalvik/annotation/MethodParameters;
accessFlags = {
0x0,
0x0
}
names = {
"actual",
"parent"
}
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lai/s0<",
"-TT;>;",
"Lio/reactivex/rxjava3/subjects/SingleSubject<",
"TT;>;)V"
}
.end annotation
.line 1
invoke-direct {p0}, Ljava/util/concurrent/atomic/AtomicReference;-><init>()V
.line 2
iput-object p1, p0, Lio/reactivex/rxjava3/subjects/SingleSubject$SingleDisposable;->downstream:Lai/s0;
.line 3
invoke-virtual {p0, p2}, Ljava/util/concurrent/atomic/AtomicReference;->lazySet(Ljava/lang/Object;)V
return-void
.end method
# virtual methods
.method public dispose()V
.locals 1
const/4 v0, 0x0
.line 1
invoke-virtual {p0, v0}, Ljava/util/concurrent/atomic/AtomicReference;->getAndSet(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Lio/reactivex/rxjava3/subjects/SingleSubject;
if-eqz v0, :cond_0
.line 2
invoke-virtual {v0, p0}, Lio/reactivex/rxjava3/subjects/SingleSubject;->Q2(Lio/reactivex/rxjava3/subjects/SingleSubject$SingleDisposable;)V
:cond_0
return-void
.end method
.method public isDisposed()Z
.locals 1
.line 1
invoke-virtual {p0}, Ljava/util/concurrent/atomic/AtomicReference;->get()Ljava/lang/Object;
move-result-object 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
@@ -0,0 +1,725 @@
.class public final Lio/reactivex/rxjava3/subjects/SingleSubject;
.super Lai/p0;
.source "SingleSubject.java"
# interfaces
.implements Lai/s0;
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lio/reactivex/rxjava3/subjects/SingleSubject$SingleDisposable;
}
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">",
"Lai/p0<",
"TT;>;",
"Lai/s0<",
"TT;>;"
}
.end annotation
# static fields
.field public static final e:[Lio/reactivex/rxjava3/subjects/SingleSubject$SingleDisposable;
.field public static final f:[Lio/reactivex/rxjava3/subjects/SingleSubject$SingleDisposable;
# instance fields
.field public final a:Ljava/util/concurrent/atomic/AtomicReference;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/concurrent/atomic/AtomicReference<",
"[",
"Lio/reactivex/rxjava3/subjects/SingleSubject$SingleDisposable<",
"TT;>;>;"
}
.end annotation
.end field
.field public final b:Ljava/util/concurrent/atomic/AtomicBoolean;
.field public c:Ljava/lang/Object;
.annotation system Ldalvik/annotation/Signature;
value = {
"TT;"
}
.end annotation
.end field
.field public d:Ljava/lang/Throwable;
# direct methods
.method public static constructor <clinit>()V
.locals 2
const/4 v0, 0x0
new-array v1, v0, [Lio/reactivex/rxjava3/subjects/SingleSubject$SingleDisposable;
.line 1
sput-object v1, Lio/reactivex/rxjava3/subjects/SingleSubject;->e:[Lio/reactivex/rxjava3/subjects/SingleSubject$SingleDisposable;
new-array v0, v0, [Lio/reactivex/rxjava3/subjects/SingleSubject$SingleDisposable;
.line 2
sput-object v0, Lio/reactivex/rxjava3/subjects/SingleSubject;->f:[Lio/reactivex/rxjava3/subjects/SingleSubject$SingleDisposable;
return-void
.end method
.method public constructor <init>()V
.locals 2
.line 1
invoke-direct {p0}, Lai/p0;-><init>()V
.line 2
new-instance v0, Ljava/util/concurrent/atomic/AtomicBoolean;
invoke-direct {v0}, Ljava/util/concurrent/atomic/AtomicBoolean;-><init>()V
iput-object v0, p0, Lio/reactivex/rxjava3/subjects/SingleSubject;->b:Ljava/util/concurrent/atomic/AtomicBoolean;
.line 3
new-instance v0, Ljava/util/concurrent/atomic/AtomicReference;
sget-object v1, Lio/reactivex/rxjava3/subjects/SingleSubject;->e:[Lio/reactivex/rxjava3/subjects/SingleSubject$SingleDisposable;
invoke-direct {v0, v1}, Ljava/util/concurrent/atomic/AtomicReference;-><init>(Ljava/lang/Object;)V
iput-object v0, p0, Lio/reactivex/rxjava3/subjects/SingleSubject;->a:Ljava/util/concurrent/atomic/AtomicReference;
return-void
.end method
.method public static J2()Lio/reactivex/rxjava3/subjects/SingleSubject;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">()",
"Lio/reactivex/rxjava3/subjects/SingleSubject<",
"TT;>;"
}
.end annotation
.annotation runtime Lio/reactivex/rxjava3/annotations/CheckReturnValue;
.end annotation
.annotation build Lio/reactivex/rxjava3/annotations/NonNull;
.end annotation
.line 1
new-instance v0, Lio/reactivex/rxjava3/subjects/SingleSubject;
invoke-direct {v0}, Lio/reactivex/rxjava3/subjects/SingleSubject;-><init>()V
return-object v0
.end method
# virtual methods
.method public I2(Lio/reactivex/rxjava3/subjects/SingleSubject$SingleDisposable;)Z
.locals 4
.param p1 # Lio/reactivex/rxjava3/subjects/SingleSubject$SingleDisposable;
.annotation build Lio/reactivex/rxjava3/annotations/NonNull;
.end annotation
.end param
.annotation system Ldalvik/annotation/MethodParameters;
accessFlags = {
0x0
}
names = {
"inner"
}
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lio/reactivex/rxjava3/subjects/SingleSubject$SingleDisposable<",
"TT;>;)Z"
}
.end annotation
.line 1
:cond_0
iget-object v0, p0, Lio/reactivex/rxjava3/subjects/SingleSubject;->a: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/rxjava3/subjects/SingleSubject$SingleDisposable;
.line 2
sget-object v1, Lio/reactivex/rxjava3/subjects/SingleSubject;->f:[Lio/reactivex/rxjava3/subjects/SingleSubject$SingleDisposable;
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/rxjava3/subjects/SingleSubject$SingleDisposable;
.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/rxjava3/subjects/SingleSubject;->a: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 K2()Ljava/lang/Throwable;
.locals 2
.annotation build Lio/reactivex/rxjava3/annotations/Nullable;
.end annotation
.line 1
iget-object v0, p0, Lio/reactivex/rxjava3/subjects/SingleSubject;->a:Ljava/util/concurrent/atomic/AtomicReference;
invoke-virtual {v0}, Ljava/util/concurrent/atomic/AtomicReference;->get()Ljava/lang/Object;
move-result-object v0
sget-object v1, Lio/reactivex/rxjava3/subjects/SingleSubject;->f:[Lio/reactivex/rxjava3/subjects/SingleSubject$SingleDisposable;
if-ne v0, v1, :cond_0
.line 2
iget-object v0, p0, Lio/reactivex/rxjava3/subjects/SingleSubject;->d:Ljava/lang/Throwable;
return-object v0
:cond_0
const/4 v0, 0x0
return-object v0
.end method
.method public L2()Ljava/lang/Object;
.locals 2
.annotation system Ldalvik/annotation/Signature;
value = {
"()TT;"
}
.end annotation
.annotation build Lio/reactivex/rxjava3/annotations/Nullable;
.end annotation
.line 1
iget-object v0, p0, Lio/reactivex/rxjava3/subjects/SingleSubject;->a:Ljava/util/concurrent/atomic/AtomicReference;
invoke-virtual {v0}, Ljava/util/concurrent/atomic/AtomicReference;->get()Ljava/lang/Object;
move-result-object v0
sget-object v1, Lio/reactivex/rxjava3/subjects/SingleSubject;->f:[Lio/reactivex/rxjava3/subjects/SingleSubject$SingleDisposable;
if-ne v0, v1, :cond_0
.line 2
iget-object v0, p0, Lio/reactivex/rxjava3/subjects/SingleSubject;->c:Ljava/lang/Object;
return-object v0
:cond_0
const/4 v0, 0x0
return-object v0
.end method
.method public M1(Lai/s0;)V
.locals 2
.param p1 # Lai/s0;
.annotation build Lio/reactivex/rxjava3/annotations/NonNull;
.end annotation
.end param
.annotation system Ldalvik/annotation/MethodParameters;
accessFlags = {
0x0
}
names = {
"observer"
}
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lai/s0<",
"-TT;>;)V"
}
.end annotation
.line 1
new-instance v0, Lio/reactivex/rxjava3/subjects/SingleSubject$SingleDisposable;
invoke-direct {v0, p1, p0}, Lio/reactivex/rxjava3/subjects/SingleSubject$SingleDisposable;-><init>(Lai/s0;Lio/reactivex/rxjava3/subjects/SingleSubject;)V
.line 2
invoke-interface {p1, v0}, Lai/s0;->onSubscribe(Lio/reactivex/rxjava3/disposables/c;)V
.line 3
invoke-virtual {p0, v0}, Lio/reactivex/rxjava3/subjects/SingleSubject;->I2(Lio/reactivex/rxjava3/subjects/SingleSubject$SingleDisposable;)Z
move-result v1
if-eqz v1, :cond_0
.line 4
invoke-virtual {v0}, Lio/reactivex/rxjava3/subjects/SingleSubject$SingleDisposable;->isDisposed()Z
move-result p1
if-eqz p1, :cond_2
.line 5
invoke-virtual {p0, v0}, Lio/reactivex/rxjava3/subjects/SingleSubject;->Q2(Lio/reactivex/rxjava3/subjects/SingleSubject$SingleDisposable;)V
goto :goto_0
.line 6
:cond_0
iget-object v0, p0, Lio/reactivex/rxjava3/subjects/SingleSubject;->d:Ljava/lang/Throwable;
if-eqz v0, :cond_1
.line 7
invoke-interface {p1, v0}, Lai/s0;->onError(Ljava/lang/Throwable;)V
goto :goto_0
.line 8
:cond_1
iget-object v0, p0, Lio/reactivex/rxjava3/subjects/SingleSubject;->c:Ljava/lang/Object;
invoke-interface {p1, v0}, Lai/s0;->onSuccess(Ljava/lang/Object;)V
:cond_2
:goto_0
return-void
.end method
.method public M2()Z
.locals 1
.line 1
iget-object v0, p0, Lio/reactivex/rxjava3/subjects/SingleSubject;->a: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/rxjava3/subjects/SingleSubject$SingleDisposable;
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 N2()Z
.locals 2
.line 1
iget-object v0, p0, Lio/reactivex/rxjava3/subjects/SingleSubject;->a:Ljava/util/concurrent/atomic/AtomicReference;
invoke-virtual {v0}, Ljava/util/concurrent/atomic/AtomicReference;->get()Ljava/lang/Object;
move-result-object v0
sget-object v1, Lio/reactivex/rxjava3/subjects/SingleSubject;->f:[Lio/reactivex/rxjava3/subjects/SingleSubject$SingleDisposable;
if-ne v0, v1, :cond_0
iget-object v0, p0, Lio/reactivex/rxjava3/subjects/SingleSubject;->d: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 O2()Z
.locals 2
.line 1
iget-object v0, p0, Lio/reactivex/rxjava3/subjects/SingleSubject;->a:Ljava/util/concurrent/atomic/AtomicReference;
invoke-virtual {v0}, Ljava/util/concurrent/atomic/AtomicReference;->get()Ljava/lang/Object;
move-result-object v0
sget-object v1, Lio/reactivex/rxjava3/subjects/SingleSubject;->f:[Lio/reactivex/rxjava3/subjects/SingleSubject$SingleDisposable;
if-ne v0, v1, :cond_0
iget-object v0, p0, Lio/reactivex/rxjava3/subjects/SingleSubject;->c:Ljava/lang/Object;
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 P2()I
.locals 1
.line 1
iget-object v0, p0, Lio/reactivex/rxjava3/subjects/SingleSubject;->a: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/rxjava3/subjects/SingleSubject$SingleDisposable;
array-length v0, v0
return v0
.end method
.method public Q2(Lio/reactivex/rxjava3/subjects/SingleSubject$SingleDisposable;)V
.locals 6
.param p1 # Lio/reactivex/rxjava3/subjects/SingleSubject$SingleDisposable;
.annotation build Lio/reactivex/rxjava3/annotations/NonNull;
.end annotation
.end param
.annotation system Ldalvik/annotation/MethodParameters;
accessFlags = {
0x0
}
names = {
"inner"
}
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lio/reactivex/rxjava3/subjects/SingleSubject$SingleDisposable<",
"TT;>;)V"
}
.end annotation
.line 1
:cond_0
iget-object v0, p0, Lio/reactivex/rxjava3/subjects/SingleSubject;->a: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/rxjava3/subjects/SingleSubject$SingleDisposable;
.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/rxjava3/subjects/SingleSubject;->e:[Lio/reactivex/rxjava3/subjects/SingleSubject$SingleDisposable;
goto :goto_2
:cond_5
add-int/lit8 v5, v1, -0x1
.line 5
new-array v5, v5, [Lio/reactivex/rxjava3/subjects/SingleSubject$SingleDisposable;
.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/rxjava3/subjects/SingleSubject;->a: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 onError(Ljava/lang/Throwable;)V
.locals 4
.param p1 # Ljava/lang/Throwable;
.annotation build Lio/reactivex/rxjava3/annotations/NonNull;
.end annotation
.end param
.annotation system Ldalvik/annotation/MethodParameters;
accessFlags = {
0x0
}
names = {
"e"
}
.end annotation
const-string v0, "onError called with a null Throwable."
.line 1
invoke-static {p1, v0}, Lio/reactivex/rxjava3/internal/util/ExceptionHelper;->d(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
.line 2
iget-object v0, p0, Lio/reactivex/rxjava3/subjects/SingleSubject;->b: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_0
.line 3
iput-object p1, p0, Lio/reactivex/rxjava3/subjects/SingleSubject;->d:Ljava/lang/Throwable;
.line 4
iget-object v0, p0, Lio/reactivex/rxjava3/subjects/SingleSubject;->a:Ljava/util/concurrent/atomic/AtomicReference;
sget-object v2, Lio/reactivex/rxjava3/subjects/SingleSubject;->f:[Lio/reactivex/rxjava3/subjects/SingleSubject$SingleDisposable;
invoke-virtual {v0, v2}, Ljava/util/concurrent/atomic/AtomicReference;->getAndSet(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v0
check-cast v0, [Lio/reactivex/rxjava3/subjects/SingleSubject$SingleDisposable;
array-length v2, v0
:goto_0
if-ge v1, v2, :cond_1
aget-object v3, v0, v1
.line 5
iget-object v3, v3, Lio/reactivex/rxjava3/subjects/SingleSubject$SingleDisposable;->downstream:Lai/s0;
invoke-interface {v3, p1}, Lai/s0;->onError(Ljava/lang/Throwable;)V
add-int/lit8 v1, v1, 0x1
goto :goto_0
.line 6
:cond_0
invoke-static {p1}, Lji/a;->Y(Ljava/lang/Throwable;)V
:cond_1
return-void
.end method
.method public onSubscribe(Lio/reactivex/rxjava3/disposables/c;)V
.locals 2
.param p1 # Lio/reactivex/rxjava3/disposables/c;
.annotation build Lio/reactivex/rxjava3/annotations/NonNull;
.end annotation
.end param
.annotation system Ldalvik/annotation/MethodParameters;
accessFlags = {
0x0
}
names = {
"d"
}
.end annotation
.line 1
iget-object v0, p0, Lio/reactivex/rxjava3/subjects/SingleSubject;->a:Ljava/util/concurrent/atomic/AtomicReference;
invoke-virtual {v0}, Ljava/util/concurrent/atomic/AtomicReference;->get()Ljava/lang/Object;
move-result-object v0
sget-object v1, Lio/reactivex/rxjava3/subjects/SingleSubject;->f:[Lio/reactivex/rxjava3/subjects/SingleSubject$SingleDisposable;
if-ne v0, v1, :cond_0
.line 2
invoke-interface {p1}, Lio/reactivex/rxjava3/disposables/c;->dispose()V
:cond_0
return-void
.end method
.method public onSuccess(Ljava/lang/Object;)V
.locals 4
.param p1 # Ljava/lang/Object;
.annotation build Lio/reactivex/rxjava3/annotations/NonNull;
.end annotation
.end param
.annotation system Ldalvik/annotation/MethodParameters;
accessFlags = {
0x0
}
names = {
"value"
}
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"(TT;)V"
}
.end annotation
const-string v0, "onSuccess called with a null value."
.line 1
invoke-static {p1, v0}, Lio/reactivex/rxjava3/internal/util/ExceptionHelper;->d(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
.line 2
iget-object v0, p0, Lio/reactivex/rxjava3/subjects/SingleSubject;->b: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_0
.line 3
iput-object p1, p0, Lio/reactivex/rxjava3/subjects/SingleSubject;->c:Ljava/lang/Object;
.line 4
iget-object v0, p0, Lio/reactivex/rxjava3/subjects/SingleSubject;->a:Ljava/util/concurrent/atomic/AtomicReference;
sget-object v2, Lio/reactivex/rxjava3/subjects/SingleSubject;->f:[Lio/reactivex/rxjava3/subjects/SingleSubject$SingleDisposable;
invoke-virtual {v0, v2}, Ljava/util/concurrent/atomic/AtomicReference;->getAndSet(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v0
check-cast v0, [Lio/reactivex/rxjava3/subjects/SingleSubject$SingleDisposable;
array-length v2, v0
:goto_0
if-ge v1, v2, :cond_0
aget-object v3, v0, v1
.line 5
iget-object v3, v3, Lio/reactivex/rxjava3/subjects/SingleSubject$SingleDisposable;->downstream:Lai/s0;
invoke-interface {v3, p1}, Lai/s0;->onSuccess(Ljava/lang/Object;)V
add-int/lit8 v1, v1, 0x1
goto :goto_0
:cond_0
return-void
.end method
@@ -0,0 +1,211 @@
.class final Lio/reactivex/rxjava3/subjects/UnicastSubject$UnicastQueueDisposable;
.super Lio/reactivex/rxjava3/internal/observers/BasicIntQueueDisposable;
.source "UnicastSubject.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lio/reactivex/rxjava3/subjects/UnicastSubject;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x11
name = "UnicastQueueDisposable"
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Lio/reactivex/rxjava3/internal/observers/BasicIntQueueDisposable<",
"TT;>;"
}
.end annotation
# static fields
.field private static final serialVersionUID:J = 0x6e022e8b5b1c1e37L
# instance fields
.field public final synthetic this$0:Lio/reactivex/rxjava3/subjects/UnicastSubject;
# direct methods
.method public constructor <init>(Lio/reactivex/rxjava3/subjects/UnicastSubject;)V
.locals 0
.annotation system Ldalvik/annotation/MethodParameters;
accessFlags = {
0x8010
}
names = {
"this$0"
}
.end annotation
.line 1
iput-object p1, p0, Lio/reactivex/rxjava3/subjects/UnicastSubject$UnicastQueueDisposable;->this$0:Lio/reactivex/rxjava3/subjects/UnicastSubject;
invoke-direct {p0}, Lio/reactivex/rxjava3/internal/observers/BasicIntQueueDisposable;-><init>()V
return-void
.end method
# virtual methods
.method public clear()V
.locals 1
.line 1
iget-object v0, p0, Lio/reactivex/rxjava3/subjects/UnicastSubject$UnicastQueueDisposable;->this$0:Lio/reactivex/rxjava3/subjects/UnicastSubject;
iget-object v0, v0, Lio/reactivex/rxjava3/subjects/UnicastSubject;->a:Lio/reactivex/rxjava3/internal/queue/a;
invoke-virtual {v0}, Lio/reactivex/rxjava3/internal/queue/a;->clear()V
return-void
.end method
.method public dispose()V
.locals 2
.line 1
iget-object v0, p0, Lio/reactivex/rxjava3/subjects/UnicastSubject$UnicastQueueDisposable;->this$0:Lio/reactivex/rxjava3/subjects/UnicastSubject;
iget-boolean v0, v0, Lio/reactivex/rxjava3/subjects/UnicastSubject;->e:Z
if-nez v0, :cond_0
.line 2
iget-object v0, p0, Lio/reactivex/rxjava3/subjects/UnicastSubject$UnicastQueueDisposable;->this$0:Lio/reactivex/rxjava3/subjects/UnicastSubject;
const/4 v1, 0x1
iput-boolean v1, v0, Lio/reactivex/rxjava3/subjects/UnicastSubject;->e:Z
.line 3
iget-object v0, p0, Lio/reactivex/rxjava3/subjects/UnicastSubject$UnicastQueueDisposable;->this$0:Lio/reactivex/rxjava3/subjects/UnicastSubject;
invoke-virtual {v0}, Lio/reactivex/rxjava3/subjects/UnicastSubject;->S8()V
.line 4
iget-object v0, p0, Lio/reactivex/rxjava3/subjects/UnicastSubject$UnicastQueueDisposable;->this$0:Lio/reactivex/rxjava3/subjects/UnicastSubject;
iget-object v0, v0, Lio/reactivex/rxjava3/subjects/UnicastSubject;->b:Ljava/util/concurrent/atomic/AtomicReference;
const/4 v1, 0x0
invoke-virtual {v0, v1}, Ljava/util/concurrent/atomic/AtomicReference;->lazySet(Ljava/lang/Object;)V
.line 5
iget-object v0, p0, Lio/reactivex/rxjava3/subjects/UnicastSubject$UnicastQueueDisposable;->this$0:Lio/reactivex/rxjava3/subjects/UnicastSubject;
iget-object v0, v0, Lio/reactivex/rxjava3/subjects/UnicastSubject;->i:Lio/reactivex/rxjava3/internal/observers/BasicIntQueueDisposable;
invoke-virtual {v0}, Ljava/util/concurrent/atomic/AtomicInteger;->getAndIncrement()I
move-result v0
if-nez v0, :cond_0
.line 6
iget-object v0, p0, Lio/reactivex/rxjava3/subjects/UnicastSubject$UnicastQueueDisposable;->this$0:Lio/reactivex/rxjava3/subjects/UnicastSubject;
iget-object v0, v0, Lio/reactivex/rxjava3/subjects/UnicastSubject;->b:Ljava/util/concurrent/atomic/AtomicReference;
invoke-virtual {v0, v1}, Ljava/util/concurrent/atomic/AtomicReference;->lazySet(Ljava/lang/Object;)V
.line 7
iget-object v0, p0, Lio/reactivex/rxjava3/subjects/UnicastSubject$UnicastQueueDisposable;->this$0:Lio/reactivex/rxjava3/subjects/UnicastSubject;
iget-boolean v1, v0, Lio/reactivex/rxjava3/subjects/UnicastSubject;->j:Z
if-nez v1, :cond_0
.line 8
iget-object v0, v0, Lio/reactivex/rxjava3/subjects/UnicastSubject;->a:Lio/reactivex/rxjava3/internal/queue/a;
invoke-virtual {v0}, Lio/reactivex/rxjava3/internal/queue/a;->clear()V
:cond_0
return-void
.end method
.method public isDisposed()Z
.locals 1
.line 1
iget-object v0, p0, Lio/reactivex/rxjava3/subjects/UnicastSubject$UnicastQueueDisposable;->this$0:Lio/reactivex/rxjava3/subjects/UnicastSubject;
iget-boolean v0, v0, Lio/reactivex/rxjava3/subjects/UnicastSubject;->e:Z
return v0
.end method
.method public isEmpty()Z
.locals 1
.line 1
iget-object v0, p0, Lio/reactivex/rxjava3/subjects/UnicastSubject$UnicastQueueDisposable;->this$0:Lio/reactivex/rxjava3/subjects/UnicastSubject;
iget-object v0, v0, Lio/reactivex/rxjava3/subjects/UnicastSubject;->a:Lio/reactivex/rxjava3/internal/queue/a;
invoke-virtual {v0}, Lio/reactivex/rxjava3/internal/queue/a;->isEmpty()Z
move-result v0
return v0
.end method
.method public poll()Ljava/lang/Object;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"()TT;"
}
.end annotation
.annotation build Lio/reactivex/rxjava3/annotations/Nullable;
.end annotation
.line 1
iget-object v0, p0, Lio/reactivex/rxjava3/subjects/UnicastSubject$UnicastQueueDisposable;->this$0:Lio/reactivex/rxjava3/subjects/UnicastSubject;
iget-object v0, v0, Lio/reactivex/rxjava3/subjects/UnicastSubject;->a:Lio/reactivex/rxjava3/internal/queue/a;
invoke-virtual {v0}, Lio/reactivex/rxjava3/internal/queue/a;->poll()Ljava/lang/Object;
move-result-object v0
return-object v0
.end method
.method public requestFusion(I)I
.locals 2
.annotation system Ldalvik/annotation/MethodParameters;
accessFlags = {
0x0
}
names = {
"mode"
}
.end annotation
const/4 v0, 0x2
and-int/2addr p1, v0
if-eqz p1, :cond_0
.line 1
iget-object p1, p0, Lio/reactivex/rxjava3/subjects/UnicastSubject$UnicastQueueDisposable;->this$0:Lio/reactivex/rxjava3/subjects/UnicastSubject;
const/4 v1, 0x1
iput-boolean v1, p1, Lio/reactivex/rxjava3/subjects/UnicastSubject;->j:Z
return v0
:cond_0
const/4 p1, 0x0
return p1
.end method
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,471 @@
.class public final Lio/reactivex/rxjava3/subjects/a$a;
.super Ljava/lang/Object;
.source "BehaviorSubject.java"
# interfaces
.implements Lio/reactivex/rxjava3/disposables/c;
.implements Lio/reactivex/rxjava3/internal/util/a$a;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lio/reactivex/rxjava3/subjects/a;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = "a"
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">",
"Ljava/lang/Object;",
"Lio/reactivex/rxjava3/disposables/c;",
"Lio/reactivex/rxjava3/internal/util/a$a<",
"Ljava/lang/Object;",
">;"
}
.end annotation
# instance fields
.field public final a:Lai/n0;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lai/n0<",
"-TT;>;"
}
.end annotation
.end field
.field public final b:Lio/reactivex/rxjava3/subjects/a;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lio/reactivex/rxjava3/subjects/a<",
"TT;>;"
}
.end annotation
.end field
.field public c:Z
.field public d:Z
.field public e:Lio/reactivex/rxjava3/internal/util/a;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lio/reactivex/rxjava3/internal/util/a<",
"Ljava/lang/Object;",
">;"
}
.end annotation
.end field
.field public f:Z
.field public volatile g:Z
.field public h:J
# direct methods
.method public constructor <init>(Lai/n0;Lio/reactivex/rxjava3/subjects/a;)V
.locals 0
.annotation system Ldalvik/annotation/MethodParameters;
accessFlags = {
0x0,
0x0
}
names = {
"actual",
"state"
}
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lai/n0<",
"-TT;>;",
"Lio/reactivex/rxjava3/subjects/a<",
"TT;>;)V"
}
.end annotation
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 2
iput-object p1, p0, Lio/reactivex/rxjava3/subjects/a$a;->a:Lai/n0;
.line 3
iput-object p2, p0, Lio/reactivex/rxjava3/subjects/a$a;->b:Lio/reactivex/rxjava3/subjects/a;
return-void
.end method
# virtual methods
.method public a()V
.locals 4
.line 1
iget-boolean v0, p0, Lio/reactivex/rxjava3/subjects/a$a;->g:Z
if-eqz v0, :cond_0
return-void
.line 2
:cond_0
monitor-enter p0
.line 3
:try_start_0
iget-boolean v0, p0, Lio/reactivex/rxjava3/subjects/a$a;->g:Z
if-eqz v0, :cond_1
.line 4
monitor-exit p0
return-void
.line 5
:cond_1
iget-boolean v0, p0, Lio/reactivex/rxjava3/subjects/a$a;->c:Z
if-eqz v0, :cond_2
.line 6
monitor-exit p0
return-void
.line 7
:cond_2
iget-object v0, p0, Lio/reactivex/rxjava3/subjects/a$a;->b:Lio/reactivex/rxjava3/subjects/a;
.line 8
iget-object v1, v0, Lio/reactivex/rxjava3/subjects/a;->d:Ljava/util/concurrent/locks/Lock;
.line 9
invoke-interface {v1}, Ljava/util/concurrent/locks/Lock;->lock()V
.line 10
iget-wide v2, v0, Lio/reactivex/rxjava3/subjects/a;->g:J
iput-wide v2, p0, Lio/reactivex/rxjava3/subjects/a$a;->h:J
.line 11
iget-object v0, v0, Lio/reactivex/rxjava3/subjects/a;->a:Ljava/util/concurrent/atomic/AtomicReference;
invoke-virtual {v0}, Ljava/util/concurrent/atomic/AtomicReference;->get()Ljava/lang/Object;
move-result-object v0
.line 12
invoke-interface {v1}, Ljava/util/concurrent/locks/Lock;->unlock()V
const/4 v1, 0x1
if-eqz v0, :cond_3
move v2, v1
goto :goto_0
:cond_3
const/4 v2, 0x0
.line 13
:goto_0
iput-boolean v2, p0, Lio/reactivex/rxjava3/subjects/a$a;->d:Z
.line 14
iput-boolean v1, p0, Lio/reactivex/rxjava3/subjects/a$a;->c:Z
.line 15
monitor-exit p0
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
if-eqz v0, :cond_5
.line 16
invoke-virtual {p0, v0}, Lio/reactivex/rxjava3/subjects/a$a;->test(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_4
return-void
.line 17
:cond_4
invoke-virtual {p0}, Lio/reactivex/rxjava3/subjects/a$a;->b()V
:cond_5
return-void
:catchall_0
move-exception v0
.line 18
:try_start_1
monitor-exit p0
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
throw v0
.end method
.method public b()V
.locals 2
.line 1
:goto_0
iget-boolean v0, p0, Lio/reactivex/rxjava3/subjects/a$a;->g:Z
if-eqz v0, :cond_0
return-void
.line 2
:cond_0
monitor-enter p0
.line 3
:try_start_0
iget-object v0, p0, Lio/reactivex/rxjava3/subjects/a$a;->e:Lio/reactivex/rxjava3/internal/util/a;
if-nez v0, :cond_1
const/4 v0, 0x0
.line 4
iput-boolean v0, p0, Lio/reactivex/rxjava3/subjects/a$a;->d:Z
.line 5
monitor-exit p0
return-void
:cond_1
const/4 v1, 0x0
.line 6
iput-object v1, p0, Lio/reactivex/rxjava3/subjects/a$a;->e:Lio/reactivex/rxjava3/internal/util/a;
.line 7
monitor-exit p0
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
.line 8
invoke-virtual {v0, p0}, Lio/reactivex/rxjava3/internal/util/a;->d(Lio/reactivex/rxjava3/internal/util/a$a;)V
goto :goto_0
:catchall_0
move-exception v0
.line 9
:try_start_1
monitor-exit p0
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
throw v0
.end method
.method public c(Ljava/lang/Object;J)V
.locals 2
.annotation system Ldalvik/annotation/MethodParameters;
accessFlags = {
0x0,
0x0
}
names = {
"value",
"stateIndex"
}
.end annotation
.line 1
iget-boolean v0, p0, Lio/reactivex/rxjava3/subjects/a$a;->g:Z
if-eqz v0, :cond_0
return-void
.line 2
:cond_0
iget-boolean v0, p0, Lio/reactivex/rxjava3/subjects/a$a;->f:Z
if-nez v0, :cond_5
.line 3
monitor-enter p0
.line 4
:try_start_0
iget-boolean v0, p0, Lio/reactivex/rxjava3/subjects/a$a;->g:Z
if-eqz v0, :cond_1
.line 5
monitor-exit p0
return-void
.line 6
:cond_1
iget-wide v0, p0, Lio/reactivex/rxjava3/subjects/a$a;->h:J
cmp-long p2, v0, p2
if-nez p2, :cond_2
.line 7
monitor-exit p0
return-void
.line 8
:cond_2
iget-boolean p2, p0, Lio/reactivex/rxjava3/subjects/a$a;->d:Z
if-eqz p2, :cond_4
.line 9
iget-object p2, p0, Lio/reactivex/rxjava3/subjects/a$a;->e:Lio/reactivex/rxjava3/internal/util/a;
if-nez p2, :cond_3
.line 10
new-instance p2, Lio/reactivex/rxjava3/internal/util/a;
const/4 p3, 0x4
invoke-direct {p2, p3}, Lio/reactivex/rxjava3/internal/util/a;-><init>(I)V
.line 11
iput-object p2, p0, Lio/reactivex/rxjava3/subjects/a$a;->e:Lio/reactivex/rxjava3/internal/util/a;
.line 12
:cond_3
invoke-virtual {p2, p1}, Lio/reactivex/rxjava3/internal/util/a;->c(Ljava/lang/Object;)V
.line 13
monitor-exit p0
return-void
:cond_4
const/4 p2, 0x1
.line 14
iput-boolean p2, p0, Lio/reactivex/rxjava3/subjects/a$a;->c:Z
.line 15
monitor-exit p0
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
.line 16
iput-boolean p2, p0, Lio/reactivex/rxjava3/subjects/a$a;->f:Z
goto :goto_0
:catchall_0
move-exception p1
.line 17
:try_start_1
monitor-exit p0
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
throw p1
.line 18
:cond_5
:goto_0
invoke-virtual {p0, p1}, Lio/reactivex/rxjava3/subjects/a$a;->test(Ljava/lang/Object;)Z
return-void
.end method
.method public dispose()V
.locals 1
.line 1
iget-boolean v0, p0, Lio/reactivex/rxjava3/subjects/a$a;->g:Z
if-nez v0, :cond_0
const/4 v0, 0x1
.line 2
iput-boolean v0, p0, Lio/reactivex/rxjava3/subjects/a$a;->g:Z
.line 3
iget-object v0, p0, Lio/reactivex/rxjava3/subjects/a$a;->b:Lio/reactivex/rxjava3/subjects/a;
invoke-virtual {v0, p0}, Lio/reactivex/rxjava3/subjects/a;->S8(Lio/reactivex/rxjava3/subjects/a$a;)V
:cond_0
return-void
.end method
.method public isDisposed()Z
.locals 1
.line 1
iget-boolean v0, p0, Lio/reactivex/rxjava3/subjects/a$a;->g:Z
return v0
.end method
.method public test(Ljava/lang/Object;)Z
.locals 1
.annotation system Ldalvik/annotation/MethodParameters;
accessFlags = {
0x0
}
names = {
"o"
}
.end annotation
.line 1
iget-boolean v0, p0, Lio/reactivex/rxjava3/subjects/a$a;->g:Z
if-nez v0, :cond_1
iget-object v0, p0, Lio/reactivex/rxjava3/subjects/a$a;->a:Lai/n0;
invoke-static {p1, v0}, Lio/reactivex/rxjava3/internal/util/NotificationLite;->accept(Ljava/lang/Object;Lai/n0;)Z
move-result p1
if-eqz p1, :cond_0
goto :goto_0
:cond_0
const/4 p1, 0x0
goto :goto_1
:cond_1
:goto_0
const/4 p1, 0x1
:goto_1
return p1
.end method
@@ -0,0 +1,983 @@
.class public final Lio/reactivex/rxjava3/subjects/a;
.super Lio/reactivex/rxjava3/subjects/c;
.source "BehaviorSubject.java"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lio/reactivex/rxjava3/subjects/a$a;
}
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">",
"Lio/reactivex/rxjava3/subjects/c<",
"TT;>;"
}
.end annotation
# static fields
.field public static final h:[Lio/reactivex/rxjava3/subjects/a$a;
.field public static final i:[Lio/reactivex/rxjava3/subjects/a$a;
# instance fields
.field public final a: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 b:Ljava/util/concurrent/atomic/AtomicReference;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/concurrent/atomic/AtomicReference<",
"[",
"Lio/reactivex/rxjava3/subjects/a$a<",
"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/Throwable;",
">;"
}
.end annotation
.end field
.field public g:J
# direct methods
.method public static constructor <clinit>()V
.locals 2
const/4 v0, 0x0
new-array v1, v0, [Lio/reactivex/rxjava3/subjects/a$a;
.line 1
sput-object v1, Lio/reactivex/rxjava3/subjects/a;->h:[Lio/reactivex/rxjava3/subjects/a$a;
new-array v0, v0, [Lio/reactivex/rxjava3/subjects/a$a;
.line 2
sput-object v0, Lio/reactivex/rxjava3/subjects/a;->i:[Lio/reactivex/rxjava3/subjects/a$a;
return-void
.end method
.method public constructor <init>(Ljava/lang/Object;)V
.locals 2
.annotation system Ldalvik/annotation/MethodParameters;
accessFlags = {
0x0
}
names = {
"defaultValue"
}
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"(TT;)V"
}
.end annotation
.line 1
invoke-direct {p0}, Lio/reactivex/rxjava3/subjects/c;-><init>()V
.line 2
new-instance v0, Ljava/util/concurrent/locks/ReentrantReadWriteLock;
invoke-direct {v0}, Ljava/util/concurrent/locks/ReentrantReadWriteLock;-><init>()V
iput-object v0, p0, Lio/reactivex/rxjava3/subjects/a;->c:Ljava/util/concurrent/locks/ReadWriteLock;
.line 3
invoke-interface {v0}, Ljava/util/concurrent/locks/ReadWriteLock;->readLock()Ljava/util/concurrent/locks/Lock;
move-result-object v1
iput-object v1, p0, Lio/reactivex/rxjava3/subjects/a;->d:Ljava/util/concurrent/locks/Lock;
.line 4
invoke-interface {v0}, Ljava/util/concurrent/locks/ReadWriteLock;->writeLock()Ljava/util/concurrent/locks/Lock;
move-result-object v0
iput-object v0, p0, Lio/reactivex/rxjava3/subjects/a;->e:Ljava/util/concurrent/locks/Lock;
.line 5
new-instance v0, Ljava/util/concurrent/atomic/AtomicReference;
sget-object v1, Lio/reactivex/rxjava3/subjects/a;->h:[Lio/reactivex/rxjava3/subjects/a$a;
invoke-direct {v0, v1}, Ljava/util/concurrent/atomic/AtomicReference;-><init>(Ljava/lang/Object;)V
iput-object v0, p0, Lio/reactivex/rxjava3/subjects/a;->b:Ljava/util/concurrent/atomic/AtomicReference;
.line 6
new-instance v0, Ljava/util/concurrent/atomic/AtomicReference;
invoke-direct {v0, p1}, Ljava/util/concurrent/atomic/AtomicReference;-><init>(Ljava/lang/Object;)V
iput-object v0, p0, Lio/reactivex/rxjava3/subjects/a;->a:Ljava/util/concurrent/atomic/AtomicReference;
.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/rxjava3/subjects/a;->f:Ljava/util/concurrent/atomic/AtomicReference;
return-void
.end method
.method public static O8()Lio/reactivex/rxjava3/subjects/a;
.locals 2
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">()",
"Lio/reactivex/rxjava3/subjects/a<",
"TT;>;"
}
.end annotation
.annotation runtime Lio/reactivex/rxjava3/annotations/CheckReturnValue;
.end annotation
.annotation build Lio/reactivex/rxjava3/annotations/NonNull;
.end annotation
.line 1
new-instance v0, Lio/reactivex/rxjava3/subjects/a;
const/4 v1, 0x0
invoke-direct {v0, v1}, Lio/reactivex/rxjava3/subjects/a;-><init>(Ljava/lang/Object;)V
return-object v0
.end method
.method public static P8(Ljava/lang/Object;)Lio/reactivex/rxjava3/subjects/a;
.locals 1
.annotation system Ldalvik/annotation/MethodParameters;
accessFlags = {
0x0
}
names = {
"defaultValue"
}
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">(TT;)",
"Lio/reactivex/rxjava3/subjects/a<",
"TT;>;"
}
.end annotation
.annotation runtime Lio/reactivex/rxjava3/annotations/CheckReturnValue;
.end annotation
.annotation build Lio/reactivex/rxjava3/annotations/NonNull;
.end annotation
const-string v0, "defaultValue is null"
.line 1
invoke-static {p0, v0}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
.line 2
new-instance v0, Lio/reactivex/rxjava3/subjects/a;
invoke-direct {v0, p0}, Lio/reactivex/rxjava3/subjects/a;-><init>(Ljava/lang/Object;)V
return-object v0
.end method
# virtual methods
.method public I8()Ljava/lang/Throwable;
.locals 2
.annotation runtime Lio/reactivex/rxjava3/annotations/CheckReturnValue;
.end annotation
.annotation build Lio/reactivex/rxjava3/annotations/Nullable;
.end annotation
.line 1
iget-object v0, p0, Lio/reactivex/rxjava3/subjects/a;->a: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/rxjava3/internal/util/NotificationLite;->isError(Ljava/lang/Object;)Z
move-result v1
if-eqz v1, :cond_0
.line 3
invoke-static {v0}, Lio/reactivex/rxjava3/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
.annotation runtime Lio/reactivex/rxjava3/annotations/CheckReturnValue;
.end annotation
.line 1
iget-object v0, p0, Lio/reactivex/rxjava3/subjects/a;->a: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/rxjava3/internal/util/NotificationLite;->isComplete(Ljava/lang/Object;)Z
move-result v0
return v0
.end method
.method public K8()Z
.locals 1
.annotation runtime Lio/reactivex/rxjava3/annotations/CheckReturnValue;
.end annotation
.line 1
iget-object v0, p0, Lio/reactivex/rxjava3/subjects/a;->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/rxjava3/subjects/a$a;
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
.annotation runtime Lio/reactivex/rxjava3/annotations/CheckReturnValue;
.end annotation
.line 1
iget-object v0, p0, Lio/reactivex/rxjava3/subjects/a;->a: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/rxjava3/internal/util/NotificationLite;->isError(Ljava/lang/Object;)Z
move-result v0
return v0
.end method
.method public N8(Lio/reactivex/rxjava3/subjects/a$a;)Z
.locals 4
.annotation system Ldalvik/annotation/MethodParameters;
accessFlags = {
0x0
}
names = {
"rs"
}
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lio/reactivex/rxjava3/subjects/a$a<",
"TT;>;)Z"
}
.end annotation
.line 1
:cond_0
iget-object v0, p0, Lio/reactivex/rxjava3/subjects/a;->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/rxjava3/subjects/a$a;
.line 2
sget-object v1, Lio/reactivex/rxjava3/subjects/a;->i:[Lio/reactivex/rxjava3/subjects/a$a;
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/rxjava3/subjects/a$a;
.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/rxjava3/subjects/a;->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 runtime Lio/reactivex/rxjava3/annotations/CheckReturnValue;
.end annotation
.annotation build Lio/reactivex/rxjava3/annotations/Nullable;
.end annotation
.line 1
iget-object v0, p0, Lio/reactivex/rxjava3/subjects/a;->a: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/rxjava3/internal/util/NotificationLite;->isComplete(Ljava/lang/Object;)Z
move-result v1
if-nez v1, :cond_1
invoke-static {v0}, Lio/reactivex/rxjava3/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/rxjava3/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()Z
.locals 2
.annotation runtime Lio/reactivex/rxjava3/annotations/CheckReturnValue;
.end annotation
.line 1
iget-object v0, p0, Lio/reactivex/rxjava3/subjects/a;->a: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/rxjava3/internal/util/NotificationLite;->isComplete(Ljava/lang/Object;)Z
move-result v1
if-nez v1, :cond_0
invoke-static {v0}, Lio/reactivex/rxjava3/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 S8(Lio/reactivex/rxjava3/subjects/a$a;)V
.locals 6
.annotation system Ldalvik/annotation/MethodParameters;
accessFlags = {
0x0
}
names = {
"rs"
}
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lio/reactivex/rxjava3/subjects/a$a<",
"TT;>;)V"
}
.end annotation
.line 1
:cond_0
iget-object v0, p0, Lio/reactivex/rxjava3/subjects/a;->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/rxjava3/subjects/a$a;
.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/rxjava3/subjects/a;->h:[Lio/reactivex/rxjava3/subjects/a$a;
goto :goto_2
:cond_5
add-int/lit8 v5, v1, -0x1
.line 5
new-array v5, v5, [Lio/reactivex/rxjava3/subjects/a$a;
.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/rxjava3/subjects/a;->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 T8(Ljava/lang/Object;)V
.locals 4
.annotation system Ldalvik/annotation/MethodParameters;
accessFlags = {
0x0
}
names = {
"o"
}
.end annotation
.line 1
iget-object v0, p0, Lio/reactivex/rxjava3/subjects/a;->e:Ljava/util/concurrent/locks/Lock;
invoke-interface {v0}, Ljava/util/concurrent/locks/Lock;->lock()V
.line 2
iget-wide v0, p0, Lio/reactivex/rxjava3/subjects/a;->g:J
const-wide/16 v2, 0x1
add-long/2addr v0, v2
iput-wide v0, p0, Lio/reactivex/rxjava3/subjects/a;->g:J
.line 3
iget-object v0, p0, Lio/reactivex/rxjava3/subjects/a;->a:Ljava/util/concurrent/atomic/AtomicReference;
invoke-virtual {v0, p1}, Ljava/util/concurrent/atomic/AtomicReference;->lazySet(Ljava/lang/Object;)V
.line 4
iget-object p1, p0, Lio/reactivex/rxjava3/subjects/a;->e:Ljava/util/concurrent/locks/Lock;
invoke-interface {p1}, Ljava/util/concurrent/locks/Lock;->unlock()V
return-void
.end method
.method public U8()I
.locals 1
.annotation runtime Lio/reactivex/rxjava3/annotations/CheckReturnValue;
.end annotation
.line 1
iget-object v0, p0, Lio/reactivex/rxjava3/subjects/a;->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/rxjava3/subjects/a$a;
array-length v0, v0
return v0
.end method
.method public V8(Ljava/lang/Object;)[Lio/reactivex/rxjava3/subjects/a$a;
.locals 1
.annotation system Ldalvik/annotation/MethodParameters;
accessFlags = {
0x0
}
names = {
"terminalValue"
}
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/Object;",
")[",
"Lio/reactivex/rxjava3/subjects/a$a<",
"TT;>;"
}
.end annotation
.line 1
invoke-virtual {p0, p1}, Lio/reactivex/rxjava3/subjects/a;->T8(Ljava/lang/Object;)V
.line 2
iget-object p1, p0, Lio/reactivex/rxjava3/subjects/a;->b:Ljava/util/concurrent/atomic/AtomicReference;
sget-object v0, Lio/reactivex/rxjava3/subjects/a;->i:[Lio/reactivex/rxjava3/subjects/a$a;
invoke-virtual {p1, v0}, Ljava/util/concurrent/atomic/AtomicReference;->getAndSet(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p1
check-cast p1, [Lio/reactivex/rxjava3/subjects/a$a;
return-object p1
.end method
.method public l6(Lai/n0;)V
.locals 2
.annotation system Ldalvik/annotation/MethodParameters;
accessFlags = {
0x0
}
names = {
"observer"
}
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lai/n0<",
"-TT;>;)V"
}
.end annotation
.line 1
new-instance v0, Lio/reactivex/rxjava3/subjects/a$a;
invoke-direct {v0, p1, p0}, Lio/reactivex/rxjava3/subjects/a$a;-><init>(Lai/n0;Lio/reactivex/rxjava3/subjects/a;)V
.line 2
invoke-interface {p1, v0}, Lai/n0;->onSubscribe(Lio/reactivex/rxjava3/disposables/c;)V
.line 3
invoke-virtual {p0, v0}, Lio/reactivex/rxjava3/subjects/a;->N8(Lio/reactivex/rxjava3/subjects/a$a;)Z
move-result v1
if-eqz v1, :cond_1
.line 4
iget-boolean p1, v0, Lio/reactivex/rxjava3/subjects/a$a;->g:Z
if-eqz p1, :cond_0
.line 5
invoke-virtual {p0, v0}, Lio/reactivex/rxjava3/subjects/a;->S8(Lio/reactivex/rxjava3/subjects/a$a;)V
goto :goto_0
.line 6
:cond_0
invoke-virtual {v0}, Lio/reactivex/rxjava3/subjects/a$a;->a()V
goto :goto_0
.line 7
:cond_1
iget-object v0, p0, Lio/reactivex/rxjava3/subjects/a;->f: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/rxjava3/internal/util/ExceptionHelper;->a:Ljava/lang/Throwable;
if-ne v0, v1, :cond_2
.line 9
invoke-interface {p1}, Lai/n0;->onComplete()V
goto :goto_0
.line 10
:cond_2
invoke-interface {p1, v0}, Lai/n0;->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/rxjava3/subjects/a;->f:Ljava/util/concurrent/atomic/AtomicReference;
sget-object v1, Lio/reactivex/rxjava3/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/rxjava3/internal/util/NotificationLite;->complete()Ljava/lang/Object;
move-result-object v0
.line 3
invoke-virtual {p0, v0}, Lio/reactivex/rxjava3/subjects/a;->V8(Ljava/lang/Object;)[Lio/reactivex/rxjava3/subjects/a$a;
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/rxjava3/subjects/a;->g:J
invoke-virtual {v4, v0, v5, v6}, Lio/reactivex/rxjava3/subjects/a$a;->c(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
.annotation system Ldalvik/annotation/MethodParameters;
accessFlags = {
0x0
}
names = {
"t"
}
.end annotation
const-string v0, "onError called with a null Throwable."
.line 1
invoke-static {p1, v0}, Lio/reactivex/rxjava3/internal/util/ExceptionHelper;->d(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
.line 2
iget-object v0, p0, Lio/reactivex/rxjava3/subjects/a;->f: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}, Lji/a;->Y(Ljava/lang/Throwable;)V
return-void
.line 4
:cond_0
invoke-static {p1}, Lio/reactivex/rxjava3/internal/util/NotificationLite;->error(Ljava/lang/Throwable;)Ljava/lang/Object;
move-result-object p1
.line 5
invoke-virtual {p0, p1}, Lio/reactivex/rxjava3/subjects/a;->V8(Ljava/lang/Object;)[Lio/reactivex/rxjava3/subjects/a$a;
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/rxjava3/subjects/a;->g:J
invoke-virtual {v3, p1, v4, v5}, Lio/reactivex/rxjava3/subjects/a$a;->c(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/MethodParameters;
accessFlags = {
0x0
}
names = {
"t"
}
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"(TT;)V"
}
.end annotation
const-string v0, "onNext called with a null value."
.line 1
invoke-static {p1, v0}, Lio/reactivex/rxjava3/internal/util/ExceptionHelper;->d(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
.line 2
iget-object v0, p0, Lio/reactivex/rxjava3/subjects/a;->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
return-void
.line 3
:cond_0
invoke-static {p1}, Lio/reactivex/rxjava3/internal/util/NotificationLite;->next(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p1
.line 4
invoke-virtual {p0, p1}, Lio/reactivex/rxjava3/subjects/a;->T8(Ljava/lang/Object;)V
.line 5
iget-object v0, p0, Lio/reactivex/rxjava3/subjects/a;->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/rxjava3/subjects/a$a;
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/rxjava3/subjects/a;->g:J
invoke-virtual {v3, p1, v4, v5}, Lio/reactivex/rxjava3/subjects/a$a;->c(Ljava/lang/Object;J)V
add-int/lit8 v2, v2, 0x1
goto :goto_0
:cond_1
return-void
.end method
.method public onSubscribe(Lio/reactivex/rxjava3/disposables/c;)V
.locals 1
.annotation system Ldalvik/annotation/MethodParameters;
accessFlags = {
0x0
}
names = {
"d"
}
.end annotation
.line 1
iget-object v0, p0, Lio/reactivex/rxjava3/subjects/a;->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-interface {p1}, Lio/reactivex/rxjava3/disposables/c;->dispose()V
:cond_0
return-void
.end method
@@ -0,0 +1,650 @@
.class public final Lio/reactivex/rxjava3/subjects/b;
.super Lio/reactivex/rxjava3/subjects/c;
.source "SerializedSubject.java"
# interfaces
.implements Lio/reactivex/rxjava3/internal/util/a$a;
# annotations
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">",
"Lio/reactivex/rxjava3/subjects/c<",
"TT;>;",
"Lio/reactivex/rxjava3/internal/util/a$a<",
"Ljava/lang/Object;",
">;"
}
.end annotation
# instance fields
.field public final a:Lio/reactivex/rxjava3/subjects/c;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lio/reactivex/rxjava3/subjects/c<",
"TT;>;"
}
.end annotation
.end field
.field public b:Z
.field public c:Lio/reactivex/rxjava3/internal/util/a;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lio/reactivex/rxjava3/internal/util/a<",
"Ljava/lang/Object;",
">;"
}
.end annotation
.end field
.field public volatile d:Z
# direct methods
.method public constructor <init>(Lio/reactivex/rxjava3/subjects/c;)V
.locals 0
.annotation system Ldalvik/annotation/MethodParameters;
accessFlags = {
0x10
}
names = {
"actual"
}
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lio/reactivex/rxjava3/subjects/c<",
"TT;>;)V"
}
.end annotation
.line 1
invoke-direct {p0}, Lio/reactivex/rxjava3/subjects/c;-><init>()V
.line 2
iput-object p1, p0, Lio/reactivex/rxjava3/subjects/b;->a:Lio/reactivex/rxjava3/subjects/c;
return-void
.end method
# virtual methods
.method public I8()Ljava/lang/Throwable;
.locals 1
.annotation build Lio/reactivex/rxjava3/annotations/Nullable;
.end annotation
.line 1
iget-object v0, p0, Lio/reactivex/rxjava3/subjects/b;->a:Lio/reactivex/rxjava3/subjects/c;
invoke-virtual {v0}, Lio/reactivex/rxjava3/subjects/c;->I8()Ljava/lang/Throwable;
move-result-object v0
return-object v0
.end method
.method public J8()Z
.locals 1
.line 1
iget-object v0, p0, Lio/reactivex/rxjava3/subjects/b;->a:Lio/reactivex/rxjava3/subjects/c;
invoke-virtual {v0}, Lio/reactivex/rxjava3/subjects/c;->J8()Z
move-result v0
return v0
.end method
.method public K8()Z
.locals 1
.line 1
iget-object v0, p0, Lio/reactivex/rxjava3/subjects/b;->a:Lio/reactivex/rxjava3/subjects/c;
invoke-virtual {v0}, Lio/reactivex/rxjava3/subjects/c;->K8()Z
move-result v0
return v0
.end method
.method public L8()Z
.locals 1
.line 1
iget-object v0, p0, Lio/reactivex/rxjava3/subjects/b;->a:Lio/reactivex/rxjava3/subjects/c;
invoke-virtual {v0}, Lio/reactivex/rxjava3/subjects/c;->L8()Z
move-result v0
return v0
.end method
.method public N8()V
.locals 2
.line 1
:goto_0
monitor-enter p0
.line 2
:try_start_0
iget-object v0, p0, Lio/reactivex/rxjava3/subjects/b;->c:Lio/reactivex/rxjava3/internal/util/a;
if-nez v0, :cond_0
const/4 v0, 0x0
.line 3
iput-boolean v0, p0, Lio/reactivex/rxjava3/subjects/b;->b:Z
.line 4
monitor-exit p0
return-void
:cond_0
const/4 v1, 0x0
.line 5
iput-object v1, p0, Lio/reactivex/rxjava3/subjects/b;->c:Lio/reactivex/rxjava3/internal/util/a;
.line 6
monitor-exit p0
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
.line 7
invoke-virtual {v0, p0}, Lio/reactivex/rxjava3/internal/util/a;->d(Lio/reactivex/rxjava3/internal/util/a$a;)V
goto :goto_0
:catchall_0
move-exception v0
.line 8
:try_start_1
monitor-exit p0
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
throw v0
.end method
.method public l6(Lai/n0;)V
.locals 1
.annotation system Ldalvik/annotation/MethodParameters;
accessFlags = {
0x0
}
names = {
"observer"
}
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lai/n0<",
"-TT;>;)V"
}
.end annotation
.line 1
iget-object v0, p0, Lio/reactivex/rxjava3/subjects/b;->a:Lio/reactivex/rxjava3/subjects/c;
invoke-virtual {v0, p1}, Lai/g0;->subscribe(Lai/n0;)V
return-void
.end method
.method public onComplete()V
.locals 2
.line 1
iget-boolean v0, p0, Lio/reactivex/rxjava3/subjects/b;->d:Z
if-eqz v0, :cond_0
return-void
.line 2
:cond_0
monitor-enter p0
.line 3
:try_start_0
iget-boolean v0, p0, Lio/reactivex/rxjava3/subjects/b;->d:Z
if-eqz v0, :cond_1
.line 4
monitor-exit p0
return-void
:cond_1
const/4 v0, 0x1
.line 5
iput-boolean v0, p0, Lio/reactivex/rxjava3/subjects/b;->d:Z
.line 6
iget-boolean v1, p0, Lio/reactivex/rxjava3/subjects/b;->b:Z
if-eqz v1, :cond_3
.line 7
iget-object v0, p0, Lio/reactivex/rxjava3/subjects/b;->c:Lio/reactivex/rxjava3/internal/util/a;
if-nez v0, :cond_2
.line 8
new-instance v0, Lio/reactivex/rxjava3/internal/util/a;
const/4 v1, 0x4
invoke-direct {v0, v1}, Lio/reactivex/rxjava3/internal/util/a;-><init>(I)V
.line 9
iput-object v0, p0, Lio/reactivex/rxjava3/subjects/b;->c:Lio/reactivex/rxjava3/internal/util/a;
.line 10
:cond_2
invoke-static {}, Lio/reactivex/rxjava3/internal/util/NotificationLite;->complete()Ljava/lang/Object;
move-result-object v1
invoke-virtual {v0, v1}, Lio/reactivex/rxjava3/internal/util/a;->c(Ljava/lang/Object;)V
.line 11
monitor-exit p0
return-void
.line 12
:cond_3
iput-boolean v0, p0, Lio/reactivex/rxjava3/subjects/b;->b:Z
.line 13
monitor-exit p0
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
.line 14
iget-object v0, p0, Lio/reactivex/rxjava3/subjects/b;->a:Lio/reactivex/rxjava3/subjects/c;
invoke-interface {v0}, Lai/n0;->onComplete()V
return-void
:catchall_0
move-exception v0
.line 15
:try_start_1
monitor-exit p0
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
throw v0
.end method
.method public onError(Ljava/lang/Throwable;)V
.locals 2
.annotation system Ldalvik/annotation/MethodParameters;
accessFlags = {
0x0
}
names = {
"t"
}
.end annotation
.line 1
iget-boolean v0, p0, Lio/reactivex/rxjava3/subjects/b;->d:Z
if-eqz v0, :cond_0
.line 2
invoke-static {p1}, Lji/a;->Y(Ljava/lang/Throwable;)V
return-void
.line 3
:cond_0
monitor-enter p0
.line 4
:try_start_0
iget-boolean v0, p0, Lio/reactivex/rxjava3/subjects/b;->d:Z
const/4 v1, 0x1
if-eqz v0, :cond_1
goto :goto_0
.line 5
:cond_1
iput-boolean v1, p0, Lio/reactivex/rxjava3/subjects/b;->d:Z
.line 6
iget-boolean v0, p0, Lio/reactivex/rxjava3/subjects/b;->b:Z
if-eqz v0, :cond_3
.line 7
iget-object v0, p0, Lio/reactivex/rxjava3/subjects/b;->c:Lio/reactivex/rxjava3/internal/util/a;
if-nez v0, :cond_2
.line 8
new-instance v0, Lio/reactivex/rxjava3/internal/util/a;
const/4 v1, 0x4
invoke-direct {v0, v1}, Lio/reactivex/rxjava3/internal/util/a;-><init>(I)V
.line 9
iput-object v0, p0, Lio/reactivex/rxjava3/subjects/b;->c:Lio/reactivex/rxjava3/internal/util/a;
.line 10
:cond_2
invoke-static {p1}, Lio/reactivex/rxjava3/internal/util/NotificationLite;->error(Ljava/lang/Throwable;)Ljava/lang/Object;
move-result-object p1
invoke-virtual {v0, p1}, Lio/reactivex/rxjava3/internal/util/a;->f(Ljava/lang/Object;)V
.line 11
monitor-exit p0
return-void
:cond_3
const/4 v0, 0x0
.line 12
iput-boolean v1, p0, Lio/reactivex/rxjava3/subjects/b;->b:Z
move v1, v0
.line 13
:goto_0
monitor-exit p0
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
if-eqz v1, :cond_4
.line 14
invoke-static {p1}, Lji/a;->Y(Ljava/lang/Throwable;)V
return-void
.line 15
:cond_4
iget-object v0, p0, Lio/reactivex/rxjava3/subjects/b;->a:Lio/reactivex/rxjava3/subjects/c;
invoke-interface {v0, p1}, Lai/n0;->onError(Ljava/lang/Throwable;)V
return-void
:catchall_0
move-exception p1
.line 16
:try_start_1
monitor-exit p0
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
throw p1
.end method
.method public onNext(Ljava/lang/Object;)V
.locals 2
.annotation system Ldalvik/annotation/MethodParameters;
accessFlags = {
0x0
}
names = {
"t"
}
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"(TT;)V"
}
.end annotation
.line 1
iget-boolean v0, p0, Lio/reactivex/rxjava3/subjects/b;->d:Z
if-eqz v0, :cond_0
return-void
.line 2
:cond_0
monitor-enter p0
.line 3
:try_start_0
iget-boolean v0, p0, Lio/reactivex/rxjava3/subjects/b;->d:Z
if-eqz v0, :cond_1
.line 4
monitor-exit p0
return-void
.line 5
:cond_1
iget-boolean v0, p0, Lio/reactivex/rxjava3/subjects/b;->b:Z
if-eqz v0, :cond_3
.line 6
iget-object v0, p0, Lio/reactivex/rxjava3/subjects/b;->c:Lio/reactivex/rxjava3/internal/util/a;
if-nez v0, :cond_2
.line 7
new-instance v0, Lio/reactivex/rxjava3/internal/util/a;
const/4 v1, 0x4
invoke-direct {v0, v1}, Lio/reactivex/rxjava3/internal/util/a;-><init>(I)V
.line 8
iput-object v0, p0, Lio/reactivex/rxjava3/subjects/b;->c:Lio/reactivex/rxjava3/internal/util/a;
.line 9
:cond_2
invoke-static {p1}, Lio/reactivex/rxjava3/internal/util/NotificationLite;->next(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p1
invoke-virtual {v0, p1}, Lio/reactivex/rxjava3/internal/util/a;->c(Ljava/lang/Object;)V
.line 10
monitor-exit p0
return-void
:cond_3
const/4 v0, 0x1
.line 11
iput-boolean v0, p0, Lio/reactivex/rxjava3/subjects/b;->b:Z
.line 12
monitor-exit p0
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
.line 13
iget-object v0, p0, Lio/reactivex/rxjava3/subjects/b;->a:Lio/reactivex/rxjava3/subjects/c;
invoke-interface {v0, p1}, Lai/n0;->onNext(Ljava/lang/Object;)V
.line 14
invoke-virtual {p0}, Lio/reactivex/rxjava3/subjects/b;->N8()V
return-void
:catchall_0
move-exception p1
.line 15
:try_start_1
monitor-exit p0
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
throw p1
.end method
.method public onSubscribe(Lio/reactivex/rxjava3/disposables/c;)V
.locals 2
.annotation system Ldalvik/annotation/MethodParameters;
accessFlags = {
0x0
}
names = {
"d"
}
.end annotation
.line 1
iget-boolean v0, p0, Lio/reactivex/rxjava3/subjects/b;->d:Z
const/4 v1, 0x1
if-nez v0, :cond_3
.line 2
monitor-enter p0
.line 3
:try_start_0
iget-boolean v0, p0, Lio/reactivex/rxjava3/subjects/b;->d:Z
if-eqz v0, :cond_0
goto :goto_0
.line 4
:cond_0
iget-boolean v0, p0, Lio/reactivex/rxjava3/subjects/b;->b:Z
if-eqz v0, :cond_2
.line 5
iget-object v0, p0, Lio/reactivex/rxjava3/subjects/b;->c:Lio/reactivex/rxjava3/internal/util/a;
if-nez v0, :cond_1
.line 6
new-instance v0, Lio/reactivex/rxjava3/internal/util/a;
const/4 v1, 0x4
invoke-direct {v0, v1}, Lio/reactivex/rxjava3/internal/util/a;-><init>(I)V
.line 7
iput-object v0, p0, Lio/reactivex/rxjava3/subjects/b;->c:Lio/reactivex/rxjava3/internal/util/a;
.line 8
:cond_1
invoke-static {p1}, Lio/reactivex/rxjava3/internal/util/NotificationLite;->disposable(Lio/reactivex/rxjava3/disposables/c;)Ljava/lang/Object;
move-result-object p1
invoke-virtual {v0, p1}, Lio/reactivex/rxjava3/internal/util/a;->c(Ljava/lang/Object;)V
.line 9
monitor-exit p0
return-void
.line 10
:cond_2
iput-boolean v1, p0, Lio/reactivex/rxjava3/subjects/b;->b:Z
const/4 v0, 0x0
move v1, v0
.line 11
:goto_0
monitor-exit p0
goto :goto_1
:catchall_0
move-exception p1
monitor-exit p0
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
throw p1
:cond_3
:goto_1
if-eqz v1, :cond_4
.line 12
invoke-interface {p1}, Lio/reactivex/rxjava3/disposables/c;->dispose()V
goto :goto_2
.line 13
:cond_4
iget-object v0, p0, Lio/reactivex/rxjava3/subjects/b;->a:Lio/reactivex/rxjava3/subjects/c;
invoke-interface {v0, p1}, Lai/n0;->onSubscribe(Lio/reactivex/rxjava3/disposables/c;)V
.line 14
invoke-virtual {p0}, Lio/reactivex/rxjava3/subjects/b;->N8()V
:goto_2
return-void
.end method
.method public test(Ljava/lang/Object;)Z
.locals 1
.annotation system Ldalvik/annotation/MethodParameters;
accessFlags = {
0x0
}
names = {
"o"
}
.end annotation
.line 1
iget-object v0, p0, Lio/reactivex/rxjava3/subjects/b;->a:Lio/reactivex/rxjava3/subjects/c;
invoke-static {p1, v0}, Lio/reactivex/rxjava3/internal/util/NotificationLite;->acceptFull(Ljava/lang/Object;Lai/n0;)Z
move-result p1
return p1
.end method
@@ -0,0 +1,88 @@
.class public abstract Lio/reactivex/rxjava3/subjects/c;
.super Lai/g0;
.source "Subject.java"
# interfaces
.implements Lai/n0;
# annotations
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">",
"Lai/g0<",
"TT;>;",
"Lai/n0<",
"TT;>;"
}
.end annotation
# direct methods
.method public constructor <init>()V
.locals 0
.line 1
invoke-direct {p0}, Lai/g0;-><init>()V
return-void
.end method
# virtual methods
.method public abstract I8()Ljava/lang/Throwable;
.annotation runtime Lio/reactivex/rxjava3/annotations/CheckReturnValue;
.end annotation
.annotation build Lio/reactivex/rxjava3/annotations/Nullable;
.end annotation
.end method
.method public abstract J8()Z
.annotation runtime Lio/reactivex/rxjava3/annotations/CheckReturnValue;
.end annotation
.end method
.method public abstract K8()Z
.annotation runtime Lio/reactivex/rxjava3/annotations/CheckReturnValue;
.end annotation
.end method
.method public abstract L8()Z
.annotation runtime Lio/reactivex/rxjava3/annotations/CheckReturnValue;
.end annotation
.end method
.method public final M8()Lio/reactivex/rxjava3/subjects/c;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Lio/reactivex/rxjava3/subjects/c<",
"TT;>;"
}
.end annotation
.annotation runtime Lio/reactivex/rxjava3/annotations/CheckReturnValue;
.end annotation
.annotation build Lio/reactivex/rxjava3/annotations/NonNull;
.end annotation
.line 1
instance-of v0, p0, Lio/reactivex/rxjava3/subjects/b;
if-eqz v0, :cond_0
return-object p0
.line 2
:cond_0
new-instance v0, Lio/reactivex/rxjava3/subjects/b;
invoke-direct {v0, p0}, Lio/reactivex/rxjava3/subjects/b;-><init>(Lio/reactivex/rxjava3/subjects/c;)V
return-object v0
.end method