279 lines
5.7 KiB
Smali
279 lines
5.7 KiB
Smali
|
.class public Lf/c/a/a$g;
|
||
|
.super Ljava/lang/Object;
|
||
|
.source "ActivityHandler.java"
|
||
|
|
||
|
# interfaces
|
||
|
.implements Ljava/lang/Runnable;
|
||
|
|
||
|
|
||
|
# annotations
|
||
|
.annotation system Ldalvik/annotation/EnclosingMethod;
|
||
|
value = Lf/c/a/a;->onResume()V
|
||
|
.end annotation
|
||
|
|
||
|
.annotation system Ldalvik/annotation/InnerClass;
|
||
|
accessFlags = 0x1
|
||
|
name = null
|
||
|
.end annotation
|
||
|
|
||
|
|
||
|
# instance fields
|
||
|
.field public final synthetic d:Lf/c/a/a;
|
||
|
|
||
|
|
||
|
# direct methods
|
||
|
.method public constructor <init>(Lf/c/a/a;)V
|
||
|
.locals 0
|
||
|
|
||
|
iput-object p1, p0, Lf/c/a/a$g;->d:Lf/c/a/a;
|
||
|
|
||
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||
|
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
|
||
|
# virtual methods
|
||
|
.method public run()V
|
||
|
.locals 12
|
||
|
|
||
|
iget-object v0, p0, Lf/c/a/a$g;->d:Lf/c/a/a;
|
||
|
|
||
|
iget-object v1, v0, Lf/c/a/a;->h:Lf/c/a/a$m;
|
||
|
|
||
|
iget-boolean v2, v1, Lf/c/a/a$m;->d:Z
|
||
|
|
||
|
const/4 v3, 0x1
|
||
|
|
||
|
xor-int/2addr v2, v3
|
||
|
|
||
|
const/4 v4, 0x0
|
||
|
|
||
|
if-eqz v2, :cond_0
|
||
|
|
||
|
goto/16 :goto_3
|
||
|
|
||
|
:cond_0
|
||
|
iget-object v2, v0, Lf/c/a/a;->c:Lf/c/a/q;
|
||
|
|
||
|
if-eqz v2, :cond_1
|
||
|
|
||
|
iget-boolean v1, v2, Lf/c/a/q;->updatePackages:Z
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:cond_1
|
||
|
iget-boolean v1, v1, Lf/c/a/a$m;->e:Z
|
||
|
|
||
|
:goto_0
|
||
|
if-eqz v1, :cond_2
|
||
|
|
||
|
goto :goto_3
|
||
|
|
||
|
:cond_2
|
||
|
iget-object v1, v0, Lf/c/a/a;->j:Lf/c/a/r;
|
||
|
|
||
|
iget-object v1, v1, Lf/c/a/r;->q:Ljava/lang/Double;
|
||
|
|
||
|
if-eqz v1, :cond_3
|
||
|
|
||
|
invoke-virtual {v1}, Ljava/lang/Double;->doubleValue()D
|
||
|
|
||
|
move-result-wide v1
|
||
|
|
||
|
goto :goto_1
|
||
|
|
||
|
:cond_3
|
||
|
const-wide/16 v1, 0x0
|
||
|
|
||
|
:goto_1
|
||
|
const-wide/16 v5, 0x2710
|
||
|
|
||
|
const-wide v7, 0x408f400000000000L # 1000.0
|
||
|
|
||
|
mul-double v7, v7, v1
|
||
|
|
||
|
double-to-long v7, v7
|
||
|
|
||
|
cmp-long v9, v7, v5
|
||
|
|
||
|
if-lez v9, :cond_4
|
||
|
|
||
|
const-wide/16 v7, 0xa
|
||
|
|
||
|
long-to-double v7, v7
|
||
|
|
||
|
sget-object v9, Lf/c/a/v1;->a:Ljava/text/DecimalFormat;
|
||
|
|
||
|
invoke-virtual {v9, v1, v2}, Ljava/text/DecimalFormat;->format(D)Ljava/lang/String;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
sget-object v2, Lf/c/a/v1;->a:Ljava/text/DecimalFormat;
|
||
|
|
||
|
invoke-virtual {v2, v7, v8}, Ljava/text/DecimalFormat;->format(D)Ljava/lang/String;
|
||
|
|
||
|
move-result-object v2
|
||
|
|
||
|
iget-object v9, v0, Lf/c/a/a;->d:Lf/c/a/q0;
|
||
|
|
||
|
const/4 v10, 0x2
|
||
|
|
||
|
new-array v10, v10, [Ljava/lang/Object;
|
||
|
|
||
|
aput-object v1, v10, v4
|
||
|
|
||
|
aput-object v2, v10, v3
|
||
|
|
||
|
check-cast v9, Lf/c/a/x0;
|
||
|
|
||
|
const-string v1, "Delay start of %s seconds bigger than max allowed value of %s seconds"
|
||
|
|
||
|
invoke-virtual {v9, v1, v10}, Lf/c/a/x0;->e(Ljava/lang/String;[Ljava/lang/Object;)V
|
||
|
|
||
|
move-wide v1, v7
|
||
|
|
||
|
goto :goto_2
|
||
|
|
||
|
:cond_4
|
||
|
move-wide v5, v7
|
||
|
|
||
|
:goto_2
|
||
|
sget-object v7, Lf/c/a/v1;->a:Ljava/text/DecimalFormat;
|
||
|
|
||
|
invoke-virtual {v7, v1, v2}, Ljava/text/DecimalFormat;->format(D)Ljava/lang/String;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
iget-object v2, v0, Lf/c/a/a;->d:Lf/c/a/q0;
|
||
|
|
||
|
new-array v7, v3, [Ljava/lang/Object;
|
||
|
|
||
|
aput-object v1, v7, v4
|
||
|
|
||
|
check-cast v2, Lf/c/a/x0;
|
||
|
|
||
|
const-string v1, "Waiting %s seconds before starting first session"
|
||
|
|
||
|
invoke-virtual {v2, v1, v7}, Lf/c/a/x0;->c(Ljava/lang/String;[Ljava/lang/Object;)V
|
||
|
|
||
|
iget-object v1, v0, Lf/c/a/a;->g:Lf/c/a/u1;
|
||
|
|
||
|
invoke-virtual {v1, v5, v6}, Lf/c/a/u1;->c(J)V
|
||
|
|
||
|
iget-object v1, v0, Lf/c/a/a;->h:Lf/c/a/a$m;
|
||
|
|
||
|
iput-boolean v3, v1, Lf/c/a/a$m;->e:Z
|
||
|
|
||
|
iget-object v1, v0, Lf/c/a/a;->c:Lf/c/a/q;
|
||
|
|
||
|
if-eqz v1, :cond_5
|
||
|
|
||
|
iput-boolean v3, v1, Lf/c/a/q;->updatePackages:Z
|
||
|
|
||
|
invoke-virtual {v0}, Lf/c/a/a;->G()V
|
||
|
|
||
|
:cond_5
|
||
|
:goto_3
|
||
|
iget-object v0, p0, Lf/c/a/a$g;->d:Lf/c/a/a;
|
||
|
|
||
|
iget-object v0, v0, Lf/c/a/a;->f:Lf/c/a/u1;
|
||
|
|
||
|
if-nez v0, :cond_6
|
||
|
|
||
|
goto :goto_4
|
||
|
|
||
|
:cond_6
|
||
|
invoke-virtual {v0, v4}, Lf/c/a/u1;->a(Z)V
|
||
|
|
||
|
:goto_4
|
||
|
iget-object v0, p0, Lf/c/a/a$g;->d:Lf/c/a/a;
|
||
|
|
||
|
invoke-virtual {v0}, Lf/c/a/a;->o()Z
|
||
|
|
||
|
move-result v1
|
||
|
|
||
|
if-nez v1, :cond_7
|
||
|
|
||
|
goto :goto_5
|
||
|
|
||
|
:cond_7
|
||
|
iget-object v0, v0, Lf/c/a/a;->e:Lf/c/a/t1;
|
||
|
|
||
|
iget-boolean v1, v0, Lf/c/a/t1;->g:Z
|
||
|
|
||
|
if-nez v1, :cond_8
|
||
|
|
||
|
iget-object v1, v0, Lf/c/a/t1;->h:Lf/c/a/q0;
|
||
|
|
||
|
new-array v2, v3, [Ljava/lang/Object;
|
||
|
|
||
|
iget-object v0, v0, Lf/c/a/t1;->c:Ljava/lang/String;
|
||
|
|
||
|
aput-object v0, v2, v4
|
||
|
|
||
|
check-cast v1, Lf/c/a/x0;
|
||
|
|
||
|
const-string v0, "%s is already started"
|
||
|
|
||
|
invoke-virtual {v1, v0, v2}, Lf/c/a/x0;->d(Ljava/lang/String;[Ljava/lang/Object;)V
|
||
|
|
||
|
goto :goto_5
|
||
|
|
||
|
:cond_8
|
||
|
iget-object v1, v0, Lf/c/a/t1;->h:Lf/c/a/q0;
|
||
|
|
||
|
new-array v2, v3, [Ljava/lang/Object;
|
||
|
|
||
|
iget-object v3, v0, Lf/c/a/t1;->c:Ljava/lang/String;
|
||
|
|
||
|
aput-object v3, v2, v4
|
||
|
|
||
|
check-cast v1, Lf/c/a/x0;
|
||
|
|
||
|
const-string v3, "%s starting"
|
||
|
|
||
|
invoke-virtual {v1, v3, v2}, Lf/c/a/x0;->d(Ljava/lang/String;[Ljava/lang/Object;)V
|
||
|
|
||
|
iget-object v1, v0, Lf/c/a/t1;->a:Lf/c/a/l0;
|
||
|
|
||
|
new-instance v6, Lf/c/a/s1;
|
||
|
|
||
|
invoke-direct {v6, v0}, Lf/c/a/s1;-><init>(Lf/c/a/t1;)V
|
||
|
|
||
|
iget-wide v7, v0, Lf/c/a/t1;->e:J
|
||
|
|
||
|
iget-wide v9, v0, Lf/c/a/t1;->f:J
|
||
|
|
||
|
sget-object v11, Ljava/util/concurrent/TimeUnit;->MILLISECONDS:Ljava/util/concurrent/TimeUnit;
|
||
|
|
||
|
iget-object v5, v1, Lf/c/a/l0;->a:Ljava/util/concurrent/ScheduledThreadPoolExecutor;
|
||
|
|
||
|
invoke-virtual/range {v5 .. v11}, 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/t1;->b:Ljava/util/concurrent/ScheduledFuture;
|
||
|
|
||
|
iput-boolean v4, v0, Lf/c/a/t1;->g:Z
|
||
|
|
||
|
:goto_5
|
||
|
iget-object v0, p0, Lf/c/a/a$g;->d:Lf/c/a/a;
|
||
|
|
||
|
iget-object v0, v0, Lf/c/a/a;->d:Lf/c/a/q0;
|
||
|
|
||
|
new-array v1, v4, [Ljava/lang/Object;
|
||
|
|
||
|
check-cast v0, Lf/c/a/x0;
|
||
|
|
||
|
const-string v2, "Subsession start"
|
||
|
|
||
|
invoke-virtual {v0, v2, v1}, Lf/c/a/x0;->d(Ljava/lang/String;[Ljava/lang/Object;)V
|
||
|
|
||
|
iget-object v0, p0, Lf/c/a/a$g;->d:Lf/c/a/a;
|
||
|
|
||
|
invoke-static {v0}, Lf/c/a/a;->m(Lf/c/a/a;)V
|
||
|
|
||
|
return-void
|
||
|
.end method
|