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

108 lines
2.1 KiB
Smali
Raw Normal View History

2019-12-21 01:41:59 +00:00
.class public final Lq/a;
2019-07-24 11:27:29 +00:00
.super Ljava/lang/Object;
.source "AndroidExecutors.java"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
2019-12-21 01:41:59 +00:00
Lq/a$b;
2019-07-24 11:27:29 +00:00
}
.end annotation
# static fields
2019-12-21 01:41:59 +00:00
.field public static final b:Lq/a;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
.field public static final c:I
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
.field public static final d:I
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
.field public static final e:I
2019-07-24 11:27:29 +00:00
# instance fields
2019-12-06 03:29:40 +00:00
.field public final a:Ljava/util/concurrent/Executor;
2019-07-24 11:27:29 +00:00
# direct methods
2019-12-06 03:29:40 +00:00
.method public static constructor <clinit>()V
.locals 2
2019-07-24 11:27:29 +00:00
2019-12-21 01:41:59 +00:00
new-instance v0, Lq/a;
2019-07-24 11:27:29 +00:00
2019-12-21 01:41:59 +00:00
invoke-direct {v0}, Lq/a;-><init>()V
2019-07-24 11:27:29 +00:00
2019-12-21 01:41:59 +00:00
sput-object v0, Lq/a;->b:Lq/a;
2019-07-24 11:27:29 +00:00
invoke-static {}, Ljava/lang/Runtime;->getRuntime()Ljava/lang/Runtime;
move-result-object v0
invoke-virtual {v0}, Ljava/lang/Runtime;->availableProcessors()I
move-result v0
2019-12-21 01:41:59 +00:00
sput v0, Lq/a;->c:I
2019-07-24 11:27:29 +00:00
2019-12-21 01:41:59 +00:00
sget v0, Lq/a;->c:I
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
add-int/lit8 v1, v0, 0x1
2019-07-24 11:27:29 +00:00
2019-12-21 01:41:59 +00:00
sput v1, Lq/a;->d:I
2019-07-24 11:27:29 +00:00
mul-int/lit8 v0, v0, 0x2
add-int/lit8 v0, v0, 0x1
2019-12-21 01:41:59 +00:00
sput v0, Lq/a;->e:I
2019-07-24 11:27:29 +00:00
return-void
.end method
2019-12-06 03:29:40 +00:00
.method public constructor <init>()V
2019-07-24 11:27:29 +00:00
.locals 2
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
2019-12-21 01:41:59 +00:00
new-instance v0, Lq/a$b;
2019-07-24 11:27:29 +00:00
const/4 v1, 0x0
2019-12-21 01:41:59 +00:00
invoke-direct {v0, v1}, Lq/a$b;-><init>(Lq/a$a;)V
2019-07-24 11:27:29 +00:00
2019-12-21 01:41:59 +00:00
iput-object v0, p0, Lq/a;->a: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 a()Ljava/util/concurrent/ExecutorService;
2019-07-24 11:27:29 +00:00
.locals 8
new-instance v7, Ljava/util/concurrent/ThreadPoolExecutor;
2019-12-21 01:41:59 +00:00
sget v1, Lq/a;->d:I
2019-07-24 11:27:29 +00:00
2019-12-21 01:41:59 +00:00
sget v2, Lq/a;->e:I
2019-07-24 11:27:29 +00:00
sget-object v5, Ljava/util/concurrent/TimeUnit;->SECONDS:Ljava/util/concurrent/TimeUnit;
new-instance v6, Ljava/util/concurrent/LinkedBlockingQueue;
invoke-direct {v6}, Ljava/util/concurrent/LinkedBlockingQueue;-><init>()V
const-wide/16 v3, 0x1
move-object v0, v7
invoke-direct/range {v0 .. v6}, Ljava/util/concurrent/ThreadPoolExecutor;-><init>(IIJLjava/util/concurrent/TimeUnit;Ljava/util/concurrent/BlockingQueue;)V
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
const/4 v0, 0x1
invoke-virtual {v7, v0}, Ljava/util/concurrent/ThreadPoolExecutor;->allowCoreThreadTimeOut(Z)V
return-object v7
.end method