619 lines
12 KiB
Smali
619 lines
12 KiB
Smali
.class public final Lokhttp3/k;
|
|
.super Ljava/lang/Object;
|
|
.source "ConnectionSpec.java"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Lokhttp3/k$a;
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# static fields
|
|
.field private static final bqp:[Lokhttp3/h;
|
|
|
|
.field private static final bqq:[Lokhttp3/h;
|
|
|
|
.field public static final bqr:Lokhttp3/k;
|
|
|
|
.field public static final bqs:Lokhttp3/k;
|
|
|
|
.field public static final bqt:Lokhttp3/k;
|
|
|
|
.field public static final bqu:Lokhttp3/k;
|
|
|
|
|
|
# instance fields
|
|
.field final bqv:Z
|
|
|
|
.field public final bqw:Z
|
|
|
|
.field final bqx:[Ljava/lang/String;
|
|
.annotation runtime Ljavax/annotation/Nullable;
|
|
.end annotation
|
|
.end field
|
|
|
|
.field final bqy:[Ljava/lang/String;
|
|
.annotation runtime Ljavax/annotation/Nullable;
|
|
.end annotation
|
|
.end field
|
|
|
|
|
|
# direct methods
|
|
.method static constructor <clinit>()V
|
|
.locals 14
|
|
|
|
const/16 v0, 0xb
|
|
|
|
new-array v1, v0, [Lokhttp3/h;
|
|
|
|
sget-object v2, Lokhttp3/h;->bqd:Lokhttp3/h;
|
|
|
|
const/4 v3, 0x0
|
|
|
|
aput-object v2, v1, v3
|
|
|
|
sget-object v2, Lokhttp3/h;->bqe:Lokhttp3/h;
|
|
|
|
const/4 v4, 0x1
|
|
|
|
aput-object v2, v1, v4
|
|
|
|
sget-object v2, Lokhttp3/h;->bqf:Lokhttp3/h;
|
|
|
|
const/4 v5, 0x2
|
|
|
|
aput-object v2, v1, v5
|
|
|
|
sget-object v2, Lokhttp3/h;->bqg:Lokhttp3/h;
|
|
|
|
const/4 v6, 0x3
|
|
|
|
aput-object v2, v1, v6
|
|
|
|
sget-object v2, Lokhttp3/h;->bqh:Lokhttp3/h;
|
|
|
|
const/4 v7, 0x4
|
|
|
|
aput-object v2, v1, v7
|
|
|
|
sget-object v2, Lokhttp3/h;->bpP:Lokhttp3/h;
|
|
|
|
const/4 v8, 0x5
|
|
|
|
aput-object v2, v1, v8
|
|
|
|
sget-object v2, Lokhttp3/h;->bpT:Lokhttp3/h;
|
|
|
|
const/4 v9, 0x6
|
|
|
|
aput-object v2, v1, v9
|
|
|
|
sget-object v2, Lokhttp3/h;->bpQ:Lokhttp3/h;
|
|
|
|
const/4 v10, 0x7
|
|
|
|
aput-object v2, v1, v10
|
|
|
|
sget-object v2, Lokhttp3/h;->bpU:Lokhttp3/h;
|
|
|
|
const/16 v11, 0x8
|
|
|
|
aput-object v2, v1, v11
|
|
|
|
sget-object v2, Lokhttp3/h;->bqa:Lokhttp3/h;
|
|
|
|
const/16 v12, 0x9
|
|
|
|
aput-object v2, v1, v12
|
|
|
|
sget-object v2, Lokhttp3/h;->bpZ:Lokhttp3/h;
|
|
|
|
const/16 v13, 0xa
|
|
|
|
aput-object v2, v1, v13
|
|
|
|
sput-object v1, Lokhttp3/k;->bqp:[Lokhttp3/h;
|
|
|
|
const/16 v1, 0x12
|
|
|
|
new-array v1, v1, [Lokhttp3/h;
|
|
|
|
sget-object v2, Lokhttp3/h;->bqd:Lokhttp3/h;
|
|
|
|
aput-object v2, v1, v3
|
|
|
|
sget-object v2, Lokhttp3/h;->bqe:Lokhttp3/h;
|
|
|
|
aput-object v2, v1, v4
|
|
|
|
sget-object v2, Lokhttp3/h;->bqf:Lokhttp3/h;
|
|
|
|
aput-object v2, v1, v5
|
|
|
|
sget-object v2, Lokhttp3/h;->bqg:Lokhttp3/h;
|
|
|
|
aput-object v2, v1, v6
|
|
|
|
sget-object v2, Lokhttp3/h;->bqh:Lokhttp3/h;
|
|
|
|
aput-object v2, v1, v7
|
|
|
|
sget-object v2, Lokhttp3/h;->bpP:Lokhttp3/h;
|
|
|
|
aput-object v2, v1, v8
|
|
|
|
sget-object v2, Lokhttp3/h;->bpT:Lokhttp3/h;
|
|
|
|
aput-object v2, v1, v9
|
|
|
|
sget-object v2, Lokhttp3/h;->bpQ:Lokhttp3/h;
|
|
|
|
aput-object v2, v1, v10
|
|
|
|
sget-object v2, Lokhttp3/h;->bpU:Lokhttp3/h;
|
|
|
|
aput-object v2, v1, v11
|
|
|
|
sget-object v2, Lokhttp3/h;->bqa:Lokhttp3/h;
|
|
|
|
aput-object v2, v1, v12
|
|
|
|
sget-object v2, Lokhttp3/h;->bpZ:Lokhttp3/h;
|
|
|
|
aput-object v2, v1, v13
|
|
|
|
sget-object v2, Lokhttp3/h;->bpA:Lokhttp3/h;
|
|
|
|
aput-object v2, v1, v0
|
|
|
|
sget-object v0, Lokhttp3/h;->bpB:Lokhttp3/h;
|
|
|
|
const/16 v2, 0xc
|
|
|
|
aput-object v0, v1, v2
|
|
|
|
sget-object v0, Lokhttp3/h;->boY:Lokhttp3/h;
|
|
|
|
const/16 v2, 0xd
|
|
|
|
aput-object v0, v1, v2
|
|
|
|
sget-object v0, Lokhttp3/h;->boZ:Lokhttp3/h;
|
|
|
|
const/16 v2, 0xe
|
|
|
|
aput-object v0, v1, v2
|
|
|
|
sget-object v0, Lokhttp3/h;->bow:Lokhttp3/h;
|
|
|
|
const/16 v2, 0xf
|
|
|
|
aput-object v0, v1, v2
|
|
|
|
sget-object v0, Lokhttp3/h;->boA:Lokhttp3/h;
|
|
|
|
const/16 v2, 0x10
|
|
|
|
aput-object v0, v1, v2
|
|
|
|
sget-object v0, Lokhttp3/h;->bnZ:Lokhttp3/h;
|
|
|
|
const/16 v2, 0x11
|
|
|
|
aput-object v0, v1, v2
|
|
|
|
sput-object v1, Lokhttp3/k;->bqq:[Lokhttp3/h;
|
|
|
|
new-instance v0, Lokhttp3/k$a;
|
|
|
|
invoke-direct {v0, v4}, Lokhttp3/k$a;-><init>(Z)V
|
|
|
|
sget-object v1, Lokhttp3/k;->bqp:[Lokhttp3/h;
|
|
|
|
invoke-virtual {v0, v1}, Lokhttp3/k$a;->a([Lokhttp3/h;)Lokhttp3/k$a;
|
|
|
|
move-result-object v0
|
|
|
|
new-array v1, v5, [Lokhttp3/z;
|
|
|
|
sget-object v2, Lokhttp3/z;->bsP:Lokhttp3/z;
|
|
|
|
aput-object v2, v1, v3
|
|
|
|
sget-object v2, Lokhttp3/z;->bsQ:Lokhttp3/z;
|
|
|
|
aput-object v2, v1, v4
|
|
|
|
invoke-virtual {v0, v1}, Lokhttp3/k$a;->a([Lokhttp3/z;)Lokhttp3/k$a;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0}, Lokhttp3/k$a;->Fi()Lokhttp3/k$a;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0}, Lokhttp3/k$a;->Fj()Lokhttp3/k;
|
|
|
|
move-result-object v0
|
|
|
|
sput-object v0, Lokhttp3/k;->bqr:Lokhttp3/k;
|
|
|
|
new-instance v0, Lokhttp3/k$a;
|
|
|
|
invoke-direct {v0, v4}, Lokhttp3/k$a;-><init>(Z)V
|
|
|
|
sget-object v1, Lokhttp3/k;->bqq:[Lokhttp3/h;
|
|
|
|
invoke-virtual {v0, v1}, Lokhttp3/k$a;->a([Lokhttp3/h;)Lokhttp3/k$a;
|
|
|
|
move-result-object v0
|
|
|
|
new-array v1, v7, [Lokhttp3/z;
|
|
|
|
sget-object v2, Lokhttp3/z;->bsP:Lokhttp3/z;
|
|
|
|
aput-object v2, v1, v3
|
|
|
|
sget-object v2, Lokhttp3/z;->bsQ:Lokhttp3/z;
|
|
|
|
aput-object v2, v1, v4
|
|
|
|
sget-object v2, Lokhttp3/z;->bsR:Lokhttp3/z;
|
|
|
|
aput-object v2, v1, v5
|
|
|
|
sget-object v2, Lokhttp3/z;->bsS:Lokhttp3/z;
|
|
|
|
aput-object v2, v1, v6
|
|
|
|
invoke-virtual {v0, v1}, Lokhttp3/k$a;->a([Lokhttp3/z;)Lokhttp3/k$a;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0}, Lokhttp3/k$a;->Fi()Lokhttp3/k$a;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0}, Lokhttp3/k$a;->Fj()Lokhttp3/k;
|
|
|
|
move-result-object v0
|
|
|
|
sput-object v0, Lokhttp3/k;->bqs:Lokhttp3/k;
|
|
|
|
new-instance v0, Lokhttp3/k$a;
|
|
|
|
invoke-direct {v0, v4}, Lokhttp3/k$a;-><init>(Z)V
|
|
|
|
sget-object v1, Lokhttp3/k;->bqq:[Lokhttp3/h;
|
|
|
|
invoke-virtual {v0, v1}, Lokhttp3/k$a;->a([Lokhttp3/h;)Lokhttp3/k$a;
|
|
|
|
move-result-object v0
|
|
|
|
new-array v1, v4, [Lokhttp3/z;
|
|
|
|
sget-object v2, Lokhttp3/z;->bsS:Lokhttp3/z;
|
|
|
|
aput-object v2, v1, v3
|
|
|
|
invoke-virtual {v0, v1}, Lokhttp3/k$a;->a([Lokhttp3/z;)Lokhttp3/k$a;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0}, Lokhttp3/k$a;->Fi()Lokhttp3/k$a;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0}, Lokhttp3/k$a;->Fj()Lokhttp3/k;
|
|
|
|
move-result-object v0
|
|
|
|
sput-object v0, Lokhttp3/k;->bqt:Lokhttp3/k;
|
|
|
|
new-instance v0, Lokhttp3/k$a;
|
|
|
|
invoke-direct {v0, v3}, Lokhttp3/k$a;-><init>(Z)V
|
|
|
|
invoke-virtual {v0}, Lokhttp3/k$a;->Fj()Lokhttp3/k;
|
|
|
|
move-result-object v0
|
|
|
|
sput-object v0, Lokhttp3/k;->bqu:Lokhttp3/k;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method constructor <init>(Lokhttp3/k$a;)V
|
|
.locals 1
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
iget-boolean v0, p1, Lokhttp3/k$a;->bqv:Z
|
|
|
|
iput-boolean v0, p0, Lokhttp3/k;->bqv:Z
|
|
|
|
iget-object v0, p1, Lokhttp3/k$a;->bqx:[Ljava/lang/String;
|
|
|
|
iput-object v0, p0, Lokhttp3/k;->bqx:[Ljava/lang/String;
|
|
|
|
iget-object v0, p1, Lokhttp3/k$a;->bqy:[Ljava/lang/String;
|
|
|
|
iput-object v0, p0, Lokhttp3/k;->bqy:[Ljava/lang/String;
|
|
|
|
iget-boolean p1, p1, Lokhttp3/k$a;->bqw:Z
|
|
|
|
iput-boolean p1, p0, Lokhttp3/k;->bqw:Z
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final b(Ljavax/net/ssl/SSLSocket;)Z
|
|
.locals 4
|
|
|
|
iget-boolean v0, p0, Lokhttp3/k;->bqv:Z
|
|
|
|
const/4 v1, 0x0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
return v1
|
|
|
|
:cond_0
|
|
iget-object v0, p0, Lokhttp3/k;->bqy:[Ljava/lang/String;
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
sget-object v0, Lokhttp3/internal/c;->aTS:Ljava/util/Comparator;
|
|
|
|
iget-object v2, p0, Lokhttp3/k;->bqy:[Ljava/lang/String;
|
|
|
|
invoke-virtual {p1}, Ljavax/net/ssl/SSLSocket;->getEnabledProtocols()[Ljava/lang/String;
|
|
|
|
move-result-object v3
|
|
|
|
invoke-static {v0, v2, v3}, Lokhttp3/internal/c;->b(Ljava/util/Comparator;[Ljava/lang/String;[Ljava/lang/String;)Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_1
|
|
|
|
return v1
|
|
|
|
:cond_1
|
|
iget-object v0, p0, Lokhttp3/k;->bqx:[Ljava/lang/String;
|
|
|
|
if-eqz v0, :cond_2
|
|
|
|
sget-object v0, Lokhttp3/h;->bnR:Ljava/util/Comparator;
|
|
|
|
iget-object v2, p0, Lokhttp3/k;->bqx:[Ljava/lang/String;
|
|
|
|
invoke-virtual {p1}, Ljavax/net/ssl/SSLSocket;->getEnabledCipherSuites()[Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-static {v0, v2, p1}, Lokhttp3/internal/c;->b(Ljava/util/Comparator;[Ljava/lang/String;[Ljava/lang/String;)Z
|
|
|
|
move-result p1
|
|
|
|
if-nez p1, :cond_2
|
|
|
|
return v1
|
|
|
|
:cond_2
|
|
const/4 p1, 0x1
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method public final equals(Ljava/lang/Object;)Z
|
|
.locals 4
|
|
.param p1 # Ljava/lang/Object;
|
|
.annotation runtime Ljavax/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
|
|
instance-of v0, p1, Lokhttp3/k;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
return v1
|
|
|
|
:cond_0
|
|
const/4 v0, 0x1
|
|
|
|
if-ne p1, p0, :cond_1
|
|
|
|
return v0
|
|
|
|
:cond_1
|
|
check-cast p1, Lokhttp3/k;
|
|
|
|
iget-boolean v2, p0, Lokhttp3/k;->bqv:Z
|
|
|
|
iget-boolean v3, p1, Lokhttp3/k;->bqv:Z
|
|
|
|
if-eq v2, v3, :cond_2
|
|
|
|
return v1
|
|
|
|
:cond_2
|
|
if-eqz v2, :cond_5
|
|
|
|
iget-object v2, p0, Lokhttp3/k;->bqx:[Ljava/lang/String;
|
|
|
|
iget-object v3, p1, Lokhttp3/k;->bqx:[Ljava/lang/String;
|
|
|
|
invoke-static {v2, v3}, Ljava/util/Arrays;->equals([Ljava/lang/Object;[Ljava/lang/Object;)Z
|
|
|
|
move-result v2
|
|
|
|
if-nez v2, :cond_3
|
|
|
|
return v1
|
|
|
|
:cond_3
|
|
iget-object v2, p0, Lokhttp3/k;->bqy:[Ljava/lang/String;
|
|
|
|
iget-object v3, p1, Lokhttp3/k;->bqy:[Ljava/lang/String;
|
|
|
|
invoke-static {v2, v3}, Ljava/util/Arrays;->equals([Ljava/lang/Object;[Ljava/lang/Object;)Z
|
|
|
|
move-result v2
|
|
|
|
if-nez v2, :cond_4
|
|
|
|
return v1
|
|
|
|
:cond_4
|
|
iget-boolean v2, p0, Lokhttp3/k;->bqw:Z
|
|
|
|
iget-boolean p1, p1, Lokhttp3/k;->bqw:Z
|
|
|
|
if-eq v2, p1, :cond_5
|
|
|
|
return v1
|
|
|
|
:cond_5
|
|
return v0
|
|
.end method
|
|
|
|
.method public final hashCode()I
|
|
.locals 2
|
|
|
|
iget-boolean v0, p0, Lokhttp3/k;->bqv:Z
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
iget-object v0, p0, Lokhttp3/k;->bqx:[Ljava/lang/String;
|
|
|
|
invoke-static {v0}, Ljava/util/Arrays;->hashCode([Ljava/lang/Object;)I
|
|
|
|
move-result v0
|
|
|
|
add-int/lit16 v0, v0, 0x20f
|
|
|
|
mul-int/lit8 v0, v0, 0x1f
|
|
|
|
iget-object v1, p0, Lokhttp3/k;->bqy:[Ljava/lang/String;
|
|
|
|
invoke-static {v1}, Ljava/util/Arrays;->hashCode([Ljava/lang/Object;)I
|
|
|
|
move-result v1
|
|
|
|
add-int/2addr v0, v1
|
|
|
|
mul-int/lit8 v0, v0, 0x1f
|
|
|
|
iget-boolean v1, p0, Lokhttp3/k;->bqw:Z
|
|
|
|
xor-int/lit8 v1, v1, 0x1
|
|
|
|
add-int/2addr v0, v1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/16 v0, 0x11
|
|
|
|
:goto_0
|
|
return v0
|
|
.end method
|
|
|
|
.method public final toString()Ljava/lang/String;
|
|
.locals 4
|
|
|
|
iget-boolean v0, p0, Lokhttp3/k;->bqv:Z
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
const-string v0, "ConnectionSpec()"
|
|
|
|
return-object v0
|
|
|
|
:cond_0
|
|
iget-object v0, p0, Lokhttp3/k;->bqx:[Ljava/lang/String;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
const-string v2, "[all enabled]"
|
|
|
|
if-eqz v0, :cond_2
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
invoke-static {v0}, Lokhttp3/h;->c([Ljava/lang/String;)Ljava/util/List;
|
|
|
|
move-result-object v0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
move-object v0, v1
|
|
|
|
:goto_0
|
|
invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
goto :goto_1
|
|
|
|
:cond_2
|
|
move-object v0, v2
|
|
|
|
:goto_1
|
|
iget-object v3, p0, Lokhttp3/k;->bqy:[Ljava/lang/String;
|
|
|
|
if-eqz v3, :cond_4
|
|
|
|
if-eqz v3, :cond_3
|
|
|
|
invoke-static {v3}, Lokhttp3/z;->c([Ljava/lang/String;)Ljava/util/List;
|
|
|
|
move-result-object v1
|
|
|
|
:cond_3
|
|
invoke-virtual {v1}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
:cond_4
|
|
new-instance v1, Ljava/lang/StringBuilder;
|
|
|
|
const-string v3, "ConnectionSpec(cipherSuites="
|
|
|
|
invoke-direct {v1, v3}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
|
|
|
invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
const-string v0, ", tlsVersions="
|
|
|
|
invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
const-string v0, ", supportsTlsExtensions="
|
|
|
|
invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
iget-boolean v0, p0, Lokhttp3/k;->bqw:Z
|
|
|
|
invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Z)Ljava/lang/StringBuilder;
|
|
|
|
const-string v0, ")"
|
|
|
|
invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
.end method
|