apkfuckery/com.discord/smali_classes2/okhttp3/v.smali
2019-11-20 23:09:14 +01:00

513 lines
11 KiB
Smali

.class public final Lokhttp3/v;
.super Ljava/lang/Object;
.source "RealCall.java"
# interfaces
.implements Lokhttp3/e;
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lokhttp3/v$a;
}
.end annotation
# instance fields
.field final bsh:Lokhttp3/t;
.field final bsi:Lokhttp3/internal/c/j;
.field final bsj:Lokio/a;
.field private bsk:Lokhttp3/p;
.annotation runtime Ljavax/annotation/Nullable;
.end annotation
.end field
.field final bsl:Lokhttp3/w;
.field final bsm:Z
.field private bsn:Z
# direct methods
.method private constructor <init>(Lokhttp3/t;Lokhttp3/w;Z)V
.locals 2
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Lokhttp3/v;->bsh:Lokhttp3/t;
iput-object p2, p0, Lokhttp3/v;->bsl:Lokhttp3/w;
iput-boolean p3, p0, Lokhttp3/v;->bsm:Z
new-instance p2, Lokhttp3/internal/c/j;
invoke-direct {p2, p1, p3}, Lokhttp3/internal/c/j;-><init>(Lokhttp3/t;Z)V
iput-object p2, p0, Lokhttp3/v;->bsi:Lokhttp3/internal/c/j;
new-instance p2, Lokhttp3/v$1;
invoke-direct {p2, p0}, Lokhttp3/v$1;-><init>(Lokhttp3/v;)V
iput-object p2, p0, Lokhttp3/v;->bsj:Lokio/a;
iget-object p2, p0, Lokhttp3/v;->bsj:Lokio/a;
iget p1, p1, Lokhttp3/t;->brV:I
int-to-long v0, p1
sget-object p1, Ljava/util/concurrent/TimeUnit;->MILLISECONDS:Ljava/util/concurrent/TimeUnit;
invoke-virtual {p2, v0, v1, p1}, Lokio/a;->d(JLjava/util/concurrent/TimeUnit;)Lokio/s;
return-void
.end method
.method private FH()V
.locals 2
invoke-static {}, Lokhttp3/internal/g/f;->GW()Lokhttp3/internal/g/f;
move-result-object v0
const-string v1, "response.body().close()"
invoke-virtual {v0, v1}, Lokhttp3/internal/g/f;->dZ(Ljava/lang/String;)Ljava/lang/Object;
move-result-object v0
iget-object v1, p0, Lokhttp3/v;->bsi:Lokhttp3/internal/c/j;
iput-object v0, v1, Lokhttp3/internal/c/j;->buq:Ljava/lang/Object;
return-void
.end method
.method public static a(Lokhttp3/t;Lokhttp3/w;Z)Lokhttp3/v;
.locals 1
new-instance v0, Lokhttp3/v;
invoke-direct {v0, p0, p1, p2}, Lokhttp3/v;-><init>(Lokhttp3/t;Lokhttp3/w;Z)V
iget-object p0, p0, Lokhttp3/t;->brO:Lokhttp3/p$a;
invoke-interface {p0}, Lokhttp3/p$a;->Fn()Lokhttp3/p;
move-result-object p0
iput-object p0, v0, Lokhttp3/v;->bsk:Lokhttp3/p;
return-object v0
.end method
.method static synthetic c(Lokhttp3/v;)Lokhttp3/p;
.locals 0
iget-object p0, p0, Lokhttp3/v;->bsk:Lokhttp3/p;
return-object p0
.end method
# virtual methods
.method final FI()Ljava/lang/String;
.locals 1
iget-object v0, p0, Lokhttp3/v;->bsl:Lokhttp3/w;
iget-object v0, v0, Lokhttp3/w;->bnk:Lokhttp3/s;
invoke-virtual {v0}, Lokhttp3/s;->Fx()Ljava/lang/String;
move-result-object v0
return-object v0
.end method
.method final FJ()Lokhttp3/Response;
.locals 13
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
new-instance v1, Ljava/util/ArrayList;
invoke-direct {v1}, Ljava/util/ArrayList;-><init>()V
iget-object v0, p0, Lokhttp3/v;->bsh:Lokhttp3/t;
iget-object v0, v0, Lokhttp3/t;->brM:Ljava/util/List;
invoke-interface {v1, v0}, Ljava/util/List;->addAll(Ljava/util/Collection;)Z
iget-object v0, p0, Lokhttp3/v;->bsi:Lokhttp3/internal/c/j;
invoke-interface {v1, v0}, Ljava/util/List;->add(Ljava/lang/Object;)Z
new-instance v0, Lokhttp3/internal/c/a;
iget-object v2, p0, Lokhttp3/v;->bsh:Lokhttp3/t;
iget-object v2, v2, Lokhttp3/t;->cookieJar:Lokhttp3/m;
invoke-direct {v0, v2}, Lokhttp3/internal/c/a;-><init>(Lokhttp3/m;)V
invoke-interface {v1, v0}, Ljava/util/List;->add(Ljava/lang/Object;)Z
new-instance v0, Lokhttp3/internal/a/a;
iget-object v2, p0, Lokhttp3/v;->bsh:Lokhttp3/t;
invoke-virtual {v2}, Lokhttp3/t;->FF()Lokhttp3/internal/a/e;
move-result-object v2
invoke-direct {v0, v2}, Lokhttp3/internal/a/a;-><init>(Lokhttp3/internal/a/e;)V
invoke-interface {v1, v0}, Ljava/util/List;->add(Ljava/lang/Object;)Z
new-instance v0, Lokhttp3/internal/b/a;
iget-object v2, p0, Lokhttp3/v;->bsh:Lokhttp3/t;
invoke-direct {v0, v2}, Lokhttp3/internal/b/a;-><init>(Lokhttp3/t;)V
invoke-interface {v1, v0}, Ljava/util/List;->add(Ljava/lang/Object;)Z
iget-boolean v0, p0, Lokhttp3/v;->bsm:Z
if-nez v0, :cond_0
iget-object v0, p0, Lokhttp3/v;->bsh:Lokhttp3/t;
iget-object v0, v0, Lokhttp3/t;->brN:Ljava/util/List;
invoke-interface {v1, v0}, Ljava/util/List;->addAll(Ljava/util/Collection;)Z
:cond_0
new-instance v0, Lokhttp3/internal/c/b;
iget-boolean v2, p0, Lokhttp3/v;->bsm:Z
invoke-direct {v0, v2}, Lokhttp3/internal/c/b;-><init>(Z)V
invoke-interface {v1, v0}, Ljava/util/List;->add(Ljava/lang/Object;)Z
new-instance v12, Lokhttp3/internal/c/g;
const/4 v2, 0x0
const/4 v3, 0x0
const/4 v4, 0x0
const/4 v5, 0x0
iget-object v6, p0, Lokhttp3/v;->bsl:Lokhttp3/w;
iget-object v8, p0, Lokhttp3/v;->bsk:Lokhttp3/p;
iget-object v0, p0, Lokhttp3/v;->bsh:Lokhttp3/t;
iget v9, v0, Lokhttp3/t;->brW:I
iget-object v0, p0, Lokhttp3/v;->bsh:Lokhttp3/t;
iget v10, v0, Lokhttp3/t;->brX:I
iget-object v0, p0, Lokhttp3/v;->bsh:Lokhttp3/t;
iget v11, v0, Lokhttp3/t;->brY:I
move-object v0, v12
move-object v7, p0
invoke-direct/range {v0 .. v11}, Lokhttp3/internal/c/g;-><init>(Ljava/util/List;Lokhttp3/internal/b/g;Lokhttp3/internal/c/c;Lokhttp3/internal/b/c;ILokhttp3/w;Lokhttp3/e;Lokhttp3/p;III)V
iget-object v0, p0, Lokhttp3/v;->bsl:Lokhttp3/w;
invoke-interface {v12, v0}, Lokhttp3/Interceptor$Chain;->b(Lokhttp3/w;)Lokhttp3/Response;
move-result-object v0
return-object v0
.end method
.method public final Fg()Lokhttp3/Response;
.locals 2
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
monitor-enter p0
:try_start_0
iget-boolean v0, p0, Lokhttp3/v;->bsn:Z
if-nez v0, :cond_1
const/4 v0, 0x1
iput-boolean v0, p0, Lokhttp3/v;->bsn:Z
monitor-exit p0
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_1
invoke-direct {p0}, Lokhttp3/v;->FH()V
iget-object v0, p0, Lokhttp3/v;->bsj:Lokio/a;
invoke-virtual {v0}, Lokio/a;->enter()V
:try_start_1
iget-object v0, p0, Lokhttp3/v;->bsh:Lokhttp3/t;
iget-object v0, v0, Lokhttp3/t;->brL:Lokhttp3/n;
invoke-virtual {v0, p0}, Lokhttp3/n;->a(Lokhttp3/v;)V
invoke-virtual {p0}, Lokhttp3/v;->FJ()Lokhttp3/Response;
move-result-object v0
:try_end_1
.catch Ljava/io/IOException; {:try_start_1 .. :try_end_1} :catch_0
.catchall {:try_start_1 .. :try_end_1} :catchall_0
if-eqz v0, :cond_0
iget-object v1, p0, Lokhttp3/v;->bsh:Lokhttp3/t;
iget-object v1, v1, Lokhttp3/t;->brL:Lokhttp3/n;
invoke-virtual {v1, p0}, Lokhttp3/n;->b(Lokhttp3/v;)V
return-object v0
:cond_0
:try_start_2
new-instance v0, Ljava/io/IOException;
const-string v1, "Canceled"
invoke-direct {v0, v1}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V
throw v0
:try_end_2
.catch Ljava/io/IOException; {:try_start_2 .. :try_end_2} :catch_0
.catchall {:try_start_2 .. :try_end_2} :catchall_0
:catchall_0
move-exception v0
goto :goto_0
:catch_0
move-exception v0
:try_start_3
invoke-virtual {p0, v0}, Lokhttp3/v;->b(Ljava/io/IOException;)Ljava/io/IOException;
move-result-object v0
throw v0
:try_end_3
.catchall {:try_start_3 .. :try_end_3} :catchall_0
:goto_0
iget-object v1, p0, Lokhttp3/v;->bsh:Lokhttp3/t;
iget-object v1, v1, Lokhttp3/t;->brL:Lokhttp3/n;
invoke-virtual {v1, p0}, Lokhttp3/n;->b(Lokhttp3/v;)V
throw v0
:cond_1
:try_start_4
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_1
move-exception v0
monitor-exit p0
:try_end_4
.catchall {:try_start_4 .. :try_end_4} :catchall_1
throw v0
.end method
.method public final a(Lokhttp3/f;)V
.locals 2
monitor-enter p0
:try_start_0
iget-boolean v0, p0, Lokhttp3/v;->bsn:Z
if-nez v0, :cond_0
const/4 v0, 0x1
iput-boolean v0, p0, Lokhttp3/v;->bsn:Z
monitor-exit p0
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_1
invoke-direct {p0}, Lokhttp3/v;->FH()V
iget-object v0, p0, Lokhttp3/v;->bsh:Lokhttp3/t;
iget-object v0, v0, Lokhttp3/t;->brL:Lokhttp3/n;
new-instance v1, Lokhttp3/v$a;
invoke-direct {v1, p0, p1}, Lokhttp3/v$a;-><init>(Lokhttp3/v;Lokhttp3/f;)V
monitor-enter v0
:try_start_1
iget-object p1, v0, Lokhttp3/n;->bqN:Ljava/util/Deque;
invoke-interface {p1, v1}, Ljava/util/Deque;->add(Ljava/lang/Object;)Z
monitor-exit v0
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
invoke-virtual {v0}, Lokhttp3/n;->Fl()Z
return-void
:catchall_0
move-exception p1
:try_start_2
monitor-exit v0
:try_end_2
.catchall {:try_start_2 .. :try_end_2} :catchall_0
throw p1
:cond_0
: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 final b(Ljava/io/IOException;)Ljava/io/IOException;
.locals 2
.param p1 # Ljava/io/IOException;
.annotation runtime Ljavax/annotation/Nullable;
.end annotation
.end param
.annotation runtime Ljavax/annotation/Nullable;
.end annotation
iget-object v0, p0, Lokhttp3/v;->bsj:Lokio/a;
invoke-virtual {v0}, Lokio/a;->Hg()Z
move-result v0
if-nez v0, :cond_0
return-object p1
:cond_0
new-instance v0, Ljava/io/InterruptedIOException;
const-string v1, "timeout"
invoke-direct {v0, v1}, Ljava/io/InterruptedIOException;-><init>(Ljava/lang/String;)V
if-eqz p1, :cond_1
invoke-virtual {v0, p1}, Ljava/io/InterruptedIOException;->initCause(Ljava/lang/Throwable;)Ljava/lang/Throwable;
:cond_1
return-object v0
.end method
.method public final cancel()V
.locals 1
iget-object v0, p0, Lokhttp3/v;->bsi:Lokhttp3/internal/c/j;
invoke-virtual {v0}, Lokhttp3/internal/c/j;->cancel()V
return-void
.end method
.method public final synthetic clone()Ljava/lang/Object;
.locals 3
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/lang/CloneNotSupportedException;
}
.end annotation
iget-object v0, p0, Lokhttp3/v;->bsh:Lokhttp3/t;
iget-object v1, p0, Lokhttp3/v;->bsl:Lokhttp3/w;
iget-boolean v2, p0, Lokhttp3/v;->bsm:Z
invoke-static {v0, v1, v2}, Lokhttp3/v;->a(Lokhttp3/t;Lokhttp3/w;Z)Lokhttp3/v;
move-result-object v0
return-object v0
.end method
.method public final isCanceled()Z
.locals 1
iget-object v0, p0, Lokhttp3/v;->bsi:Lokhttp3/internal/c/j;
iget-boolean v0, v0, Lokhttp3/internal/c/j;->buv:Z
return v0
.end method
.method public final timeout()Lokio/s;
.locals 1
iget-object v0, p0, Lokhttp3/v;->bsj:Lokio/a;
return-object v0
.end method