2020-05-17 12:40:10 +00:00
|
|
|
.class public Lf/c/a/h0;
|
|
|
|
.super Ljava/lang/Object;
|
|
|
|
.source "AttributionHandler.java"
|
|
|
|
|
|
|
|
# interfaces
|
2020-07-25 02:57:47 +00:00
|
|
|
.implements Lf/c/a/v0;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
|
|
|
|
# instance fields
|
2020-07-25 02:57:47 +00:00
|
|
|
.field public a:Z
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-25 02:57:47 +00:00
|
|
|
.field public b:Ljava/lang/String;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-25 02:57:47 +00:00
|
|
|
.field public c:Ljava/lang/String;
|
|
|
|
|
|
|
|
.field public d:Ljava/lang/String;
|
|
|
|
|
|
|
|
.field public e:Lf/c/a/w0;
|
|
|
|
|
|
|
|
.field public f:Lf/c/a/f2/k;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-25 02:57:47 +00:00
|
|
|
.field public g:Lf/c/a/f2/h;
|
|
|
|
|
|
|
|
.field public h:Ljava/lang/ref/WeakReference;
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
|
|
|
"Ljava/lang/ref/WeakReference<",
|
|
|
|
"Lf/c/a/u0;",
|
|
|
|
">;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
.end field
|
|
|
|
|
|
|
|
|
|
|
|
# direct methods
|
|
|
|
.method public constructor <init>(Lf/c/a/u0;Z)V
|
|
|
|
.locals 3
|
2020-05-17 12:40:10 +00:00
|
|
|
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
|
2020-07-25 02:57:47 +00:00
|
|
|
invoke-static {}, Lf/c/a/a0;->a()Lf/c/a/w0;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
iput-object v0, p0, Lf/c/a/h0;->e:Lf/c/a/w0;
|
|
|
|
|
|
|
|
new-instance v0, Lf/c/a/f2/c;
|
|
|
|
|
|
|
|
const-string v1, "AttributionHandler"
|
|
|
|
|
|
|
|
invoke-direct {v0, v1}, Lf/c/a/f2/c;-><init>(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
iput-object v0, p0, Lf/c/a/h0;->g:Lf/c/a/f2/h;
|
|
|
|
|
|
|
|
new-instance v0, Lf/c/a/f2/k;
|
|
|
|
|
|
|
|
new-instance v1, Lf/c/a/h0$a;
|
|
|
|
|
|
|
|
invoke-direct {v1, p0}, Lf/c/a/h0$a;-><init>(Lf/c/a/h0;)V
|
|
|
|
|
|
|
|
const-string v2, "Attribution timer"
|
|
|
|
|
|
|
|
invoke-direct {v0, v1, v2}, Lf/c/a/f2/k;-><init>(Ljava/lang/Runnable;Ljava/lang/String;)V
|
|
|
|
|
|
|
|
iput-object v0, p0, Lf/c/a/h0;->f:Lf/c/a/f2/k;
|
|
|
|
|
|
|
|
invoke-interface {p1}, Lf/c/a/u0;->a()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
iput-object v0, p0, Lf/c/a/h0;->b:Ljava/lang/String;
|
|
|
|
|
|
|
|
invoke-interface {p1}, Lf/c/a/u0;->f()Lf/c/a/p0;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
iget-object v0, v0, Lf/c/a/p0;->j:Ljava/lang/String;
|
|
|
|
|
|
|
|
iput-object v0, p0, Lf/c/a/h0;->c:Ljava/lang/String;
|
|
|
|
|
|
|
|
new-instance v0, Ljava/lang/ref/WeakReference;
|
|
|
|
|
|
|
|
invoke-direct {v0, p1}, Ljava/lang/ref/WeakReference;-><init>(Ljava/lang/Object;)V
|
|
|
|
|
|
|
|
iput-object v0, p0, Lf/c/a/h0;->h:Ljava/lang/ref/WeakReference;
|
|
|
|
|
|
|
|
xor-int/lit8 p1, p2, 0x1
|
|
|
|
|
|
|
|
iput-boolean p1, p0, Lf/c/a/h0;->a:Z
|
|
|
|
|
2020-05-17 12:40:10 +00:00
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
|
|
|
|
# virtual methods
|
2020-07-25 02:57:47 +00:00
|
|
|
.method public final a(Lf/c/a/u0;Lf/c/a/r1;)V
|
|
|
|
.locals 5
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-25 02:57:47 +00:00
|
|
|
iget-object v0, p2, Lf/c/a/r1;->f:Lorg/json/JSONObject;
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-25 02:57:47 +00:00
|
|
|
if-nez v0, :cond_0
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-25 02:57:47 +00:00
|
|
|
return-void
|
2020-05-17 12:40:10 +00:00
|
|
|
|
2020-07-25 02:57:47 +00:00
|
|
|
:cond_0
|
|
|
|
const-wide/16 v1, -0x1
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-25 02:57:47 +00:00
|
|
|
const-string v3, "ask_in"
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-25 02:57:47 +00:00
|
|
|
invoke-virtual {v0, v3, v1, v2}, Lorg/json/JSONObject;->optLong(Ljava/lang/String;J)J
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-25 02:57:47 +00:00
|
|
|
move-result-wide v0
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-25 02:57:47 +00:00
|
|
|
const-wide/16 v2, 0x0
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-25 02:57:47 +00:00
|
|
|
cmp-long v4, v0, v2
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-25 02:57:47 +00:00
|
|
|
if-ltz v4, :cond_1
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-25 02:57:47 +00:00
|
|
|
const/4 p2, 0x1
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-25 02:57:47 +00:00
|
|
|
invoke-interface {p1, p2}, Lf/c/a/u0;->m(Z)V
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-25 02:57:47 +00:00
|
|
|
const-string p1, "backend"
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-25 02:57:47 +00:00
|
|
|
iput-object p1, p0, Lf/c/a/h0;->d:Ljava/lang/String;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-25 02:57:47 +00:00
|
|
|
invoke-virtual {p0, v0, v1}, Lf/c/a/h0;->b(J)V
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-25 02:57:47 +00:00
|
|
|
return-void
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-25 02:57:47 +00:00
|
|
|
:cond_1
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
invoke-interface {p1, v0}, Lf/c/a/u0;->m(Z)V
|
|
|
|
|
|
|
|
iget-object p1, p2, Lf/c/a/r1;->f:Lorg/json/JSONObject;
|
|
|
|
|
|
|
|
const-string v0, "attribution"
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-25 02:57:47 +00:00
|
|
|
invoke-virtual {p1, v0}, Lorg/json/JSONObject;->optJSONObject(Ljava/lang/String;)Lorg/json/JSONObject;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-25 02:57:47 +00:00
|
|
|
move-result-object p1
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-25 02:57:47 +00:00
|
|
|
iget-object v0, p2, Lf/c/a/r1;->c:Ljava/lang/String;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-25 02:57:47 +00:00
|
|
|
iget-object v1, p0, Lf/c/a/h0;->c:Ljava/lang/String;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-25 02:57:47 +00:00
|
|
|
invoke-static {v1}, Lf/c/a/e2;->o(Ljava/lang/String;)Ljava/lang/String;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
2020-07-25 02:57:47 +00:00
|
|
|
invoke-static {p1, v0, v1}, Lcom/adjust/sdk/AdjustAttribution;->a(Lorg/json/JSONObject;Ljava/lang/String;Ljava/lang/String;)Lcom/adjust/sdk/AdjustAttribution;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-25 02:57:47 +00:00
|
|
|
move-result-object p1
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-25 02:57:47 +00:00
|
|
|
iput-object p1, p2, Lf/c/a/r1;->h:Lcom/adjust/sdk/AdjustAttribution;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-25 02:57:47 +00:00
|
|
|
return-void
|
|
|
|
.end method
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-25 02:57:47 +00:00
|
|
|
.method public final b(J)V
|
|
|
|
.locals 4
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-25 02:57:47 +00:00
|
|
|
iget-object v0, p0, Lf/c/a/h0;->f:Lf/c/a/f2/k;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-25 02:57:47 +00:00
|
|
|
invoke-virtual {v0}, Lf/c/a/f2/k;->b()J
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-25 02:57:47 +00:00
|
|
|
move-result-wide v0
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-25 02:57:47 +00:00
|
|
|
cmp-long v2, v0, p1
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-25 02:57:47 +00:00
|
|
|
if-lez v2, :cond_0
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-25 02:57:47 +00:00
|
|
|
return-void
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const-wide/16 v0, 0x0
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-25 02:57:47 +00:00
|
|
|
cmp-long v2, p1, v0
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-25 02:57:47 +00:00
|
|
|
if-eqz v2, :cond_1
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-25 02:57:47 +00:00
|
|
|
long-to-double v0, p1
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-25 02:57:47 +00:00
|
|
|
const-wide v2, 0x408f400000000000L # 1000.0
|
|
|
|
|
|
|
|
div-double/2addr v0, v2
|
|
|
|
|
|
|
|
sget-object v2, Lf/c/a/e2;->a:Ljava/text/DecimalFormat;
|
|
|
|
|
|
|
|
invoke-virtual {v2, v0, v1}, Ljava/text/DecimalFormat;->format(D)Ljava/lang/String;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-25 02:57:47 +00:00
|
|
|
move-result-object v0
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-25 02:57:47 +00:00
|
|
|
iget-object v1, p0, Lf/c/a/h0;->e:Lf/c/a/w0;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-25 02:57:47 +00:00
|
|
|
const/4 v2, 0x1
|
|
|
|
|
|
|
|
new-array v2, v2, [Ljava/lang/Object;
|
|
|
|
|
|
|
|
const/4 v3, 0x0
|
|
|
|
|
|
|
|
aput-object v0, v2, v3
|
|
|
|
|
|
|
|
const-string v0, "Waiting to query attribution in %s seconds"
|
|
|
|
|
|
|
|
invoke-interface {v1, v0, v2}, Lf/c/a/w0;->f(Ljava/lang/String;[Ljava/lang/Object;)V
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
iget-object v0, p0, Lf/c/a/h0;->f:Lf/c/a/f2/k;
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-07-25 02:57:47 +00:00
|
|
|
invoke-virtual {v0, p1, p2}, Lf/c/a/f2/k;->c(J)V
|
2020-07-08 16:44:49 +00:00
|
|
|
|
2020-05-17 12:40:10 +00:00
|
|
|
return-void
|
|
|
|
.end method
|