136 lines
3 KiB
Smali
136 lines
3 KiB
Smali
.class public Lf/c/a/h1;
|
|
.super Ljava/lang/Object;
|
|
.source "RequestHandler.java"
|
|
|
|
# interfaces
|
|
.implements Ljava/lang/Runnable;
|
|
|
|
|
|
# instance fields
|
|
.field public final synthetic d:Lf/c/a/p;
|
|
|
|
.field public final synthetic e:I
|
|
|
|
.field public final synthetic f:Lf/c/a/i1;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Lf/c/a/i1;Lf/c/a/p;I)V
|
|
.locals 0
|
|
|
|
iput-object p1, p0, Lf/c/a/h1;->f:Lf/c/a/i1;
|
|
|
|
iput-object p2, p0, Lf/c/a/h1;->d:Lf/c/a/p;
|
|
|
|
iput p3, p0, Lf/c/a/h1;->e:I
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public run()V
|
|
.locals 5
|
|
|
|
iget-object v0, p0, Lf/c/a/h1;->f:Lf/c/a/i1;
|
|
|
|
iget-object v1, p0, Lf/c/a/h1;->d:Lf/c/a/p;
|
|
|
|
iget v2, p0, Lf/c/a/h1;->e:I
|
|
|
|
if-eqz v0, :cond_2
|
|
|
|
const-string v3, "https://app.adjust.com"
|
|
|
|
invoke-static {v3}, Lf/e/b/a/a;->D(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object v3
|
|
|
|
iget-object v4, v1, Lf/c/a/p;->path:Ljava/lang/String;
|
|
|
|
invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v3
|
|
|
|
:try_start_0
|
|
invoke-static {v3, v1, v2}, Ld0/a/b/b/a;->u(Ljava/lang/String;Lf/c/a/p;I)Lf/c/a/j1;
|
|
|
|
move-result-object v2
|
|
|
|
iget-object v3, v0, Lf/c/a/i1;->b:Ljava/lang/ref/WeakReference;
|
|
|
|
invoke-virtual {v3}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;
|
|
|
|
move-result-object v3
|
|
|
|
check-cast v3, Lf/c/a/r0;
|
|
|
|
if-nez v3, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
iget-object v4, v2, Lf/c/a/j1;->f:Lorg/json/JSONObject;
|
|
|
|
if-nez v4, :cond_1
|
|
|
|
invoke-interface {v3, v2, v1}, Lf/c/a/r0;->f(Lf/c/a/j1;Lf/c/a/p;)V
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
invoke-interface {v3, v2}, Lf/c/a/r0;->c(Lf/c/a/j1;)V
|
|
: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
|
|
|
|
goto :goto_0
|
|
|
|
:catchall_0
|
|
move-exception v2
|
|
|
|
const-string v3, "Runtime exception"
|
|
|
|
invoke-virtual {v0, v1, v3, v2}, Lf/c/a/i1;->b(Lf/c/a/p;Ljava/lang/String;Ljava/lang/Throwable;)V
|
|
|
|
goto :goto_0
|
|
|
|
:catch_0
|
|
move-exception v2
|
|
|
|
const-string v3, "Request failed"
|
|
|
|
invoke-virtual {v0, v1, v3, v2}, Lf/c/a/i1;->a(Lf/c/a/p;Ljava/lang/String;Ljava/lang/Throwable;)V
|
|
|
|
goto :goto_0
|
|
|
|
:catch_1
|
|
move-exception v2
|
|
|
|
const-string v3, "Request timed out"
|
|
|
|
invoke-virtual {v0, v1, v3, v2}, Lf/c/a/i1;->a(Lf/c/a/p;Ljava/lang/String;Ljava/lang/Throwable;)V
|
|
|
|
goto :goto_0
|
|
|
|
:catch_2
|
|
move-exception v2
|
|
|
|
const-string v3, "Failed to encode parameters"
|
|
|
|
invoke-virtual {v0, v1, v3, v2}, Lf/c/a/i1;->b(Lf/c/a/p;Ljava/lang/String;Ljava/lang/Throwable;)V
|
|
|
|
:goto_0
|
|
return-void
|
|
|
|
:cond_2
|
|
const/4 v0, 0x0
|
|
|
|
throw v0
|
|
.end method
|