apkfuckery/com.discord/smali/okhttp3/k$a.smali

276 lines
5.5 KiB
Smali
Raw Normal View History

2019-02-04 20:08:30 +00:00
.class public final Lokhttp3/k$a;
.super Ljava/lang/Object;
2019-02-04 20:29:01 +00:00
.source "ConnectionSpec.java"
2019-02-04 20:08:30 +00:00
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lokhttp3/k;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = "a"
.end annotation
# instance fields
2019-03-02 23:27:57 +00:00
.field blM:Z
2019-02-22 00:19:04 +00:00
2019-03-02 23:27:57 +00:00
.field blN:Z
2019-02-27 21:13:14 +00:00
2019-03-02 23:27:57 +00:00
.field blO:[Ljava/lang/String;
2019-02-04 20:08:30 +00:00
.annotation runtime Ljavax/annotation/Nullable;
.end annotation
.end field
2019-03-02 23:27:57 +00:00
.field blP:[Ljava/lang/String;
2019-02-04 20:08:30 +00:00
.annotation runtime Ljavax/annotation/Nullable;
.end annotation
.end field
# direct methods
.method public constructor <init>(Lokhttp3/k;)V
.locals 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
2019-03-02 23:27:57 +00:00
iget-boolean v0, p1, Lokhttp3/k;->blM:Z
2019-02-04 20:08:30 +00:00
2019-03-02 23:27:57 +00:00
iput-boolean v0, p0, Lokhttp3/k$a;->blM:Z
2019-02-04 20:08:30 +00:00
2019-03-02 23:27:57 +00:00
iget-object v0, p1, Lokhttp3/k;->blO:[Ljava/lang/String;
2019-02-04 20:08:30 +00:00
2019-03-02 23:27:57 +00:00
iput-object v0, p0, Lokhttp3/k$a;->blO:[Ljava/lang/String;
2019-02-22 00:19:04 +00:00
2019-03-02 23:27:57 +00:00
iget-object v0, p1, Lokhttp3/k;->blP:[Ljava/lang/String;
2019-02-22 00:19:04 +00:00
2019-03-02 23:27:57 +00:00
iput-object v0, p0, Lokhttp3/k$a;->blP:[Ljava/lang/String;
2019-02-27 21:13:14 +00:00
2019-03-02 23:27:57 +00:00
iget-boolean p1, p1, Lokhttp3/k;->blN:Z
2019-02-27 21:13:14 +00:00
2019-03-02 23:27:57 +00:00
iput-boolean p1, p0, Lokhttp3/k$a;->blN:Z
2019-02-04 20:08:30 +00:00
return-void
.end method
.method constructor <init>(Z)V
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
2019-03-02 23:27:57 +00:00
iput-boolean p1, p0, Lokhttp3/k$a;->blM:Z
2019-02-04 20:08:30 +00:00
return-void
.end method
# virtual methods
.method public final varargs a([Lokhttp3/h;)Lokhttp3/k$a;
.locals 3
2019-03-02 23:27:57 +00:00
iget-boolean v0, p0, Lokhttp3/k$a;->blM:Z
2019-02-04 20:08:30 +00:00
if-eqz v0, :cond_1
array-length v0, p1
new-array v0, v0, [Ljava/lang/String;
const/4 v1, 0x0
:goto_0
array-length v2, p1
if-ge v1, v2, :cond_0
aget-object v2, p1, v1
iget-object v2, v2, Lokhttp3/h;->javaName:Ljava/lang/String;
aput-object v2, v0, v1
add-int/lit8 v1, v1, 0x1
goto :goto_0
:cond_0
2019-02-04 20:32:01 +00:00
invoke-virtual {p0, v0}, Lokhttp3/k$a;->c([Ljava/lang/String;)Lokhttp3/k$a;
2019-02-04 20:08:30 +00:00
move-result-object p1
return-object p1
:cond_1
new-instance p1, Ljava/lang/IllegalStateException;
const-string v0, "no cipher suites for cleartext connections"
invoke-direct {p1, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw p1
2019-02-04 20:29:01 +00:00
return-void
2019-02-04 20:08:30 +00:00
.end method
.method public final varargs a([Lokhttp3/z;)Lokhttp3/k$a;
.locals 3
2019-03-02 23:27:57 +00:00
iget-boolean v0, p0, Lokhttp3/k$a;->blM:Z
2019-02-04 20:08:30 +00:00
if-eqz v0, :cond_1
array-length v0, p1
new-array v0, v0, [Ljava/lang/String;
const/4 v1, 0x0
:goto_0
array-length v2, p1
if-ge v1, v2, :cond_0
aget-object v2, p1, v1
iget-object v2, v2, Lokhttp3/z;->javaName:Ljava/lang/String;
aput-object v2, v0, v1
add-int/lit8 v1, v1, 0x1
goto :goto_0
:cond_0
2019-02-04 20:32:01 +00:00
invoke-virtual {p0, v0}, Lokhttp3/k$a;->d([Ljava/lang/String;)Lokhttp3/k$a;
2019-02-04 20:08:30 +00:00
move-result-object p1
return-object p1
:cond_1
new-instance p1, Ljava/lang/IllegalStateException;
const-string v0, "no TLS versions for cleartext connections"
invoke-direct {p1, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw p1
2019-02-04 20:29:01 +00:00
return-void
2019-02-04 20:08:30 +00:00
.end method
2019-02-04 20:32:01 +00:00
.method public final varargs c([Ljava/lang/String;)Lokhttp3/k$a;
2019-02-04 20:08:30 +00:00
.locals 1
2019-03-02 23:27:57 +00:00
iget-boolean v0, p0, Lokhttp3/k$a;->blM:Z
2019-02-04 20:08:30 +00:00
if-eqz v0, :cond_1
array-length v0, p1
if-eqz v0, :cond_0
invoke-virtual {p1}, [Ljava/lang/String;->clone()Ljava/lang/Object;
move-result-object p1
check-cast p1, [Ljava/lang/String;
2019-03-02 23:27:57 +00:00
iput-object p1, p0, Lokhttp3/k$a;->blO:[Ljava/lang/String;
2019-02-04 20:08:30 +00:00
return-object p0
:cond_0
new-instance p1, Ljava/lang/IllegalArgumentException;
const-string v0, "At least one cipher suite is required"
invoke-direct {p1, v0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw p1
:cond_1
new-instance p1, Ljava/lang/IllegalStateException;
const-string v0, "no cipher suites for cleartext connections"
invoke-direct {p1, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw p1
.end method
2019-02-04 20:32:01 +00:00
.method public final varargs d([Ljava/lang/String;)Lokhttp3/k$a;
2019-02-04 20:08:30 +00:00
.locals 1
2019-03-02 23:27:57 +00:00
iget-boolean v0, p0, Lokhttp3/k$a;->blM:Z
2019-02-04 20:08:30 +00:00
if-eqz v0, :cond_1
array-length v0, p1
if-eqz v0, :cond_0
invoke-virtual {p1}, [Ljava/lang/String;->clone()Ljava/lang/Object;
move-result-object p1
check-cast p1, [Ljava/lang/String;
2019-03-02 23:27:57 +00:00
iput-object p1, p0, Lokhttp3/k$a;->blP:[Ljava/lang/String;
2019-02-04 20:08:30 +00:00
return-object p0
:cond_0
new-instance p1, Ljava/lang/IllegalArgumentException;
const-string v0, "At least one TLS version is required"
invoke-direct {p1, v0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw p1
:cond_1
new-instance p1, Ljava/lang/IllegalStateException;
const-string v0, "no TLS versions for cleartext connections"
invoke-direct {p1, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw p1
.end method
2019-02-04 20:32:01 +00:00
2019-02-27 00:16:35 +00:00
.method public final zY()Lokhttp3/k$a;
2019-02-04 20:32:01 +00:00
.locals 2
2019-03-02 23:27:57 +00:00
iget-boolean v0, p0, Lokhttp3/k$a;->blM:Z
2019-02-04 20:32:01 +00:00
if-eqz v0, :cond_0
const/4 v0, 0x1
2019-03-02 23:27:57 +00:00
iput-boolean v0, p0, Lokhttp3/k$a;->blN:Z
2019-02-04 20:32:01 +00:00
return-object p0
:cond_0
new-instance v0, Ljava/lang/IllegalStateException;
const-string v1, "no TLS extensions for cleartext connections"
invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw v0
.end method
2019-02-27 00:16:35 +00:00
.method public final zZ()Lokhttp3/k;
2019-02-04 20:32:01 +00:00
.locals 1
new-instance v0, Lokhttp3/k;
invoke-direct {v0, p0}, Lokhttp3/k;-><init>(Lokhttp3/k$a;)V
return-object v0
.end method