apkfuckery/com.discord/smali/com/adjust/sdk/s.smali
2019-10-11 23:55:41 +02:00

114 lines
3.6 KiB
Smali

.class public final Lcom/adjust/sdk/s;
.super Ljava/lang/Object;
.source "CustomScheduledExecutor.java"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/adjust/sdk/s$a;
}
.end annotation
# instance fields
.field bY:Ljava/util/concurrent/ScheduledThreadPoolExecutor;
.field private final bZ:Ljava/util/concurrent/atomic/AtomicInteger;
.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
iput-object v0, p0, Lcom/adjust/sdk/s;->bZ:Ljava/util/concurrent/atomic/AtomicInteger;
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
iput-object v0, p0, Lcom/adjust/sdk/s;->bY:Ljava/util/concurrent/ScheduledThreadPoolExecutor;
if-nez p2, :cond_0
iget-object p1, p0, Lcom/adjust/sdk/s;->bY:Ljava/util/concurrent/ScheduledThreadPoolExecutor;
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
iget-object p1, p0, Lcom/adjust/sdk/s;->bY:Ljava/util/concurrent/ScheduledThreadPoolExecutor;
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
iget-object v0, p0, Lcom/adjust/sdk/s;->bY:Ljava/util/concurrent/ScheduledThreadPoolExecutor;
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
iget-object v0, p0, Lcom/adjust/sdk/s;->bY:Ljava/util/concurrent/ScheduledThreadPoolExecutor;
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