2019-02-04 20:08:30 +00:00
|
|
|
.class public final Lcom/adjust/sdk/o;
|
|
|
|
.super Ljava/lang/Object;
|
2019-02-04 20:29:01 +00:00
|
|
|
.source "AttributionHandler.java"
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
# interfaces
|
|
|
|
.implements Lcom/adjust/sdk/w;
|
|
|
|
|
|
|
|
|
|
|
|
# instance fields
|
2019-02-17 00:24:05 +00:00
|
|
|
.field cg:Lcom/adjust/sdk/s;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-17 00:24:05 +00:00
|
|
|
.field cj:Lcom/adjust/sdk/x;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-17 00:24:05 +00:00
|
|
|
.field dN:Ljava/lang/ref/WeakReference;
|
2019-02-04 20:08:30 +00:00
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"Ljava/lang/ref/WeakReference<",
|
|
|
|
"Lcom/adjust/sdk/v;",
|
|
|
|
">;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
.end field
|
|
|
|
|
2019-02-17 00:24:05 +00:00
|
|
|
.field dO:Lcom/adjust/sdk/c;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-17 00:24:05 +00:00
|
|
|
.field private dP:Lcom/adjust/sdk/ax;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-17 00:24:05 +00:00
|
|
|
.field dQ:Z
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
|
|
|
|
# direct methods
|
|
|
|
.method public constructor <init>(Lcom/adjust/sdk/v;Lcom/adjust/sdk/c;Z)V
|
|
|
|
.locals 3
|
|
|
|
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
|
|
|
|
new-instance v0, Lcom/adjust/sdk/s;
|
|
|
|
|
|
|
|
const-string v1, "AttributionHandler"
|
|
|
|
|
|
|
|
const/4 v2, 0x0
|
|
|
|
|
|
|
|
invoke-direct {v0, v1, v2}, Lcom/adjust/sdk/s;-><init>(Ljava/lang/String;Z)V
|
|
|
|
|
2019-02-17 00:24:05 +00:00
|
|
|
iput-object v0, p0, Lcom/adjust/sdk/o;->cg:Lcom/adjust/sdk/s;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
invoke-static {}, Lcom/adjust/sdk/j;->X()Lcom/adjust/sdk/x;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
2019-02-17 00:24:05 +00:00
|
|
|
iput-object v0, p0, Lcom/adjust/sdk/o;->cj:Lcom/adjust/sdk/x;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
new-instance v0, Lcom/adjust/sdk/ax;
|
|
|
|
|
|
|
|
new-instance v1, Lcom/adjust/sdk/o$1;
|
|
|
|
|
|
|
|
invoke-direct {v1, p0}, Lcom/adjust/sdk/o$1;-><init>(Lcom/adjust/sdk/o;)V
|
|
|
|
|
|
|
|
const-string v2, "Attribution timer"
|
|
|
|
|
|
|
|
invoke-direct {v0, v1, v2}, Lcom/adjust/sdk/ax;-><init>(Ljava/lang/Runnable;Ljava/lang/String;)V
|
|
|
|
|
2019-02-17 00:24:05 +00:00
|
|
|
iput-object v0, p0, Lcom/adjust/sdk/o;->dP:Lcom/adjust/sdk/ax;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
invoke-virtual {p0, p1, p2, p3}, Lcom/adjust/sdk/o;->b(Lcom/adjust/sdk/v;Lcom/adjust/sdk/c;Z)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
|
|
|
|
# virtual methods
|
|
|
|
.method final a(Lcom/adjust/sdk/v;Lcom/adjust/sdk/aq;)V
|
|
|
|
.locals 5
|
|
|
|
|
2019-02-17 00:24:05 +00:00
|
|
|
iget-object v0, p2, Lcom/adjust/sdk/aq;->dA:Lorg/json/JSONObject;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
|
|
|
|
return-void
|
|
|
|
|
|
|
|
:cond_0
|
2019-02-17 00:24:05 +00:00
|
|
|
iget-object v0, p2, Lcom/adjust/sdk/aq;->dA:Lorg/json/JSONObject;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
const-string v1, "ask_in"
|
|
|
|
|
|
|
|
const-wide/16 v2, -0x1
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1, v2, v3}, Lorg/json/JSONObject;->optLong(Ljava/lang/String;J)J
|
|
|
|
|
|
|
|
move-result-wide v0
|
|
|
|
|
|
|
|
const-wide/16 v2, 0x0
|
|
|
|
|
|
|
|
cmp-long v4, v0, v2
|
|
|
|
|
|
|
|
if-ltz v4, :cond_1
|
|
|
|
|
|
|
|
const/4 p2, 0x1
|
|
|
|
|
|
|
|
invoke-interface {p1, p2}, Lcom/adjust/sdk/v;->e(Z)V
|
|
|
|
|
|
|
|
invoke-virtual {p0, v0, v1}, Lcom/adjust/sdk/o;->f(J)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
invoke-interface {p1, v0}, Lcom/adjust/sdk/v;->e(Z)V
|
|
|
|
|
2019-02-17 00:24:05 +00:00
|
|
|
iget-object p1, p2, Lcom/adjust/sdk/aq;->dA:Lorg/json/JSONObject;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
const-string v0, "attribution"
|
|
|
|
|
|
|
|
invoke-virtual {p1, v0}, Lorg/json/JSONObject;->optJSONObject(Ljava/lang/String;)Lorg/json/JSONObject;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
iget-object v0, p2, Lcom/adjust/sdk/aq;->adid:Ljava/lang/String;
|
|
|
|
|
|
|
|
invoke-static {p1, v0}, Lcom/adjust/sdk/f;->a(Lorg/json/JSONObject;Ljava/lang/String;)Lcom/adjust/sdk/f;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
2019-02-17 00:24:05 +00:00
|
|
|
iput-object p1, p2, Lcom/adjust/sdk/aq;->cq:Lcom/adjust/sdk/f;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final af()V
|
|
|
|
.locals 2
|
|
|
|
|
2019-02-17 00:24:05 +00:00
|
|
|
iget-object v0, p0, Lcom/adjust/sdk/o;->cg:Lcom/adjust/sdk/s;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
new-instance v1, Lcom/adjust/sdk/o$2;
|
|
|
|
|
|
|
|
invoke-direct {v1, p0}, Lcom/adjust/sdk/o$2;-><init>(Lcom/adjust/sdk/o;)V
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Lcom/adjust/sdk/s;->submit(Ljava/lang/Runnable;)Ljava/util/concurrent/Future;
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final ag()V
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
const/4 v0, 0x1
|
|
|
|
|
2019-02-17 00:24:05 +00:00
|
|
|
iput-boolean v0, p0, Lcom/adjust/sdk/o;->dQ:Z
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final ah()V
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
2019-02-17 00:24:05 +00:00
|
|
|
iput-boolean v0, p0, Lcom/adjust/sdk/o;->dQ:Z
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final b(Lcom/adjust/sdk/as;)V
|
|
|
|
.locals 2
|
|
|
|
|
2019-02-17 00:24:05 +00:00
|
|
|
iget-object v0, p0, Lcom/adjust/sdk/o;->cg:Lcom/adjust/sdk/s;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
new-instance v1, Lcom/adjust/sdk/o$4;
|
|
|
|
|
|
|
|
invoke-direct {v1, p0, p1}, Lcom/adjust/sdk/o$4;-><init>(Lcom/adjust/sdk/o;Lcom/adjust/sdk/as;)V
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Lcom/adjust/sdk/s;->submit(Ljava/lang/Runnable;)Ljava/util/concurrent/Future;
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final b(Lcom/adjust/sdk/au;)V
|
|
|
|
.locals 2
|
|
|
|
|
2019-02-17 00:24:05 +00:00
|
|
|
iget-object v0, p0, Lcom/adjust/sdk/o;->cg:Lcom/adjust/sdk/s;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
new-instance v1, Lcom/adjust/sdk/o$3;
|
|
|
|
|
|
|
|
invoke-direct {v1, p0, p1}, Lcom/adjust/sdk/o$3;-><init>(Lcom/adjust/sdk/o;Lcom/adjust/sdk/au;)V
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Lcom/adjust/sdk/s;->submit(Ljava/lang/Runnable;)Ljava/util/concurrent/Future;
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final b(Lcom/adjust/sdk/v;Lcom/adjust/sdk/c;Z)V
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
new-instance v0, Ljava/lang/ref/WeakReference;
|
|
|
|
|
|
|
|
invoke-direct {v0, p1}, Ljava/lang/ref/WeakReference;-><init>(Ljava/lang/Object;)V
|
|
|
|
|
2019-02-17 00:24:05 +00:00
|
|
|
iput-object v0, p0, Lcom/adjust/sdk/o;->dN:Ljava/lang/ref/WeakReference;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
2019-02-17 00:24:05 +00:00
|
|
|
iput-object p2, p0, Lcom/adjust/sdk/o;->dO:Lcom/adjust/sdk/c;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
xor-int/lit8 p1, p3, 0x1
|
|
|
|
|
2019-02-17 00:24:05 +00:00
|
|
|
iput-boolean p1, p0, Lcom/adjust/sdk/o;->dQ:Z
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method final f(J)V
|
|
|
|
.locals 5
|
|
|
|
|
2019-02-17 00:24:05 +00:00
|
|
|
iget-object v0, p0, Lcom/adjust/sdk/o;->dP:Lcom/adjust/sdk/ax;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
invoke-virtual {v0}, Lcom/adjust/sdk/ax;->aF()J
|
|
|
|
|
|
|
|
move-result-wide v0
|
|
|
|
|
|
|
|
cmp-long v2, v0, p1
|
|
|
|
|
|
|
|
if-lez v2, :cond_0
|
|
|
|
|
|
|
|
return-void
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const-wide/16 v0, 0x0
|
|
|
|
|
|
|
|
cmp-long v2, p1, v0
|
|
|
|
|
|
|
|
if-eqz v2, :cond_1
|
|
|
|
|
|
|
|
long-to-double v0, p1
|
|
|
|
|
|
|
|
const-wide v2, 0x408f400000000000L # 1000.0
|
|
|
|
|
|
|
|
invoke-static {v0, v1}, Ljava/lang/Double;->isNaN(D)Z
|
|
|
|
|
|
|
|
div-double/2addr v0, v2
|
|
|
|
|
2019-02-17 00:24:05 +00:00
|
|
|
sget-object v2, Lcom/adjust/sdk/ay;->fB:Ljava/text/DecimalFormat;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
invoke-virtual {v2, v0, v1}, Ljava/text/DecimalFormat;->format(D)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
2019-02-17 00:24:05 +00:00
|
|
|
iget-object v1, p0, Lcom/adjust/sdk/o;->cj:Lcom/adjust/sdk/x;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
const-string v2, "Waiting to query attribution in %s seconds"
|
|
|
|
|
|
|
|
const/4 v3, 0x1
|
|
|
|
|
|
|
|
new-array v3, v3, [Ljava/lang/Object;
|
|
|
|
|
|
|
|
const/4 v4, 0x0
|
|
|
|
|
|
|
|
aput-object v0, v3, v4
|
|
|
|
|
|
|
|
invoke-interface {v1, v2, v3}, Lcom/adjust/sdk/x;->b(Ljava/lang/String;[Ljava/lang/Object;)V
|
|
|
|
|
|
|
|
:cond_1
|
2019-02-17 00:24:05 +00:00
|
|
|
iget-object v0, p0, Lcom/adjust/sdk/o;->dP:Lcom/adjust/sdk/ax;
|
2019-02-04 20:08:30 +00:00
|
|
|
|
|
|
|
invoke-virtual {v0, p1, p2}, Lcom/adjust/sdk/ax;->g(J)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|