670 lines
12 KiB
Smali
670 lines
12 KiB
Smali
|
.class public final La0/i;
|
||
|
.super Ljava/lang/Object;
|
||
|
.source "OkHttpCall.java"
|
||
|
|
||
|
# interfaces
|
||
|
.implements La0/b;
|
||
|
|
||
|
|
||
|
# annotations
|
||
|
.annotation system Ldalvik/annotation/MemberClasses;
|
||
|
value = {
|
||
|
La0/i$b;,
|
||
|
La0/i$c;
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"<T:",
|
||
|
"Ljava/lang/Object;",
|
||
|
">",
|
||
|
"Ljava/lang/Object;",
|
||
|
"La0/b<",
|
||
|
"TT;>;"
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
|
||
|
# instance fields
|
||
|
.field public final d:La0/r;
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"La0/r<",
|
||
|
"TT;*>;"
|
||
|
}
|
||
|
.end annotation
|
||
|
.end field
|
||
|
|
||
|
.field public final e:[Ljava/lang/Object;
|
||
|
|
||
|
.field public volatile f:Z
|
||
|
|
||
|
.field public g:Lx/e;
|
||
|
|
||
|
.field public h:Ljava/lang/Throwable;
|
||
|
|
||
|
.field public i:Z
|
||
|
|
||
|
|
||
|
# direct methods
|
||
|
.method public constructor <init>(La0/r;[Ljava/lang/Object;)V
|
||
|
.locals 0
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"(",
|
||
|
"La0/r<",
|
||
|
"TT;*>;[",
|
||
|
"Ljava/lang/Object;",
|
||
|
")V"
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||
|
|
||
|
iput-object p1, p0, La0/i;->d:La0/r;
|
||
|
|
||
|
iput-object p2, p0, La0/i;->e:[Ljava/lang/Object;
|
||
|
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
|
||
|
# virtual methods
|
||
|
.method public a(Lokhttp3/Response;)La0/o;
|
||
|
.locals 5
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"(",
|
||
|
"Lokhttp3/Response;",
|
||
|
")",
|
||
|
"La0/o<",
|
||
|
"TT;>;"
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
.annotation system Ldalvik/annotation/Throws;
|
||
|
value = {
|
||
|
Ljava/io/IOException;
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
invoke-virtual {p1}, Lokhttp3/Response;->a()Lx/z;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
invoke-virtual {p1}, Lokhttp3/Response;->k()Lokhttp3/Response$a;
|
||
|
|
||
|
move-result-object p1
|
||
|
|
||
|
new-instance v1, La0/i$c;
|
||
|
|
||
|
invoke-virtual {v0}, Lx/z;->c()Lokhttp3/MediaType;
|
||
|
|
||
|
move-result-object v2
|
||
|
|
||
|
invoke-virtual {v0}, Lx/z;->b()J
|
||
|
|
||
|
move-result-wide v3
|
||
|
|
||
|
invoke-direct {v1, v2, v3, v4}, La0/i$c;-><init>(Lokhttp3/MediaType;J)V
|
||
|
|
||
|
iput-object v1, p1, Lokhttp3/Response$a;->g:Lx/z;
|
||
|
|
||
|
invoke-virtual {p1}, Lokhttp3/Response$a;->a()Lokhttp3/Response;
|
||
|
|
||
|
move-result-object p1
|
||
|
|
||
|
invoke-virtual {p1}, Lokhttp3/Response;->c()I
|
||
|
|
||
|
move-result v1
|
||
|
|
||
|
const/16 v2, 0xc8
|
||
|
|
||
|
const/4 v3, 0x0
|
||
|
|
||
|
if-lt v1, v2, :cond_4
|
||
|
|
||
|
const/16 v2, 0x12c
|
||
|
|
||
|
if-lt v1, v2, :cond_0
|
||
|
|
||
|
goto :goto_1
|
||
|
|
||
|
:cond_0
|
||
|
const/16 v2, 0xcc
|
||
|
|
||
|
if-eq v1, v2, :cond_3
|
||
|
|
||
|
const/16 v2, 0xcd
|
||
|
|
||
|
if-ne v1, v2, :cond_1
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:cond_1
|
||
|
new-instance v1, La0/i$b;
|
||
|
|
||
|
invoke-direct {v1, v0}, La0/i$b;-><init>(Lx/z;)V
|
||
|
|
||
|
:try_start_0
|
||
|
iget-object v0, p0, La0/i;->d:La0/r;
|
||
|
|
||
|
iget-object v0, v0, La0/r;->d:La0/e;
|
||
|
|
||
|
invoke-interface {v0, v1}, La0/e;->a(Ljava/lang/Object;)Ljava/lang/Object;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
invoke-static {v0, p1}, La0/o;->a(Ljava/lang/Object;Lokhttp3/Response;)La0/o;
|
||
|
|
||
|
move-result-object p1
|
||
|
:try_end_0
|
||
|
.catch Ljava/lang/RuntimeException; {:try_start_0 .. :try_end_0} :catch_0
|
||
|
|
||
|
return-object p1
|
||
|
|
||
|
:catch_0
|
||
|
move-exception p1
|
||
|
|
||
|
iget-object v0, v1, La0/i$b;->g:Ljava/io/IOException;
|
||
|
|
||
|
if-nez v0, :cond_2
|
||
|
|
||
|
throw p1
|
||
|
|
||
|
:cond_2
|
||
|
throw v0
|
||
|
|
||
|
:cond_3
|
||
|
:goto_0
|
||
|
invoke-virtual {v0}, Lx/z;->close()V
|
||
|
|
||
|
invoke-static {v3, p1}, La0/o;->a(Ljava/lang/Object;Lokhttp3/Response;)La0/o;
|
||
|
|
||
|
move-result-object p1
|
||
|
|
||
|
return-object p1
|
||
|
|
||
|
:cond_4
|
||
|
:goto_1
|
||
|
:try_start_1
|
||
|
invoke-static {v0}, La0/s;->a(Lx/z;)Lx/z;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
const-string v2, "body == null"
|
||
|
|
||
|
invoke-static {v1, v2}, La0/s;->a(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
|
||
|
|
||
|
const-string v2, "rawResponse == null"
|
||
|
|
||
|
invoke-static {p1, v2}, La0/s;->a(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
|
||
|
|
||
|
invoke-virtual {p1}, Lokhttp3/Response;->h()Z
|
||
|
|
||
|
move-result v2
|
||
|
|
||
|
if-nez v2, :cond_5
|
||
|
|
||
|
new-instance v2, La0/o;
|
||
|
|
||
|
invoke-direct {v2, p1, v3, v1}, La0/o;-><init>(Lokhttp3/Response;Ljava/lang/Object;Lx/z;)V
|
||
|
:try_end_1
|
||
|
.catchall {:try_start_1 .. :try_end_1} :catchall_0
|
||
|
|
||
|
invoke-virtual {v0}, Lx/z;->close()V
|
||
|
|
||
|
return-object v2
|
||
|
|
||
|
:cond_5
|
||
|
:try_start_2
|
||
|
new-instance p1, Ljava/lang/IllegalArgumentException;
|
||
|
|
||
|
const-string v1, "rawResponse should not be successful response"
|
||
|
|
||
|
invoke-direct {p1, v1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
||
|
|
||
|
throw p1
|
||
|
:try_end_2
|
||
|
.catchall {:try_start_2 .. :try_end_2} :catchall_0
|
||
|
|
||
|
:catchall_0
|
||
|
move-exception p1
|
||
|
|
||
|
invoke-virtual {v0}, Lx/z;->close()V
|
||
|
|
||
|
throw p1
|
||
|
.end method
|
||
|
|
||
|
.method public final a()Lx/e;
|
||
|
.locals 2
|
||
|
.annotation system Ldalvik/annotation/Throws;
|
||
|
value = {
|
||
|
Ljava/io/IOException;
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
iget-object v0, p0, La0/i;->d:La0/r;
|
||
|
|
||
|
iget-object v1, p0, La0/i;->e:[Ljava/lang/Object;
|
||
|
|
||
|
invoke-virtual {v0, v1}, La0/r;->a([Ljava/lang/Object;)Lx/y;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
iget-object v1, p0, La0/i;->d:La0/r;
|
||
|
|
||
|
iget-object v1, v1, La0/r;->a:Lx/e$a;
|
||
|
|
||
|
check-cast v1, Lx/v;
|
||
|
|
||
|
invoke-virtual {v1, v0}, Lx/v;->a(Lx/y;)Lx/e;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
if-eqz v0, :cond_0
|
||
|
|
||
|
return-object v0
|
||
|
|
||
|
:cond_0
|
||
|
new-instance v0, Ljava/lang/NullPointerException;
|
||
|
|
||
|
const-string v1, "Call.Factory returned null."
|
||
|
|
||
|
invoke-direct {v0, v1}, Ljava/lang/NullPointerException;-><init>(Ljava/lang/String;)V
|
||
|
|
||
|
throw v0
|
||
|
.end method
|
||
|
|
||
|
.method public a(La0/d;)V
|
||
|
.locals 3
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"(",
|
||
|
"La0/d<",
|
||
|
"TT;>;)V"
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
const-string v0, "callback == null"
|
||
|
|
||
|
invoke-static {p1, v0}, La0/s;->a(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
|
||
|
|
||
|
monitor-enter p0
|
||
|
|
||
|
:try_start_0
|
||
|
iget-boolean v0, p0, La0/i;->i:Z
|
||
|
|
||
|
if-nez v0, :cond_3
|
||
|
|
||
|
const/4 v0, 0x1
|
||
|
|
||
|
iput-boolean v0, p0, La0/i;->i:Z
|
||
|
|
||
|
iget-object v0, p0, La0/i;->g:Lx/e;
|
||
|
|
||
|
iget-object v1, p0, La0/i;->h:Ljava/lang/Throwable;
|
||
|
:try_end_0
|
||
|
.catchall {:try_start_0 .. :try_end_0} :catchall_1
|
||
|
|
||
|
if-nez v0, :cond_0
|
||
|
|
||
|
if-nez v1, :cond_0
|
||
|
|
||
|
:try_start_1
|
||
|
invoke-virtual {p0}, La0/i;->a()Lx/e;
|
||
|
|
||
|
move-result-object v2
|
||
|
|
||
|
iput-object v2, p0, La0/i;->g:Lx/e;
|
||
|
:try_end_1
|
||
|
.catchall {:try_start_1 .. :try_end_1} :catchall_0
|
||
|
|
||
|
move-object v0, v2
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:catchall_0
|
||
|
move-exception v1
|
||
|
|
||
|
:try_start_2
|
||
|
iput-object v1, p0, La0/i;->h:Ljava/lang/Throwable;
|
||
|
|
||
|
:cond_0
|
||
|
:goto_0
|
||
|
monitor-exit p0
|
||
|
:try_end_2
|
||
|
.catchall {:try_start_2 .. :try_end_2} :catchall_1
|
||
|
|
||
|
if-eqz v1, :cond_1
|
||
|
|
||
|
invoke-interface {p1, p0, v1}, La0/d;->a(La0/b;Ljava/lang/Throwable;)V
|
||
|
|
||
|
return-void
|
||
|
|
||
|
:cond_1
|
||
|
iget-boolean v1, p0, La0/i;->f:Z
|
||
|
|
||
|
if-eqz v1, :cond_2
|
||
|
|
||
|
move-object v1, v0
|
||
|
|
||
|
check-cast v1, Lx/x;
|
||
|
|
||
|
invoke-virtual {v1}, Lx/x;->a()V
|
||
|
|
||
|
:cond_2
|
||
|
new-instance v1, La0/i$a;
|
||
|
|
||
|
invoke-direct {v1, p0, p1}, La0/i$a;-><init>(La0/i;La0/d;)V
|
||
|
|
||
|
check-cast v0, Lx/x;
|
||
|
|
||
|
invoke-virtual {v0, v1}, Lx/x;->a(Lx/f;)V
|
||
|
|
||
|
return-void
|
||
|
|
||
|
:cond_3
|
||
|
:try_start_3
|
||
|
new-instance p1, Ljava/lang/IllegalStateException;
|
||
|
|
||
|
const-string v0, "Already executed."
|
||
|
|
||
|
invoke-direct {p1, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
||
|
|
||
|
throw p1
|
||
|
|
||
|
:catchall_1
|
||
|
move-exception p1
|
||
|
|
||
|
monitor-exit p0
|
||
|
:try_end_3
|
||
|
.catchall {:try_start_3 .. :try_end_3} :catchall_1
|
||
|
|
||
|
throw p1
|
||
|
.end method
|
||
|
|
||
|
.method public cancel()V
|
||
|
.locals 1
|
||
|
|
||
|
const/4 v0, 0x1
|
||
|
|
||
|
iput-boolean v0, p0, La0/i;->f:Z
|
||
|
|
||
|
monitor-enter p0
|
||
|
|
||
|
:try_start_0
|
||
|
iget-object v0, p0, La0/i;->g:Lx/e;
|
||
|
|
||
|
monitor-exit p0
|
||
|
:try_end_0
|
||
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
||
|
|
||
|
if-eqz v0, :cond_0
|
||
|
|
||
|
check-cast v0, Lx/x;
|
||
|
|
||
|
invoke-virtual {v0}, Lx/x;->a()V
|
||
|
|
||
|
:cond_0
|
||
|
return-void
|
||
|
|
||
|
:catchall_0
|
||
|
move-exception v0
|
||
|
|
||
|
:try_start_1
|
||
|
monitor-exit p0
|
||
|
:try_end_1
|
||
|
.catchall {:try_start_1 .. :try_end_1} :catchall_0
|
||
|
|
||
|
throw v0
|
||
|
.end method
|
||
|
|
||
|
.method public bridge synthetic clone()La0/b;
|
||
|
.locals 1
|
||
|
|
||
|
invoke-virtual {p0}, La0/i;->clone()La0/i;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
return-object v0
|
||
|
.end method
|
||
|
|
||
|
.method public clone()La0/i;
|
||
|
.locals 3
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"()",
|
||
|
"La0/i<",
|
||
|
"TT;>;"
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
new-instance v0, La0/i;
|
||
|
|
||
|
iget-object v1, p0, La0/i;->d:La0/r;
|
||
|
|
||
|
iget-object v2, p0, La0/i;->e:[Ljava/lang/Object;
|
||
|
|
||
|
invoke-direct {v0, v1, v2}, La0/i;-><init>(La0/r;[Ljava/lang/Object;)V
|
||
|
|
||
|
return-object v0
|
||
|
.end method
|
||
|
|
||
|
.method public bridge synthetic clone()Ljava/lang/Object;
|
||
|
.locals 1
|
||
|
.annotation system Ldalvik/annotation/Throws;
|
||
|
value = {
|
||
|
Ljava/lang/CloneNotSupportedException;
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
invoke-virtual {p0}, La0/i;->clone()La0/i;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
return-object v0
|
||
|
.end method
|
||
|
|
||
|
.method public execute()La0/o;
|
||
|
.locals 2
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"()",
|
||
|
"La0/o<",
|
||
|
"TT;>;"
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
.annotation system Ldalvik/annotation/Throws;
|
||
|
value = {
|
||
|
Ljava/io/IOException;
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
monitor-enter p0
|
||
|
|
||
|
:try_start_0
|
||
|
iget-boolean v0, p0, La0/i;->i:Z
|
||
|
|
||
|
if-nez v0, :cond_4
|
||
|
|
||
|
const/4 v0, 0x1
|
||
|
|
||
|
iput-boolean v0, p0, La0/i;->i:Z
|
||
|
|
||
|
iget-object v0, p0, La0/i;->h:Ljava/lang/Throwable;
|
||
|
|
||
|
if-eqz v0, :cond_1
|
||
|
|
||
|
iget-object v0, p0, La0/i;->h:Ljava/lang/Throwable;
|
||
|
|
||
|
instance-of v0, v0, Ljava/io/IOException;
|
||
|
|
||
|
if-eqz v0, :cond_0
|
||
|
|
||
|
iget-object v0, p0, La0/i;->h:Ljava/lang/Throwable;
|
||
|
|
||
|
check-cast v0, Ljava/io/IOException;
|
||
|
|
||
|
throw v0
|
||
|
|
||
|
:cond_0
|
||
|
iget-object v0, p0, La0/i;->h:Ljava/lang/Throwable;
|
||
|
|
||
|
check-cast v0, Ljava/lang/RuntimeException;
|
||
|
|
||
|
throw v0
|
||
|
|
||
|
:cond_1
|
||
|
iget-object v0, p0, La0/i;->g:Lx/e;
|
||
|
:try_end_0
|
||
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
||
|
|
||
|
if-nez v0, :cond_2
|
||
|
|
||
|
:try_start_1
|
||
|
invoke-virtual {p0}, La0/i;->a()Lx/e;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
iput-object v0, p0, La0/i;->g:Lx/e;
|
||
|
:try_end_1
|
||
|
.catch Ljava/io/IOException; {:try_start_1 .. :try_end_1} :catch_1
|
||
|
.catch Ljava/lang/RuntimeException; {:try_start_1 .. :try_end_1} :catch_0
|
||
|
.catchall {:try_start_1 .. :try_end_1} :catchall_0
|
||
|
|
||
|
goto :goto_1
|
||
|
|
||
|
:catch_0
|
||
|
move-exception v0
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:catch_1
|
||
|
move-exception v0
|
||
|
|
||
|
:goto_0
|
||
|
:try_start_2
|
||
|
iput-object v0, p0, La0/i;->h:Ljava/lang/Throwable;
|
||
|
|
||
|
throw v0
|
||
|
|
||
|
:cond_2
|
||
|
:goto_1
|
||
|
monitor-exit p0
|
||
|
:try_end_2
|
||
|
.catchall {:try_start_2 .. :try_end_2} :catchall_0
|
||
|
|
||
|
iget-boolean v1, p0, La0/i;->f:Z
|
||
|
|
||
|
if-eqz v1, :cond_3
|
||
|
|
||
|
move-object v1, v0
|
||
|
|
||
|
check-cast v1, Lx/x;
|
||
|
|
||
|
invoke-virtual {v1}, Lx/x;->a()V
|
||
|
|
||
|
:cond_3
|
||
|
check-cast v0, Lx/x;
|
||
|
|
||
|
invoke-virtual {v0}, Lx/x;->b()Lokhttp3/Response;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
invoke-virtual {p0, v0}, La0/i;->a(Lokhttp3/Response;)La0/o;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
return-object v0
|
||
|
|
||
|
:cond_4
|
||
|
:try_start_3
|
||
|
new-instance v0, Ljava/lang/IllegalStateException;
|
||
|
|
||
|
const-string v1, "Already executed."
|
||
|
|
||
|
invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
||
|
|
||
|
throw v0
|
||
|
|
||
|
:catchall_0
|
||
|
move-exception v0
|
||
|
|
||
|
monitor-exit p0
|
||
|
:try_end_3
|
||
|
.catchall {:try_start_3 .. :try_end_3} :catchall_0
|
||
|
|
||
|
throw v0
|
||
|
.end method
|
||
|
|
||
|
.method public v()Z
|
||
|
.locals 2
|
||
|
|
||
|
iget-boolean v0, p0, La0/i;->f:Z
|
||
|
|
||
|
const/4 v1, 0x1
|
||
|
|
||
|
if-eqz v0, :cond_0
|
||
|
|
||
|
return v1
|
||
|
|
||
|
:cond_0
|
||
|
monitor-enter p0
|
||
|
|
||
|
:try_start_0
|
||
|
iget-object v0, p0, La0/i;->g:Lx/e;
|
||
|
|
||
|
if-eqz v0, :cond_2
|
||
|
|
||
|
iget-object v0, p0, La0/i;->g:Lx/e;
|
||
|
:try_end_0
|
||
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
||
|
|
||
|
check-cast v0, Lx/x;
|
||
|
|
||
|
:try_start_1
|
||
|
iget-object v0, v0, Lx/x;->d:Lx/c0/c/n;
|
||
|
|
||
|
if-eqz v0, :cond_1
|
||
|
|
||
|
invoke-virtual {v0}, Lx/c0/c/n;->e()Z
|
||
|
|
||
|
move-result v0
|
||
|
|
||
|
if-eqz v0, :cond_2
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:cond_1
|
||
|
const-string v0, "transmitter"
|
||
|
|
||
|
invoke-static {v0}, Lt/u/b/j;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V
|
||
|
:try_end_1
|
||
|
.catchall {:try_start_1 .. :try_end_1} :catchall_0
|
||
|
|
||
|
const/4 v0, 0x0
|
||
|
|
||
|
throw v0
|
||
|
|
||
|
:cond_2
|
||
|
const/4 v1, 0x0
|
||
|
|
||
|
:goto_0
|
||
|
:try_start_2
|
||
|
monitor-exit p0
|
||
|
|
||
|
return v1
|
||
|
|
||
|
:catchall_0
|
||
|
move-exception v0
|
||
|
|
||
|
monitor-exit p0
|
||
|
:try_end_2
|
||
|
.catchall {:try_start_2 .. :try_end_2} :catchall_0
|
||
|
|
||
|
throw v0
|
||
|
.end method
|