669 lines
12 KiB
Smali
669 lines
12 KiB
Smali
.class public final Lf0/i;
|
|
.super Ljava/lang/Object;
|
|
.source "OkHttpCall.java"
|
|
|
|
# interfaces
|
|
.implements Lf0/b;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Lf0/i$b;,
|
|
Lf0/i$c;
|
|
}
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<T:",
|
|
"Ljava/lang/Object;",
|
|
">",
|
|
"Ljava/lang/Object;",
|
|
"Lf0/b<",
|
|
"TT;>;"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field public final d:Lf0/r;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Lf0/r<",
|
|
"TT;*>;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field public final e:[Ljava/lang/Object;
|
|
|
|
.field public volatile f:Z
|
|
|
|
.field public g:Lc0/e;
|
|
|
|
.field public h:Ljava/lang/Throwable;
|
|
|
|
.field public i:Z
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Lf0/r;[Ljava/lang/Object;)V
|
|
.locals 0
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Lf0/r<",
|
|
"TT;*>;[",
|
|
"Ljava/lang/Object;",
|
|
")V"
|
|
}
|
|
.end annotation
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
iput-object p1, p0, Lf0/i;->d:Lf0/r;
|
|
|
|
iput-object p2, p0, Lf0/i;->e:[Ljava/lang/Object;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final a()Lc0/e;
|
|
.locals 2
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
iget-object v0, p0, Lf0/i;->d:Lf0/r;
|
|
|
|
iget-object v1, p0, Lf0/i;->e:[Ljava/lang/Object;
|
|
|
|
invoke-virtual {v0, v1}, Lf0/r;->a([Ljava/lang/Object;)Lc0/y;
|
|
|
|
move-result-object v0
|
|
|
|
iget-object v1, p0, Lf0/i;->d:Lf0/r;
|
|
|
|
iget-object v1, v1, Lf0/r;->a:Lc0/e$a;
|
|
|
|
check-cast v1, Lc0/v;
|
|
|
|
invoke-virtual {v1, v0}, Lc0/v;->a(Lc0/y;)Lc0/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(Lokhttp3/Response;)Lf0/o;
|
|
.locals 5
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Lokhttp3/Response;",
|
|
")",
|
|
"Lf0/o<",
|
|
"TT;>;"
|
|
}
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
invoke-virtual {p1}, Lokhttp3/Response;->a()Lc0/z;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {p1}, Lokhttp3/Response;->k()Lokhttp3/Response$a;
|
|
|
|
move-result-object p1
|
|
|
|
new-instance v1, Lf0/i$c;
|
|
|
|
invoke-virtual {v0}, Lc0/z;->c()Lokhttp3/MediaType;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {v0}, Lc0/z;->b()J
|
|
|
|
move-result-wide v3
|
|
|
|
invoke-direct {v1, v2, v3, v4}, Lf0/i$c;-><init>(Lokhttp3/MediaType;J)V
|
|
|
|
iput-object v1, p1, Lokhttp3/Response$a;->g:Lc0/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, Lf0/i$b;
|
|
|
|
invoke-direct {v1, v0}, Lf0/i$b;-><init>(Lc0/z;)V
|
|
|
|
:try_start_0
|
|
iget-object v0, p0, Lf0/i;->d:Lf0/r;
|
|
|
|
iget-object v0, v0, Lf0/r;->d:Lf0/e;
|
|
|
|
invoke-interface {v0, v1}, Lf0/e;->a(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-static {v0, p1}, Lf0/o;->a(Ljava/lang/Object;Lokhttp3/Response;)Lf0/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, Lf0/i$b;->g:Ljava/io/IOException;
|
|
|
|
if-nez v0, :cond_2
|
|
|
|
throw p1
|
|
|
|
:cond_2
|
|
throw v0
|
|
|
|
:cond_3
|
|
:goto_0
|
|
invoke-virtual {v0}, Lc0/z;->close()V
|
|
|
|
invoke-static {v3, p1}, Lf0/o;->a(Ljava/lang/Object;Lokhttp3/Response;)Lf0/o;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
|
|
:cond_4
|
|
:goto_1
|
|
:try_start_1
|
|
invoke-static {v0}, Lf0/s;->a(Lc0/z;)Lc0/z;
|
|
|
|
move-result-object v1
|
|
|
|
const-string v2, "body == null"
|
|
|
|
invoke-static {v1, v2}, Lf0/s;->a(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
|
|
|
|
const-string v2, "rawResponse == null"
|
|
|
|
invoke-static {p1, v2}, Lf0/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, Lf0/o;
|
|
|
|
invoke-direct {v2, p1, v3, v1}, Lf0/o;-><init>(Lokhttp3/Response;Ljava/lang/Object;Lc0/z;)V
|
|
:try_end_1
|
|
.catchall {:try_start_1 .. :try_end_1} :catchall_0
|
|
|
|
invoke-virtual {v0}, Lc0/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}, Lc0/z;->close()V
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method public a(Lf0/d;)V
|
|
.locals 3
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Lf0/d<",
|
|
"TT;>;)V"
|
|
}
|
|
.end annotation
|
|
|
|
const-string v0, "callback == null"
|
|
|
|
invoke-static {p1, v0}, Lf0/s;->a(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
|
|
|
|
monitor-enter p0
|
|
|
|
:try_start_0
|
|
iget-boolean v0, p0, Lf0/i;->i:Z
|
|
|
|
if-nez v0, :cond_3
|
|
|
|
const/4 v0, 0x1
|
|
|
|
iput-boolean v0, p0, Lf0/i;->i:Z
|
|
|
|
iget-object v0, p0, Lf0/i;->g:Lc0/e;
|
|
|
|
iget-object v1, p0, Lf0/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}, Lf0/i;->a()Lc0/e;
|
|
|
|
move-result-object v2
|
|
|
|
iput-object v2, p0, Lf0/i;->g:Lc0/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, Lf0/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}, Lf0/d;->a(Lf0/b;Ljava/lang/Throwable;)V
|
|
|
|
return-void
|
|
|
|
:cond_1
|
|
iget-boolean v1, p0, Lf0/i;->f:Z
|
|
|
|
if-eqz v1, :cond_2
|
|
|
|
move-object v1, v0
|
|
|
|
check-cast v1, Lc0/x;
|
|
|
|
invoke-virtual {v1}, Lc0/x;->a()V
|
|
|
|
:cond_2
|
|
new-instance v1, Lf0/i$a;
|
|
|
|
invoke-direct {v1, p0, p1}, Lf0/i$a;-><init>(Lf0/i;Lf0/d;)V
|
|
|
|
check-cast v0, Lc0/x;
|
|
|
|
invoke-virtual {v0, v1}, Lc0/x;->a(Lc0/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, Lf0/i;->f:Z
|
|
|
|
monitor-enter p0
|
|
|
|
:try_start_0
|
|
iget-object v0, p0, Lf0/i;->g:Lc0/e;
|
|
|
|
monitor-exit p0
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
check-cast v0, Lc0/x;
|
|
|
|
invoke-virtual {v0}, Lc0/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()Lf0/b;
|
|
.locals 1
|
|
|
|
invoke-virtual {p0}, Lf0/i;->clone()Lf0/i;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public clone()Lf0/i;
|
|
.locals 3
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"()",
|
|
"Lf0/i<",
|
|
"TT;>;"
|
|
}
|
|
.end annotation
|
|
|
|
new-instance v0, Lf0/i;
|
|
|
|
iget-object v1, p0, Lf0/i;->d:Lf0/r;
|
|
|
|
iget-object v2, p0, Lf0/i;->e:[Ljava/lang/Object;
|
|
|
|
invoke-direct {v0, v1, v2}, Lf0/i;-><init>(Lf0/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}, Lf0/i;->clone()Lf0/i;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public execute()Lf0/o;
|
|
.locals 2
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"()",
|
|
"Lf0/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, Lf0/i;->i:Z
|
|
|
|
if-nez v0, :cond_4
|
|
|
|
const/4 v0, 0x1
|
|
|
|
iput-boolean v0, p0, Lf0/i;->i:Z
|
|
|
|
iget-object v0, p0, Lf0/i;->h:Ljava/lang/Throwable;
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
iget-object v0, p0, Lf0/i;->h:Ljava/lang/Throwable;
|
|
|
|
instance-of v0, v0, Ljava/io/IOException;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
iget-object v0, p0, Lf0/i;->h:Ljava/lang/Throwable;
|
|
|
|
check-cast v0, Ljava/io/IOException;
|
|
|
|
throw v0
|
|
|
|
:cond_0
|
|
iget-object v0, p0, Lf0/i;->h:Ljava/lang/Throwable;
|
|
|
|
check-cast v0, Ljava/lang/RuntimeException;
|
|
|
|
throw v0
|
|
|
|
:cond_1
|
|
iget-object v0, p0, Lf0/i;->g:Lc0/e;
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
if-nez v0, :cond_2
|
|
|
|
:try_start_1
|
|
invoke-virtual {p0}, Lf0/i;->a()Lc0/e;
|
|
|
|
move-result-object v0
|
|
|
|
iput-object v0, p0, Lf0/i;->g:Lc0/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, Lf0/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, Lf0/i;->f:Z
|
|
|
|
if-eqz v1, :cond_3
|
|
|
|
move-object v1, v0
|
|
|
|
check-cast v1, Lc0/x;
|
|
|
|
invoke-virtual {v1}, Lc0/x;->a()V
|
|
|
|
:cond_3
|
|
check-cast v0, Lc0/x;
|
|
|
|
invoke-virtual {v0}, Lc0/x;->b()Lokhttp3/Response;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {p0, v0}, Lf0/i;->a(Lokhttp3/Response;)Lf0/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 w()Z
|
|
.locals 2
|
|
|
|
iget-boolean v0, p0, Lf0/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, Lf0/i;->g:Lc0/e;
|
|
|
|
if-eqz v0, :cond_2
|
|
|
|
iget-object v0, p0, Lf0/i;->g:Lc0/e;
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
check-cast v0, Lc0/x;
|
|
|
|
:try_start_1
|
|
iget-object v0, v0, Lc0/x;->d:Lc0/c0/c/n;
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
invoke-virtual {v0}, Lc0/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}, Ly/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
|