apkfuckery/com.discord/smali/a/b.smali

122 lines
2.5 KiB
Smali
Raw Normal View History

2019-07-24 11:27:29 +00:00
.class final La/b;
.super Ljava/lang/Object;
.source "BoltsExecutors.java"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
La/b$a;
}
.end annotation
# static fields
2019-10-07 23:23:22 +00:00
.field private static final m:La/b;
2019-07-24 11:27:29 +00:00
# instance fields
2019-10-07 23:23:22 +00:00
.field private final n:Ljava/util/concurrent/ExecutorService;
2019-07-24 11:27:29 +00:00
2019-10-07 23:23:22 +00:00
.field private final p:Ljava/util/concurrent/ScheduledExecutorService;
2019-07-24 11:27:29 +00:00
2019-10-07 23:23:22 +00:00
.field private final q:Ljava/util/concurrent/Executor;
2019-07-24 11:27:29 +00:00
# direct methods
.method static constructor <clinit>()V
.locals 1
new-instance v0, La/b;
invoke-direct {v0}, La/b;-><init>()V
2019-10-07 23:23:22 +00:00
sput-object v0, La/b;->m:La/b;
2019-07-24 11:27:29 +00:00
return-void
.end method
.method private constructor <init>()V
.locals 3
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
const-string v0, "java.runtime.name"
invoke-static {v0}, Ljava/lang/System;->getProperty(Ljava/lang/String;)Ljava/lang/String;
move-result-object v0
const/4 v1, 0x0
if-nez v0, :cond_0
const/4 v0, 0x0
goto :goto_0
:cond_0
sget-object v2, Ljava/util/Locale;->US:Ljava/util/Locale;
invoke-virtual {v0, v2}, Ljava/lang/String;->toLowerCase(Ljava/util/Locale;)Ljava/lang/String;
move-result-object v0
const-string v2, "android"
invoke-virtual {v0, v2}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z
move-result v0
:goto_0
if-nez v0, :cond_1
invoke-static {}, Ljava/util/concurrent/Executors;->newCachedThreadPool()Ljava/util/concurrent/ExecutorService;
move-result-object v0
goto :goto_1
:cond_1
2019-10-09 23:16:36 +00:00
invoke-static {}, La/a;->a()Ljava/util/concurrent/ExecutorService;
2019-07-24 11:27:29 +00:00
move-result-object v0
:goto_1
2019-10-07 23:23:22 +00:00
iput-object v0, p0, La/b;->n:Ljava/util/concurrent/ExecutorService;
2019-07-24 11:27:29 +00:00
invoke-static {}, Ljava/util/concurrent/Executors;->newSingleThreadScheduledExecutor()Ljava/util/concurrent/ScheduledExecutorService;
move-result-object v0
2019-10-07 23:23:22 +00:00
iput-object v0, p0, La/b;->p:Ljava/util/concurrent/ScheduledExecutorService;
2019-07-24 11:27:29 +00:00
new-instance v0, La/b$a;
invoke-direct {v0, v1}, La/b$a;-><init>(B)V
2019-10-07 23:23:22 +00:00
iput-object v0, p0, La/b;->q:Ljava/util/concurrent/Executor;
2019-07-24 11:27:29 +00:00
return-void
.end method
2019-10-09 23:16:36 +00:00
.method public static d()Ljava/util/concurrent/ExecutorService;
2019-07-24 11:27:29 +00:00
.locals 1
2019-10-07 23:23:22 +00:00
sget-object v0, La/b;->m:La/b;
2019-07-24 11:27:29 +00:00
2019-10-07 23:23:22 +00:00
iget-object v0, v0, La/b;->n:Ljava/util/concurrent/ExecutorService;
2019-07-24 11:27:29 +00:00
return-object v0
.end method
2019-10-09 23:16:36 +00:00
.method static e()Ljava/util/concurrent/Executor;
2019-07-24 11:27:29 +00:00
.locals 1
2019-10-07 23:23:22 +00:00
sget-object v0, La/b;->m:La/b;
2019-07-24 11:27:29 +00:00
2019-10-07 23:23:22 +00:00
iget-object v0, v0, La/b;->q:Ljava/util/concurrent/Executor;
2019-07-24 11:27:29 +00:00
return-object v0
.end method