apkfuckery/com.discord/smali_classes2/g0/q/a.smali

254 lines
5.1 KiB
Smali
Raw Normal View History

2020-03-27 22:23:51 +00:00
.class public final Lg0/q/a;
2019-12-21 01:41:59 +00:00
.super Ljava/lang/Object;
.source "Schedulers.java"
# static fields
.field public static final d:Ljava/util/concurrent/atomic/AtomicReference;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/concurrent/atomic/AtomicReference<",
2020-03-27 22:23:51 +00:00
"Lg0/q/a;",
2019-12-21 01:41:59 +00:00
">;"
}
.end annotation
.end field
# instance fields
.field public final a:Lrx/Scheduler;
.field public final b:Lrx/Scheduler;
.field public final c:Lrx/Scheduler;
# direct methods
.method public static constructor <clinit>()V
.locals 1
new-instance v0, Ljava/util/concurrent/atomic/AtomicReference;
invoke-direct {v0}, Ljava/util/concurrent/atomic/AtomicReference;-><init>()V
2020-03-27 22:23:51 +00:00
sput-object v0, Lg0/q/a;->d:Ljava/util/concurrent/atomic/AtomicReference;
2019-12-21 01:41:59 +00:00
return-void
.end method
.method public constructor <init>()V
.locals 2
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
2020-03-27 22:23:51 +00:00
sget-object v0, Lg0/p/o;->f:Lg0/p/o;
2019-12-21 01:41:59 +00:00
2020-03-27 22:23:51 +00:00
invoke-virtual {v0}, Lg0/p/o;->d()Lg0/p/p;
2019-12-21 01:41:59 +00:00
move-result-object v0
2020-03-27 22:23:51 +00:00
invoke-virtual {v0}, Lg0/p/p;->a()Lrx/Scheduler;
2019-12-21 01:41:59 +00:00
2020-03-27 22:23:51 +00:00
new-instance v0, Lg0/m/e/i;
2019-12-21 01:41:59 +00:00
const-string v1, "RxComputationScheduler-"
2020-03-27 22:23:51 +00:00
invoke-direct {v0, v1}, Lg0/m/e/i;-><init>(Ljava/lang/String;)V
2019-12-21 01:41:59 +00:00
2020-03-27 22:23:51 +00:00
new-instance v1, Lg0/m/c/b;
2019-12-21 01:41:59 +00:00
2020-03-27 22:23:51 +00:00
invoke-direct {v1, v0}, Lg0/m/c/b;-><init>(Ljava/util/concurrent/ThreadFactory;)V
2019-12-21 01:41:59 +00:00
2020-03-27 22:23:51 +00:00
iput-object v1, p0, Lg0/q/a;->a:Lrx/Scheduler;
2019-12-21 01:41:59 +00:00
2020-03-27 22:23:51 +00:00
new-instance v0, Lg0/m/e/i;
2019-12-21 01:41:59 +00:00
const-string v1, "RxIoScheduler-"
2020-03-27 22:23:51 +00:00
invoke-direct {v0, v1}, Lg0/m/e/i;-><init>(Ljava/lang/String;)V
2019-12-21 01:41:59 +00:00
2020-03-27 22:23:51 +00:00
new-instance v1, Lg0/m/c/a;
2019-12-21 01:41:59 +00:00
2020-03-27 22:23:51 +00:00
invoke-direct {v1, v0}, Lg0/m/c/a;-><init>(Ljava/util/concurrent/ThreadFactory;)V
2019-12-21 01:41:59 +00:00
2020-03-27 22:23:51 +00:00
iput-object v1, p0, Lg0/q/a;->b:Lrx/Scheduler;
2019-12-21 01:41:59 +00:00
2020-03-27 22:23:51 +00:00
new-instance v0, Lg0/m/e/i;
2019-12-21 01:41:59 +00:00
const-string v1, "RxNewThreadScheduler-"
2020-03-27 22:23:51 +00:00
invoke-direct {v0, v1}, Lg0/m/e/i;-><init>(Ljava/lang/String;)V
2019-12-21 01:41:59 +00:00
2020-03-27 22:23:51 +00:00
new-instance v1, Lg0/m/c/g;
2019-12-21 01:41:59 +00:00
2020-03-27 22:23:51 +00:00
invoke-direct {v1, v0}, Lg0/m/c/g;-><init>(Ljava/util/concurrent/ThreadFactory;)V
2019-12-21 01:41:59 +00:00
2020-03-27 22:23:51 +00:00
iput-object v1, p0, Lg0/q/a;->c:Lrx/Scheduler;
2019-12-21 01:41:59 +00:00
return-void
.end method
.method public static a(Ljava/util/concurrent/Executor;)Lrx/Scheduler;
.locals 1
2020-03-27 22:23:51 +00:00
new-instance v0, Lg0/m/c/c;
2019-12-21 01:41:59 +00:00
2020-03-27 22:23:51 +00:00
invoke-direct {v0, p0}, Lg0/m/c/c;-><init>(Ljava/util/concurrent/Executor;)V
2019-12-21 01:41:59 +00:00
return-object v0
.end method
.method public static b()Lrx/Scheduler;
.locals 2
2020-03-27 22:23:51 +00:00
invoke-static {}, Lg0/q/a;->c()Lg0/q/a;
2019-12-21 01:41:59 +00:00
move-result-object v0
2020-03-27 22:23:51 +00:00
iget-object v0, v0, Lg0/q/a;->a:Lrx/Scheduler;
2019-12-21 01:41:59 +00:00
2020-03-27 22:23:51 +00:00
sget-object v1, Lg0/p/l;->f:Lg0/l/i;
2019-12-21 01:41:59 +00:00
if-eqz v1, :cond_0
2020-03-27 22:23:51 +00:00
invoke-interface {v1, v0}, Lg0/l/i;->call(Ljava/lang/Object;)Ljava/lang/Object;
2019-12-21 01:41:59 +00:00
move-result-object v0
check-cast v0, Lrx/Scheduler;
:cond_0
return-object v0
.end method
2020-03-27 22:23:51 +00:00
.method public static c()Lg0/q/a;
2019-12-21 01:41:59 +00:00
.locals 3
:goto_0
2020-03-27 22:23:51 +00:00
sget-object v0, Lg0/q/a;->d:Ljava/util/concurrent/atomic/AtomicReference;
2019-12-21 01:41:59 +00:00
invoke-virtual {v0}, Ljava/util/concurrent/atomic/AtomicReference;->get()Ljava/lang/Object;
move-result-object v0
2020-03-27 22:23:51 +00:00
check-cast v0, Lg0/q/a;
2019-12-21 01:41:59 +00:00
if-eqz v0, :cond_0
return-object v0
:cond_0
2020-03-27 22:23:51 +00:00
new-instance v0, Lg0/q/a;
2019-12-21 01:41:59 +00:00
2020-03-27 22:23:51 +00:00
invoke-direct {v0}, Lg0/q/a;-><init>()V
2019-12-21 01:41:59 +00:00
2020-03-27 22:23:51 +00:00
sget-object v1, Lg0/q/a;->d:Ljava/util/concurrent/atomic/AtomicReference;
2019-12-21 01:41:59 +00:00
const/4 v2, 0x0
invoke-virtual {v1, v2, v0}, Ljava/util/concurrent/atomic/AtomicReference;->compareAndSet(Ljava/lang/Object;Ljava/lang/Object;)Z
move-result v1
if-eqz v1, :cond_1
return-object v0
:cond_1
2020-03-27 22:23:51 +00:00
invoke-virtual {v0}, Lg0/q/a;->a()V
2019-12-21 01:41:59 +00:00
goto :goto_0
.end method
.method public static d()Lrx/Scheduler;
.locals 2
2020-03-27 22:23:51 +00:00
invoke-static {}, Lg0/q/a;->c()Lg0/q/a;
2019-12-21 01:41:59 +00:00
move-result-object v0
2020-03-27 22:23:51 +00:00
iget-object v0, v0, Lg0/q/a;->b:Lrx/Scheduler;
2019-12-21 01:41:59 +00:00
2020-03-27 22:23:51 +00:00
sget-object v1, Lg0/p/l;->g:Lg0/l/i;
2019-12-21 01:41:59 +00:00
if-eqz v1, :cond_0
2020-03-27 22:23:51 +00:00
invoke-interface {v1, v0}, Lg0/l/i;->call(Ljava/lang/Object;)Ljava/lang/Object;
2019-12-21 01:41:59 +00:00
move-result-object v0
check-cast v0, Lrx/Scheduler;
:cond_0
return-object v0
.end method
.method public static e()Lrx/Scheduler;
.locals 1
2020-03-27 22:23:51 +00:00
sget-object v0, Lg0/m/c/n;->a:Lg0/m/c/n;
2019-12-21 01:41:59 +00:00
return-object v0
.end method
# virtual methods
.method public declared-synchronized a()V
.locals 1
monitor-enter p0
:try_start_0
2020-03-27 22:23:51 +00:00
iget-object v0, p0, Lg0/q/a;->a:Lrx/Scheduler;
2019-12-21 01:41:59 +00:00
2020-03-27 22:23:51 +00:00
instance-of v0, v0, Lg0/m/c/l;
2019-12-21 01:41:59 +00:00
if-eqz v0, :cond_0
2020-03-27 22:23:51 +00:00
iget-object v0, p0, Lg0/q/a;->a:Lrx/Scheduler;
2019-12-21 01:41:59 +00:00
2020-03-27 22:23:51 +00:00
check-cast v0, Lg0/m/c/l;
2019-12-21 01:41:59 +00:00
2020-03-27 22:23:51 +00:00
invoke-interface {v0}, Lg0/m/c/l;->shutdown()V
2019-12-21 01:41:59 +00:00
:cond_0
2020-03-27 22:23:51 +00:00
iget-object v0, p0, Lg0/q/a;->b:Lrx/Scheduler;
2019-12-21 01:41:59 +00:00
2020-03-27 22:23:51 +00:00
instance-of v0, v0, Lg0/m/c/l;
2019-12-21 01:41:59 +00:00
if-eqz v0, :cond_1
2020-03-27 22:23:51 +00:00
iget-object v0, p0, Lg0/q/a;->b:Lrx/Scheduler;
2019-12-21 01:41:59 +00:00
2020-03-27 22:23:51 +00:00
check-cast v0, Lg0/m/c/l;
2019-12-21 01:41:59 +00:00
2020-03-27 22:23:51 +00:00
invoke-interface {v0}, Lg0/m/c/l;->shutdown()V
2019-12-21 01:41:59 +00:00
:cond_1
2020-03-27 22:23:51 +00:00
iget-object v0, p0, Lg0/q/a;->c:Lrx/Scheduler;
2019-12-21 01:41:59 +00:00
2020-03-27 22:23:51 +00:00
instance-of v0, v0, Lg0/m/c/l;
2019-12-21 01:41:59 +00:00
if-eqz v0, :cond_2
2020-03-27 22:23:51 +00:00
iget-object v0, p0, Lg0/q/a;->c:Lrx/Scheduler;
2019-12-21 01:41:59 +00:00
2020-03-27 22:23:51 +00:00
check-cast v0, Lg0/m/c/l;
2019-12-21 01:41:59 +00:00
2020-03-27 22:23:51 +00:00
invoke-interface {v0}, Lg0/m/c/l;->shutdown()V
2019-12-21 01:41:59 +00:00
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
:cond_2
monitor-exit p0
return-void
:catchall_0
move-exception v0
monitor-exit p0
throw v0
.end method