apkfuckery/com.discord/smali/e/c/a/g0.smali

215 lines
4.6 KiB
Smali
Raw Normal View History

2019-12-06 03:29:40 +00:00
.class public Le/c/a/g0;
.super Ljava/lang/Object;
.source "AttributionHandler.java"
# interfaces
.implements Le/c/a/t0;
# instance fields
.field public a:Le/c/a/p0;
.field public b:Ljava/lang/ref/WeakReference;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/ref/WeakReference<",
"Le/c/a/s0;",
">;"
}
.end annotation
.end field
.field public c:Le/c/a/u0;
.field public d:Le/c/a/s;
.field public e:Le/c/a/z1;
.field public f:Z
# direct methods
.method public constructor <init>(Le/c/a/s0;Le/c/a/s;Z)V
.locals 3
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
new-instance v0, Le/c/a/p0;
const-string v1, "AttributionHandler"
const/4 v2, 0x0
invoke-direct {v0, v1, v2}, Le/c/a/p0;-><init>(Ljava/lang/String;Z)V
iput-object v0, p0, Le/c/a/g0;->a:Le/c/a/p0;
invoke-static {}, Le/c/a/z;->a()Le/c/a/u0;
move-result-object v0
iput-object v0, p0, Le/c/a/g0;->c:Le/c/a/u0;
new-instance v0, Le/c/a/z1;
new-instance v1, Le/c/a/g0$a;
invoke-direct {v1, p0}, Le/c/a/g0$a;-><init>(Le/c/a/g0;)V
const-string v2, "Attribution timer"
invoke-direct {v0, v1, v2}, Le/c/a/z1;-><init>(Ljava/lang/Runnable;Ljava/lang/String;)V
iput-object v0, p0, Le/c/a/g0;->e:Le/c/a/z1;
new-instance v0, Ljava/lang/ref/WeakReference;
invoke-direct {v0, p1}, Ljava/lang/ref/WeakReference;-><init>(Ljava/lang/Object;)V
iput-object v0, p0, Le/c/a/g0;->b:Ljava/lang/ref/WeakReference;
iput-object p2, p0, Le/c/a/g0;->d:Le/c/a/s;
xor-int/lit8 p1, p3, 0x1
iput-boolean p1, p0, Le/c/a/g0;->f:Z
return-void
.end method
# virtual methods
.method public final a(J)V
.locals 4
iget-object v0, p0, Le/c/a/g0;->e:Le/c/a/z1;
invoke-virtual {v0}, Le/c/a/z1;->b()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
div-double/2addr v0, v2
sget-object v2, Le/c/a/a2;->a:Ljava/text/DecimalFormat;
invoke-virtual {v2, v0, v1}, Ljava/text/DecimalFormat;->format(D)Ljava/lang/String;
move-result-object v0
iget-object v1, p0, Le/c/a/g0;->c:Le/c/a/u0;
const/4 v2, 0x1
new-array v2, v2, [Ljava/lang/Object;
const/4 v3, 0x0
aput-object v0, v2, v3
check-cast v1, Le/c/a/b1;
const-string v0, "Waiting to query attribution in %s seconds"
invoke-virtual {v1, v0, v2}, Le/c/a/b1;->a(Ljava/lang/String;[Ljava/lang/Object;)V
:cond_1
iget-object v0, p0, Le/c/a/g0;->e:Le/c/a/z1;
invoke-virtual {v0, p1, p2}, Le/c/a/z1;->a(J)V
return-void
.end method
.method public final a(Le/c/a/s0;Le/c/a/o1;)V
.locals 5
iget-object v0, p2, Le/c/a/o1;->f:Lorg/json/JSONObject;
if-nez v0, :cond_0
return-void
:cond_0
const-wide/16 v1, -0x1
const-string v3, "ask_in"
invoke-virtual {v0, v3, v1, v2}, 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
check-cast p1, Le/c/a/g;
iget-object v2, p1, Le/c/a/g;->a:Le/c/a/p0;
new-instance v3, Le/c/a/p;
invoke-direct {v3, p1, p2}, Le/c/a/p;-><init>(Le/c/a/g;Z)V
iget-object p1, v2, Le/c/a/p0;->a:Ljava/util/concurrent/ScheduledThreadPoolExecutor;
invoke-virtual {p1, v3}, Ljava/util/concurrent/ScheduledThreadPoolExecutor;->submit(Ljava/lang/Runnable;)Ljava/util/concurrent/Future;
invoke-virtual {p0, v0, v1}, Le/c/a/g0;->a(J)V
return-void
:cond_1
const/4 v0, 0x0
check-cast p1, Le/c/a/g;
iget-object v1, p1, Le/c/a/g;->a:Le/c/a/p0;
new-instance v2, Le/c/a/p;
invoke-direct {v2, p1, v0}, Le/c/a/p;-><init>(Le/c/a/g;Z)V
iget-object p1, v1, Le/c/a/p0;->a:Ljava/util/concurrent/ScheduledThreadPoolExecutor;
invoke-virtual {p1, v2}, Ljava/util/concurrent/ScheduledThreadPoolExecutor;->submit(Ljava/lang/Runnable;)Ljava/util/concurrent/Future;
iget-object p1, p2, Le/c/a/o1;->f:Lorg/json/JSONObject;
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, Le/c/a/o1;->c:Ljava/lang/String;
invoke-static {p1, v0}, Lcom/adjust/sdk/AdjustAttribution;->a(Lorg/json/JSONObject;Ljava/lang/String;)Lcom/adjust/sdk/AdjustAttribution;
move-result-object p1
iput-object p1, p2, Le/c/a/o1;->g:Lcom/adjust/sdk/AdjustAttribution;
return-void
.end method