259 lines
5.3 KiB
Smali
259 lines
5.3 KiB
Smali
.class public Lf/c/a/j;
|
|
.super Ljava/lang/Object;
|
|
.source "ActivityHandler.java"
|
|
|
|
# interfaces
|
|
.implements Ljava/lang/Runnable;
|
|
|
|
|
|
# instance fields
|
|
.field public final synthetic d:Lf/c/a/g;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Lf/c/a/g;)V
|
|
.locals 0
|
|
|
|
iput-object p1, p0, Lf/c/a/j;->d:Lf/c/a/g;
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public run()V
|
|
.locals 11
|
|
|
|
iget-object v0, p0, Lf/c/a/j;->d:Lf/c/a/g;
|
|
|
|
iget-object v1, v0, Lf/c/a/g;->h:Lf/c/a/g$j;
|
|
|
|
invoke-virtual {v1}, Lf/c/a/g$j;->c()Z
|
|
|
|
move-result v1
|
|
|
|
const/4 v2, 0x1
|
|
|
|
const/4 v3, 0x0
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
goto :goto_2
|
|
|
|
:cond_0
|
|
invoke-virtual {v0}, Lf/c/a/g;->c()Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_1
|
|
|
|
goto :goto_2
|
|
|
|
:cond_1
|
|
iget-object v1, v0, Lf/c/a/g;->j:Lf/c/a/v;
|
|
|
|
iget-object v1, v1, Lf/c/a/v;->q:Ljava/lang/Double;
|
|
|
|
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
|
|
|
|
sget-object v1, Lf/c/a/a2;->a:Ljava/text/DecimalFormat;
|
|
|
|
invoke-virtual {v1, v4, v5}, Ljava/text/DecimalFormat;->format(D)Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
sget-object v4, Lf/c/a/a2;->a:Ljava/text/DecimalFormat;
|
|
|
|
invoke-virtual {v4, v8, v9}, Ljava/text/DecimalFormat;->format(D)Ljava/lang/String;
|
|
|
|
move-result-object v4
|
|
|
|
iget-object v5, v0, Lf/c/a/g;->d:Lf/c/a/u0;
|
|
|
|
const/4 v10, 0x2
|
|
|
|
new-array v10, v10, [Ljava/lang/Object;
|
|
|
|
aput-object v1, v10, v3
|
|
|
|
aput-object v4, v10, v2
|
|
|
|
check-cast v5, Lf/c/a/b1;
|
|
|
|
const-string v1, "Delay start of %s seconds bigger than max allowed value of %s seconds"
|
|
|
|
invoke-virtual {v5, v1, v10}, Lf/c/a/b1;->e(Ljava/lang/String;[Ljava/lang/Object;)V
|
|
|
|
move-wide v4, v8
|
|
|
|
goto :goto_1
|
|
|
|
:cond_3
|
|
move-wide v6, v8
|
|
|
|
:goto_1
|
|
sget-object v1, Lf/c/a/a2;->a:Ljava/text/DecimalFormat;
|
|
|
|
invoke-virtual {v1, v4, v5}, Ljava/text/DecimalFormat;->format(D)Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
iget-object v4, v0, Lf/c/a/g;->d:Lf/c/a/u0;
|
|
|
|
new-array v5, v2, [Ljava/lang/Object;
|
|
|
|
aput-object v1, v5, v3
|
|
|
|
check-cast v4, Lf/c/a/b1;
|
|
|
|
const-string v1, "Waiting %s seconds before starting first session"
|
|
|
|
invoke-virtual {v4, v1, v5}, Lf/c/a/b1;->c(Ljava/lang/String;[Ljava/lang/Object;)V
|
|
|
|
iget-object v1, v0, Lf/c/a/g;->g:Lf/c/a/z1;
|
|
|
|
invoke-virtual {v1, v6, v7}, Lf/c/a/z1;->a(J)V
|
|
|
|
iget-object v1, v0, Lf/c/a/g;->h:Lf/c/a/g$j;
|
|
|
|
iput-boolean v2, v1, Lf/c/a/g$j;->e:Z
|
|
|
|
iget-object v1, v0, Lf/c/a/g;->c:Lf/c/a/t;
|
|
|
|
if-eqz v1, :cond_4
|
|
|
|
iput-boolean v2, v1, Lf/c/a/t;->updatePackages:Z
|
|
|
|
invoke-virtual {v0}, Lf/c/a/g;->k()V
|
|
|
|
:cond_4
|
|
:goto_2
|
|
iget-object v0, p0, Lf/c/a/j;->d:Lf/c/a/g;
|
|
|
|
iget-object v0, v0, Lf/c/a/g;->f:Lf/c/a/z1;
|
|
|
|
if-nez v0, :cond_5
|
|
|
|
goto :goto_3
|
|
|
|
:cond_5
|
|
invoke-virtual {v0}, Lf/c/a/z1;->a()V
|
|
|
|
:goto_3
|
|
iget-object v0, p0, Lf/c/a/j;->d:Lf/c/a/g;
|
|
|
|
invoke-virtual {v0}, Lf/c/a/g;->b()Z
|
|
|
|
move-result v1
|
|
|
|
if-nez v1, :cond_6
|
|
|
|
goto :goto_4
|
|
|
|
:cond_6
|
|
iget-object v0, v0, Lf/c/a/g;->e:Lf/c/a/y1;
|
|
|
|
iget-boolean v1, v0, Lf/c/a/y1;->g:Z
|
|
|
|
if-nez v1, :cond_7
|
|
|
|
iget-object v1, v0, Lf/c/a/y1;->h:Lf/c/a/u0;
|
|
|
|
new-array v2, v2, [Ljava/lang/Object;
|
|
|
|
iget-object v0, v0, Lf/c/a/y1;->c:Ljava/lang/String;
|
|
|
|
aput-object v0, v2, v3
|
|
|
|
check-cast v1, Lf/c/a/b1;
|
|
|
|
const-string v0, "%s is already started"
|
|
|
|
invoke-virtual {v1, v0, v2}, Lf/c/a/b1;->d(Ljava/lang/String;[Ljava/lang/Object;)V
|
|
|
|
goto :goto_4
|
|
|
|
:cond_7
|
|
iget-object v1, v0, Lf/c/a/y1;->h:Lf/c/a/u0;
|
|
|
|
new-array v2, v2, [Ljava/lang/Object;
|
|
|
|
iget-object v4, v0, Lf/c/a/y1;->c:Ljava/lang/String;
|
|
|
|
aput-object v4, v2, v3
|
|
|
|
check-cast v1, Lf/c/a/b1;
|
|
|
|
const-string v4, "%s starting"
|
|
|
|
invoke-virtual {v1, v4, v2}, Lf/c/a/b1;->d(Ljava/lang/String;[Ljava/lang/Object;)V
|
|
|
|
iget-object v1, v0, Lf/c/a/y1;->a:Lf/c/a/p0;
|
|
|
|
new-instance v5, Lf/c/a/x1;
|
|
|
|
invoke-direct {v5, v0}, Lf/c/a/x1;-><init>(Lf/c/a/y1;)V
|
|
|
|
iget-wide v6, v0, Lf/c/a/y1;->e:J
|
|
|
|
iget-wide v8, v0, Lf/c/a/y1;->f:J
|
|
|
|
sget-object v10, Ljava/util/concurrent/TimeUnit;->MILLISECONDS:Ljava/util/concurrent/TimeUnit;
|
|
|
|
iget-object v4, v1, Lf/c/a/p0;->a:Ljava/util/concurrent/ScheduledThreadPoolExecutor;
|
|
|
|
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
|
|
|
|
iput-object v1, v0, Lf/c/a/y1;->b:Ljava/util/concurrent/ScheduledFuture;
|
|
|
|
iput-boolean v3, v0, Lf/c/a/y1;->g:Z
|
|
|
|
:goto_4
|
|
iget-object v0, p0, Lf/c/a/j;->d:Lf/c/a/g;
|
|
|
|
iget-object v0, v0, Lf/c/a/g;->d:Lf/c/a/u0;
|
|
|
|
new-array v1, v3, [Ljava/lang/Object;
|
|
|
|
check-cast v0, Lf/c/a/b1;
|
|
|
|
const-string v2, "Subsession start"
|
|
|
|
invoke-virtual {v0, v2, v1}, Lf/c/a/b1;->d(Ljava/lang/String;[Ljava/lang/Object;)V
|
|
|
|
iget-object v0, p0, Lf/c/a/j;->d:Lf/c/a/g;
|
|
|
|
invoke-static {v0}, Lf/c/a/g;->a(Lf/c/a/g;)V
|
|
|
|
return-void
|
|
.end method
|