apkfuckery/com.discord/smali/e/c/a/j.smali

260 lines
5.3 KiB
Smali
Raw Normal View History

2020-04-27 20:53:11 +00:00
.class public Le/c/a/j;
2019-12-06 03:29:40 +00:00
.super Ljava/lang/Object;
.source "ActivityHandler.java"
# interfaces
.implements Ljava/lang/Runnable;
# instance fields
2020-04-27 20:53:11 +00:00
.field public final synthetic d:Le/c/a/g;
2019-12-06 03:29:40 +00:00
# direct methods
2020-04-27 20:53:11 +00:00
.method public constructor <init>(Le/c/a/g;)V
2019-12-06 03:29:40 +00:00
.locals 0
2020-04-27 20:53:11 +00:00
iput-object p1, p0, Le/c/a/j;->d:Le/c/a/g;
2019-12-06 03:29:40 +00:00
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public run()V
.locals 11
2020-04-27 20:53:11 +00:00
iget-object v0, p0, Le/c/a/j;->d:Le/c/a/g;
2019-12-06 03:29:40 +00:00
2020-04-27 20:53:11 +00:00
iget-object v1, v0, Le/c/a/g;->h:Le/c/a/g$j;
2019-12-06 03:29:40 +00:00
2020-04-27 20:53:11 +00:00
invoke-virtual {v1}, Le/c/a/g$j;->c()Z
2019-12-06 03:29:40 +00:00
move-result v1
const/4 v2, 0x1
const/4 v3, 0x0
if-eqz v1, :cond_0
goto :goto_2
:cond_0
2020-04-27 20:53:11 +00:00
invoke-virtual {v0}, Le/c/a/g;->c()Z
2019-12-06 03:29:40 +00:00
move-result v1
if-eqz v1, :cond_1
goto :goto_2
:cond_1
2020-04-27 20:53:11 +00:00
iget-object v1, v0, Le/c/a/g;->j:Le/c/a/v;
2019-12-06 03:29:40 +00:00
2020-04-27 20:53:11 +00:00
iget-object v1, v1, Le/c/a/v;->q:Ljava/lang/Double;
2019-12-06 03:29:40 +00:00
if-eqz v1, :cond_2
invoke-virtual {v1}, Ljava/lang/Double;->doubleValue()D
move-result-wide v4
goto :goto_0
:cond_2
const-wide/16 v4, 0x0
:goto_0
const-wide/16 v6, 0x2710
const-wide v8, 0x408f400000000000L # 1000.0
mul-double v8, v8, v4
double-to-long v8, v8
cmp-long v1, v8, v6
if-lez v1, :cond_3
const-wide/16 v8, 0xa
long-to-double v8, v8
2020-04-27 20:53:11 +00:00
sget-object v1, Le/c/a/a2;->a:Ljava/text/DecimalFormat;
2019-12-06 03:29:40 +00:00
invoke-virtual {v1, v4, v5}, Ljava/text/DecimalFormat;->format(D)Ljava/lang/String;
move-result-object v1
2020-04-27 20:53:11 +00:00
sget-object v4, Le/c/a/a2;->a:Ljava/text/DecimalFormat;
2019-12-06 03:29:40 +00:00
invoke-virtual {v4, v8, v9}, Ljava/text/DecimalFormat;->format(D)Ljava/lang/String;
move-result-object v4
2020-04-27 20:53:11 +00:00
iget-object v5, v0, Le/c/a/g;->d:Le/c/a/u0;
2019-12-06 03:29:40 +00:00
const/4 v10, 0x2
new-array v10, v10, [Ljava/lang/Object;
aput-object v1, v10, v3
aput-object v4, v10, v2
2020-04-27 20:53:11 +00:00
check-cast v5, Le/c/a/b1;
2019-12-06 03:29:40 +00:00
const-string v1, "Delay start of %s seconds bigger than max allowed value of %s seconds"
2020-04-27 20:53:11 +00:00
invoke-virtual {v5, v1, v10}, Le/c/a/b1;->e(Ljava/lang/String;[Ljava/lang/Object;)V
2019-12-06 03:29:40 +00:00
move-wide v4, v8
goto :goto_1
:cond_3
move-wide v6, v8
:goto_1
2020-04-27 20:53:11 +00:00
sget-object v1, Le/c/a/a2;->a:Ljava/text/DecimalFormat;
2019-12-06 03:29:40 +00:00
invoke-virtual {v1, v4, v5}, Ljava/text/DecimalFormat;->format(D)Ljava/lang/String;
move-result-object v1
2020-04-27 20:53:11 +00:00
iget-object v4, v0, Le/c/a/g;->d:Le/c/a/u0;
2019-12-06 03:29:40 +00:00
new-array v5, v2, [Ljava/lang/Object;
aput-object v1, v5, v3
2020-04-27 20:53:11 +00:00
check-cast v4, Le/c/a/b1;
2019-12-06 03:29:40 +00:00
const-string v1, "Waiting %s seconds before starting first session"
2020-04-27 20:53:11 +00:00
invoke-virtual {v4, v1, v5}, Le/c/a/b1;->c(Ljava/lang/String;[Ljava/lang/Object;)V
2019-12-06 03:29:40 +00:00
2020-04-27 20:53:11 +00:00
iget-object v1, v0, Le/c/a/g;->g:Le/c/a/z1;
2019-12-06 03:29:40 +00:00
2020-04-27 20:53:11 +00:00
invoke-virtual {v1, v6, v7}, Le/c/a/z1;->a(J)V
2019-12-06 03:29:40 +00:00
2020-04-27 20:53:11 +00:00
iget-object v1, v0, Le/c/a/g;->h:Le/c/a/g$j;
2019-12-06 03:29:40 +00:00
2020-04-27 20:53:11 +00:00
iput-boolean v2, v1, Le/c/a/g$j;->e:Z
2019-12-06 03:29:40 +00:00
2020-04-27 20:53:11 +00:00
iget-object v1, v0, Le/c/a/g;->c:Le/c/a/t;
2019-12-06 03:29:40 +00:00
if-eqz v1, :cond_4
2020-04-27 20:53:11 +00:00
iput-boolean v2, v1, Le/c/a/t;->updatePackages:Z
2019-12-06 03:29:40 +00:00
2020-04-27 20:53:11 +00:00
invoke-virtual {v0}, Le/c/a/g;->k()V
2019-12-06 03:29:40 +00:00
:cond_4
:goto_2
2020-04-27 20:53:11 +00:00
iget-object v0, p0, Le/c/a/j;->d:Le/c/a/g;
2019-12-06 03:29:40 +00:00
2020-04-27 20:53:11 +00:00
iget-object v0, v0, Le/c/a/g;->f:Le/c/a/z1;
2019-12-06 03:29:40 +00:00
if-nez v0, :cond_5
goto :goto_3
:cond_5
2020-04-27 20:53:11 +00:00
invoke-virtual {v0}, Le/c/a/z1;->a()V
2019-12-06 03:29:40 +00:00
:goto_3
2020-04-27 20:53:11 +00:00
iget-object v0, p0, Le/c/a/j;->d:Le/c/a/g;
2019-12-06 03:29:40 +00:00
2020-04-27 20:53:11 +00:00
invoke-virtual {v0}, Le/c/a/g;->b()Z
2019-12-06 03:29:40 +00:00
move-result v1
if-nez v1, :cond_6
goto :goto_4
:cond_6
2020-04-27 20:53:11 +00:00
iget-object v0, v0, Le/c/a/g;->e:Le/c/a/y1;
2019-12-06 03:29:40 +00:00
2020-04-27 20:53:11 +00:00
iget-boolean v1, v0, Le/c/a/y1;->g:Z
2019-12-06 03:29:40 +00:00
if-nez v1, :cond_7
2020-04-27 20:53:11 +00:00
iget-object v1, v0, Le/c/a/y1;->h:Le/c/a/u0;
2019-12-06 03:29:40 +00:00
new-array v2, v2, [Ljava/lang/Object;
2020-04-27 20:53:11 +00:00
iget-object v0, v0, Le/c/a/y1;->c:Ljava/lang/String;
2019-12-06 03:29:40 +00:00
aput-object v0, v2, v3
2020-04-27 20:53:11 +00:00
check-cast v1, Le/c/a/b1;
2019-12-06 03:29:40 +00:00
const-string v0, "%s is already started"
2020-04-27 20:53:11 +00:00
invoke-virtual {v1, v0, v2}, Le/c/a/b1;->d(Ljava/lang/String;[Ljava/lang/Object;)V
2019-12-06 03:29:40 +00:00
goto :goto_4
:cond_7
2020-04-27 20:53:11 +00:00
iget-object v1, v0, Le/c/a/y1;->h:Le/c/a/u0;
2019-12-06 03:29:40 +00:00
new-array v2, v2, [Ljava/lang/Object;
2020-04-27 20:53:11 +00:00
iget-object v4, v0, Le/c/a/y1;->c:Ljava/lang/String;
2019-12-06 03:29:40 +00:00
aput-object v4, v2, v3
2020-04-27 20:53:11 +00:00
check-cast v1, Le/c/a/b1;
2019-12-06 03:29:40 +00:00
const-string v4, "%s starting"
2020-04-27 20:53:11 +00:00
invoke-virtual {v1, v4, v2}, Le/c/a/b1;->d(Ljava/lang/String;[Ljava/lang/Object;)V
2019-12-06 03:29:40 +00:00
2020-04-27 20:53:11 +00:00
iget-object v1, v0, Le/c/a/y1;->a:Le/c/a/p0;
2019-12-06 03:29:40 +00:00
2020-04-27 20:53:11 +00:00
new-instance v5, Le/c/a/x1;
2019-12-06 03:29:40 +00:00
2020-04-27 20:53:11 +00:00
invoke-direct {v5, v0}, Le/c/a/x1;-><init>(Le/c/a/y1;)V
2019-12-06 03:29:40 +00:00
2020-04-27 20:53:11 +00:00
iget-wide v6, v0, Le/c/a/y1;->e:J
2019-12-06 03:29:40 +00:00
2020-04-27 20:53:11 +00:00
iget-wide v8, v0, Le/c/a/y1;->f:J
2019-12-06 03:29:40 +00:00
sget-object v10, Ljava/util/concurrent/TimeUnit;->MILLISECONDS:Ljava/util/concurrent/TimeUnit;
2020-04-27 20:53:11 +00:00
iget-object v4, v1, Le/c/a/p0;->a:Ljava/util/concurrent/ScheduledThreadPoolExecutor;
2019-12-06 03:29:40 +00:00
invoke-virtual/range {v4 .. v10}, Ljava/util/concurrent/ScheduledThreadPoolExecutor;->scheduleWithFixedDelay(Ljava/lang/Runnable;JJLjava/util/concurrent/TimeUnit;)Ljava/util/concurrent/ScheduledFuture;
move-result-object v1
2020-04-27 20:53:11 +00:00
iput-object v1, v0, Le/c/a/y1;->b:Ljava/util/concurrent/ScheduledFuture;
2019-12-06 03:29:40 +00:00
2020-04-27 20:53:11 +00:00
iput-boolean v3, v0, Le/c/a/y1;->g:Z
2019-12-06 03:29:40 +00:00
:goto_4
2020-04-27 20:53:11 +00:00
iget-object v0, p0, Le/c/a/j;->d:Le/c/a/g;
2019-12-06 03:29:40 +00:00
2020-04-27 20:53:11 +00:00
iget-object v0, v0, Le/c/a/g;->d:Le/c/a/u0;
2019-12-06 03:29:40 +00:00
new-array v1, v3, [Ljava/lang/Object;
2020-04-27 20:53:11 +00:00
check-cast v0, Le/c/a/b1;
2019-12-06 03:29:40 +00:00
const-string v2, "Subsession start"
2020-04-27 20:53:11 +00:00
invoke-virtual {v0, v2, v1}, Le/c/a/b1;->d(Ljava/lang/String;[Ljava/lang/Object;)V
2019-12-06 03:29:40 +00:00
2020-04-27 20:53:11 +00:00
iget-object v0, p0, Le/c/a/j;->d:Le/c/a/g;
2019-12-06 03:29:40 +00:00
2020-04-27 20:53:11 +00:00
invoke-static {v0}, Le/c/a/g;->a(Le/c/a/g;)V
2019-12-06 03:29:40 +00:00
return-void
.end method