2020-04-17 17:35:24 +00:00
|
|
|
.class public Lf/c/a/z1;
|
2019-12-06 03:29:40 +00:00
|
|
|
.super Ljava/lang/Object;
|
|
|
|
.source "TimerOnce.java"
|
|
|
|
|
|
|
|
|
|
|
|
# instance fields
|
2020-04-17 17:35:24 +00:00
|
|
|
.field public a:Lf/c/a/p0;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
.field public b:Ljava/util/concurrent/ScheduledFuture;
|
|
|
|
|
|
|
|
.field public c:Ljava/lang/String;
|
|
|
|
|
|
|
|
.field public d:Ljava/lang/Runnable;
|
|
|
|
|
2020-04-17 17:35:24 +00:00
|
|
|
.field public e:Lf/c/a/u0;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
|
|
|
|
# direct methods
|
|
|
|
.method public constructor <init>(Ljava/lang/Runnable;Ljava/lang/String;)V
|
|
|
|
.locals 2
|
|
|
|
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
|
2020-04-17 17:35:24 +00:00
|
|
|
iput-object p2, p0, Lf/c/a/z1;->c:Ljava/lang/String;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-04-17 17:35:24 +00:00
|
|
|
new-instance v0, Lf/c/a/p0;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
const/4 v1, 0x1
|
|
|
|
|
2020-04-17 17:35:24 +00:00
|
|
|
invoke-direct {v0, p2, v1}, Lf/c/a/p0;-><init>(Ljava/lang/String;Z)V
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-04-17 17:35:24 +00:00
|
|
|
iput-object v0, p0, Lf/c/a/z1;->a:Lf/c/a/p0;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-04-17 17:35:24 +00:00
|
|
|
iput-object p1, p0, Lf/c/a/z1;->d:Ljava/lang/Runnable;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-04-17 17:35:24 +00:00
|
|
|
invoke-static {}, Lf/c/a/z;->a()Lf/c/a/u0;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
2020-04-17 17:35:24 +00:00
|
|
|
iput-object p1, p0, Lf/c/a/z1;->e:Lf/c/a/u0;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
|
|
|
|
# virtual methods
|
|
|
|
.method public a()V
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
2020-04-17 17:35:24 +00:00
|
|
|
invoke-virtual {p0, v0}, Lf/c/a/z1;->a(Z)V
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public a(J)V
|
|
|
|
.locals 6
|
|
|
|
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
2020-04-17 17:35:24 +00:00
|
|
|
invoke-virtual {p0, v0}, Lf/c/a/z1;->a(Z)V
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-04-17 17:35:24 +00:00
|
|
|
sget-object v1, Lf/c/a/a2;->a:Ljava/text/DecimalFormat;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
long-to-double v2, p1
|
|
|
|
|
|
|
|
const-wide v4, 0x408f400000000000L # 1000.0
|
|
|
|
|
|
|
|
div-double/2addr v2, v4
|
|
|
|
|
|
|
|
invoke-virtual {v1, v2, v3}, Ljava/text/DecimalFormat;->format(D)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
2020-04-17 17:35:24 +00:00
|
|
|
iget-object v2, p0, Lf/c/a/z1;->e:Lf/c/a/u0;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
const/4 v3, 0x2
|
|
|
|
|
|
|
|
new-array v3, v3, [Ljava/lang/Object;
|
|
|
|
|
2020-04-17 17:35:24 +00:00
|
|
|
iget-object v4, p0, Lf/c/a/z1;->c:Ljava/lang/String;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
aput-object v4, v3, v0
|
|
|
|
|
|
|
|
const/4 v0, 0x1
|
|
|
|
|
|
|
|
aput-object v1, v3, v0
|
|
|
|
|
2020-04-17 17:35:24 +00:00
|
|
|
check-cast v2, Lf/c/a/b1;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
const-string v0, "%s starting. Launching in %s seconds"
|
|
|
|
|
2020-04-17 17:35:24 +00:00
|
|
|
invoke-virtual {v2, v0, v3}, Lf/c/a/b1;->d(Ljava/lang/String;[Ljava/lang/Object;)V
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-04-17 17:35:24 +00:00
|
|
|
iget-object v0, p0, Lf/c/a/z1;->a:Lf/c/a/p0;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-04-17 17:35:24 +00:00
|
|
|
new-instance v1, Lf/c/a/z1$a;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-04-17 17:35:24 +00:00
|
|
|
invoke-direct {v1, p0}, Lf/c/a/z1$a;-><init>(Lf/c/a/z1;)V
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
sget-object v2, Ljava/util/concurrent/TimeUnit;->MILLISECONDS:Ljava/util/concurrent/TimeUnit;
|
|
|
|
|
2020-04-17 17:35:24 +00:00
|
|
|
iget-object v0, v0, Lf/c/a/p0;->a:Ljava/util/concurrent/ScheduledThreadPoolExecutor;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
invoke-virtual {v0, v1, p1, p2, v2}, Ljava/util/concurrent/ScheduledThreadPoolExecutor;->schedule(Ljava/lang/Runnable;JLjava/util/concurrent/TimeUnit;)Ljava/util/concurrent/ScheduledFuture;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
2020-04-17 17:35:24 +00:00
|
|
|
iput-object p1, p0, Lf/c/a/z1;->b:Ljava/util/concurrent/ScheduledFuture;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final a(Z)V
|
|
|
|
.locals 3
|
|
|
|
|
2020-04-17 17:35:24 +00:00
|
|
|
iget-object v0, p0, Lf/c/a/z1;->b:Ljava/util/concurrent/ScheduledFuture;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
|
|
|
|
invoke-interface {v0, p1}, Ljava/util/concurrent/ScheduledFuture;->cancel(Z)Z
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const/4 p1, 0x0
|
|
|
|
|
2020-04-17 17:35:24 +00:00
|
|
|
iput-object p1, p0, Lf/c/a/z1;->b:Ljava/util/concurrent/ScheduledFuture;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-04-17 17:35:24 +00:00
|
|
|
iget-object p1, p0, Lf/c/a/z1;->e:Lf/c/a/u0;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
const/4 v0, 0x1
|
|
|
|
|
|
|
|
new-array v0, v0, [Ljava/lang/Object;
|
|
|
|
|
|
|
|
const/4 v1, 0x0
|
|
|
|
|
2020-04-17 17:35:24 +00:00
|
|
|
iget-object v2, p0, Lf/c/a/z1;->c:Ljava/lang/String;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
aput-object v2, v0, v1
|
|
|
|
|
2020-04-17 17:35:24 +00:00
|
|
|
check-cast p1, Lf/c/a/b1;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
const-string v1, "%s canceled"
|
|
|
|
|
2020-04-17 17:35:24 +00:00
|
|
|
invoke-virtual {p1, v1, v0}, Lf/c/a/b1;->d(Ljava/lang/String;[Ljava/lang/Object;)V
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public b()J
|
|
|
|
.locals 2
|
|
|
|
|
2020-04-17 17:35:24 +00:00
|
|
|
iget-object v0, p0, Lf/c/a/z1;->b:Ljava/util/concurrent/ScheduledFuture;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
|
|
|
|
const-wide/16 v0, 0x0
|
|
|
|
|
|
|
|
return-wide v0
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
sget-object v1, Ljava/util/concurrent/TimeUnit;->MILLISECONDS:Ljava/util/concurrent/TimeUnit;
|
|
|
|
|
|
|
|
invoke-interface {v0, v1}, Ljava/util/concurrent/ScheduledFuture;->getDelay(Ljava/util/concurrent/TimeUnit;)J
|
|
|
|
|
|
|
|
move-result-wide v0
|
|
|
|
|
|
|
|
return-wide v0
|
|
|
|
.end method
|