565 lines
12 KiB
Smali
565 lines
12 KiB
Smali
.class final Lokhttp3/t$1;
|
|
.super Lokhttp3/internal/a;
|
|
.source "OkHttpClient.java"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
value = Lokhttp3/t;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x0
|
|
name = null
|
|
.end annotation
|
|
|
|
|
|
# direct methods
|
|
.method constructor <init>()V
|
|
.locals 0
|
|
|
|
invoke-direct {p0}, Lokhttp3/internal/a;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final a(Lokhttp3/Response$a;)I
|
|
.locals 0
|
|
|
|
iget p1, p1, Lokhttp3/Response$a;->code:I
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method public final a(Lokhttp3/e;Ljava/io/IOException;)Ljava/io/IOException;
|
|
.locals 0
|
|
.param p2 # Ljava/io/IOException;
|
|
.annotation runtime Ljavax/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
.annotation runtime Ljavax/annotation/Nullable;
|
|
.end annotation
|
|
|
|
check-cast p1, Lokhttp3/v;
|
|
|
|
invoke-virtual {p1, p2}, Lokhttp3/v;->b(Ljava/io/IOException;)Ljava/io/IOException;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public final a(Lokhttp3/j;Lokhttp3/a;Lokhttp3/internal/b/g;)Ljava/net/Socket;
|
|
.locals 2
|
|
|
|
sget-boolean v0, Lokhttp3/j;->$assertionsDisabled:Z
|
|
|
|
if-nez v0, :cond_1
|
|
|
|
invoke-static {p1}, Ljava/lang/Thread;->holdsLock(Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
new-instance p1, Ljava/lang/AssertionError;
|
|
|
|
invoke-direct {p1}, Ljava/lang/AssertionError;-><init>()V
|
|
|
|
throw p1
|
|
|
|
:cond_1
|
|
:goto_0
|
|
iget-object p1, p1, Lokhttp3/j;->bnU:Ljava/util/Deque;
|
|
|
|
invoke-interface {p1}, Ljava/util/Deque;->iterator()Ljava/util/Iterator;
|
|
|
|
move-result-object p1
|
|
|
|
:cond_2
|
|
invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
move-result v0
|
|
|
|
const/4 v1, 0x0
|
|
|
|
if-eqz v0, :cond_6
|
|
|
|
invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Lokhttp3/internal/b/c;
|
|
|
|
invoke-virtual {v0, p2, v1}, Lokhttp3/internal/b/c;->a(Lokhttp3/a;Lokhttp3/y;)Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_2
|
|
|
|
invoke-virtual {v0}, Lokhttp3/internal/b/c;->CF()Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_2
|
|
|
|
invoke-virtual {p3}, Lokhttp3/internal/b/g;->CK()Lokhttp3/internal/b/c;
|
|
|
|
move-result-object v1
|
|
|
|
if-eq v0, v1, :cond_2
|
|
|
|
sget-boolean p1, Lokhttp3/internal/b/g;->$assertionsDisabled:Z
|
|
|
|
if-nez p1, :cond_4
|
|
|
|
iget-object p1, p3, Lokhttp3/internal/b/g;->bpA:Lokhttp3/j;
|
|
|
|
invoke-static {p1}, Ljava/lang/Thread;->holdsLock(Ljava/lang/Object;)Z
|
|
|
|
move-result p1
|
|
|
|
if-eqz p1, :cond_3
|
|
|
|
goto :goto_1
|
|
|
|
:cond_3
|
|
new-instance p1, Ljava/lang/AssertionError;
|
|
|
|
invoke-direct {p1}, Ljava/lang/AssertionError;-><init>()V
|
|
|
|
throw p1
|
|
|
|
:cond_4
|
|
:goto_1
|
|
iget-object p1, p3, Lokhttp3/internal/b/g;->bsf:Lokhttp3/internal/c/c;
|
|
|
|
if-nez p1, :cond_5
|
|
|
|
iget-object p1, p3, Lokhttp3/internal/b/g;->bsc:Lokhttp3/internal/b/c;
|
|
|
|
iget-object p1, p1, Lokhttp3/internal/b/c;->brM:Ljava/util/List;
|
|
|
|
invoke-interface {p1}, Ljava/util/List;->size()I
|
|
|
|
move-result p1
|
|
|
|
const/4 p2, 0x1
|
|
|
|
if-ne p1, p2, :cond_5
|
|
|
|
iget-object p1, p3, Lokhttp3/internal/b/g;->bsc:Lokhttp3/internal/b/c;
|
|
|
|
iget-object p1, p1, Lokhttp3/internal/b/c;->brM:Ljava/util/List;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
invoke-interface {p1, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;
|
|
|
|
move-result-object p1
|
|
|
|
check-cast p1, Ljava/lang/ref/Reference;
|
|
|
|
invoke-virtual {p3, p2, v1, v1}, Lokhttp3/internal/b/g;->a(ZZZ)Ljava/net/Socket;
|
|
|
|
move-result-object p2
|
|
|
|
iput-object v0, p3, Lokhttp3/internal/b/g;->bsc:Lokhttp3/internal/b/c;
|
|
|
|
iget-object p3, v0, Lokhttp3/internal/b/c;->brM:Ljava/util/List;
|
|
|
|
invoke-interface {p3, p1}, Ljava/util/List;->add(Ljava/lang/Object;)Z
|
|
|
|
return-object p2
|
|
|
|
:cond_5
|
|
new-instance p1, Ljava/lang/IllegalStateException;
|
|
|
|
invoke-direct {p1}, Ljava/lang/IllegalStateException;-><init>()V
|
|
|
|
throw p1
|
|
|
|
:cond_6
|
|
return-object v1
|
|
.end method
|
|
|
|
.method public final a(Lokhttp3/t;Lokhttp3/w;)Lokhttp3/e;
|
|
.locals 1
|
|
|
|
const/4 v0, 0x1
|
|
|
|
invoke-static {p1, p2, v0}, Lokhttp3/v;->a(Lokhttp3/t;Lokhttp3/w;Z)Lokhttp3/v;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public final a(Lokhttp3/j;Lokhttp3/a;Lokhttp3/internal/b/g;Lokhttp3/y;)Lokhttp3/internal/b/c;
|
|
.locals 2
|
|
|
|
sget-boolean v0, Lokhttp3/j;->$assertionsDisabled:Z
|
|
|
|
if-nez v0, :cond_1
|
|
|
|
invoke-static {p1}, Ljava/lang/Thread;->holdsLock(Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
new-instance p1, Ljava/lang/AssertionError;
|
|
|
|
invoke-direct {p1}, Ljava/lang/AssertionError;-><init>()V
|
|
|
|
throw p1
|
|
|
|
:cond_1
|
|
:goto_0
|
|
iget-object p1, p1, Lokhttp3/j;->bnU:Ljava/util/Deque;
|
|
|
|
invoke-interface {p1}, Ljava/util/Deque;->iterator()Ljava/util/Iterator;
|
|
|
|
move-result-object p1
|
|
|
|
:cond_2
|
|
invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_3
|
|
|
|
invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Lokhttp3/internal/b/c;
|
|
|
|
invoke-virtual {v0, p2, p4}, Lokhttp3/internal/b/c;->a(Lokhttp3/a;Lokhttp3/y;)Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_2
|
|
|
|
const/4 p1, 0x1
|
|
|
|
invoke-virtual {p3, v0, p1}, Lokhttp3/internal/b/g;->a(Lokhttp3/internal/b/c;Z)V
|
|
|
|
return-object v0
|
|
|
|
:cond_3
|
|
const/4 p1, 0x0
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public final a(Lokhttp3/j;)Lokhttp3/internal/b/d;
|
|
.locals 0
|
|
|
|
iget-object p1, p1, Lokhttp3/j;->bnV:Lokhttp3/internal/b/d;
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public final a(Lokhttp3/e;)Lokhttp3/internal/b/g;
|
|
.locals 0
|
|
|
|
check-cast p1, Lokhttp3/v;
|
|
|
|
iget-object p1, p1, Lokhttp3/v;->bpR:Lokhttp3/internal/c/j;
|
|
|
|
iget-object p1, p1, Lokhttp3/internal/c/j;->bsm:Lokhttp3/internal/b/g;
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public final a(Lokhttp3/Headers$a;Ljava/lang/String;)V
|
|
.locals 4
|
|
|
|
const-string v0, ":"
|
|
|
|
const/4 v1, 0x1
|
|
|
|
invoke-virtual {p2, v0, v1}, Ljava/lang/String;->indexOf(Ljava/lang/String;I)I
|
|
|
|
move-result v2
|
|
|
|
const/4 v3, -0x1
|
|
|
|
if-eq v2, v3, :cond_0
|
|
|
|
const/4 v0, 0x0
|
|
|
|
invoke-virtual {p2, v0, v2}, Ljava/lang/String;->substring(II)Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
add-int/2addr v2, v1
|
|
|
|
invoke-virtual {p2, v2}, Ljava/lang/String;->substring(I)Ljava/lang/String;
|
|
|
|
move-result-object p2
|
|
|
|
invoke-virtual {p1, v0, p2}, Lokhttp3/Headers$a;->ak(Ljava/lang/String;Ljava/lang/String;)Lokhttp3/Headers$a;
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
invoke-virtual {p2, v0}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z
|
|
|
|
move-result v0
|
|
|
|
const-string v2, ""
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
invoke-virtual {p2, v1}, Ljava/lang/String;->substring(I)Ljava/lang/String;
|
|
|
|
move-result-object p2
|
|
|
|
invoke-virtual {p1, v2, p2}, Lokhttp3/Headers$a;->ak(Ljava/lang/String;Ljava/lang/String;)Lokhttp3/Headers$a;
|
|
|
|
return-void
|
|
|
|
:cond_1
|
|
invoke-virtual {p1, v2, p2}, Lokhttp3/Headers$a;->ak(Ljava/lang/String;Ljava/lang/String;)Lokhttp3/Headers$a;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public final a(Lokhttp3/Headers$a;Ljava/lang/String;Ljava/lang/String;)V
|
|
.locals 0
|
|
|
|
invoke-virtual {p1, p2, p3}, Lokhttp3/Headers$a;->ak(Ljava/lang/String;Ljava/lang/String;)Lokhttp3/Headers$a;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public final a(Lokhttp3/k;Ljavax/net/ssl/SSLSocket;Z)V
|
|
.locals 5
|
|
|
|
iget-object v0, p1, Lokhttp3/k;->bog:[Ljava/lang/String;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
sget-object v0, Lokhttp3/h;->blB:Ljava/util/Comparator;
|
|
|
|
invoke-virtual {p2}, Ljavax/net/ssl/SSLSocket;->getEnabledCipherSuites()[Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
iget-object v2, p1, Lokhttp3/k;->bog:[Ljava/lang/String;
|
|
|
|
invoke-static {v0, v1, v2}, Lokhttp3/internal/c;->a(Ljava/util/Comparator;[Ljava/lang/String;[Ljava/lang/String;)[Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
invoke-virtual {p2}, Ljavax/net/ssl/SSLSocket;->getEnabledCipherSuites()[Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
:goto_0
|
|
iget-object v1, p1, Lokhttp3/k;->boh:[Ljava/lang/String;
|
|
|
|
if-eqz v1, :cond_1
|
|
|
|
sget-object v1, Lokhttp3/internal/c;->aSB:Ljava/util/Comparator;
|
|
|
|
invoke-virtual {p2}, Ljavax/net/ssl/SSLSocket;->getEnabledProtocols()[Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
iget-object v3, p1, Lokhttp3/k;->boh:[Ljava/lang/String;
|
|
|
|
invoke-static {v1, v2, v3}, Lokhttp3/internal/c;->a(Ljava/util/Comparator;[Ljava/lang/String;[Ljava/lang/String;)[Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
invoke-virtual {p2}, Ljavax/net/ssl/SSLSocket;->getEnabledProtocols()[Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
:goto_1
|
|
invoke-virtual {p2}, Ljavax/net/ssl/SSLSocket;->getSupportedCipherSuites()[Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
sget-object v3, Lokhttp3/h;->blB:Ljava/util/Comparator;
|
|
|
|
const-string v4, "TLS_FALLBACK_SCSV"
|
|
|
|
invoke-static {v3, v2, v4}, Lokhttp3/internal/c;->a(Ljava/util/Comparator;[Ljava/lang/String;Ljava/lang/String;)I
|
|
|
|
move-result v3
|
|
|
|
if-eqz p3, :cond_2
|
|
|
|
const/4 p3, -0x1
|
|
|
|
if-eq v3, p3, :cond_2
|
|
|
|
aget-object p3, v2, v3
|
|
|
|
invoke-static {v0, p3}, Lokhttp3/internal/c;->c([Ljava/lang/String;Ljava/lang/String;)[Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
:cond_2
|
|
new-instance p3, Lokhttp3/k$a;
|
|
|
|
invoke-direct {p3, p1}, Lokhttp3/k$a;-><init>(Lokhttp3/k;)V
|
|
|
|
invoke-virtual {p3, v0}, Lokhttp3/k$a;->c([Ljava/lang/String;)Lokhttp3/k$a;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p1, v1}, Lokhttp3/k$a;->d([Ljava/lang/String;)Lokhttp3/k$a;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {p1}, Lokhttp3/k$a;->BN()Lokhttp3/k;
|
|
|
|
move-result-object p1
|
|
|
|
iget-object p3, p1, Lokhttp3/k;->boh:[Ljava/lang/String;
|
|
|
|
if-eqz p3, :cond_3
|
|
|
|
iget-object p3, p1, Lokhttp3/k;->boh:[Ljava/lang/String;
|
|
|
|
invoke-virtual {p2, p3}, Ljavax/net/ssl/SSLSocket;->setEnabledProtocols([Ljava/lang/String;)V
|
|
|
|
:cond_3
|
|
iget-object p3, p1, Lokhttp3/k;->bog:[Ljava/lang/String;
|
|
|
|
if-eqz p3, :cond_4
|
|
|
|
iget-object p1, p1, Lokhttp3/k;->bog:[Ljava/lang/String;
|
|
|
|
invoke-virtual {p2, p1}, Ljavax/net/ssl/SSLSocket;->setEnabledCipherSuites([Ljava/lang/String;)V
|
|
|
|
:cond_4
|
|
return-void
|
|
.end method
|
|
|
|
.method public final a(Lokhttp3/a;Lokhttp3/a;)Z
|
|
.locals 0
|
|
|
|
invoke-virtual {p1, p2}, Lokhttp3/a;->a(Lokhttp3/a;)Z
|
|
|
|
move-result p1
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method public final a(Lokhttp3/j;Lokhttp3/internal/b/c;)Z
|
|
.locals 1
|
|
|
|
sget-boolean v0, Lokhttp3/j;->$assertionsDisabled:Z
|
|
|
|
if-nez v0, :cond_1
|
|
|
|
invoke-static {p1}, Ljava/lang/Thread;->holdsLock(Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
new-instance p1, Ljava/lang/AssertionError;
|
|
|
|
invoke-direct {p1}, Ljava/lang/AssertionError;-><init>()V
|
|
|
|
throw p1
|
|
|
|
:cond_1
|
|
:goto_0
|
|
iget-boolean v0, p2, Lokhttp3/internal/b/c;->brJ:Z
|
|
|
|
if-nez v0, :cond_3
|
|
|
|
iget v0, p1, Lokhttp3/j;->bnR:I
|
|
|
|
if-nez v0, :cond_2
|
|
|
|
goto :goto_1
|
|
|
|
:cond_2
|
|
invoke-virtual {p1}, Ljava/lang/Object;->notifyAll()V
|
|
|
|
const/4 p1, 0x0
|
|
|
|
return p1
|
|
|
|
:cond_3
|
|
:goto_1
|
|
iget-object p1, p1, Lokhttp3/j;->bnU:Ljava/util/Deque;
|
|
|
|
invoke-interface {p1, p2}, Ljava/util/Deque;->remove(Ljava/lang/Object;)Z
|
|
|
|
const/4 p1, 0x1
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method public final b(Lokhttp3/j;Lokhttp3/internal/b/c;)V
|
|
.locals 2
|
|
|
|
sget-boolean v0, Lokhttp3/j;->$assertionsDisabled:Z
|
|
|
|
if-nez v0, :cond_1
|
|
|
|
invoke-static {p1}, Ljava/lang/Thread;->holdsLock(Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
new-instance p1, Ljava/lang/AssertionError;
|
|
|
|
invoke-direct {p1}, Ljava/lang/AssertionError;-><init>()V
|
|
|
|
throw p1
|
|
|
|
:cond_1
|
|
:goto_0
|
|
iget-boolean v0, p1, Lokhttp3/j;->bnW:Z
|
|
|
|
if-nez v0, :cond_2
|
|
|
|
const/4 v0, 0x1
|
|
|
|
iput-boolean v0, p1, Lokhttp3/j;->bnW:Z
|
|
|
|
sget-object v0, Lokhttp3/j;->executor:Ljava/util/concurrent/Executor;
|
|
|
|
iget-object v1, p1, Lokhttp3/j;->bnT:Ljava/lang/Runnable;
|
|
|
|
invoke-interface {v0, v1}, Ljava/util/concurrent/Executor;->execute(Ljava/lang/Runnable;)V
|
|
|
|
:cond_2
|
|
iget-object p1, p1, Lokhttp3/j;->bnU:Ljava/util/Deque;
|
|
|
|
invoke-interface {p1, p2}, Ljava/util/Deque;->add(Ljava/lang/Object;)Z
|
|
|
|
return-void
|
|
.end method
|