557 lines
16 KiB
Smali
557 lines
16 KiB
Smali
.class public final Lio/reactivex/internal/operators/observable/ObservableReplay;
|
|
.super Luh/a;
|
|
.source "ObservableReplay.java"
|
|
|
|
# interfaces
|
|
.implements Lrh/g;
|
|
.implements Lqh/c;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Lio/reactivex/internal/operators/observable/ObservableReplay$d;,
|
|
Lio/reactivex/internal/operators/observable/ObservableReplay$c;,
|
|
Lio/reactivex/internal/operators/observable/ObservableReplay$g;,
|
|
Lio/reactivex/internal/operators/observable/ObservableReplay$h;,
|
|
Lio/reactivex/internal/operators/observable/ObservableReplay$f;,
|
|
Lio/reactivex/internal/operators/observable/ObservableReplay$b;,
|
|
Lio/reactivex/internal/operators/observable/ObservableReplay$i;,
|
|
Lio/reactivex/internal/operators/observable/ObservableReplay$SizeAndTimeBoundReplayBuffer;,
|
|
Lio/reactivex/internal/operators/observable/ObservableReplay$SizeBoundReplayBuffer;,
|
|
Lio/reactivex/internal/operators/observable/ObservableReplay$BoundedReplayBuffer;,
|
|
Lio/reactivex/internal/operators/observable/ObservableReplay$Node;,
|
|
Lio/reactivex/internal/operators/observable/ObservableReplay$UnboundedReplayBuffer;,
|
|
Lio/reactivex/internal/operators/observable/ObservableReplay$e;,
|
|
Lio/reactivex/internal/operators/observable/ObservableReplay$InnerDisposable;,
|
|
Lio/reactivex/internal/operators/observable/ObservableReplay$ReplayObserver;,
|
|
Lio/reactivex/internal/operators/observable/ObservableReplay$a;
|
|
}
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<T:",
|
|
"Ljava/lang/Object;",
|
|
">",
|
|
"Luh/a<",
|
|
"TT;>;",
|
|
"Lrh/g<",
|
|
"TT;>;",
|
|
"Lqh/c;"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# static fields
|
|
.field public static final e:Lio/reactivex/internal/operators/observable/ObservableReplay$a;
|
|
|
|
|
|
# instance fields
|
|
.field public final a:Lkh/e0;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Lkh/e0<",
|
|
"TT;>;"
|
|
}
|
|
.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/internal/operators/observable/ObservableReplay$ReplayObserver<",
|
|
"TT;>;>;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field public final c:Lio/reactivex/internal/operators/observable/ObservableReplay$a;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Lio/reactivex/internal/operators/observable/ObservableReplay$a<",
|
|
"TT;>;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field public final d:Lkh/e0;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Lkh/e0<",
|
|
"TT;>;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
|
|
# direct methods
|
|
.method public static constructor <clinit>()V
|
|
.locals 1
|
|
|
|
.line 1
|
|
new-instance v0, Lio/reactivex/internal/operators/observable/ObservableReplay$i;
|
|
|
|
invoke-direct {v0}, Lio/reactivex/internal/operators/observable/ObservableReplay$i;-><init>()V
|
|
|
|
sput-object v0, Lio/reactivex/internal/operators/observable/ObservableReplay;->e:Lio/reactivex/internal/operators/observable/ObservableReplay$a;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Lkh/e0;Lkh/e0;Ljava/util/concurrent/atomic/AtomicReference;Lio/reactivex/internal/operators/observable/ObservableReplay$a;)V
|
|
.locals 0
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Lkh/e0<",
|
|
"TT;>;",
|
|
"Lkh/e0<",
|
|
"TT;>;",
|
|
"Ljava/util/concurrent/atomic/AtomicReference<",
|
|
"Lio/reactivex/internal/operators/observable/ObservableReplay$ReplayObserver<",
|
|
"TT;>;>;",
|
|
"Lio/reactivex/internal/operators/observable/ObservableReplay$a<",
|
|
"TT;>;)V"
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
invoke-direct {p0}, Luh/a;-><init>()V
|
|
|
|
.line 2
|
|
iput-object p1, p0, Lio/reactivex/internal/operators/observable/ObservableReplay;->d:Lkh/e0;
|
|
|
|
.line 3
|
|
iput-object p2, p0, Lio/reactivex/internal/operators/observable/ObservableReplay;->a:Lkh/e0;
|
|
|
|
.line 4
|
|
iput-object p3, p0, Lio/reactivex/internal/operators/observable/ObservableReplay;->b:Ljava/util/concurrent/atomic/AtomicReference;
|
|
|
|
.line 5
|
|
iput-object p4, p0, Lio/reactivex/internal/operators/observable/ObservableReplay;->c:Lio/reactivex/internal/operators/observable/ObservableReplay$a;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static m(Lkh/e0;I)Luh/a;
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<T:",
|
|
"Ljava/lang/Object;",
|
|
">(",
|
|
"Lkh/e0<",
|
|
"TT;>;I)",
|
|
"Luh/a<",
|
|
"TT;>;"
|
|
}
|
|
.end annotation
|
|
|
|
const v0, 0x7fffffff
|
|
|
|
if-ne p1, v0, :cond_0
|
|
|
|
.line 1
|
|
invoke-static {p0}, Lio/reactivex/internal/operators/observable/ObservableReplay;->q(Lkh/e0;)Luh/a;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
|
|
.line 2
|
|
:cond_0
|
|
new-instance v0, Lio/reactivex/internal/operators/observable/ObservableReplay$f;
|
|
|
|
invoke-direct {v0, p1}, Lio/reactivex/internal/operators/observable/ObservableReplay$f;-><init>(I)V
|
|
|
|
invoke-static {p0, v0}, Lio/reactivex/internal/operators/observable/ObservableReplay;->p(Lkh/e0;Lio/reactivex/internal/operators/observable/ObservableReplay$a;)Luh/a;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static n(Lkh/e0;JLjava/util/concurrent/TimeUnit;Lkh/h0;)Luh/a;
|
|
.locals 6
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<T:",
|
|
"Ljava/lang/Object;",
|
|
">(",
|
|
"Lkh/e0<",
|
|
"TT;>;J",
|
|
"Ljava/util/concurrent/TimeUnit;",
|
|
"Lkh/h0;",
|
|
")",
|
|
"Luh/a<",
|
|
"TT;>;"
|
|
}
|
|
.end annotation
|
|
|
|
const v5, 0x7fffffff
|
|
|
|
move-object v0, p0
|
|
|
|
move-wide v1, p1
|
|
|
|
move-object v3, p3
|
|
|
|
move-object v4, p4
|
|
|
|
.line 1
|
|
invoke-static/range {v0 .. v5}, Lio/reactivex/internal/operators/observable/ObservableReplay;->o(Lkh/e0;JLjava/util/concurrent/TimeUnit;Lkh/h0;I)Luh/a;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static o(Lkh/e0;JLjava/util/concurrent/TimeUnit;Lkh/h0;I)Luh/a;
|
|
.locals 7
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<T:",
|
|
"Ljava/lang/Object;",
|
|
">(",
|
|
"Lkh/e0<",
|
|
"TT;>;J",
|
|
"Ljava/util/concurrent/TimeUnit;",
|
|
"Lkh/h0;",
|
|
"I)",
|
|
"Luh/a<",
|
|
"TT;>;"
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
new-instance v6, Lio/reactivex/internal/operators/observable/ObservableReplay$h;
|
|
|
|
move-object v0, v6
|
|
|
|
move v1, p5
|
|
|
|
move-wide v2, p1
|
|
|
|
move-object v4, p3
|
|
|
|
move-object v5, p4
|
|
|
|
invoke-direct/range {v0 .. v5}, Lio/reactivex/internal/operators/observable/ObservableReplay$h;-><init>(IJLjava/util/concurrent/TimeUnit;Lkh/h0;)V
|
|
|
|
invoke-static {p0, v6}, Lio/reactivex/internal/operators/observable/ObservableReplay;->p(Lkh/e0;Lio/reactivex/internal/operators/observable/ObservableReplay$a;)Luh/a;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static p(Lkh/e0;Lio/reactivex/internal/operators/observable/ObservableReplay$a;)Luh/a;
|
|
.locals 3
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<T:",
|
|
"Ljava/lang/Object;",
|
|
">(",
|
|
"Lkh/e0<",
|
|
"TT;>;",
|
|
"Lio/reactivex/internal/operators/observable/ObservableReplay$a<",
|
|
"TT;>;)",
|
|
"Luh/a<",
|
|
"TT;>;"
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
new-instance v0, Ljava/util/concurrent/atomic/AtomicReference;
|
|
|
|
invoke-direct {v0}, Ljava/util/concurrent/atomic/AtomicReference;-><init>()V
|
|
|
|
.line 2
|
|
new-instance v1, Lio/reactivex/internal/operators/observable/ObservableReplay$g;
|
|
|
|
invoke-direct {v1, v0, p1}, Lio/reactivex/internal/operators/observable/ObservableReplay$g;-><init>(Ljava/util/concurrent/atomic/AtomicReference;Lio/reactivex/internal/operators/observable/ObservableReplay$a;)V
|
|
|
|
.line 3
|
|
new-instance v2, Lio/reactivex/internal/operators/observable/ObservableReplay;
|
|
|
|
invoke-direct {v2, v1, p0, v0, p1}, Lio/reactivex/internal/operators/observable/ObservableReplay;-><init>(Lkh/e0;Lkh/e0;Ljava/util/concurrent/atomic/AtomicReference;Lio/reactivex/internal/operators/observable/ObservableReplay$a;)V
|
|
|
|
invoke-static {v2}, Lwh/a;->U(Luh/a;)Luh/a;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static q(Lkh/e0;)Luh/a;
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<T:",
|
|
"Ljava/lang/Object;",
|
|
">(",
|
|
"Lkh/e0<",
|
|
"+TT;>;)",
|
|
"Luh/a<",
|
|
"TT;>;"
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
sget-object v0, Lio/reactivex/internal/operators/observable/ObservableReplay;->e:Lio/reactivex/internal/operators/observable/ObservableReplay$a;
|
|
|
|
invoke-static {p0, v0}, Lio/reactivex/internal/operators/observable/ObservableReplay;->p(Lkh/e0;Lio/reactivex/internal/operators/observable/ObservableReplay$a;)Luh/a;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static r(Ljava/util/concurrent/Callable;Lph/o;)Lkh/z;
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<U:",
|
|
"Ljava/lang/Object;",
|
|
"R:",
|
|
"Ljava/lang/Object;",
|
|
">(",
|
|
"Ljava/util/concurrent/Callable<",
|
|
"+",
|
|
"Luh/a<",
|
|
"TU;>;>;",
|
|
"Lph/o<",
|
|
"-",
|
|
"Lkh/z<",
|
|
"TU;>;+",
|
|
"Lkh/e0<",
|
|
"TR;>;>;)",
|
|
"Lkh/z<",
|
|
"TR;>;"
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
new-instance v0, Lio/reactivex/internal/operators/observable/ObservableReplay$c;
|
|
|
|
invoke-direct {v0, p0, p1}, Lio/reactivex/internal/operators/observable/ObservableReplay$c;-><init>(Ljava/util/concurrent/Callable;Lph/o;)V
|
|
|
|
invoke-static {v0}, Lwh/a;->R(Lkh/z;)Lkh/z;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static s(Luh/a;Lkh/h0;)Luh/a;
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<T:",
|
|
"Ljava/lang/Object;",
|
|
">(",
|
|
"Luh/a<",
|
|
"TT;>;",
|
|
"Lkh/h0;",
|
|
")",
|
|
"Luh/a<",
|
|
"TT;>;"
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
invoke-virtual {p0, p1}, Lkh/z;->observeOn(Lkh/h0;)Lkh/z;
|
|
|
|
move-result-object p1
|
|
|
|
.line 2
|
|
new-instance v0, Lio/reactivex/internal/operators/observable/ObservableReplay$d;
|
|
|
|
invoke-direct {v0, p0, p1}, Lio/reactivex/internal/operators/observable/ObservableReplay$d;-><init>(Luh/a;Lkh/z;)V
|
|
|
|
invoke-static {v0}, Lwh/a;->U(Luh/a;)Luh/a;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public a(Lio/reactivex/disposables/b;)V
|
|
.locals 2
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lio/reactivex/internal/operators/observable/ObservableReplay;->b:Ljava/util/concurrent/atomic/AtomicReference;
|
|
|
|
check-cast p1, Lio/reactivex/internal/operators/observable/ObservableReplay$ReplayObserver;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
invoke-virtual {v0, p1, v1}, Ljava/util/concurrent/atomic/AtomicReference;->compareAndSet(Ljava/lang/Object;Ljava/lang/Object;)Z
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public f(Lph/g;)V
|
|
.locals 4
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Lph/g<",
|
|
"-",
|
|
"Lio/reactivex/disposables/b;",
|
|
">;)V"
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
:goto_0
|
|
iget-object v0, p0, Lio/reactivex/internal/operators/observable/ObservableReplay;->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/internal/operators/observable/ObservableReplay$ReplayObserver;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 2
|
|
invoke-virtual {v0}, Lio/reactivex/internal/operators/observable/ObservableReplay$ReplayObserver;->isDisposed()Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_2
|
|
|
|
.line 3
|
|
:cond_0
|
|
iget-object v1, p0, Lio/reactivex/internal/operators/observable/ObservableReplay;->c:Lio/reactivex/internal/operators/observable/ObservableReplay$a;
|
|
|
|
invoke-interface {v1}, Lio/reactivex/internal/operators/observable/ObservableReplay$a;->call()Lio/reactivex/internal/operators/observable/ObservableReplay$e;
|
|
|
|
move-result-object v1
|
|
|
|
.line 4
|
|
new-instance v2, Lio/reactivex/internal/operators/observable/ObservableReplay$ReplayObserver;
|
|
|
|
invoke-direct {v2, v1}, Lio/reactivex/internal/operators/observable/ObservableReplay$ReplayObserver;-><init>(Lio/reactivex/internal/operators/observable/ObservableReplay$e;)V
|
|
|
|
.line 5
|
|
iget-object v1, p0, Lio/reactivex/internal/operators/observable/ObservableReplay;->b:Ljava/util/concurrent/atomic/AtomicReference;
|
|
|
|
invoke-virtual {v1, v0, v2}, Ljava/util/concurrent/atomic/AtomicReference;->compareAndSet(Ljava/lang/Object;Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
move-object v0, v2
|
|
|
|
.line 6
|
|
:cond_2
|
|
iget-object v1, v0, Lio/reactivex/internal/operators/observable/ObservableReplay$ReplayObserver;->shouldConnect:Ljava/util/concurrent/atomic/AtomicBoolean;
|
|
|
|
invoke-virtual {v1}, Ljava/util/concurrent/atomic/AtomicBoolean;->get()Z
|
|
|
|
move-result v1
|
|
|
|
const/4 v2, 0x1
|
|
|
|
const/4 v3, 0x0
|
|
|
|
if-nez v1, :cond_3
|
|
|
|
iget-object v1, v0, Lio/reactivex/internal/operators/observable/ObservableReplay$ReplayObserver;->shouldConnect:Ljava/util/concurrent/atomic/AtomicBoolean;
|
|
|
|
invoke-virtual {v1, v3, v2}, Ljava/util/concurrent/atomic/AtomicBoolean;->compareAndSet(ZZ)Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_3
|
|
|
|
move v1, v2
|
|
|
|
goto :goto_1
|
|
|
|
:cond_3
|
|
move v1, v3
|
|
|
|
.line 7
|
|
:goto_1
|
|
:try_start_0
|
|
invoke-interface {p1, v0}, Lph/g;->accept(Ljava/lang/Object;)V
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
if-eqz v1, :cond_4
|
|
|
|
.line 8
|
|
iget-object p1, p0, Lio/reactivex/internal/operators/observable/ObservableReplay;->a:Lkh/e0;
|
|
|
|
invoke-interface {p1, v0}, Lkh/e0;->subscribe(Lkh/g0;)V
|
|
|
|
:cond_4
|
|
return-void
|
|
|
|
:catchall_0
|
|
move-exception p1
|
|
|
|
if-eqz v1, :cond_5
|
|
|
|
.line 9
|
|
iget-object v0, v0, Lio/reactivex/internal/operators/observable/ObservableReplay$ReplayObserver;->shouldConnect:Ljava/util/concurrent/atomic/AtomicBoolean;
|
|
|
|
invoke-virtual {v0, v2, v3}, Ljava/util/concurrent/atomic/AtomicBoolean;->compareAndSet(ZZ)Z
|
|
|
|
.line 10
|
|
:cond_5
|
|
invoke-static {p1}, Lio/reactivex/exceptions/a;->b(Ljava/lang/Throwable;)V
|
|
|
|
.line 11
|
|
invoke-static {p1}, Lio/reactivex/internal/util/ExceptionHelper;->f(Ljava/lang/Throwable;)Ljava/lang/RuntimeException;
|
|
|
|
move-result-object p1
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method public source()Lkh/e0;
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"()",
|
|
"Lkh/e0<",
|
|
"TT;>;"
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lio/reactivex/internal/operators/observable/ObservableReplay;->a:Lkh/e0;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public subscribeActual(Lkh/g0;)V
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Lkh/g0<",
|
|
"-TT;>;)V"
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
iget-object v0, p0, Lio/reactivex/internal/operators/observable/ObservableReplay;->d:Lkh/e0;
|
|
|
|
invoke-interface {v0, p1}, Lkh/e0;->subscribe(Lkh/g0;)V
|
|
|
|
return-void
|
|
.end method
|