2019-02-04 20:08:30 +00:00
|
|
|
.class public final Lcom/adjust/sdk/ay;
|
|
|
|
.super Ljava/lang/Object;
|
2019-02-17 02:24:41 +00:00
|
|
|
.source "TimerOnce.java"
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
|
2019-02-17 02:24:41 +00:00
|
|
|
# instance fields
|
2019-05-03 18:53:54 +00:00
|
|
|
.field bQ:Lcom/adjust/sdk/x;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
.field private eZ:Lcom/adjust/sdk/s;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
.field fa:Ljava/util/concurrent/ScheduledFuture;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
.field fb:Ljava/lang/Runnable;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-17 02:24:41 +00:00
|
|
|
.field name:Ljava/lang/String;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
|
2019-02-17 02:24:41 +00:00
|
|
|
# direct methods
|
|
|
|
.method public constructor <init>(Ljava/lang/Runnable;Ljava/lang/String;)V
|
|
|
|
.locals 2
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-17 02:24:41 +00:00
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-17 02:24:41 +00:00
|
|
|
iput-object p2, p0, Lcom/adjust/sdk/ay;->name:Ljava/lang/String;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-17 02:24:41 +00:00
|
|
|
new-instance v0, Lcom/adjust/sdk/s;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
const/4 v1, 0x1
|
|
|
|
|
2019-02-17 02:24:41 +00:00
|
|
|
invoke-direct {v0, p2, v1}, Lcom/adjust/sdk/s;-><init>(Ljava/lang/String;Z)V
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
iput-object v0, p0, Lcom/adjust/sdk/ay;->eZ:Lcom/adjust/sdk/s;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
iput-object p1, p0, Lcom/adjust/sdk/ay;->fb:Ljava/lang/Runnable;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-17 02:24:41 +00:00
|
|
|
invoke-static {}, Lcom/adjust/sdk/j;->X()Lcom/adjust/sdk/x;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
iput-object p1, p0, Lcom/adjust/sdk/ay;->bQ:Lcom/adjust/sdk/x;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-17 02:24:41 +00:00
|
|
|
return-void
|
2019-02-04 20:08:30 +00:00
|
|
|
.end method
|
|
|
|
|
|
|
|
|
2019-02-17 02:24:41 +00:00
|
|
|
# virtual methods
|
|
|
|
.method public final aF()J
|
|
|
|
.locals 2
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
iget-object v0, p0, Lcom/adjust/sdk/ay;->fa:Ljava/util/concurrent/ScheduledFuture;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-17 02:24:41 +00:00
|
|
|
if-nez v0, :cond_0
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-17 02:24:41 +00:00
|
|
|
const-wide/16 v0, 0x0
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-17 02:24:41 +00:00
|
|
|
return-wide v0
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
:cond_0
|
2019-02-17 02:24:41 +00:00
|
|
|
sget-object v1, Ljava/util/concurrent/TimeUnit;->MILLISECONDS:Ljava/util/concurrent/TimeUnit;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-17 02:24:41 +00:00
|
|
|
invoke-interface {v0, v1}, Ljava/util/concurrent/ScheduledFuture;->getDelay(Ljava/util/concurrent/TimeUnit;)J
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-17 02:24:41 +00:00
|
|
|
move-result-wide v0
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-17 02:24:41 +00:00
|
|
|
return-wide v0
|
2019-02-04 20:08:30 +00:00
|
|
|
.end method
|
|
|
|
|
2019-02-17 02:24:41 +00:00
|
|
|
.method final aG()V
|
2019-05-03 18:53:54 +00:00
|
|
|
.locals 4
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
iget-object v0, p0, Lcom/adjust/sdk/ay;->fa:Ljava/util/concurrent/ScheduledFuture;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
const/4 v1, 0x0
|
|
|
|
|
2019-02-17 02:24:41 +00:00
|
|
|
if-eqz v0, :cond_0
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-17 02:24:41 +00:00
|
|
|
invoke-interface {v0, v1}, Ljava/util/concurrent/ScheduledFuture;->cancel(Z)Z
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
:cond_0
|
2019-02-17 02:24:41 +00:00
|
|
|
const/4 v0, 0x0
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
iput-object v0, p0, Lcom/adjust/sdk/ay;->fa:Ljava/util/concurrent/ScheduledFuture;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
iget-object v0, p0, Lcom/adjust/sdk/ay;->bQ:Lcom/adjust/sdk/x;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
const/4 v2, 0x1
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
new-array v2, v2, [Ljava/lang/Object;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
iget-object v3, p0, Lcom/adjust/sdk/ay;->name:Ljava/lang/String;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
aput-object v3, v2, v1
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
const-string v1, "%s canceled"
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
invoke-interface {v0, v1, v2}, Lcom/adjust/sdk/x;->a(Ljava/lang/String;[Ljava/lang/Object;)V
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-17 02:24:41 +00:00
|
|
|
return-void
|
2019-02-04 20:08:30 +00:00
|
|
|
.end method
|
|
|
|
|
2019-02-17 02:24:41 +00:00
|
|
|
.method public final g(J)V
|
2019-05-03 18:53:54 +00:00
|
|
|
.locals 5
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-17 02:24:41 +00:00
|
|
|
invoke-virtual {p0}, Lcom/adjust/sdk/ay;->aG()V
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
sget-object v0, Lcom/adjust/sdk/az;->fg:Ljava/text/DecimalFormat;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-17 02:24:41 +00:00
|
|
|
long-to-double v1, p1
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-17 02:24:41 +00:00
|
|
|
const-wide v3, 0x408f400000000000L # 1000.0
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-17 02:24:41 +00:00
|
|
|
invoke-static {v1, v2}, Ljava/lang/Double;->isNaN(D)Z
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-17 02:24:41 +00:00
|
|
|
div-double/2addr v1, v3
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-17 02:24:41 +00:00
|
|
|
invoke-virtual {v0, v1, v2}, Ljava/text/DecimalFormat;->format(D)Ljava/lang/String;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-17 02:24:41 +00:00
|
|
|
move-result-object v0
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
iget-object v1, p0, Lcom/adjust/sdk/ay;->bQ:Lcom/adjust/sdk/x;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
const/4 v2, 0x2
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
new-array v2, v2, [Ljava/lang/Object;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
iget-object v3, p0, Lcom/adjust/sdk/ay;->name:Ljava/lang/String;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
const/4 v4, 0x0
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
aput-object v3, v2, v4
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
const/4 v3, 0x1
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
aput-object v0, v2, v3
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
const-string v0, "%s starting. Launching in %s seconds"
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
invoke-interface {v1, v0, v2}, Lcom/adjust/sdk/x;->a(Ljava/lang/String;[Ljava/lang/Object;)V
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
iget-object v0, p0, Lcom/adjust/sdk/ay;->eZ:Lcom/adjust/sdk/s;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-17 02:24:41 +00:00
|
|
|
new-instance v1, Lcom/adjust/sdk/ay$1;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-17 02:24:41 +00:00
|
|
|
invoke-direct {v1, p0}, Lcom/adjust/sdk/ay$1;-><init>(Lcom/adjust/sdk/ay;)V
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-17 02:24:41 +00:00
|
|
|
sget-object v2, Ljava/util/concurrent/TimeUnit;->MILLISECONDS:Ljava/util/concurrent/TimeUnit;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-17 02:24:41 +00:00
|
|
|
invoke-virtual {v0, v1, p1, p2, v2}, Lcom/adjust/sdk/s;->schedule(Ljava/lang/Runnable;JLjava/util/concurrent/TimeUnit;)Ljava/util/concurrent/ScheduledFuture;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-17 02:24:41 +00:00
|
|
|
move-result-object p1
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-05-03 18:53:54 +00:00
|
|
|
iput-object p1, p0, Lcom/adjust/sdk/ay;->fa:Ljava/util/concurrent/ScheduledFuture;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-17 02:24:41 +00:00
|
|
|
return-void
|
2019-02-04 20:08:30 +00:00
|
|
|
.end method
|