2019-12-06 03:29:40 +00:00
|
|
|
.class public Le/c/a/n1;
|
|
|
|
.super Ljava/lang/Object;
|
|
|
|
.source "RequestHandler.java"
|
|
|
|
|
|
|
|
# interfaces
|
|
|
|
.implements Le/c/a/w0;
|
|
|
|
|
|
|
|
|
|
|
|
# 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/v0;",
|
|
|
|
">;"
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
.end field
|
|
|
|
|
|
|
|
.field public c:Le/c/a/u0;
|
|
|
|
|
|
|
|
|
|
|
|
# direct methods
|
|
|
|
.method public constructor <init>(Le/c/a/v0;)V
|
|
|
|
.locals 3
|
|
|
|
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
|
|
|
|
invoke-static {}, Le/c/a/z;->a()Le/c/a/u0;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
iput-object v0, p0, Le/c/a/n1;->c:Le/c/a/u0;
|
|
|
|
|
|
|
|
new-instance v0, Le/c/a/p0;
|
|
|
|
|
|
|
|
const-string v1, "RequestHandler"
|
|
|
|
|
|
|
|
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/n1;->a:Le/c/a/p0;
|
|
|
|
|
|
|
|
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/n1;->b:Ljava/lang/ref/WeakReference;
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
|
|
|
|
# virtual methods
|
|
|
|
.method public final a(Le/c/a/s;I)V
|
|
|
|
.locals 2
|
|
|
|
|
|
|
|
const-string v0, "https://app.adjust.com"
|
|
|
|
|
|
|
|
invoke-static {v0}, Le/e/b/a/a;->a(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Le/c/a/s;->k()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
:try_start_0
|
2019-12-12 08:58:10 +00:00
|
|
|
invoke-static {v0, p1, p2}, Li/a/b/b/g/e;->a(Ljava/lang/String;Le/c/a/s;I)Le/c/a/o1;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
move-result-object p2
|
|
|
|
|
|
|
|
iget-object v0, p0, Le/c/a/n1;->b:Ljava/lang/ref/WeakReference;
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
check-cast v0, Le/c/a/v0;
|
|
|
|
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
|
|
|
|
return-void
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
iget-object v1, p2, Le/c/a/o1;->f:Lorg/json/JSONObject;
|
|
|
|
:try_end_0
|
|
|
|
.catch Ljava/io/UnsupportedEncodingException; {:try_start_0 .. :try_end_0} :catch_2
|
|
|
|
.catch Ljava/net/SocketTimeoutException; {:try_start_0 .. :try_end_0} :catch_1
|
|
|
|
.catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
|
|
|
|
if-nez v1, :cond_1
|
|
|
|
|
|
|
|
check-cast v0, Le/c/a/k1;
|
|
|
|
|
|
|
|
:try_start_1
|
|
|
|
invoke-virtual {v0, p2, p1}, Le/c/a/k1;->a(Le/c/a/o1;Le/c/a/s;)V
|
|
|
|
:try_end_1
|
|
|
|
.catch Ljava/io/UnsupportedEncodingException; {:try_start_1 .. :try_end_1} :catch_2
|
|
|
|
.catch Ljava/net/SocketTimeoutException; {:try_start_1 .. :try_end_1} :catch_1
|
|
|
|
.catch Ljava/io/IOException; {:try_start_1 .. :try_end_1} :catch_0
|
|
|
|
.catchall {:try_start_1 .. :try_end_1} :catchall_0
|
|
|
|
|
|
|
|
return-void
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
check-cast v0, Le/c/a/k1;
|
|
|
|
|
|
|
|
:try_start_2
|
|
|
|
invoke-virtual {v0, p2}, Le/c/a/k1;->a(Le/c/a/o1;)V
|
|
|
|
:try_end_2
|
|
|
|
.catch Ljava/io/UnsupportedEncodingException; {:try_start_2 .. :try_end_2} :catch_2
|
|
|
|
.catch Ljava/net/SocketTimeoutException; {:try_start_2 .. :try_end_2} :catch_1
|
|
|
|
.catch Ljava/io/IOException; {:try_start_2 .. :try_end_2} :catch_0
|
|
|
|
.catchall {:try_start_2 .. :try_end_2} :catchall_0
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:catchall_0
|
|
|
|
move-exception p2
|
|
|
|
|
|
|
|
const-string v0, "Runtime exception"
|
|
|
|
|
|
|
|
invoke-virtual {p0, p1, v0, p2}, Le/c/a/n1;->b(Le/c/a/s;Ljava/lang/String;Ljava/lang/Throwable;)V
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:catch_0
|
|
|
|
move-exception p2
|
|
|
|
|
|
|
|
const-string v0, "Request failed"
|
|
|
|
|
|
|
|
invoke-virtual {p0, p1, v0, p2}, Le/c/a/n1;->a(Le/c/a/s;Ljava/lang/String;Ljava/lang/Throwable;)V
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:catch_1
|
|
|
|
move-exception p2
|
|
|
|
|
|
|
|
const-string v0, "Request timed out"
|
|
|
|
|
|
|
|
invoke-virtual {p0, p1, v0, p2}, Le/c/a/n1;->a(Le/c/a/s;Ljava/lang/String;Ljava/lang/Throwable;)V
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:catch_2
|
|
|
|
move-exception p2
|
|
|
|
|
|
|
|
const-string v0, "Failed to encode parameters"
|
|
|
|
|
|
|
|
invoke-virtual {p0, p1, v0, p2}, Le/c/a/n1;->b(Le/c/a/s;Ljava/lang/String;Ljava/lang/Throwable;)V
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final a(Le/c/a/s;Ljava/lang/String;Ljava/lang/Throwable;)V
|
|
|
|
.locals 2
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Le/c/a/s;->g()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
invoke-static {p2, p3}, Le/c/a/a2;->a(Ljava/lang/String;Ljava/lang/Throwable;)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object p2
|
|
|
|
|
|
|
|
const/4 p3, 0x2
|
|
|
|
|
|
|
|
new-array p3, p3, [Ljava/lang/Object;
|
|
|
|
|
|
|
|
const/4 v1, 0x0
|
|
|
|
|
|
|
|
aput-object v0, p3, v1
|
|
|
|
|
|
|
|
const/4 v0, 0x1
|
|
|
|
|
|
|
|
aput-object p2, p3, v0
|
|
|
|
|
|
|
|
const-string p2, "%s. (%s) Will retry later"
|
|
|
|
|
|
|
|
invoke-static {p2, p3}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object p2
|
|
|
|
|
|
|
|
iget-object p3, p0, Le/c/a/n1;->c:Le/c/a/u0;
|
|
|
|
|
|
|
|
new-array v0, v1, [Ljava/lang/Object;
|
|
|
|
|
|
|
|
check-cast p3, Le/c/a/b1;
|
|
|
|
|
|
|
|
invoke-virtual {p3, p2, v0}, Le/c/a/b1;->b(Ljava/lang/String;[Ljava/lang/Object;)V
|
|
|
|
|
|
|
|
invoke-static {p1}, Le/c/a/o1;->a(Le/c/a/s;)Le/c/a/o1;
|
|
|
|
|
|
|
|
move-result-object p3
|
|
|
|
|
|
|
|
iput-object p2, p3, Le/c/a/o1;->a:Ljava/lang/String;
|
|
|
|
|
|
|
|
iget-object p2, p0, Le/c/a/n1;->b:Ljava/lang/ref/WeakReference;
|
|
|
|
|
|
|
|
invoke-virtual {p2}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-result-object p2
|
|
|
|
|
|
|
|
check-cast p2, Le/c/a/v0;
|
|
|
|
|
|
|
|
if-nez p2, :cond_0
|
|
|
|
|
|
|
|
return-void
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
check-cast p2, Le/c/a/k1;
|
|
|
|
|
|
|
|
invoke-virtual {p2, p3, p1}, Le/c/a/k1;->a(Le/c/a/o1;Le/c/a/s;)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public a(Le/c/a/v0;)V
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
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/n1;->b:Ljava/lang/ref/WeakReference;
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public final b(Le/c/a/s;Ljava/lang/String;Ljava/lang/Throwable;)V
|
|
|
|
.locals 2
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Le/c/a/s;->g()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
invoke-static {p2, p3}, Le/c/a/a2;->a(Ljava/lang/String;Ljava/lang/Throwable;)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object p2
|
|
|
|
|
|
|
|
const/4 p3, 0x2
|
|
|
|
|
|
|
|
new-array p3, p3, [Ljava/lang/Object;
|
|
|
|
|
|
|
|
const/4 v1, 0x0
|
|
|
|
|
|
|
|
aput-object v0, p3, v1
|
|
|
|
|
|
|
|
const/4 v0, 0x1
|
|
|
|
|
|
|
|
aput-object p2, p3, v0
|
|
|
|
|
|
|
|
const-string p2, "%s. (%s)"
|
|
|
|
|
|
|
|
invoke-static {p2, p3}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object p2
|
|
|
|
|
|
|
|
iget-object p3, p0, Le/c/a/n1;->c:Le/c/a/u0;
|
|
|
|
|
|
|
|
new-array v0, v1, [Ljava/lang/Object;
|
|
|
|
|
|
|
|
check-cast p3, Le/c/a/b1;
|
|
|
|
|
|
|
|
invoke-virtual {p3, p2, v0}, Le/c/a/b1;->b(Ljava/lang/String;[Ljava/lang/Object;)V
|
|
|
|
|
|
|
|
invoke-static {p1}, Le/c/a/o1;->a(Le/c/a/s;)Le/c/a/o1;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
iput-object p2, p1, Le/c/a/o1;->a:Ljava/lang/String;
|
|
|
|
|
|
|
|
iget-object p2, p0, Le/c/a/n1;->b:Ljava/lang/ref/WeakReference;
|
|
|
|
|
|
|
|
invoke-virtual {p2}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-result-object p2
|
|
|
|
|
|
|
|
check-cast p2, Le/c/a/v0;
|
|
|
|
|
|
|
|
if-nez p2, :cond_0
|
|
|
|
|
|
|
|
return-void
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
check-cast p2, Le/c/a/k1;
|
|
|
|
|
|
|
|
invoke-virtual {p2, p1}, Le/c/a/k1;->a(Le/c/a/o1;)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|