apkfuckery/com.discord/smali/com/adjust/sdk/s.smali

115 lines
3.6 KiB
Smali
Raw Normal View History

2019-02-04 20:08:30 +00:00
.class public final Lcom/adjust/sdk/s;
.super Ljava/lang/Object;
2019-02-04 20:29:01 +00:00
.source "CustomScheduledExecutor.java"
2019-02-04 20:08:30 +00:00
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/adjust/sdk/s$a;
}
.end annotation
# instance fields
2019-03-26 19:13:28 +00:00
.field dV:Ljava/util/concurrent/ScheduledThreadPoolExecutor;
2019-02-04 20:08:30 +00:00
2019-03-26 19:13:28 +00:00
.field private final dW:Ljava/util/concurrent/atomic/AtomicInteger;
2019-02-04 20:08:30 +00:00
.field private source:Ljava/lang/String;
# direct methods
.method public constructor <init>(Ljava/lang/String;Z)V
.locals 4
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
new-instance v0, Ljava/util/concurrent/atomic/AtomicInteger;
const/4 v1, 0x1
invoke-direct {v0, v1}, Ljava/util/concurrent/atomic/AtomicInteger;-><init>(I)V
2019-03-26 19:13:28 +00:00
iput-object v0, p0, Lcom/adjust/sdk/s;->dW:Ljava/util/concurrent/atomic/AtomicInteger;
2019-02-04 20:08:30 +00:00
iput-object p1, p0, Lcom/adjust/sdk/s;->source:Ljava/lang/String;
new-instance v0, Ljava/util/concurrent/ScheduledThreadPoolExecutor;
new-instance v2, Lcom/adjust/sdk/s$1;
invoke-direct {v2, p0, p1}, Lcom/adjust/sdk/s$1;-><init>(Lcom/adjust/sdk/s;Ljava/lang/String;)V
new-instance v3, Lcom/adjust/sdk/s$2;
invoke-direct {v3, p0, p1}, Lcom/adjust/sdk/s$2;-><init>(Lcom/adjust/sdk/s;Ljava/lang/String;)V
invoke-direct {v0, v1, v2, v3}, Ljava/util/concurrent/ScheduledThreadPoolExecutor;-><init>(ILjava/util/concurrent/ThreadFactory;Ljava/util/concurrent/RejectedExecutionHandler;)V
2019-03-26 19:13:28 +00:00
iput-object v0, p0, Lcom/adjust/sdk/s;->dV:Ljava/util/concurrent/ScheduledThreadPoolExecutor;
2019-02-04 20:08:30 +00:00
if-nez p2, :cond_0
2019-03-26 19:13:28 +00:00
iget-object p1, p0, Lcom/adjust/sdk/s;->dV:Ljava/util/concurrent/ScheduledThreadPoolExecutor;
2019-02-04 20:08:30 +00:00
const-wide/16 v2, 0xa
sget-object p2, Ljava/util/concurrent/TimeUnit;->MILLISECONDS:Ljava/util/concurrent/TimeUnit;
invoke-virtual {p1, v2, v3, p2}, Ljava/util/concurrent/ScheduledThreadPoolExecutor;->setKeepAliveTime(JLjava/util/concurrent/TimeUnit;)V
2019-03-26 19:13:28 +00:00
iget-object p1, p0, Lcom/adjust/sdk/s;->dV:Ljava/util/concurrent/ScheduledThreadPoolExecutor;
2019-02-04 20:08:30 +00:00
invoke-virtual {p1, v1}, Ljava/util/concurrent/ScheduledThreadPoolExecutor;->allowCoreThreadTimeOut(Z)V
:cond_0
return-void
.end method
# virtual methods
.method public final schedule(Ljava/lang/Runnable;JLjava/util/concurrent/TimeUnit;)Ljava/util/concurrent/ScheduledFuture;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/Runnable;",
"J",
"Ljava/util/concurrent/TimeUnit;",
")",
"Ljava/util/concurrent/ScheduledFuture<",
"*>;"
}
.end annotation
2019-03-26 19:13:28 +00:00
iget-object v0, p0, Lcom/adjust/sdk/s;->dV:Ljava/util/concurrent/ScheduledThreadPoolExecutor;
2019-02-04 20:08:30 +00:00
invoke-virtual {v0, p1, p2, p3, p4}, Ljava/util/concurrent/ScheduledThreadPoolExecutor;->schedule(Ljava/lang/Runnable;JLjava/util/concurrent/TimeUnit;)Ljava/util/concurrent/ScheduledFuture;
move-result-object p1
return-object p1
.end method
.method public final submit(Ljava/lang/Runnable;)Ljava/util/concurrent/Future;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/Runnable;",
")",
"Ljava/util/concurrent/Future<",
"*>;"
}
.end annotation
2019-03-26 19:13:28 +00:00
iget-object v0, p0, Lcom/adjust/sdk/s;->dV:Ljava/util/concurrent/ScheduledThreadPoolExecutor;
2019-02-04 20:08:30 +00:00
invoke-virtual {v0, p1}, Ljava/util/concurrent/ScheduledThreadPoolExecutor;->submit(Ljava/lang/Runnable;)Ljava/util/concurrent/Future;
move-result-object p1
return-object p1
.end method