apkfuckery/com.discord/smali_classes2/rx/subjects/BehaviorSubject.smali

365 lines
7.4 KiB
Smali
Raw Normal View History

2020-05-17 12:40:10 +00:00
.class public final Lrx/subjects/BehaviorSubject;
.super Lrx/subjects/Subject;
.source "BehaviorSubject.java"
# annotations
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">",
"Lrx/subjects/Subject<",
"TT;TT;>;"
}
.end annotation
2020-07-08 16:44:49 +00:00
# static fields
.field public static final f:[Ljava/lang/Object;
2020-05-17 12:40:10 +00:00
# instance fields
2020-07-23 01:06:17 +00:00
.field public final e:Lr0/q/c;
2020-05-17 12:40:10 +00:00
.annotation system Ldalvik/annotation/Signature;
value = {
2020-07-23 01:06:17 +00:00
"Lr0/q/c<",
2020-05-17 12:40:10 +00:00
"TT;>;"
}
.end annotation
.end field
# direct methods
2020-07-08 16:44:49 +00:00
.method public static constructor <clinit>()V
.locals 1
const/4 v0, 0x0
new-array v0, v0, [Ljava/lang/Object;
sput-object v0, Lrx/subjects/BehaviorSubject;->f:[Ljava/lang/Object;
return-void
.end method
2020-07-23 01:06:17 +00:00
.method public constructor <init>(Lrx/Observable$a;Lr0/q/c;)V
2020-05-17 12:40:10 +00:00
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lrx/Observable$a<",
"TT;>;",
2020-07-23 01:06:17 +00:00
"Lr0/q/c<",
2020-05-17 12:40:10 +00:00
"TT;>;)V"
}
.end annotation
invoke-direct {p0, p1}, Lrx/subjects/Subject;-><init>(Lrx/Observable$a;)V
2020-07-23 01:06:17 +00:00
iput-object p2, p0, Lrx/subjects/BehaviorSubject;->e:Lr0/q/c;
2020-05-17 12:40:10 +00:00
return-void
.end method
2020-08-01 01:14:42 +00:00
.method public static g0()Lrx/subjects/BehaviorSubject;
2020-07-08 16:44:49 +00:00
.locals 2
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">()",
"Lrx/subjects/BehaviorSubject<",
"TT;>;"
}
.end annotation
const/4 v0, 0x0
const/4 v1, 0x0
2020-08-01 01:14:42 +00:00
invoke-static {v0, v1}, Lrx/subjects/BehaviorSubject;->i0(Ljava/lang/Object;Z)Lrx/subjects/BehaviorSubject;
2020-07-08 16:44:49 +00:00
move-result-object v0
return-object v0
.end method
2020-08-01 01:14:42 +00:00
.method public static h0(Ljava/lang/Object;)Lrx/subjects/BehaviorSubject;
2020-05-17 12:40:10 +00:00
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">(TT;)",
"Lrx/subjects/BehaviorSubject<",
"TT;>;"
}
.end annotation
const/4 v0, 0x1
2020-08-01 01:14:42 +00:00
invoke-static {p0, v0}, Lrx/subjects/BehaviorSubject;->i0(Ljava/lang/Object;Z)Lrx/subjects/BehaviorSubject;
2020-05-17 12:40:10 +00:00
move-result-object p0
return-object p0
.end method
2020-08-01 01:14:42 +00:00
.method public static i0(Ljava/lang/Object;Z)Lrx/subjects/BehaviorSubject;
2020-05-17 12:40:10 +00:00
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">(TT;Z)",
"Lrx/subjects/BehaviorSubject<",
"TT;>;"
}
.end annotation
2020-07-23 01:06:17 +00:00
new-instance v0, Lr0/q/c;
2020-05-17 12:40:10 +00:00
2020-07-23 01:06:17 +00:00
invoke-direct {v0}, Lr0/q/c;-><init>()V
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
if-eqz p1, :cond_1
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
if-nez p0, :cond_0
2020-05-17 12:40:10 +00:00
2020-07-23 01:06:17 +00:00
sget-object p0, Lr0/l/a/h;->b:Ljava/lang/Object;
2020-05-17 12:40:10 +00:00
:cond_0
2020-07-23 01:06:17 +00:00
iput-object p0, v0, Lr0/q/c;->latest:Ljava/lang/Object;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
:cond_1
new-instance p0, Lrx/subjects/BehaviorSubject$a;
2020-05-17 12:40:10 +00:00
2020-07-23 01:06:17 +00:00
invoke-direct {p0, v0}, Lrx/subjects/BehaviorSubject$a;-><init>(Lr0/q/c;)V
2020-05-17 12:40:10 +00:00
2020-07-23 01:06:17 +00:00
iput-object p0, v0, Lr0/q/c;->onAdded:Lrx/functions/Action1;
2020-05-17 12:40:10 +00:00
2020-07-23 01:06:17 +00:00
iput-object p0, v0, Lr0/q/c;->onTerminated:Lrx/functions/Action1;
2020-05-17 12:40:10 +00:00
new-instance p0, Lrx/subjects/BehaviorSubject;
2020-07-23 01:06:17 +00:00
invoke-direct {p0, v0, v0}, Lrx/subjects/BehaviorSubject;-><init>(Lrx/Observable$a;Lr0/q/c;)V
2020-05-17 12:40:10 +00:00
return-object p0
.end method
2020-07-08 16:44:49 +00:00
# virtual methods
2020-08-01 01:14:42 +00:00
.method public j0()Ljava/lang/Object;
2020-05-17 12:40:10 +00:00
.locals 2
.annotation system Ldalvik/annotation/Signature;
value = {
2020-07-08 16:44:49 +00:00
"()TT;"
2020-05-17 12:40:10 +00:00
}
.end annotation
2020-07-23 01:06:17 +00:00
iget-object v0, p0, Lrx/subjects/BehaviorSubject;->e:Lr0/q/c;
2020-05-17 12:40:10 +00:00
2020-07-23 01:06:17 +00:00
iget-object v0, v0, Lr0/q/c;->latest:Ljava/lang/Object;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
if-eqz v0, :cond_0
2020-05-17 12:40:10 +00:00
2020-07-23 01:06:17 +00:00
instance-of v1, v0, Lr0/l/a/h$c;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
if-nez v1, :cond_0
2020-05-17 12:40:10 +00:00
2020-07-23 01:06:17 +00:00
invoke-static {v0}, Lr0/l/a/h;->c(Ljava/lang/Object;)Z
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
move-result v1
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
if-nez v1, :cond_0
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
const/4 v1, 0x1
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
goto :goto_0
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
:cond_0
const/4 v1, 0x0
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
:goto_0
if-eqz v1, :cond_1
2020-05-17 12:40:10 +00:00
2020-07-23 01:06:17 +00:00
invoke-static {v0}, Lr0/l/a/h;->b(Ljava/lang/Object;)Ljava/lang/Object;
2020-05-17 12:40:10 +00:00
move-result-object v0
return-object v0
2020-07-08 16:44:49 +00:00
:cond_1
2020-05-17 12:40:10 +00:00
const/4 v0, 0x0
return-object v0
.end method
.method public onCompleted()V
.locals 5
2020-07-23 01:06:17 +00:00
iget-object v0, p0, Lrx/subjects/BehaviorSubject;->e:Lr0/q/c;
2020-05-17 12:40:10 +00:00
2020-07-23 01:06:17 +00:00
iget-object v0, v0, Lr0/q/c;->latest:Ljava/lang/Object;
2020-05-17 12:40:10 +00:00
if-eqz v0, :cond_0
2020-07-23 01:06:17 +00:00
iget-object v0, p0, Lrx/subjects/BehaviorSubject;->e:Lr0/q/c;
2020-05-17 12:40:10 +00:00
2020-07-23 01:06:17 +00:00
iget-boolean v0, v0, Lr0/q/c;->active:Z
2020-05-17 12:40:10 +00:00
if-eqz v0, :cond_1
:cond_0
2020-07-23 01:06:17 +00:00
sget-object v0, Lr0/l/a/h;->a:Ljava/lang/Object;
2020-05-17 12:40:10 +00:00
2020-07-23 01:06:17 +00:00
iget-object v1, p0, Lrx/subjects/BehaviorSubject;->e:Lr0/q/c;
2020-05-17 12:40:10 +00:00
2020-07-23 01:06:17 +00:00
invoke-virtual {v1, v0}, Lr0/q/c;->b(Ljava/lang/Object;)[Lr0/q/c$b;
2020-05-17 12:40:10 +00:00
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
2020-07-23 01:06:17 +00:00
invoke-virtual {v4, v0}, Lr0/q/c$b;->a(Ljava/lang/Object;)V
2020-05-17 12:40:10 +00:00
add-int/lit8 v3, v3, 0x1
goto :goto_0
:cond_1
return-void
.end method
.method public onError(Ljava/lang/Throwable;)V
.locals 5
2020-07-23 01:06:17 +00:00
iget-object v0, p0, Lrx/subjects/BehaviorSubject;->e:Lr0/q/c;
2020-05-17 12:40:10 +00:00
2020-07-23 01:06:17 +00:00
iget-object v0, v0, Lr0/q/c;->latest:Ljava/lang/Object;
2020-05-17 12:40:10 +00:00
if-eqz v0, :cond_0
2020-07-23 01:06:17 +00:00
iget-object v0, p0, Lrx/subjects/BehaviorSubject;->e:Lr0/q/c;
2020-05-17 12:40:10 +00:00
2020-07-23 01:06:17 +00:00
iget-boolean v0, v0, Lr0/q/c;->active:Z
2020-05-17 12:40:10 +00:00
if-eqz v0, :cond_3
:cond_0
2020-07-23 01:06:17 +00:00
new-instance v0, Lr0/l/a/h$c;
2020-05-17 12:40:10 +00:00
2020-07-23 01:06:17 +00:00
invoke-direct {v0, p1}, Lr0/l/a/h$c;-><init>(Ljava/lang/Throwable;)V
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
const/4 p1, 0x0
2020-05-17 12:40:10 +00:00
2020-07-23 01:06:17 +00:00
iget-object v1, p0, Lrx/subjects/BehaviorSubject;->e:Lr0/q/c;
2020-05-17 12:40:10 +00:00
2020-07-23 01:06:17 +00:00
invoke-virtual {v1, v0}, Lr0/q/c;->b(Ljava/lang/Object;)[Lr0/q/c$b;
2020-05-17 12:40:10 +00:00
move-result-object v1
array-length v2, v1
const/4 v3, 0x0
:goto_0
if-ge v3, v2, :cond_2
aget-object v4, v1, v3
:try_start_0
2020-07-23 01:06:17 +00:00
invoke-virtual {v4, v0}, Lr0/q/c$b;->a(Ljava/lang/Object;)V
2020-05-17 12:40:10 +00:00
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
goto :goto_1
:catchall_0
move-exception v4
2020-07-08 16:44:49 +00:00
if-nez p1, :cond_1
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
new-instance p1, Ljava/util/ArrayList;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-direct {p1}, Ljava/util/ArrayList;-><init>()V
2020-05-17 12:40:10 +00:00
:cond_1
2020-07-08 16:44:49 +00:00
invoke-interface {p1, v4}, Ljava/util/List;->add(Ljava/lang/Object;)Z
2020-05-17 12:40:10 +00:00
:goto_1
add-int/lit8 v3, v3, 0x1
goto :goto_0
:cond_2
2020-07-25 02:57:47 +00:00
invoke-static {p1}, Lf/n/a/k/a;->e0(Ljava/util/List;)V
2020-05-17 12:40:10 +00:00
:cond_3
return-void
.end method
.method public onNext(Ljava/lang/Object;)V
.locals 4
.annotation system Ldalvik/annotation/Signature;
value = {
"(TT;)V"
}
.end annotation
2020-07-23 01:06:17 +00:00
iget-object v0, p0, Lrx/subjects/BehaviorSubject;->e:Lr0/q/c;
2020-05-17 12:40:10 +00:00
2020-07-23 01:06:17 +00:00
iget-object v0, v0, Lr0/q/c;->latest:Ljava/lang/Object;
2020-05-17 12:40:10 +00:00
if-eqz v0, :cond_0
2020-07-23 01:06:17 +00:00
iget-object v0, p0, Lrx/subjects/BehaviorSubject;->e:Lr0/q/c;
2020-05-17 12:40:10 +00:00
2020-07-23 01:06:17 +00:00
iget-boolean v0, v0, Lr0/q/c;->active:Z
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
if-eqz v0, :cond_2
2020-05-17 12:40:10 +00:00
:cond_0
2020-07-08 16:44:49 +00:00
if-nez p1, :cond_1
2020-07-23 01:06:17 +00:00
sget-object p1, Lr0/l/a/h;->b:Ljava/lang/Object;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
:cond_1
2020-07-23 01:06:17 +00:00
iget-object v0, p0, Lrx/subjects/BehaviorSubject;->e:Lr0/q/c;
2020-05-17 12:40:10 +00:00
2020-07-23 01:06:17 +00:00
iput-object p1, v0, Lr0/q/c;->latest:Ljava/lang/Object;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-virtual {v0}, Ljava/util/concurrent/atomic/AtomicReference;->get()Ljava/lang/Object;
2020-05-17 12:40:10 +00:00
move-result-object v0
2020-07-23 01:06:17 +00:00
check-cast v0, Lr0/q/c$a;
2020-07-08 16:44:49 +00:00
2020-07-23 01:06:17 +00:00
iget-object v0, v0, Lr0/q/c$a;->b:[Lr0/q/c$b;
2020-07-08 16:44:49 +00:00
2020-05-17 12:40:10 +00:00
array-length v1, v0
const/4 v2, 0x0
:goto_0
2020-07-08 16:44:49 +00:00
if-ge v2, v1, :cond_2
2020-05-17 12:40:10 +00:00
aget-object v3, v0, v2
2020-07-23 01:06:17 +00:00
invoke-virtual {v3, p1}, Lr0/q/c$b;->a(Ljava/lang/Object;)V
2020-05-17 12:40:10 +00:00
add-int/lit8 v2, v2, 0x1
goto :goto_0
2020-07-08 16:44:49 +00:00
:cond_2
2020-05-17 12:40:10 +00:00
return-void
.end method