apkfuckery/com.discord/smali/f/c/a/l0.smali

59 lines
1.7 KiB
Smali
Raw Normal View History

2020-07-08 16:44:49 +00:00
.class public final Lf/c/a/l0;
2020-05-17 12:40:10 +00:00
.super Ljava/lang/Object;
2020-07-08 16:44:49 +00:00
.source "CustomScheduledExecutor.java"
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lf/c/a/l0$c;
}
.end annotation
2020-05-17 12:40:10 +00:00
# instance fields
2020-07-08 16:44:49 +00:00
.field public a:Ljava/util/concurrent/ScheduledThreadPoolExecutor;
2020-05-17 12:40:10 +00:00
# direct methods
2020-07-08 16:44:49 +00:00
.method public constructor <init>(Ljava/lang/String;Z)V
.locals 4
2020-05-17 12:40:10 +00:00
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
2020-07-08 16:44:49 +00:00
new-instance v0, Ljava/util/concurrent/atomic/AtomicInteger;
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
invoke-direct {v0, v1}, Ljava/util/concurrent/atomic/AtomicInteger;-><init>(I)V
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
new-instance v0, Ljava/util/concurrent/ScheduledThreadPoolExecutor;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
new-instance v2, Lf/c/a/l0$a;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-direct {v2, p0, p1}, Lf/c/a/l0$a;-><init>(Lf/c/a/l0;Ljava/lang/String;)V
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
new-instance v3, Lf/c/a/l0$b;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-direct {v3, p0, p1}, Lf/c/a/l0$b;-><init>(Lf/c/a/l0;Ljava/lang/String;)V
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-direct {v0, v1, v2, v3}, Ljava/util/concurrent/ScheduledThreadPoolExecutor;-><init>(ILjava/util/concurrent/ThreadFactory;Ljava/util/concurrent/RejectedExecutionHandler;)V
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
iput-object v0, p0, Lf/c/a/l0;->a:Ljava/util/concurrent/ScheduledThreadPoolExecutor;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
if-nez p2, :cond_0
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
const-wide/16 p1, 0xa
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
sget-object v2, Ljava/util/concurrent/TimeUnit;->MILLISECONDS:Ljava/util/concurrent/TimeUnit;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-virtual {v0, p1, p2, v2}, Ljava/util/concurrent/ScheduledThreadPoolExecutor;->setKeepAliveTime(JLjava/util/concurrent/TimeUnit;)V
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
iget-object p1, p0, Lf/c/a/l0;->a:Ljava/util/concurrent/ScheduledThreadPoolExecutor;
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
invoke-virtual {p1, v1}, Ljava/util/concurrent/ScheduledThreadPoolExecutor;->allowCoreThreadTimeOut(Z)V
2020-05-17 12:40:10 +00:00
2020-07-08 16:44:49 +00:00
:cond_0
2020-05-17 12:40:10 +00:00
return-void
.end method