Changes of com.discord v1325
This commit is contained in:
parent
d9d9f382c9
commit
3cb9e1231d
28086 changed files with 4880345 additions and 0 deletions
584
com.discord/smali_classes2/okhttp3/Headers$a.smali
Normal file
584
com.discord/smali_classes2/okhttp3/Headers$a.smali
Normal file
|
@ -0,0 +1,584 @@
|
|||
.class public final Lokhttp3/Headers$a;
|
||||
.super Ljava/lang/Object;
|
||||
.source "Headers.kt"
|
||||
|
||||
|
||||
# annotations
|
||||
.annotation system Ldalvik/annotation/EnclosingClass;
|
||||
value = Lokhttp3/Headers;
|
||||
.end annotation
|
||||
|
||||
.annotation system Ldalvik/annotation/InnerClass;
|
||||
accessFlags = 0x19
|
||||
name = "a"
|
||||
.end annotation
|
||||
|
||||
|
||||
# instance fields
|
||||
.field public final a:Ljava/util/List;
|
||||
.annotation system Ldalvik/annotation/Signature;
|
||||
value = {
|
||||
"Ljava/util/List<",
|
||||
"Ljava/lang/String;",
|
||||
">;"
|
||||
}
|
||||
.end annotation
|
||||
.end field
|
||||
|
||||
|
||||
# direct methods
|
||||
.method public constructor <init>()V
|
||||
.locals 2
|
||||
|
||||
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||||
|
||||
new-instance v0, Ljava/util/ArrayList;
|
||||
|
||||
const/16 v1, 0x14
|
||||
|
||||
invoke-direct {v0, v1}, Ljava/util/ArrayList;-><init>(I)V
|
||||
|
||||
iput-object v0, p0, Lokhttp3/Headers$a;->a:Ljava/util/List;
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
|
||||
# virtual methods
|
||||
.method public final a(Ljava/lang/String;Ljava/lang/String;)Lokhttp3/Headers$a;
|
||||
.locals 9
|
||||
|
||||
const-string v0, "name"
|
||||
|
||||
invoke-static {p1, v0}, Lz/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
||||
|
||||
const-string v0, "value"
|
||||
|
||||
invoke-static {p2, v0}, Lz/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
||||
|
||||
invoke-virtual {p1}, Ljava/lang/String;->length()I
|
||||
|
||||
move-result v0
|
||||
|
||||
const/4 v1, 0x1
|
||||
|
||||
const/4 v2, 0x0
|
||||
|
||||
if-lez v0, :cond_0
|
||||
|
||||
const/4 v0, 0x1
|
||||
|
||||
goto :goto_0
|
||||
|
||||
:cond_0
|
||||
const/4 v0, 0x0
|
||||
|
||||
:goto_0
|
||||
if-eqz v0, :cond_a
|
||||
|
||||
invoke-virtual {p1}, Ljava/lang/String;->length()I
|
||||
|
||||
move-result v0
|
||||
|
||||
const/4 v3, 0x0
|
||||
|
||||
:goto_1
|
||||
const/4 v4, 0x2
|
||||
|
||||
const/4 v5, 0x3
|
||||
|
||||
const/16 v6, 0x7e
|
||||
|
||||
if-ge v3, v0, :cond_4
|
||||
|
||||
invoke-virtual {p1, v3}, Ljava/lang/String;->charAt(I)C
|
||||
|
||||
move-result v7
|
||||
|
||||
const/16 v8, 0x21
|
||||
|
||||
if-le v8, v7, :cond_1
|
||||
|
||||
goto :goto_2
|
||||
|
||||
:cond_1
|
||||
if-lt v6, v7, :cond_2
|
||||
|
||||
const/4 v6, 0x1
|
||||
|
||||
goto :goto_3
|
||||
|
||||
:cond_2
|
||||
:goto_2
|
||||
const/4 v6, 0x0
|
||||
|
||||
:goto_3
|
||||
if-eqz v6, :cond_3
|
||||
|
||||
add-int/lit8 v3, v3, 0x1
|
||||
|
||||
goto :goto_1
|
||||
|
||||
:cond_3
|
||||
new-array p2, v5, [Ljava/lang/Object;
|
||||
|
||||
invoke-static {v7}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
aput-object v0, p2, v2
|
||||
|
||||
invoke-static {v3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
aput-object v0, p2, v1
|
||||
|
||||
aput-object p1, p2, v4
|
||||
|
||||
const-string p1, "Unexpected char %#04x at %d in header name: %s"
|
||||
|
||||
invoke-static {p1, p2}, Ld0/h0/c;->l(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
|
||||
|
||||
move-result-object p1
|
||||
|
||||
new-instance p2, Ljava/lang/IllegalArgumentException;
|
||||
|
||||
invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
||||
|
||||
move-result-object p1
|
||||
|
||||
invoke-direct {p2, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
||||
|
||||
throw p2
|
||||
|
||||
:cond_4
|
||||
invoke-virtual {p2}, Ljava/lang/String;->length()I
|
||||
|
||||
move-result v0
|
||||
|
||||
const/4 v3, 0x0
|
||||
|
||||
:goto_4
|
||||
if-ge v3, v0, :cond_9
|
||||
|
||||
invoke-virtual {p2, v3}, Ljava/lang/String;->charAt(I)C
|
||||
|
||||
move-result v7
|
||||
|
||||
const/16 v8, 0x9
|
||||
|
||||
if-eq v7, v8, :cond_7
|
||||
|
||||
const/16 v8, 0x20
|
||||
|
||||
if-le v8, v7, :cond_5
|
||||
|
||||
goto :goto_5
|
||||
|
||||
:cond_5
|
||||
if-lt v6, v7, :cond_6
|
||||
|
||||
goto :goto_6
|
||||
|
||||
:cond_6
|
||||
:goto_5
|
||||
const/4 v8, 0x0
|
||||
|
||||
goto :goto_7
|
||||
|
||||
:cond_7
|
||||
:goto_6
|
||||
const/4 v8, 0x1
|
||||
|
||||
:goto_7
|
||||
if-eqz v8, :cond_8
|
||||
|
||||
add-int/lit8 v3, v3, 0x1
|
||||
|
||||
goto :goto_4
|
||||
|
||||
:cond_8
|
||||
const/4 v0, 0x4
|
||||
|
||||
new-array v0, v0, [Ljava/lang/Object;
|
||||
|
||||
invoke-static {v7}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
||||
|
||||
move-result-object v6
|
||||
|
||||
aput-object v6, v0, v2
|
||||
|
||||
invoke-static {v3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
||||
|
||||
move-result-object v2
|
||||
|
||||
aput-object v2, v0, v1
|
||||
|
||||
aput-object p1, v0, v4
|
||||
|
||||
aput-object p2, v0, v5
|
||||
|
||||
const-string p1, "Unexpected char %#04x at %d in %s value: %s"
|
||||
|
||||
invoke-static {p1, v0}, Ld0/h0/c;->l(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
|
||||
|
||||
move-result-object p1
|
||||
|
||||
new-instance p2, Ljava/lang/IllegalArgumentException;
|
||||
|
||||
invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
||||
|
||||
move-result-object p1
|
||||
|
||||
invoke-direct {p2, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
||||
|
||||
throw p2
|
||||
|
||||
:cond_9
|
||||
invoke-virtual {p0, p1, p2}, Lokhttp3/Headers$a;->b(Ljava/lang/String;Ljava/lang/String;)Lokhttp3/Headers$a;
|
||||
|
||||
return-object p0
|
||||
|
||||
:cond_a
|
||||
new-instance p1, Ljava/lang/IllegalArgumentException;
|
||||
|
||||
const-string p2, "name is empty"
|
||||
|
||||
invoke-virtual {p2}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
||||
|
||||
move-result-object p2
|
||||
|
||||
invoke-direct {p1, p2}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
||||
|
||||
throw p1
|
||||
.end method
|
||||
|
||||
.method public final b(Ljava/lang/String;Ljava/lang/String;)Lokhttp3/Headers$a;
|
||||
.locals 1
|
||||
|
||||
const-string v0, "name"
|
||||
|
||||
invoke-static {p1, v0}, Lz/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
||||
|
||||
const-string v0, "value"
|
||||
|
||||
invoke-static {p2, v0}, Lz/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
||||
|
||||
iget-object v0, p0, Lokhttp3/Headers$a;->a:Ljava/util/List;
|
||||
|
||||
invoke-interface {v0, p1}, Ljava/util/List;->add(Ljava/lang/Object;)Z
|
||||
|
||||
iget-object p1, p0, Lokhttp3/Headers$a;->a:Ljava/util/List;
|
||||
|
||||
invoke-static {p2}, Lz/t/p;->trim(Ljava/lang/CharSequence;)Ljava/lang/CharSequence;
|
||||
|
||||
move-result-object p2
|
||||
|
||||
invoke-virtual {p2}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
||||
|
||||
move-result-object p2
|
||||
|
||||
invoke-interface {p1, p2}, Ljava/util/List;->add(Ljava/lang/Object;)Z
|
||||
|
||||
return-object p0
|
||||
.end method
|
||||
|
||||
.method public final c()Lokhttp3/Headers;
|
||||
.locals 3
|
||||
|
||||
iget-object v0, p0, Lokhttp3/Headers$a;->a:Ljava/util/List;
|
||||
|
||||
const/4 v1, 0x0
|
||||
|
||||
new-array v1, v1, [Ljava/lang/String;
|
||||
|
||||
invoke-interface {v0, v1}, Ljava/util/Collection;->toArray([Ljava/lang/Object;)[Ljava/lang/Object;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
if-eqz v0, :cond_0
|
||||
|
||||
check-cast v0, [Ljava/lang/String;
|
||||
|
||||
const/4 v1, 0x0
|
||||
|
||||
new-instance v2, Lokhttp3/Headers;
|
||||
|
||||
invoke-direct {v2, v0, v1}, Lokhttp3/Headers;-><init>([Ljava/lang/String;Lkotlin/jvm/internal/DefaultConstructorMarker;)V
|
||||
|
||||
return-object v2
|
||||
|
||||
:cond_0
|
||||
new-instance v0, Lkotlin/TypeCastException;
|
||||
|
||||
const-string v1, "null cannot be cast to non-null type kotlin.Array<T>"
|
||||
|
||||
invoke-direct {v0, v1}, Lkotlin/TypeCastException;-><init>(Ljava/lang/String;)V
|
||||
|
||||
throw v0
|
||||
.end method
|
||||
|
||||
.method public final d(Ljava/lang/String;)Lokhttp3/Headers$a;
|
||||
.locals 3
|
||||
|
||||
const-string v0, "name"
|
||||
|
||||
invoke-static {p1, v0}, Lz/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
||||
|
||||
const/4 v0, 0x0
|
||||
|
||||
:goto_0
|
||||
iget-object v1, p0, Lokhttp3/Headers$a;->a:Ljava/util/List;
|
||||
|
||||
invoke-interface {v1}, Ljava/util/List;->size()I
|
||||
|
||||
move-result v1
|
||||
|
||||
if-ge v0, v1, :cond_1
|
||||
|
||||
iget-object v1, p0, Lokhttp3/Headers$a;->a:Ljava/util/List;
|
||||
|
||||
invoke-interface {v1, v0}, Ljava/util/List;->get(I)Ljava/lang/Object;
|
||||
|
||||
move-result-object v1
|
||||
|
||||
check-cast v1, Ljava/lang/String;
|
||||
|
||||
const/4 v2, 0x1
|
||||
|
||||
invoke-static {p1, v1, v2}, Lz/t/k;->equals(Ljava/lang/String;Ljava/lang/String;Z)Z
|
||||
|
||||
move-result v1
|
||||
|
||||
if-eqz v1, :cond_0
|
||||
|
||||
iget-object v1, p0, Lokhttp3/Headers$a;->a:Ljava/util/List;
|
||||
|
||||
invoke-interface {v1, v0}, Ljava/util/List;->remove(I)Ljava/lang/Object;
|
||||
|
||||
iget-object v1, p0, Lokhttp3/Headers$a;->a:Ljava/util/List;
|
||||
|
||||
invoke-interface {v1, v0}, Ljava/util/List;->remove(I)Ljava/lang/Object;
|
||||
|
||||
add-int/lit8 v0, v0, -0x2
|
||||
|
||||
:cond_0
|
||||
add-int/lit8 v0, v0, 0x2
|
||||
|
||||
goto :goto_0
|
||||
|
||||
:cond_1
|
||||
return-object p0
|
||||
.end method
|
||||
|
||||
.method public final e(Ljava/lang/String;Ljava/lang/String;)Lokhttp3/Headers$a;
|
||||
.locals 9
|
||||
|
||||
const-string v0, "name"
|
||||
|
||||
invoke-static {p1, v0}, Lz/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
||||
|
||||
const-string v0, "value"
|
||||
|
||||
invoke-static {p2, v0}, Lz/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
||||
|
||||
invoke-interface {p1}, Ljava/lang/CharSequence;->length()I
|
||||
|
||||
move-result v0
|
||||
|
||||
const/4 v1, 0x1
|
||||
|
||||
const/4 v2, 0x0
|
||||
|
||||
if-lez v0, :cond_0
|
||||
|
||||
const/4 v0, 0x1
|
||||
|
||||
goto :goto_0
|
||||
|
||||
:cond_0
|
||||
const/4 v0, 0x0
|
||||
|
||||
:goto_0
|
||||
if-eqz v0, :cond_a
|
||||
|
||||
invoke-virtual {p1}, Ljava/lang/String;->length()I
|
||||
|
||||
move-result v0
|
||||
|
||||
const/4 v3, 0x0
|
||||
|
||||
:goto_1
|
||||
const/4 v4, 0x2
|
||||
|
||||
const/4 v5, 0x3
|
||||
|
||||
const/16 v6, 0x7e
|
||||
|
||||
if-ge v3, v0, :cond_4
|
||||
|
||||
invoke-virtual {p1, v3}, Ljava/lang/String;->charAt(I)C
|
||||
|
||||
move-result v7
|
||||
|
||||
const/16 v8, 0x21
|
||||
|
||||
if-le v8, v7, :cond_1
|
||||
|
||||
goto :goto_2
|
||||
|
||||
:cond_1
|
||||
if-lt v6, v7, :cond_2
|
||||
|
||||
const/4 v6, 0x1
|
||||
|
||||
goto :goto_3
|
||||
|
||||
:cond_2
|
||||
:goto_2
|
||||
const/4 v6, 0x0
|
||||
|
||||
:goto_3
|
||||
if-eqz v6, :cond_3
|
||||
|
||||
add-int/lit8 v3, v3, 0x1
|
||||
|
||||
goto :goto_1
|
||||
|
||||
:cond_3
|
||||
new-array p2, v5, [Ljava/lang/Object;
|
||||
|
||||
invoke-static {v7}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
aput-object v0, p2, v2
|
||||
|
||||
invoke-static {v3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
aput-object v0, p2, v1
|
||||
|
||||
aput-object p1, p2, v4
|
||||
|
||||
const-string p1, "Unexpected char %#04x at %d in header name: %s"
|
||||
|
||||
invoke-static {p1, p2}, Ld0/h0/c;->l(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
|
||||
|
||||
move-result-object p1
|
||||
|
||||
new-instance p2, Ljava/lang/IllegalArgumentException;
|
||||
|
||||
invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
||||
|
||||
move-result-object p1
|
||||
|
||||
invoke-direct {p2, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
||||
|
||||
throw p2
|
||||
|
||||
:cond_4
|
||||
invoke-virtual {p2}, Ljava/lang/String;->length()I
|
||||
|
||||
move-result v0
|
||||
|
||||
const/4 v3, 0x0
|
||||
|
||||
:goto_4
|
||||
if-ge v3, v0, :cond_9
|
||||
|
||||
invoke-virtual {p2, v3}, Ljava/lang/String;->charAt(I)C
|
||||
|
||||
move-result v7
|
||||
|
||||
const/16 v8, 0x9
|
||||
|
||||
if-eq v7, v8, :cond_7
|
||||
|
||||
const/16 v8, 0x20
|
||||
|
||||
if-le v8, v7, :cond_5
|
||||
|
||||
goto :goto_5
|
||||
|
||||
:cond_5
|
||||
if-lt v6, v7, :cond_6
|
||||
|
||||
goto :goto_6
|
||||
|
||||
:cond_6
|
||||
:goto_5
|
||||
const/4 v8, 0x0
|
||||
|
||||
goto :goto_7
|
||||
|
||||
:cond_7
|
||||
:goto_6
|
||||
const/4 v8, 0x1
|
||||
|
||||
:goto_7
|
||||
if-eqz v8, :cond_8
|
||||
|
||||
add-int/lit8 v3, v3, 0x1
|
||||
|
||||
goto :goto_4
|
||||
|
||||
:cond_8
|
||||
const/4 v0, 0x4
|
||||
|
||||
new-array v0, v0, [Ljava/lang/Object;
|
||||
|
||||
invoke-static {v7}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
||||
|
||||
move-result-object v6
|
||||
|
||||
aput-object v6, v0, v2
|
||||
|
||||
invoke-static {v3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
||||
|
||||
move-result-object v2
|
||||
|
||||
aput-object v2, v0, v1
|
||||
|
||||
aput-object p1, v0, v4
|
||||
|
||||
aput-object p2, v0, v5
|
||||
|
||||
const-string p1, "Unexpected char %#04x at %d in %s value: %s"
|
||||
|
||||
invoke-static {p1, v0}, Ld0/h0/c;->l(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
|
||||
|
||||
move-result-object p1
|
||||
|
||||
new-instance p2, Ljava/lang/IllegalArgumentException;
|
||||
|
||||
invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
||||
|
||||
move-result-object p1
|
||||
|
||||
invoke-direct {p2, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
||||
|
||||
throw p2
|
||||
|
||||
:cond_9
|
||||
invoke-virtual {p0, p1}, Lokhttp3/Headers$a;->d(Ljava/lang/String;)Lokhttp3/Headers$a;
|
||||
|
||||
invoke-virtual {p0, p1, p2}, Lokhttp3/Headers$a;->b(Ljava/lang/String;Ljava/lang/String;)Lokhttp3/Headers$a;
|
||||
|
||||
return-object p0
|
||||
|
||||
:cond_a
|
||||
new-instance p1, Ljava/lang/IllegalArgumentException;
|
||||
|
||||
const-string p2, "name is empty"
|
||||
|
||||
invoke-virtual {p2}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
||||
|
||||
move-result-object p2
|
||||
|
||||
invoke-direct {p1, p2}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
||||
|
||||
throw p1
|
||||
.end method
|
414
com.discord/smali_classes2/okhttp3/Headers$b.smali
Normal file
414
com.discord/smali_classes2/okhttp3/Headers$b.smali
Normal file
|
@ -0,0 +1,414 @@
|
|||
.class public final Lokhttp3/Headers$b;
|
||||
.super Ljava/lang/Object;
|
||||
.source "Headers.kt"
|
||||
|
||||
|
||||
# annotations
|
||||
.annotation system Ldalvik/annotation/EnclosingClass;
|
||||
value = Lokhttp3/Headers;
|
||||
.end annotation
|
||||
|
||||
.annotation system Ldalvik/annotation/InnerClass;
|
||||
accessFlags = 0x19
|
||||
name = "b"
|
||||
.end annotation
|
||||
|
||||
|
||||
# direct methods
|
||||
.method public constructor <init>(Lkotlin/jvm/internal/DefaultConstructorMarker;)V
|
||||
.locals 0
|
||||
|
||||
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
|
||||
# virtual methods
|
||||
.method public final a(Ljava/lang/String;)V
|
||||
.locals 7
|
||||
|
||||
invoke-interface {p1}, Ljava/lang/CharSequence;->length()I
|
||||
|
||||
move-result v0
|
||||
|
||||
const/4 v1, 0x1
|
||||
|
||||
const/4 v2, 0x0
|
||||
|
||||
if-lez v0, :cond_0
|
||||
|
||||
const/4 v0, 0x1
|
||||
|
||||
goto :goto_0
|
||||
|
||||
:cond_0
|
||||
const/4 v0, 0x0
|
||||
|
||||
:goto_0
|
||||
if-eqz v0, :cond_5
|
||||
|
||||
invoke-virtual {p1}, Ljava/lang/String;->length()I
|
||||
|
||||
move-result v0
|
||||
|
||||
const/4 v3, 0x0
|
||||
|
||||
:goto_1
|
||||
if-ge v3, v0, :cond_4
|
||||
|
||||
invoke-virtual {p1, v3}, Ljava/lang/String;->charAt(I)C
|
||||
|
||||
move-result v4
|
||||
|
||||
const/16 v5, 0x7e
|
||||
|
||||
const/16 v6, 0x21
|
||||
|
||||
if-le v6, v4, :cond_1
|
||||
|
||||
goto :goto_2
|
||||
|
||||
:cond_1
|
||||
if-lt v5, v4, :cond_2
|
||||
|
||||
const/4 v5, 0x1
|
||||
|
||||
goto :goto_3
|
||||
|
||||
:cond_2
|
||||
:goto_2
|
||||
const/4 v5, 0x0
|
||||
|
||||
:goto_3
|
||||
if-eqz v5, :cond_3
|
||||
|
||||
add-int/lit8 v3, v3, 0x1
|
||||
|
||||
goto :goto_1
|
||||
|
||||
:cond_3
|
||||
const/4 v0, 0x3
|
||||
|
||||
new-array v0, v0, [Ljava/lang/Object;
|
||||
|
||||
invoke-static {v4}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
||||
|
||||
move-result-object v4
|
||||
|
||||
aput-object v4, v0, v2
|
||||
|
||||
invoke-static {v3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
||||
|
||||
move-result-object v2
|
||||
|
||||
aput-object v2, v0, v1
|
||||
|
||||
const/4 v1, 0x2
|
||||
|
||||
aput-object p1, v0, v1
|
||||
|
||||
const-string p1, "Unexpected char %#04x at %d in header name: %s"
|
||||
|
||||
invoke-static {p1, v0}, Ld0/h0/c;->l(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
|
||||
|
||||
move-result-object p1
|
||||
|
||||
new-instance v0, Ljava/lang/IllegalArgumentException;
|
||||
|
||||
invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
||||
|
||||
move-result-object p1
|
||||
|
||||
invoke-direct {v0, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
||||
|
||||
throw v0
|
||||
|
||||
:cond_4
|
||||
return-void
|
||||
|
||||
:cond_5
|
||||
new-instance p1, Ljava/lang/IllegalArgumentException;
|
||||
|
||||
const-string v0, "name is empty"
|
||||
|
||||
invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
invoke-direct {p1, v0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
||||
|
||||
throw p1
|
||||
.end method
|
||||
|
||||
.method public final b(Ljava/lang/String;Ljava/lang/String;)V
|
||||
.locals 7
|
||||
|
||||
invoke-virtual {p1}, Ljava/lang/String;->length()I
|
||||
|
||||
move-result v0
|
||||
|
||||
const/4 v1, 0x0
|
||||
|
||||
const/4 v2, 0x0
|
||||
|
||||
:goto_0
|
||||
if-ge v2, v0, :cond_4
|
||||
|
||||
invoke-virtual {p1, v2}, Ljava/lang/String;->charAt(I)C
|
||||
|
||||
move-result v3
|
||||
|
||||
const/16 v4, 0x9
|
||||
|
||||
const/4 v5, 0x1
|
||||
|
||||
if-eq v3, v4, :cond_2
|
||||
|
||||
const/16 v4, 0x7e
|
||||
|
||||
const/16 v6, 0x20
|
||||
|
||||
if-le v6, v3, :cond_0
|
||||
|
||||
goto :goto_1
|
||||
|
||||
:cond_0
|
||||
if-lt v4, v3, :cond_1
|
||||
|
||||
goto :goto_2
|
||||
|
||||
:cond_1
|
||||
:goto_1
|
||||
const/4 v4, 0x0
|
||||
|
||||
goto :goto_3
|
||||
|
||||
:cond_2
|
||||
:goto_2
|
||||
const/4 v4, 0x1
|
||||
|
||||
:goto_3
|
||||
if-eqz v4, :cond_3
|
||||
|
||||
add-int/lit8 v2, v2, 0x1
|
||||
|
||||
goto :goto_0
|
||||
|
||||
:cond_3
|
||||
const/4 v0, 0x4
|
||||
|
||||
new-array v0, v0, [Ljava/lang/Object;
|
||||
|
||||
invoke-static {v3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
||||
|
||||
move-result-object v3
|
||||
|
||||
aput-object v3, v0, v1
|
||||
|
||||
invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
||||
|
||||
move-result-object v1
|
||||
|
||||
aput-object v1, v0, v5
|
||||
|
||||
const/4 v1, 0x2
|
||||
|
||||
aput-object p2, v0, v1
|
||||
|
||||
const/4 p2, 0x3
|
||||
|
||||
aput-object p1, v0, p2
|
||||
|
||||
const-string p1, "Unexpected char %#04x at %d in %s value: %s"
|
||||
|
||||
invoke-static {p1, v0}, Ld0/h0/c;->l(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
|
||||
|
||||
move-result-object p1
|
||||
|
||||
new-instance p2, Ljava/lang/IllegalArgumentException;
|
||||
|
||||
invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
||||
|
||||
move-result-object p1
|
||||
|
||||
invoke-direct {p2, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
||||
|
||||
throw p2
|
||||
|
||||
:cond_4
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public final varargs c([Ljava/lang/String;)Lokhttp3/Headers;
|
||||
.locals 6
|
||||
|
||||
const-string v0, "namesAndValues"
|
||||
|
||||
invoke-static {p1, v0}, Lz/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
||||
|
||||
array-length v0, p1
|
||||
|
||||
const/4 v1, 0x2
|
||||
|
||||
rem-int/2addr v0, v1
|
||||
|
||||
const/4 v2, 0x1
|
||||
|
||||
const/4 v3, 0x0
|
||||
|
||||
if-nez v0, :cond_0
|
||||
|
||||
const/4 v0, 0x1
|
||||
|
||||
goto :goto_0
|
||||
|
||||
:cond_0
|
||||
const/4 v0, 0x0
|
||||
|
||||
:goto_0
|
||||
if-eqz v0, :cond_8
|
||||
|
||||
invoke-virtual {p1}, Ljava/lang/Object;->clone()Ljava/lang/Object;
|
||||
|
||||
move-result-object p1
|
||||
|
||||
if-eqz p1, :cond_7
|
||||
|
||||
check-cast p1, [Ljava/lang/String;
|
||||
|
||||
array-length v0, p1
|
||||
|
||||
const/4 v4, 0x0
|
||||
|
||||
:goto_1
|
||||
if-ge v4, v0, :cond_4
|
||||
|
||||
aget-object v5, p1, v4
|
||||
|
||||
if-eqz v5, :cond_1
|
||||
|
||||
const/4 v5, 0x1
|
||||
|
||||
goto :goto_2
|
||||
|
||||
:cond_1
|
||||
const/4 v5, 0x0
|
||||
|
||||
:goto_2
|
||||
if-eqz v5, :cond_3
|
||||
|
||||
aget-object v5, p1, v4
|
||||
|
||||
if-eqz v5, :cond_2
|
||||
|
||||
invoke-static {v5}, Lz/t/p;->trim(Ljava/lang/CharSequence;)Ljava/lang/CharSequence;
|
||||
|
||||
move-result-object v5
|
||||
|
||||
invoke-virtual {v5}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
||||
|
||||
move-result-object v5
|
||||
|
||||
aput-object v5, p1, v4
|
||||
|
||||
add-int/lit8 v4, v4, 0x1
|
||||
|
||||
goto :goto_1
|
||||
|
||||
:cond_2
|
||||
new-instance p1, Lkotlin/TypeCastException;
|
||||
|
||||
const-string v0, "null cannot be cast to non-null type kotlin.CharSequence"
|
||||
|
||||
invoke-direct {p1, v0}, Lkotlin/TypeCastException;-><init>(Ljava/lang/String;)V
|
||||
|
||||
throw p1
|
||||
|
||||
:cond_3
|
||||
new-instance p1, Ljava/lang/IllegalArgumentException;
|
||||
|
||||
const-string v0, "Headers cannot be null"
|
||||
|
||||
invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
invoke-direct {p1, v0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
||||
|
||||
throw p1
|
||||
|
||||
:cond_4
|
||||
array-length v0, p1
|
||||
|
||||
invoke-static {v3, v0}, Lz/q/e;->until(II)Lkotlin/ranges/IntRange;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
invoke-static {v0, v1}, Lz/q/e;->step(Lkotlin/ranges/IntProgression;I)Lkotlin/ranges/IntProgression;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
iget v1, v0, Lkotlin/ranges/IntProgression;->d:I
|
||||
|
||||
iget v2, v0, Lkotlin/ranges/IntProgression;->e:I
|
||||
|
||||
iget v0, v0, Lkotlin/ranges/IntProgression;->f:I
|
||||
|
||||
if-ltz v0, :cond_5
|
||||
|
||||
if-gt v1, v2, :cond_6
|
||||
|
||||
goto :goto_3
|
||||
|
||||
:cond_5
|
||||
if-lt v1, v2, :cond_6
|
||||
|
||||
:goto_3
|
||||
aget-object v3, p1, v1
|
||||
|
||||
add-int/lit8 v4, v1, 0x1
|
||||
|
||||
aget-object v4, p1, v4
|
||||
|
||||
invoke-virtual {p0, v3}, Lokhttp3/Headers$b;->a(Ljava/lang/String;)V
|
||||
|
||||
invoke-virtual {p0, v4, v3}, Lokhttp3/Headers$b;->b(Ljava/lang/String;Ljava/lang/String;)V
|
||||
|
||||
if-eq v1, v2, :cond_6
|
||||
|
||||
add-int/2addr v1, v0
|
||||
|
||||
goto :goto_3
|
||||
|
||||
:cond_6
|
||||
new-instance v0, Lokhttp3/Headers;
|
||||
|
||||
const/4 v1, 0x0
|
||||
|
||||
invoke-direct {v0, p1, v1}, Lokhttp3/Headers;-><init>([Ljava/lang/String;Lkotlin/jvm/internal/DefaultConstructorMarker;)V
|
||||
|
||||
return-object v0
|
||||
|
||||
:cond_7
|
||||
new-instance p1, Lkotlin/TypeCastException;
|
||||
|
||||
const-string v0, "null cannot be cast to non-null type kotlin.Array<kotlin.String>"
|
||||
|
||||
invoke-direct {p1, v0}, Lkotlin/TypeCastException;-><init>(Ljava/lang/String;)V
|
||||
|
||||
throw p1
|
||||
|
||||
:cond_8
|
||||
new-instance p1, Ljava/lang/IllegalArgumentException;
|
||||
|
||||
const-string v0, "Expected alternating header names and values"
|
||||
|
||||
invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
invoke-direct {p1, v0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
||||
|
||||
throw p1
|
||||
.end method
|
335
com.discord/smali_classes2/okhttp3/Headers.smali
Normal file
335
com.discord/smali_classes2/okhttp3/Headers.smali
Normal file
|
@ -0,0 +1,335 @@
|
|||
.class public final Lokhttp3/Headers;
|
||||
.super Ljava/lang/Object;
|
||||
.source "Headers.kt"
|
||||
|
||||
# interfaces
|
||||
.implements Ljava/lang/Iterable;
|
||||
.implements Lz/n/c/x/a;
|
||||
|
||||
|
||||
# annotations
|
||||
.annotation system Ldalvik/annotation/MemberClasses;
|
||||
value = {
|
||||
Lokhttp3/Headers$a;,
|
||||
Lokhttp3/Headers$b;
|
||||
}
|
||||
.end annotation
|
||||
|
||||
.annotation system Ldalvik/annotation/Signature;
|
||||
value = {
|
||||
"Ljava/lang/Object;",
|
||||
"Ljava/lang/Iterable<",
|
||||
"Lkotlin/Pair<",
|
||||
"+",
|
||||
"Ljava/lang/String;",
|
||||
"+",
|
||||
"Ljava/lang/String;",
|
||||
">;>;",
|
||||
"Lz/n/c/x/a;"
|
||||
}
|
||||
.end annotation
|
||||
|
||||
|
||||
# static fields
|
||||
.field public static final e:Lokhttp3/Headers$b;
|
||||
|
||||
|
||||
# instance fields
|
||||
.field public final d:[Ljava/lang/String;
|
||||
|
||||
|
||||
# direct methods
|
||||
.method public static constructor <clinit>()V
|
||||
.locals 2
|
||||
|
||||
new-instance v0, Lokhttp3/Headers$b;
|
||||
|
||||
const/4 v1, 0x0
|
||||
|
||||
invoke-direct {v0, v1}, Lokhttp3/Headers$b;-><init>(Lkotlin/jvm/internal/DefaultConstructorMarker;)V
|
||||
|
||||
sput-object v0, Lokhttp3/Headers;->e:Lokhttp3/Headers$b;
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public constructor <init>([Ljava/lang/String;Lkotlin/jvm/internal/DefaultConstructorMarker;)V
|
||||
.locals 0
|
||||
|
||||
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||||
|
||||
iput-object p1, p0, Lokhttp3/Headers;->d:[Ljava/lang/String;
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
|
||||
# virtual methods
|
||||
.method public final c(Ljava/lang/String;)Ljava/lang/String;
|
||||
.locals 7
|
||||
|
||||
const-string v0, "name"
|
||||
|
||||
invoke-static {p1, v0}, Lz/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
||||
|
||||
iget-object v0, p0, Lokhttp3/Headers;->d:[Ljava/lang/String;
|
||||
|
||||
const/4 v1, 0x0
|
||||
|
||||
array-length v2, v0
|
||||
|
||||
const/4 v3, 0x2
|
||||
|
||||
sub-int/2addr v2, v3
|
||||
|
||||
const/4 v4, 0x0
|
||||
|
||||
invoke-static {v2, v4}, Lz/q/e;->downTo(II)Lkotlin/ranges/IntProgression;
|
||||
|
||||
move-result-object v2
|
||||
|
||||
invoke-static {v2, v3}, Lz/q/e;->step(Lkotlin/ranges/IntProgression;I)Lkotlin/ranges/IntProgression;
|
||||
|
||||
move-result-object v2
|
||||
|
||||
iget v3, v2, Lkotlin/ranges/IntProgression;->d:I
|
||||
|
||||
iget v4, v2, Lkotlin/ranges/IntProgression;->e:I
|
||||
|
||||
iget v2, v2, Lkotlin/ranges/IntProgression;->f:I
|
||||
|
||||
if-ltz v2, :cond_0
|
||||
|
||||
if-gt v3, v4, :cond_2
|
||||
|
||||
goto :goto_0
|
||||
|
||||
:cond_0
|
||||
if-lt v3, v4, :cond_2
|
||||
|
||||
:goto_0
|
||||
aget-object v5, v0, v3
|
||||
|
||||
const/4 v6, 0x1
|
||||
|
||||
invoke-static {p1, v5, v6}, Lz/t/k;->equals(Ljava/lang/String;Ljava/lang/String;Z)Z
|
||||
|
||||
move-result v5
|
||||
|
||||
if-eqz v5, :cond_1
|
||||
|
||||
add-int/2addr v3, v6
|
||||
|
||||
aget-object v1, v0, v3
|
||||
|
||||
goto :goto_1
|
||||
|
||||
:cond_1
|
||||
if-eq v3, v4, :cond_2
|
||||
|
||||
add-int/2addr v3, v2
|
||||
|
||||
goto :goto_0
|
||||
|
||||
:cond_2
|
||||
:goto_1
|
||||
return-object v1
|
||||
.end method
|
||||
|
||||
.method public final d(I)Ljava/lang/String;
|
||||
.locals 1
|
||||
|
||||
iget-object v0, p0, Lokhttp3/Headers;->d:[Ljava/lang/String;
|
||||
|
||||
mul-int/lit8 p1, p1, 0x2
|
||||
|
||||
aget-object p1, v0, p1
|
||||
|
||||
return-object p1
|
||||
.end method
|
||||
|
||||
.method public final e()Lokhttp3/Headers$a;
|
||||
.locals 3
|
||||
|
||||
new-instance v0, Lokhttp3/Headers$a;
|
||||
|
||||
invoke-direct {v0}, Lokhttp3/Headers$a;-><init>()V
|
||||
|
||||
iget-object v1, v0, Lokhttp3/Headers$a;->a:Ljava/util/List;
|
||||
|
||||
iget-object v2, p0, Lokhttp3/Headers;->d:[Ljava/lang/String;
|
||||
|
||||
invoke-static {v1, v2}, Lf/h/a/f/f/n/f;->addAll(Ljava/util/Collection;[Ljava/lang/Object;)Z
|
||||
|
||||
return-object v0
|
||||
.end method
|
||||
|
||||
.method public equals(Ljava/lang/Object;)Z
|
||||
.locals 1
|
||||
|
||||
instance-of v0, p1, Lokhttp3/Headers;
|
||||
|
||||
if-eqz v0, :cond_0
|
||||
|
||||
iget-object v0, p0, Lokhttp3/Headers;->d:[Ljava/lang/String;
|
||||
|
||||
check-cast p1, Lokhttp3/Headers;
|
||||
|
||||
iget-object p1, p1, Lokhttp3/Headers;->d:[Ljava/lang/String;
|
||||
|
||||
invoke-static {v0, p1}, Ljava/util/Arrays;->equals([Ljava/lang/Object;[Ljava/lang/Object;)Z
|
||||
|
||||
move-result p1
|
||||
|
||||
if-eqz p1, :cond_0
|
||||
|
||||
const/4 p1, 0x1
|
||||
|
||||
goto :goto_0
|
||||
|
||||
:cond_0
|
||||
const/4 p1, 0x0
|
||||
|
||||
:goto_0
|
||||
return p1
|
||||
.end method
|
||||
|
||||
.method public final g(I)Ljava/lang/String;
|
||||
.locals 1
|
||||
|
||||
iget-object v0, p0, Lokhttp3/Headers;->d:[Ljava/lang/String;
|
||||
|
||||
mul-int/lit8 p1, p1, 0x2
|
||||
|
||||
add-int/lit8 p1, p1, 0x1
|
||||
|
||||
aget-object p1, v0, p1
|
||||
|
||||
return-object p1
|
||||
.end method
|
||||
|
||||
.method public hashCode()I
|
||||
.locals 1
|
||||
|
||||
iget-object v0, p0, Lokhttp3/Headers;->d:[Ljava/lang/String;
|
||||
|
||||
invoke-static {v0}, Ljava/util/Arrays;->hashCode([Ljava/lang/Object;)I
|
||||
|
||||
move-result v0
|
||||
|
||||
return v0
|
||||
.end method
|
||||
|
||||
.method public iterator()Ljava/util/Iterator;
|
||||
.locals 6
|
||||
.annotation system Ldalvik/annotation/Signature;
|
||||
value = {
|
||||
"()",
|
||||
"Ljava/util/Iterator<",
|
||||
"Lkotlin/Pair<",
|
||||
"Ljava/lang/String;",
|
||||
"Ljava/lang/String;",
|
||||
">;>;"
|
||||
}
|
||||
.end annotation
|
||||
|
||||
invoke-virtual {p0}, Lokhttp3/Headers;->size()I
|
||||
|
||||
move-result v0
|
||||
|
||||
new-array v1, v0, [Lkotlin/Pair;
|
||||
|
||||
const/4 v2, 0x0
|
||||
|
||||
:goto_0
|
||||
if-ge v2, v0, :cond_0
|
||||
|
||||
invoke-virtual {p0, v2}, Lokhttp3/Headers;->d(I)Ljava/lang/String;
|
||||
|
||||
move-result-object v3
|
||||
|
||||
invoke-virtual {p0, v2}, Lokhttp3/Headers;->g(I)Ljava/lang/String;
|
||||
|
||||
move-result-object v4
|
||||
|
||||
new-instance v5, Lkotlin/Pair;
|
||||
|
||||
invoke-direct {v5, v3, v4}, Lkotlin/Pair;-><init>(Ljava/lang/Object;Ljava/lang/Object;)V
|
||||
|
||||
aput-object v5, v1, v2
|
||||
|
||||
add-int/lit8 v2, v2, 0x1
|
||||
|
||||
goto :goto_0
|
||||
|
||||
:cond_0
|
||||
invoke-static {v1}, Lz/i/s;->iterator([Ljava/lang/Object;)Ljava/util/Iterator;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
return-object v0
|
||||
.end method
|
||||
|
||||
.method public final size()I
|
||||
.locals 1
|
||||
|
||||
iget-object v0, p0, Lokhttp3/Headers;->d:[Ljava/lang/String;
|
||||
|
||||
array-length v0, v0
|
||||
|
||||
div-int/lit8 v0, v0, 0x2
|
||||
|
||||
return v0
|
||||
.end method
|
||||
|
||||
.method public toString()Ljava/lang/String;
|
||||
.locals 4
|
||||
|
||||
new-instance v0, Ljava/lang/StringBuilder;
|
||||
|
||||
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
|
||||
|
||||
invoke-virtual {p0}, Lokhttp3/Headers;->size()I
|
||||
|
||||
move-result v1
|
||||
|
||||
const/4 v2, 0x0
|
||||
|
||||
:goto_0
|
||||
if-ge v2, v1, :cond_0
|
||||
|
||||
invoke-virtual {p0, v2}, Lokhttp3/Headers;->d(I)Ljava/lang/String;
|
||||
|
||||
move-result-object v3
|
||||
|
||||
invoke-virtual {v0, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||||
|
||||
const-string v3, ": "
|
||||
|
||||
invoke-virtual {v0, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||||
|
||||
invoke-virtual {p0, v2}, Lokhttp3/Headers;->g(I)Ljava/lang/String;
|
||||
|
||||
move-result-object v3
|
||||
|
||||
invoke-virtual {v0, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||||
|
||||
const-string v3, "\n"
|
||||
|
||||
invoke-virtual {v0, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||||
|
||||
add-int/lit8 v2, v2, 0x1
|
||||
|
||||
goto :goto_0
|
||||
|
||||
:cond_0
|
||||
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
const-string v1, "StringBuilder().apply(builderAction).toString()"
|
||||
|
||||
invoke-static {v0, v1}, Lz/n/c/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
||||
|
||||
return-object v0
|
||||
.end method
|
33
com.discord/smali_classes2/okhttp3/Interceptor$Chain.smali
Normal file
33
com.discord/smali_classes2/okhttp3/Interceptor$Chain.smali
Normal file
|
@ -0,0 +1,33 @@
|
|||
.class public interface abstract Lokhttp3/Interceptor$Chain;
|
||||
.super Ljava/lang/Object;
|
||||
.source "Interceptor.kt"
|
||||
|
||||
|
||||
# annotations
|
||||
.annotation system Ldalvik/annotation/EnclosingClass;
|
||||
value = Lokhttp3/Interceptor;
|
||||
.end annotation
|
||||
|
||||
.annotation system Ldalvik/annotation/InnerClass;
|
||||
accessFlags = 0x609
|
||||
name = "Chain"
|
||||
.end annotation
|
||||
|
||||
|
||||
# virtual methods
|
||||
.method public abstract a(Ld0/b0;)Lokhttp3/Response;
|
||||
.annotation system Ldalvik/annotation/Throws;
|
||||
value = {
|
||||
Ljava/io/IOException;
|
||||
}
|
||||
.end annotation
|
||||
.end method
|
||||
|
||||
.method public abstract b()Ld0/l;
|
||||
.end method
|
||||
|
||||
.method public abstract call()Ld0/f;
|
||||
.end method
|
||||
|
||||
.method public abstract g()Ld0/b0;
|
||||
.end method
|
40
com.discord/smali_classes2/okhttp3/Interceptor$a.smali
Normal file
40
com.discord/smali_classes2/okhttp3/Interceptor$a.smali
Normal file
|
@ -0,0 +1,40 @@
|
|||
.class public final Lokhttp3/Interceptor$a;
|
||||
.super Ljava/lang/Object;
|
||||
.source "Interceptor.kt"
|
||||
|
||||
|
||||
# annotations
|
||||
.annotation system Ldalvik/annotation/EnclosingClass;
|
||||
value = Lokhttp3/Interceptor;
|
||||
.end annotation
|
||||
|
||||
.annotation system Ldalvik/annotation/InnerClass;
|
||||
accessFlags = 0x19
|
||||
name = "a"
|
||||
.end annotation
|
||||
|
||||
|
||||
# static fields
|
||||
.field public static final synthetic a:Lokhttp3/Interceptor$a;
|
||||
|
||||
|
||||
# direct methods
|
||||
.method public static constructor <clinit>()V
|
||||
.locals 1
|
||||
|
||||
new-instance v0, Lokhttp3/Interceptor$a;
|
||||
|
||||
invoke-direct {v0}, Lokhttp3/Interceptor$a;-><init>()V
|
||||
|
||||
sput-object v0, Lokhttp3/Interceptor$a;->a:Lokhttp3/Interceptor$a;
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public constructor <init>()V
|
||||
.locals 0
|
||||
|
||||
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||||
|
||||
return-void
|
||||
.end method
|
38
com.discord/smali_classes2/okhttp3/Interceptor.smali
Normal file
38
com.discord/smali_classes2/okhttp3/Interceptor.smali
Normal file
|
@ -0,0 +1,38 @@
|
|||
.class public interface abstract Lokhttp3/Interceptor;
|
||||
.super Ljava/lang/Object;
|
||||
.source "Interceptor.kt"
|
||||
|
||||
|
||||
# annotations
|
||||
.annotation system Ldalvik/annotation/MemberClasses;
|
||||
value = {
|
||||
Lokhttp3/Interceptor$Chain;,
|
||||
Lokhttp3/Interceptor$a;
|
||||
}
|
||||
.end annotation
|
||||
|
||||
|
||||
# static fields
|
||||
.field public static final a:Lokhttp3/Interceptor$a;
|
||||
|
||||
|
||||
# direct methods
|
||||
.method public static constructor <clinit>()V
|
||||
.locals 1
|
||||
|
||||
sget-object v0, Lokhttp3/Interceptor$a;->a:Lokhttp3/Interceptor$a;
|
||||
|
||||
sput-object v0, Lokhttp3/Interceptor;->a:Lokhttp3/Interceptor$a;
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
|
||||
# virtual methods
|
||||
.method public abstract intercept(Lokhttp3/Interceptor$Chain;)Lokhttp3/Response;
|
||||
.annotation system Ldalvik/annotation/Throws;
|
||||
value = {
|
||||
Ljava/io/IOException;
|
||||
}
|
||||
.end annotation
|
||||
.end method
|
314
com.discord/smali_classes2/okhttp3/MediaType$a.smali
Normal file
314
com.discord/smali_classes2/okhttp3/MediaType$a.smali
Normal file
|
@ -0,0 +1,314 @@
|
|||
.class public final Lokhttp3/MediaType$a;
|
||||
.super Ljava/lang/Object;
|
||||
.source "MediaType.kt"
|
||||
|
||||
|
||||
# annotations
|
||||
.annotation system Ldalvik/annotation/EnclosingClass;
|
||||
value = Lokhttp3/MediaType;
|
||||
.end annotation
|
||||
|
||||
.annotation system Ldalvik/annotation/InnerClass;
|
||||
accessFlags = 0x19
|
||||
name = "a"
|
||||
.end annotation
|
||||
|
||||
|
||||
# direct methods
|
||||
.method public static final a(Ljava/lang/String;)Lokhttp3/MediaType;
|
||||
.locals 12
|
||||
|
||||
const-string v0, "$this$toMediaType"
|
||||
|
||||
invoke-static {p0, v0}, Lz/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
||||
|
||||
sget-object v0, Lokhttp3/MediaType;->e:Ljava/util/regex/Pattern;
|
||||
|
||||
invoke-virtual {v0, p0}, Ljava/util/regex/Pattern;->matcher(Ljava/lang/CharSequence;)Ljava/util/regex/Matcher;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
invoke-virtual {v0}, Ljava/util/regex/Matcher;->lookingAt()Z
|
||||
|
||||
move-result v1
|
||||
|
||||
const/16 v2, 0x22
|
||||
|
||||
if-eqz v1, :cond_6
|
||||
|
||||
const/4 v1, 0x1
|
||||
|
||||
invoke-virtual {v0, v1}, Ljava/util/regex/Matcher;->group(I)Ljava/lang/String;
|
||||
|
||||
move-result-object v3
|
||||
|
||||
const-string v4, "typeSubtype.group(1)"
|
||||
|
||||
invoke-static {v3, v4}, Lz/n/c/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
||||
|
||||
sget-object v4, Ljava/util/Locale;->US:Ljava/util/Locale;
|
||||
|
||||
const-string v5, "Locale.US"
|
||||
|
||||
invoke-static {v4, v5}, Lz/n/c/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
||||
|
||||
invoke-virtual {v3, v4}, Ljava/lang/String;->toLowerCase(Ljava/util/Locale;)Ljava/lang/String;
|
||||
|
||||
move-result-object v8
|
||||
|
||||
const-string v3, "(this as java.lang.String).toLowerCase(locale)"
|
||||
|
||||
invoke-static {v8, v3}, Lz/n/c/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
||||
|
||||
const/4 v4, 0x2
|
||||
|
||||
invoke-virtual {v0, v4}, Ljava/util/regex/Matcher;->group(I)Ljava/lang/String;
|
||||
|
||||
move-result-object v6
|
||||
|
||||
const-string v7, "typeSubtype.group(2)"
|
||||
|
||||
invoke-static {v6, v7}, Lz/n/c/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
||||
|
||||
sget-object v7, Ljava/util/Locale;->US:Ljava/util/Locale;
|
||||
|
||||
invoke-static {v7, v5}, Lz/n/c/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
||||
|
||||
invoke-virtual {v6, v7}, Ljava/lang/String;->toLowerCase(Ljava/util/Locale;)Ljava/lang/String;
|
||||
|
||||
move-result-object v9
|
||||
|
||||
invoke-static {v9, v3}, Lz/n/c/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
||||
|
||||
new-instance v3, Ljava/util/ArrayList;
|
||||
|
||||
invoke-direct {v3}, Ljava/util/ArrayList;-><init>()V
|
||||
|
||||
sget-object v5, Lokhttp3/MediaType;->f:Ljava/util/regex/Pattern;
|
||||
|
||||
invoke-virtual {v5, p0}, Ljava/util/regex/Pattern;->matcher(Ljava/lang/CharSequence;)Ljava/util/regex/Matcher;
|
||||
|
||||
move-result-object v5
|
||||
|
||||
invoke-virtual {v0}, Ljava/util/regex/Matcher;->end()I
|
||||
|
||||
move-result v0
|
||||
|
||||
:goto_0
|
||||
invoke-virtual {p0}, Ljava/lang/String;->length()I
|
||||
|
||||
move-result v6
|
||||
|
||||
const/4 v7, 0x0
|
||||
|
||||
if-ge v0, v6, :cond_4
|
||||
|
||||
invoke-virtual {p0}, Ljava/lang/String;->length()I
|
||||
|
||||
move-result v6
|
||||
|
||||
invoke-virtual {v5, v0, v6}, Ljava/util/regex/Matcher;->region(II)Ljava/util/regex/Matcher;
|
||||
|
||||
invoke-virtual {v5}, Ljava/util/regex/Matcher;->lookingAt()Z
|
||||
|
||||
move-result v6
|
||||
|
||||
if-eqz v6, :cond_3
|
||||
|
||||
invoke-virtual {v5, v1}, Ljava/util/regex/Matcher;->group(I)Ljava/lang/String;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
if-nez v0, :cond_0
|
||||
|
||||
invoke-virtual {v5}, Ljava/util/regex/Matcher;->end()I
|
||||
|
||||
move-result v0
|
||||
|
||||
goto :goto_0
|
||||
|
||||
:cond_0
|
||||
invoke-virtual {v5, v4}, Ljava/util/regex/Matcher;->group(I)Ljava/lang/String;
|
||||
|
||||
move-result-object v6
|
||||
|
||||
if-nez v6, :cond_1
|
||||
|
||||
const/4 v6, 0x3
|
||||
|
||||
invoke-virtual {v5, v6}, Ljava/util/regex/Matcher;->group(I)Ljava/lang/String;
|
||||
|
||||
move-result-object v6
|
||||
|
||||
goto :goto_1
|
||||
|
||||
:cond_1
|
||||
const-string v10, "\'"
|
||||
|
||||
invoke-static {v6, v10, v7, v4}, Lz/t/k;->startsWith$default(Ljava/lang/String;Ljava/lang/String;ZI)Z
|
||||
|
||||
move-result v11
|
||||
|
||||
if-eqz v11, :cond_2
|
||||
|
||||
invoke-static {v6, v10, v7, v4}, Lz/t/k;->endsWith$default(Ljava/lang/String;Ljava/lang/String;ZI)Z
|
||||
|
||||
move-result v7
|
||||
|
||||
if-eqz v7, :cond_2
|
||||
|
||||
invoke-virtual {v6}, Ljava/lang/String;->length()I
|
||||
|
||||
move-result v7
|
||||
|
||||
if-le v7, v4, :cond_2
|
||||
|
||||
invoke-virtual {v6}, Ljava/lang/String;->length()I
|
||||
|
||||
move-result v7
|
||||
|
||||
sub-int/2addr v7, v1
|
||||
|
||||
invoke-virtual {v6, v1, v7}, Ljava/lang/String;->substring(II)Ljava/lang/String;
|
||||
|
||||
move-result-object v6
|
||||
|
||||
const-string v7, "(this as java.lang.Strin\u2026ing(startIndex, endIndex)"
|
||||
|
||||
invoke-static {v6, v7}, Lz/n/c/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
||||
|
||||
:cond_2
|
||||
:goto_1
|
||||
invoke-interface {v3, v0}, Ljava/util/Collection;->add(Ljava/lang/Object;)Z
|
||||
|
||||
invoke-interface {v3, v6}, Ljava/util/Collection;->add(Ljava/lang/Object;)Z
|
||||
|
||||
invoke-virtual {v5}, Ljava/util/regex/Matcher;->end()I
|
||||
|
||||
move-result v0
|
||||
|
||||
goto :goto_0
|
||||
|
||||
:cond_3
|
||||
const-string v1, "Parameter is not formatted correctly: \""
|
||||
|
||||
invoke-static {v1}, Lf/e/c/a/a;->E(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||||
|
||||
move-result-object v1
|
||||
|
||||
invoke-virtual {p0, v0}, Ljava/lang/String;->substring(I)Ljava/lang/String;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
const-string v3, "(this as java.lang.String).substring(startIndex)"
|
||||
|
||||
invoke-static {v0, v3}, Lz/n/c/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
||||
|
||||
invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||||
|
||||
const-string v0, "\" for: \""
|
||||
|
||||
invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||||
|
||||
invoke-virtual {v1, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||||
|
||||
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
|
||||
|
||||
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
||||
|
||||
move-result-object p0
|
||||
|
||||
new-instance v0, Ljava/lang/IllegalArgumentException;
|
||||
|
||||
invoke-virtual {p0}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
||||
|
||||
move-result-object p0
|
||||
|
||||
invoke-direct {v0, p0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
||||
|
||||
throw v0
|
||||
|
||||
:cond_4
|
||||
new-array v0, v7, [Ljava/lang/String;
|
||||
|
||||
invoke-interface {v3, v0}, Ljava/util/Collection;->toArray([Ljava/lang/Object;)[Ljava/lang/Object;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
if-eqz v0, :cond_5
|
||||
|
||||
move-object v10, v0
|
||||
|
||||
check-cast v10, [Ljava/lang/String;
|
||||
|
||||
const/4 v11, 0x0
|
||||
|
||||
new-instance v0, Lokhttp3/MediaType;
|
||||
|
||||
move-object v6, v0
|
||||
|
||||
move-object v7, p0
|
||||
|
||||
invoke-direct/range {v6 .. v11}, Lokhttp3/MediaType;-><init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;Lkotlin/jvm/internal/DefaultConstructorMarker;)V
|
||||
|
||||
return-object v0
|
||||
|
||||
:cond_5
|
||||
new-instance p0, Lkotlin/TypeCastException;
|
||||
|
||||
const-string v0, "null cannot be cast to non-null type kotlin.Array<T>"
|
||||
|
||||
invoke-direct {p0, v0}, Lkotlin/TypeCastException;-><init>(Ljava/lang/String;)V
|
||||
|
||||
throw p0
|
||||
|
||||
:cond_6
|
||||
new-instance v0, Ljava/lang/StringBuilder;
|
||||
|
||||
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
|
||||
|
||||
const-string v1, "No subtype found for: \""
|
||||
|
||||
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||||
|
||||
invoke-virtual {v0, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||||
|
||||
invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
|
||||
|
||||
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
||||
|
||||
move-result-object p0
|
||||
|
||||
new-instance v0, Ljava/lang/IllegalArgumentException;
|
||||
|
||||
invoke-virtual {p0}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
||||
|
||||
move-result-object p0
|
||||
|
||||
invoke-direct {v0, p0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
||||
|
||||
throw v0
|
||||
.end method
|
||||
|
||||
.method public static final b(Ljava/lang/String;)Lokhttp3/MediaType;
|
||||
.locals 1
|
||||
|
||||
const-string v0, "$this$toMediaTypeOrNull"
|
||||
|
||||
invoke-static {p0, v0}, Lz/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
||||
|
||||
:try_start_0
|
||||
invoke-static {p0}, Lokhttp3/MediaType$a;->a(Ljava/lang/String;)Lokhttp3/MediaType;
|
||||
|
||||
move-result-object p0
|
||||
:try_end_0
|
||||
.catch Ljava/lang/IllegalArgumentException; {:try_start_0 .. :try_end_0} :catch_0
|
||||
|
||||
goto :goto_0
|
||||
|
||||
:catch_0
|
||||
const/4 p0, 0x0
|
||||
|
||||
:goto_0
|
||||
return-object p0
|
||||
.end method
|
237
com.discord/smali_classes2/okhttp3/MediaType.smali
Normal file
237
com.discord/smali_classes2/okhttp3/MediaType.smali
Normal file
|
@ -0,0 +1,237 @@
|
|||
.class public final Lokhttp3/MediaType;
|
||||
.super Ljava/lang/Object;
|
||||
.source "MediaType.kt"
|
||||
|
||||
|
||||
# annotations
|
||||
.annotation system Ldalvik/annotation/MemberClasses;
|
||||
value = {
|
||||
Lokhttp3/MediaType$a;
|
||||
}
|
||||
.end annotation
|
||||
|
||||
|
||||
# static fields
|
||||
.field public static final e:Ljava/util/regex/Pattern;
|
||||
|
||||
.field public static final f:Ljava/util/regex/Pattern;
|
||||
|
||||
.field public static final g:Lokhttp3/MediaType$a;
|
||||
|
||||
|
||||
# instance fields
|
||||
.field public final a:Ljava/lang/String;
|
||||
|
||||
.field public final b:Ljava/lang/String;
|
||||
|
||||
.field public final c:Ljava/lang/String;
|
||||
|
||||
.field public final d:[Ljava/lang/String;
|
||||
|
||||
|
||||
# direct methods
|
||||
.method public static constructor <clinit>()V
|
||||
.locals 1
|
||||
|
||||
const-string v0, "([a-zA-Z0-9-!#$%&\'*+.^_`{|}~]+)/([a-zA-Z0-9-!#$%&\'*+.^_`{|}~]+)"
|
||||
|
||||
invoke-static {v0}, Ljava/util/regex/Pattern;->compile(Ljava/lang/String;)Ljava/util/regex/Pattern;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
sput-object v0, Lokhttp3/MediaType;->e:Ljava/util/regex/Pattern;
|
||||
|
||||
const-string v0, ";\\s*(?:([a-zA-Z0-9-!#$%&\'*+.^_`{|}~]+)=(?:([a-zA-Z0-9-!#$%&\'*+.^_`{|}~]+)|\"([^\"]*)\"))?"
|
||||
|
||||
invoke-static {v0}, Ljava/util/regex/Pattern;->compile(Ljava/lang/String;)Ljava/util/regex/Pattern;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
sput-object v0, Lokhttp3/MediaType;->f:Ljava/util/regex/Pattern;
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public constructor <init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;Lkotlin/jvm/internal/DefaultConstructorMarker;)V
|
||||
.locals 0
|
||||
|
||||
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||||
|
||||
iput-object p1, p0, Lokhttp3/MediaType;->a:Ljava/lang/String;
|
||||
|
||||
iput-object p2, p0, Lokhttp3/MediaType;->b:Ljava/lang/String;
|
||||
|
||||
iput-object p3, p0, Lokhttp3/MediaType;->c:Ljava/lang/String;
|
||||
|
||||
iput-object p4, p0, Lokhttp3/MediaType;->d:[Ljava/lang/String;
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public static synthetic b(Lokhttp3/MediaType;Ljava/nio/charset/Charset;I)Ljava/nio/charset/Charset;
|
||||
.locals 0
|
||||
|
||||
and-int/lit8 p1, p2, 0x1
|
||||
|
||||
const/4 p1, 0x0
|
||||
|
||||
invoke-virtual {p0, p1}, Lokhttp3/MediaType;->a(Ljava/nio/charset/Charset;)Ljava/nio/charset/Charset;
|
||||
|
||||
move-result-object p0
|
||||
|
||||
return-object p0
|
||||
.end method
|
||||
|
||||
.method public static final c(Ljava/lang/String;)Lokhttp3/MediaType;
|
||||
.locals 0
|
||||
|
||||
invoke-static {p0}, Lokhttp3/MediaType$a;->a(Ljava/lang/String;)Lokhttp3/MediaType;
|
||||
|
||||
move-result-object p0
|
||||
|
||||
return-object p0
|
||||
.end method
|
||||
|
||||
|
||||
# virtual methods
|
||||
.method public final a(Ljava/nio/charset/Charset;)Ljava/nio/charset/Charset;
|
||||
.locals 6
|
||||
|
||||
const-string v0, "charset"
|
||||
|
||||
const-string v1, "name"
|
||||
|
||||
invoke-static {v0, v1}, Lz/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
||||
|
||||
iget-object v1, p0, Lokhttp3/MediaType;->d:[Ljava/lang/String;
|
||||
|
||||
const-string v2, "$this$indices"
|
||||
|
||||
invoke-static {v1, v2}, Lz/n/c/j;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
||||
|
||||
new-instance v2, Lkotlin/ranges/IntRange;
|
||||
|
||||
invoke-static {v1}, Lf/h/a/f/f/n/f;->getLastIndex([Ljava/lang/Object;)I
|
||||
|
||||
move-result v1
|
||||
|
||||
const/4 v3, 0x0
|
||||
|
||||
invoke-direct {v2, v3, v1}, Lkotlin/ranges/IntRange;-><init>(II)V
|
||||
|
||||
const/4 v1, 0x2
|
||||
|
||||
invoke-static {v2, v1}, Lz/q/e;->step(Lkotlin/ranges/IntProgression;I)Lkotlin/ranges/IntProgression;
|
||||
|
||||
move-result-object v1
|
||||
|
||||
iget v2, v1, Lkotlin/ranges/IntProgression;->d:I
|
||||
|
||||
iget v3, v1, Lkotlin/ranges/IntProgression;->e:I
|
||||
|
||||
iget v1, v1, Lkotlin/ranges/IntProgression;->f:I
|
||||
|
||||
if-ltz v1, :cond_0
|
||||
|
||||
if-gt v2, v3, :cond_2
|
||||
|
||||
goto :goto_0
|
||||
|
||||
:cond_0
|
||||
if-lt v2, v3, :cond_2
|
||||
|
||||
:goto_0
|
||||
iget-object v4, p0, Lokhttp3/MediaType;->d:[Ljava/lang/String;
|
||||
|
||||
aget-object v4, v4, v2
|
||||
|
||||
const/4 v5, 0x1
|
||||
|
||||
invoke-static {v4, v0, v5}, Lz/t/k;->equals(Ljava/lang/String;Ljava/lang/String;Z)Z
|
||||
|
||||
move-result v4
|
||||
|
||||
if-eqz v4, :cond_1
|
||||
|
||||
iget-object v0, p0, Lokhttp3/MediaType;->d:[Ljava/lang/String;
|
||||
|
||||
add-int/2addr v2, v5
|
||||
|
||||
aget-object v0, v0, v2
|
||||
|
||||
goto :goto_1
|
||||
|
||||
:cond_1
|
||||
if-eq v2, v3, :cond_2
|
||||
|
||||
add-int/2addr v2, v1
|
||||
|
||||
goto :goto_0
|
||||
|
||||
:cond_2
|
||||
const/4 v0, 0x0
|
||||
|
||||
:goto_1
|
||||
if-eqz v0, :cond_3
|
||||
|
||||
:try_start_0
|
||||
invoke-static {v0}, Ljava/nio/charset/Charset;->forName(Ljava/lang/String;)Ljava/nio/charset/Charset;
|
||||
|
||||
move-result-object p1
|
||||
:try_end_0
|
||||
.catch Ljava/lang/IllegalArgumentException; {:try_start_0 .. :try_end_0} :catch_0
|
||||
|
||||
:catch_0
|
||||
:cond_3
|
||||
return-object p1
|
||||
.end method
|
||||
|
||||
.method public equals(Ljava/lang/Object;)Z
|
||||
.locals 1
|
||||
|
||||
instance-of v0, p1, Lokhttp3/MediaType;
|
||||
|
||||
if-eqz v0, :cond_0
|
||||
|
||||
check-cast p1, Lokhttp3/MediaType;
|
||||
|
||||
iget-object p1, p1, Lokhttp3/MediaType;->a:Ljava/lang/String;
|
||||
|
||||
iget-object v0, p0, Lokhttp3/MediaType;->a:Ljava/lang/String;
|
||||
|
||||
invoke-static {p1, v0}, Lz/n/c/j;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
|
||||
|
||||
move-result p1
|
||||
|
||||
if-eqz p1, :cond_0
|
||||
|
||||
const/4 p1, 0x1
|
||||
|
||||
goto :goto_0
|
||||
|
||||
:cond_0
|
||||
const/4 p1, 0x0
|
||||
|
||||
:goto_0
|
||||
return p1
|
||||
.end method
|
||||
|
||||
.method public hashCode()I
|
||||
.locals 1
|
||||
|
||||
iget-object v0, p0, Lokhttp3/MediaType;->a:Ljava/lang/String;
|
||||
|
||||
invoke-virtual {v0}, Ljava/lang/String;->hashCode()I
|
||||
|
||||
move-result v0
|
||||
|
||||
return v0
|
||||
.end method
|
||||
|
||||
.method public toString()Ljava/lang/String;
|
||||
.locals 1
|
||||
|
||||
iget-object v0, p0, Lokhttp3/MediaType;->a:Ljava/lang/String;
|
||||
|
||||
return-object v0
|
||||
.end method
|
292
com.discord/smali_classes2/okhttp3/MultipartBody$Part.smali
Normal file
292
com.discord/smali_classes2/okhttp3/MultipartBody$Part.smali
Normal file
|
@ -0,0 +1,292 @@
|
|||
.class public final Lokhttp3/MultipartBody$Part;
|
||||
.super Ljava/lang/Object;
|
||||
.source "MultipartBody.kt"
|
||||
|
||||
|
||||
# annotations
|
||||
.annotation system Ldalvik/annotation/EnclosingClass;
|
||||
value = Lokhttp3/MultipartBody;
|
||||
.end annotation
|
||||
|
||||
.annotation system Ldalvik/annotation/InnerClass;
|
||||
accessFlags = 0x19
|
||||
name = "Part"
|
||||
.end annotation
|
||||
|
||||
|
||||
# instance fields
|
||||
.field public final a:Lokhttp3/Headers;
|
||||
|
||||
.field public final b:Lokhttp3/RequestBody;
|
||||
|
||||
|
||||
# direct methods
|
||||
.method public constructor <init>(Lokhttp3/Headers;Lokhttp3/RequestBody;Lkotlin/jvm/internal/DefaultConstructorMarker;)V
|
||||
.locals 0
|
||||
|
||||
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||||
|
||||
iput-object p1, p0, Lokhttp3/MultipartBody$Part;->a:Lokhttp3/Headers;
|
||||
|
||||
iput-object p2, p0, Lokhttp3/MultipartBody$Part;->b:Lokhttp3/RequestBody;
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public static final a(Lokhttp3/Headers;Lokhttp3/RequestBody;)Lokhttp3/MultipartBody$Part;
|
||||
.locals 2
|
||||
|
||||
const-string v0, "body"
|
||||
|
||||
invoke-static {p1, v0}, Lz/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
||||
|
||||
const-string v0, "Content-Type"
|
||||
|
||||
invoke-virtual {p0, v0}, Lokhttp3/Headers;->c(Ljava/lang/String;)Ljava/lang/String;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
const/4 v1, 0x0
|
||||
|
||||
if-nez v0, :cond_0
|
||||
|
||||
const/4 v0, 0x1
|
||||
|
||||
goto :goto_0
|
||||
|
||||
:cond_0
|
||||
const/4 v0, 0x0
|
||||
|
||||
:goto_0
|
||||
if-eqz v0, :cond_3
|
||||
|
||||
const-string v0, "Content-Length"
|
||||
|
||||
invoke-virtual {p0, v0}, Lokhttp3/Headers;->c(Ljava/lang/String;)Ljava/lang/String;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
if-nez v0, :cond_1
|
||||
|
||||
const/4 v1, 0x1
|
||||
|
||||
:cond_1
|
||||
if-eqz v1, :cond_2
|
||||
|
||||
new-instance v0, Lokhttp3/MultipartBody$Part;
|
||||
|
||||
const/4 v1, 0x0
|
||||
|
||||
invoke-direct {v0, p0, p1, v1}, Lokhttp3/MultipartBody$Part;-><init>(Lokhttp3/Headers;Lokhttp3/RequestBody;Lkotlin/jvm/internal/DefaultConstructorMarker;)V
|
||||
|
||||
return-object v0
|
||||
|
||||
:cond_2
|
||||
new-instance p0, Ljava/lang/IllegalArgumentException;
|
||||
|
||||
const-string p1, "Unexpected header: Content-Length"
|
||||
|
||||
invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
||||
|
||||
move-result-object p1
|
||||
|
||||
invoke-direct {p0, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
||||
|
||||
throw p0
|
||||
|
||||
:cond_3
|
||||
new-instance p0, Ljava/lang/IllegalArgumentException;
|
||||
|
||||
const-string p1, "Unexpected header: Content-Type"
|
||||
|
||||
invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
||||
|
||||
move-result-object p1
|
||||
|
||||
invoke-direct {p0, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
||||
|
||||
throw p0
|
||||
.end method
|
||||
|
||||
.method public static final b(Ljava/lang/String;Ljava/lang/String;Lokhttp3/RequestBody;)Lokhttp3/MultipartBody$Part;
|
||||
.locals 10
|
||||
|
||||
const-string v0, "name"
|
||||
|
||||
invoke-static {p0, v0}, Lz/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
||||
|
||||
const-string v1, "body"
|
||||
|
||||
invoke-static {p2, v1}, Lz/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
||||
|
||||
new-instance v1, Ljava/lang/StringBuilder;
|
||||
|
||||
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
|
||||
|
||||
const-string v2, "form-data; name="
|
||||
|
||||
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||||
|
||||
sget-object v2, Lokhttp3/MultipartBody;->k:Lokhttp3/MultipartBody$b;
|
||||
|
||||
invoke-virtual {v2, v1, p0}, Lokhttp3/MultipartBody$b;->a(Ljava/lang/StringBuilder;Ljava/lang/String;)V
|
||||
|
||||
if-eqz p1, :cond_0
|
||||
|
||||
const-string p0, "; filename="
|
||||
|
||||
invoke-virtual {v1, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||||
|
||||
sget-object p0, Lokhttp3/MultipartBody;->k:Lokhttp3/MultipartBody$b;
|
||||
|
||||
invoke-virtual {p0, v1, p1}, Lokhttp3/MultipartBody$b;->a(Ljava/lang/StringBuilder;Ljava/lang/String;)V
|
||||
|
||||
:cond_0
|
||||
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
||||
|
||||
move-result-object p0
|
||||
|
||||
const-string p1, "StringBuilder().apply(builderAction).toString()"
|
||||
|
||||
invoke-static {p0, p1}, Lz/n/c/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
||||
|
||||
new-instance p1, Ljava/util/ArrayList;
|
||||
|
||||
const/16 v1, 0x14
|
||||
|
||||
invoke-direct {p1, v1}, Ljava/util/ArrayList;-><init>(I)V
|
||||
|
||||
const-string v1, "Content-Disposition"
|
||||
|
||||
invoke-static {v1, v0}, Lz/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
||||
|
||||
const-string v2, "value"
|
||||
|
||||
invoke-static {p0, v2}, Lz/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
||||
|
||||
const/16 v3, 0x13
|
||||
|
||||
const/4 v4, 0x0
|
||||
|
||||
const/4 v5, 0x0
|
||||
|
||||
:goto_0
|
||||
if-ge v5, v3, :cond_4
|
||||
|
||||
invoke-virtual {v1, v5}, Ljava/lang/String;->charAt(I)C
|
||||
|
||||
move-result v6
|
||||
|
||||
const/16 v7, 0x7e
|
||||
|
||||
const/16 v8, 0x21
|
||||
|
||||
const/4 v9, 0x1
|
||||
|
||||
if-le v8, v6, :cond_1
|
||||
|
||||
goto :goto_1
|
||||
|
||||
:cond_1
|
||||
if-lt v7, v6, :cond_2
|
||||
|
||||
const/4 v7, 0x1
|
||||
|
||||
goto :goto_2
|
||||
|
||||
:cond_2
|
||||
:goto_1
|
||||
const/4 v7, 0x0
|
||||
|
||||
:goto_2
|
||||
if-eqz v7, :cond_3
|
||||
|
||||
add-int/lit8 v5, v5, 0x1
|
||||
|
||||
goto :goto_0
|
||||
|
||||
:cond_3
|
||||
const/4 p0, 0x3
|
||||
|
||||
new-array p0, p0, [Ljava/lang/Object;
|
||||
|
||||
invoke-static {v6}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
||||
|
||||
move-result-object p1
|
||||
|
||||
aput-object p1, p0, v4
|
||||
|
||||
invoke-static {v5}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
||||
|
||||
move-result-object p1
|
||||
|
||||
aput-object p1, p0, v9
|
||||
|
||||
const/4 p1, 0x2
|
||||
|
||||
aput-object v1, p0, p1
|
||||
|
||||
const-string p1, "Unexpected char %#04x at %d in header name: %s"
|
||||
|
||||
invoke-static {p1, p0}, Ld0/h0/c;->l(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
|
||||
|
||||
move-result-object p0
|
||||
|
||||
new-instance p1, Ljava/lang/IllegalArgumentException;
|
||||
|
||||
invoke-virtual {p0}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
||||
|
||||
move-result-object p0
|
||||
|
||||
invoke-direct {p1, p0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
||||
|
||||
throw p1
|
||||
|
||||
:cond_4
|
||||
invoke-static {v1, v0}, Lz/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
||||
|
||||
invoke-static {p0, v2}, Lz/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
||||
|
||||
invoke-virtual {p1, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
||||
|
||||
invoke-static {p0}, Lz/t/p;->trim(Ljava/lang/CharSequence;)Ljava/lang/CharSequence;
|
||||
|
||||
move-result-object p0
|
||||
|
||||
invoke-virtual {p0}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
||||
|
||||
move-result-object p0
|
||||
|
||||
invoke-virtual {p1, p0}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
||||
|
||||
new-array p0, v4, [Ljava/lang/String;
|
||||
|
||||
invoke-virtual {p1, p0}, Ljava/util/ArrayList;->toArray([Ljava/lang/Object;)[Ljava/lang/Object;
|
||||
|
||||
move-result-object p0
|
||||
|
||||
if-eqz p0, :cond_5
|
||||
|
||||
check-cast p0, [Ljava/lang/String;
|
||||
|
||||
const/4 p1, 0x0
|
||||
|
||||
new-instance v0, Lokhttp3/Headers;
|
||||
|
||||
invoke-direct {v0, p0, p1}, Lokhttp3/Headers;-><init>([Ljava/lang/String;Lkotlin/jvm/internal/DefaultConstructorMarker;)V
|
||||
|
||||
invoke-static {v0, p2}, Lokhttp3/MultipartBody$Part;->a(Lokhttp3/Headers;Lokhttp3/RequestBody;)Lokhttp3/MultipartBody$Part;
|
||||
|
||||
move-result-object p0
|
||||
|
||||
return-object p0
|
||||
|
||||
:cond_5
|
||||
new-instance p0, Lkotlin/TypeCastException;
|
||||
|
||||
const-string p1, "null cannot be cast to non-null type kotlin.Array<T>"
|
||||
|
||||
invoke-direct {p0, p1}, Lkotlin/TypeCastException;-><init>(Ljava/lang/String;)V
|
||||
|
||||
throw p0
|
||||
.end method
|
180
com.discord/smali_classes2/okhttp3/MultipartBody$a.smali
Normal file
180
com.discord/smali_classes2/okhttp3/MultipartBody$a.smali
Normal file
|
@ -0,0 +1,180 @@
|
|||
.class public final Lokhttp3/MultipartBody$a;
|
||||
.super Ljava/lang/Object;
|
||||
.source "MultipartBody.kt"
|
||||
|
||||
|
||||
# annotations
|
||||
.annotation system Ldalvik/annotation/EnclosingClass;
|
||||
value = Lokhttp3/MultipartBody;
|
||||
.end annotation
|
||||
|
||||
.annotation system Ldalvik/annotation/InnerClass;
|
||||
accessFlags = 0x19
|
||||
name = "a"
|
||||
.end annotation
|
||||
|
||||
|
||||
# instance fields
|
||||
.field public final a:Lokio/ByteString;
|
||||
|
||||
.field public b:Lokhttp3/MediaType;
|
||||
|
||||
.field public final c:Ljava/util/List;
|
||||
.annotation system Ldalvik/annotation/Signature;
|
||||
value = {
|
||||
"Ljava/util/List<",
|
||||
"Lokhttp3/MultipartBody$Part;",
|
||||
">;"
|
||||
}
|
||||
.end annotation
|
||||
.end field
|
||||
|
||||
|
||||
# direct methods
|
||||
.method public constructor <init>()V
|
||||
.locals 2
|
||||
|
||||
invoke-static {}, Ljava/util/UUID;->randomUUID()Ljava/util/UUID;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
invoke-virtual {v0}, Ljava/util/UUID;->toString()Ljava/lang/String;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
const-string v1, "UUID.randomUUID().toString()"
|
||||
|
||||
invoke-static {v0, v1}, Lz/n/c/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
||||
|
||||
const-string v1, "boundary"
|
||||
|
||||
invoke-static {v0, v1}, Lz/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
||||
|
||||
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||||
|
||||
sget-object v1, Lokio/ByteString;->g:Lokio/ByteString$a;
|
||||
|
||||
invoke-virtual {v1, v0}, Lokio/ByteString$a;->b(Ljava/lang/String;)Lokio/ByteString;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
iput-object v0, p0, Lokhttp3/MultipartBody$a;->a:Lokio/ByteString;
|
||||
|
||||
sget-object v0, Lokhttp3/MultipartBody;->f:Lokhttp3/MediaType;
|
||||
|
||||
iput-object v0, p0, Lokhttp3/MultipartBody$a;->b:Lokhttp3/MediaType;
|
||||
|
||||
new-instance v0, Ljava/util/ArrayList;
|
||||
|
||||
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
|
||||
|
||||
iput-object v0, p0, Lokhttp3/MultipartBody$a;->c:Ljava/util/List;
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
|
||||
# virtual methods
|
||||
.method public final a(Lokhttp3/MultipartBody$Part;)Lokhttp3/MultipartBody$a;
|
||||
.locals 1
|
||||
|
||||
const-string v0, "part"
|
||||
|
||||
invoke-static {p1, v0}, Lz/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
||||
|
||||
iget-object v0, p0, Lokhttp3/MultipartBody$a;->c:Ljava/util/List;
|
||||
|
||||
invoke-interface {v0, p1}, Ljava/util/Collection;->add(Ljava/lang/Object;)Z
|
||||
|
||||
return-object p0
|
||||
.end method
|
||||
|
||||
.method public final b()Lokhttp3/MultipartBody;
|
||||
.locals 4
|
||||
|
||||
iget-object v0, p0, Lokhttp3/MultipartBody$a;->c:Ljava/util/List;
|
||||
|
||||
invoke-interface {v0}, Ljava/util/Collection;->isEmpty()Z
|
||||
|
||||
move-result v0
|
||||
|
||||
xor-int/lit8 v0, v0, 0x1
|
||||
|
||||
if-eqz v0, :cond_0
|
||||
|
||||
new-instance v0, Lokhttp3/MultipartBody;
|
||||
|
||||
iget-object v1, p0, Lokhttp3/MultipartBody$a;->a:Lokio/ByteString;
|
||||
|
||||
iget-object v2, p0, Lokhttp3/MultipartBody$a;->b:Lokhttp3/MediaType;
|
||||
|
||||
iget-object v3, p0, Lokhttp3/MultipartBody$a;->c:Ljava/util/List;
|
||||
|
||||
invoke-static {v3}, Ld0/h0/c;->E(Ljava/util/List;)Ljava/util/List;
|
||||
|
||||
move-result-object v3
|
||||
|
||||
invoke-direct {v0, v1, v2, v3}, Lokhttp3/MultipartBody;-><init>(Lokio/ByteString;Lokhttp3/MediaType;Ljava/util/List;)V
|
||||
|
||||
return-object v0
|
||||
|
||||
:cond_0
|
||||
new-instance v0, Ljava/lang/IllegalStateException;
|
||||
|
||||
const-string v1, "Multipart body must have at least one part."
|
||||
|
||||
invoke-virtual {v1}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
||||
|
||||
move-result-object v1
|
||||
|
||||
invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
||||
|
||||
throw v0
|
||||
.end method
|
||||
|
||||
.method public final c(Lokhttp3/MediaType;)Lokhttp3/MultipartBody$a;
|
||||
.locals 2
|
||||
|
||||
const-string v0, "type"
|
||||
|
||||
invoke-static {p1, v0}, Lz/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
||||
|
||||
iget-object v0, p1, Lokhttp3/MediaType;->b:Ljava/lang/String;
|
||||
|
||||
const-string v1, "multipart"
|
||||
|
||||
invoke-static {v0, v1}, Lz/n/c/j;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
|
||||
|
||||
move-result v0
|
||||
|
||||
if-eqz v0, :cond_0
|
||||
|
||||
iput-object p1, p0, Lokhttp3/MultipartBody$a;->b:Lokhttp3/MediaType;
|
||||
|
||||
return-object p0
|
||||
|
||||
:cond_0
|
||||
new-instance v0, Ljava/lang/StringBuilder;
|
||||
|
||||
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
|
||||
|
||||
const-string v1, "multipart != "
|
||||
|
||||
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||||
|
||||
invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
||||
|
||||
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
||||
|
||||
move-result-object p1
|
||||
|
||||
new-instance v0, Ljava/lang/IllegalArgumentException;
|
||||
|
||||
invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
||||
|
||||
move-result-object p1
|
||||
|
||||
invoke-direct {v0, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
||||
|
||||
throw v0
|
||||
.end method
|
98
com.discord/smali_classes2/okhttp3/MultipartBody$b.smali
Normal file
98
com.discord/smali_classes2/okhttp3/MultipartBody$b.smali
Normal file
|
@ -0,0 +1,98 @@
|
|||
.class public final Lokhttp3/MultipartBody$b;
|
||||
.super Ljava/lang/Object;
|
||||
.source "MultipartBody.kt"
|
||||
|
||||
|
||||
# annotations
|
||||
.annotation system Ldalvik/annotation/EnclosingClass;
|
||||
value = Lokhttp3/MultipartBody;
|
||||
.end annotation
|
||||
|
||||
.annotation system Ldalvik/annotation/InnerClass;
|
||||
accessFlags = 0x19
|
||||
name = "b"
|
||||
.end annotation
|
||||
|
||||
|
||||
# direct methods
|
||||
.method public constructor <init>(Lkotlin/jvm/internal/DefaultConstructorMarker;)V
|
||||
.locals 0
|
||||
|
||||
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
|
||||
# virtual methods
|
||||
.method public final a(Ljava/lang/StringBuilder;Ljava/lang/String;)V
|
||||
.locals 5
|
||||
|
||||
const-string v0, "$this$appendQuotedString"
|
||||
|
||||
invoke-static {p1, v0}, Lz/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
||||
|
||||
const-string v0, "key"
|
||||
|
||||
invoke-static {p2, v0}, Lz/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
||||
|
||||
const/16 v0, 0x22
|
||||
|
||||
invoke-virtual {p1, v0}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
|
||||
|
||||
invoke-virtual {p2}, Ljava/lang/String;->length()I
|
||||
|
||||
move-result v1
|
||||
|
||||
const/4 v2, 0x0
|
||||
|
||||
:goto_0
|
||||
if-ge v2, v1, :cond_3
|
||||
|
||||
invoke-virtual {p2, v2}, Ljava/lang/String;->charAt(I)C
|
||||
|
||||
move-result v3
|
||||
|
||||
const/16 v4, 0xa
|
||||
|
||||
if-ne v3, v4, :cond_0
|
||||
|
||||
const-string v3, "%0A"
|
||||
|
||||
invoke-virtual {p1, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||||
|
||||
goto :goto_1
|
||||
|
||||
:cond_0
|
||||
const/16 v4, 0xd
|
||||
|
||||
if-ne v3, v4, :cond_1
|
||||
|
||||
const-string v3, "%0D"
|
||||
|
||||
invoke-virtual {p1, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||||
|
||||
goto :goto_1
|
||||
|
||||
:cond_1
|
||||
if-ne v3, v0, :cond_2
|
||||
|
||||
const-string v3, "%22"
|
||||
|
||||
invoke-virtual {p1, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||||
|
||||
goto :goto_1
|
||||
|
||||
:cond_2
|
||||
invoke-virtual {p1, v3}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
|
||||
|
||||
:goto_1
|
||||
add-int/lit8 v2, v2, 0x1
|
||||
|
||||
goto :goto_0
|
||||
|
||||
:cond_3
|
||||
invoke-virtual {p1, v0}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
|
||||
|
||||
return-void
|
||||
.end method
|
529
com.discord/smali_classes2/okhttp3/MultipartBody.smali
Normal file
529
com.discord/smali_classes2/okhttp3/MultipartBody.smali
Normal file
|
@ -0,0 +1,529 @@
|
|||
.class public final Lokhttp3/MultipartBody;
|
||||
.super Lokhttp3/RequestBody;
|
||||
.source "MultipartBody.kt"
|
||||
|
||||
|
||||
# annotations
|
||||
.annotation system Ldalvik/annotation/MemberClasses;
|
||||
value = {
|
||||
Lokhttp3/MultipartBody$Part;,
|
||||
Lokhttp3/MultipartBody$a;,
|
||||
Lokhttp3/MultipartBody$b;
|
||||
}
|
||||
.end annotation
|
||||
|
||||
|
||||
# static fields
|
||||
.field public static final f:Lokhttp3/MediaType;
|
||||
|
||||
.field public static final g:Lokhttp3/MediaType;
|
||||
|
||||
.field public static final h:[B
|
||||
|
||||
.field public static final i:[B
|
||||
|
||||
.field public static final j:[B
|
||||
|
||||
.field public static final k:Lokhttp3/MultipartBody$b;
|
||||
|
||||
|
||||
# instance fields
|
||||
.field public final a:Lokhttp3/MediaType;
|
||||
|
||||
.field public b:J
|
||||
|
||||
.field public final c:Lokio/ByteString;
|
||||
|
||||
.field public final d:Lokhttp3/MediaType;
|
||||
|
||||
.field public final e:Ljava/util/List;
|
||||
.annotation system Ldalvik/annotation/Signature;
|
||||
value = {
|
||||
"Ljava/util/List<",
|
||||
"Lokhttp3/MultipartBody$Part;",
|
||||
">;"
|
||||
}
|
||||
.end annotation
|
||||
.end field
|
||||
|
||||
|
||||
# direct methods
|
||||
.method public static constructor <clinit>()V
|
||||
.locals 5
|
||||
|
||||
new-instance v0, Lokhttp3/MultipartBody$b;
|
||||
|
||||
const/4 v1, 0x0
|
||||
|
||||
invoke-direct {v0, v1}, Lokhttp3/MultipartBody$b;-><init>(Lkotlin/jvm/internal/DefaultConstructorMarker;)V
|
||||
|
||||
sput-object v0, Lokhttp3/MultipartBody;->k:Lokhttp3/MultipartBody$b;
|
||||
|
||||
sget-object v0, Lokhttp3/MediaType;->g:Lokhttp3/MediaType$a;
|
||||
|
||||
const-string v0, "multipart/mixed"
|
||||
|
||||
invoke-static {v0}, Lokhttp3/MediaType$a;->a(Ljava/lang/String;)Lokhttp3/MediaType;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
sput-object v0, Lokhttp3/MultipartBody;->f:Lokhttp3/MediaType;
|
||||
|
||||
sget-object v0, Lokhttp3/MediaType;->g:Lokhttp3/MediaType$a;
|
||||
|
||||
const-string v0, "multipart/alternative"
|
||||
|
||||
invoke-static {v0}, Lokhttp3/MediaType$a;->a(Ljava/lang/String;)Lokhttp3/MediaType;
|
||||
|
||||
sget-object v0, Lokhttp3/MediaType;->g:Lokhttp3/MediaType$a;
|
||||
|
||||
const-string v0, "multipart/digest"
|
||||
|
||||
invoke-static {v0}, Lokhttp3/MediaType$a;->a(Ljava/lang/String;)Lokhttp3/MediaType;
|
||||
|
||||
sget-object v0, Lokhttp3/MediaType;->g:Lokhttp3/MediaType$a;
|
||||
|
||||
const-string v0, "multipart/parallel"
|
||||
|
||||
invoke-static {v0}, Lokhttp3/MediaType$a;->a(Ljava/lang/String;)Lokhttp3/MediaType;
|
||||
|
||||
sget-object v0, Lokhttp3/MediaType;->g:Lokhttp3/MediaType$a;
|
||||
|
||||
const-string v0, "multipart/form-data"
|
||||
|
||||
invoke-static {v0}, Lokhttp3/MediaType$a;->a(Ljava/lang/String;)Lokhttp3/MediaType;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
sput-object v0, Lokhttp3/MultipartBody;->g:Lokhttp3/MediaType;
|
||||
|
||||
const/4 v0, 0x2
|
||||
|
||||
new-array v1, v0, [B
|
||||
|
||||
const/16 v2, 0x3a
|
||||
|
||||
int-to-byte v2, v2
|
||||
|
||||
const/4 v3, 0x0
|
||||
|
||||
aput-byte v2, v1, v3
|
||||
|
||||
const/16 v2, 0x20
|
||||
|
||||
int-to-byte v2, v2
|
||||
|
||||
const/4 v4, 0x1
|
||||
|
||||
aput-byte v2, v1, v4
|
||||
|
||||
sput-object v1, Lokhttp3/MultipartBody;->h:[B
|
||||
|
||||
new-array v1, v0, [B
|
||||
|
||||
const/16 v2, 0xd
|
||||
|
||||
int-to-byte v2, v2
|
||||
|
||||
aput-byte v2, v1, v3
|
||||
|
||||
const/16 v2, 0xa
|
||||
|
||||
int-to-byte v2, v2
|
||||
|
||||
aput-byte v2, v1, v4
|
||||
|
||||
sput-object v1, Lokhttp3/MultipartBody;->i:[B
|
||||
|
||||
new-array v0, v0, [B
|
||||
|
||||
const/16 v1, 0x2d
|
||||
|
||||
int-to-byte v1, v1
|
||||
|
||||
aput-byte v1, v0, v3
|
||||
|
||||
aput-byte v1, v0, v4
|
||||
|
||||
sput-object v0, Lokhttp3/MultipartBody;->j:[B
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public constructor <init>(Lokio/ByteString;Lokhttp3/MediaType;Ljava/util/List;)V
|
||||
.locals 1
|
||||
.annotation system Ldalvik/annotation/Signature;
|
||||
value = {
|
||||
"(",
|
||||
"Lokio/ByteString;",
|
||||
"Lokhttp3/MediaType;",
|
||||
"Ljava/util/List<",
|
||||
"Lokhttp3/MultipartBody$Part;",
|
||||
">;)V"
|
||||
}
|
||||
.end annotation
|
||||
|
||||
const-string v0, "boundaryByteString"
|
||||
|
||||
invoke-static {p1, v0}, Lz/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
||||
|
||||
const-string v0, "type"
|
||||
|
||||
invoke-static {p2, v0}, Lz/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
||||
|
||||
const-string v0, "parts"
|
||||
|
||||
invoke-static {p3, v0}, Lz/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
||||
|
||||
invoke-direct {p0}, Lokhttp3/RequestBody;-><init>()V
|
||||
|
||||
iput-object p1, p0, Lokhttp3/MultipartBody;->c:Lokio/ByteString;
|
||||
|
||||
iput-object p2, p0, Lokhttp3/MultipartBody;->d:Lokhttp3/MediaType;
|
||||
|
||||
iput-object p3, p0, Lokhttp3/MultipartBody;->e:Ljava/util/List;
|
||||
|
||||
sget-object p1, Lokhttp3/MediaType;->g:Lokhttp3/MediaType$a;
|
||||
|
||||
new-instance p1, Ljava/lang/StringBuilder;
|
||||
|
||||
invoke-direct {p1}, Ljava/lang/StringBuilder;-><init>()V
|
||||
|
||||
iget-object p2, p0, Lokhttp3/MultipartBody;->d:Lokhttp3/MediaType;
|
||||
|
||||
invoke-virtual {p1, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
||||
|
||||
const-string p2, "; boundary="
|
||||
|
||||
invoke-virtual {p1, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||||
|
||||
iget-object p2, p0, Lokhttp3/MultipartBody;->c:Lokio/ByteString;
|
||||
|
||||
invoke-virtual {p2}, Lokio/ByteString;->p()Ljava/lang/String;
|
||||
|
||||
move-result-object p2
|
||||
|
||||
invoke-virtual {p1, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||||
|
||||
invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
||||
|
||||
move-result-object p1
|
||||
|
||||
invoke-static {p1}, Lokhttp3/MediaType$a;->a(Ljava/lang/String;)Lokhttp3/MediaType;
|
||||
|
||||
move-result-object p1
|
||||
|
||||
iput-object p1, p0, Lokhttp3/MultipartBody;->a:Lokhttp3/MediaType;
|
||||
|
||||
const-wide/16 p1, -0x1
|
||||
|
||||
iput-wide p1, p0, Lokhttp3/MultipartBody;->b:J
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
|
||||
# virtual methods
|
||||
.method public final a(Lokio/BufferedSink;Z)J
|
||||
.locals 13
|
||||
.annotation system Ldalvik/annotation/Throws;
|
||||
value = {
|
||||
Ljava/io/IOException;
|
||||
}
|
||||
.end annotation
|
||||
|
||||
const/4 v0, 0x0
|
||||
|
||||
if-eqz p2, :cond_0
|
||||
|
||||
new-instance p1, Le0/e;
|
||||
|
||||
invoke-direct {p1}, Le0/e;-><init>()V
|
||||
|
||||
move-object v1, p1
|
||||
|
||||
goto :goto_0
|
||||
|
||||
:cond_0
|
||||
move-object v1, v0
|
||||
|
||||
:goto_0
|
||||
iget-object v2, p0, Lokhttp3/MultipartBody;->e:Ljava/util/List;
|
||||
|
||||
invoke-interface {v2}, Ljava/util/List;->size()I
|
||||
|
||||
move-result v2
|
||||
|
||||
const/4 v3, 0x0
|
||||
|
||||
const-wide/16 v4, 0x0
|
||||
|
||||
const/4 v6, 0x0
|
||||
|
||||
:goto_1
|
||||
if-ge v6, v2, :cond_8
|
||||
|
||||
iget-object v7, p0, Lokhttp3/MultipartBody;->e:Ljava/util/List;
|
||||
|
||||
invoke-interface {v7, v6}, Ljava/util/List;->get(I)Ljava/lang/Object;
|
||||
|
||||
move-result-object v7
|
||||
|
||||
check-cast v7, Lokhttp3/MultipartBody$Part;
|
||||
|
||||
iget-object v8, v7, Lokhttp3/MultipartBody$Part;->a:Lokhttp3/Headers;
|
||||
|
||||
iget-object v7, v7, Lokhttp3/MultipartBody$Part;->b:Lokhttp3/RequestBody;
|
||||
|
||||
if-eqz p1, :cond_7
|
||||
|
||||
sget-object v9, Lokhttp3/MultipartBody;->j:[B
|
||||
|
||||
invoke-interface {p1, v9}, Lokio/BufferedSink;->write([B)Lokio/BufferedSink;
|
||||
|
||||
iget-object v9, p0, Lokhttp3/MultipartBody;->c:Lokio/ByteString;
|
||||
|
||||
invoke-interface {p1, v9}, Lokio/BufferedSink;->t0(Lokio/ByteString;)Lokio/BufferedSink;
|
||||
|
||||
sget-object v9, Lokhttp3/MultipartBody;->i:[B
|
||||
|
||||
invoke-interface {p1, v9}, Lokio/BufferedSink;->write([B)Lokio/BufferedSink;
|
||||
|
||||
if-eqz v8, :cond_1
|
||||
|
||||
invoke-virtual {v8}, Lokhttp3/Headers;->size()I
|
||||
|
||||
move-result v9
|
||||
|
||||
const/4 v10, 0x0
|
||||
|
||||
:goto_2
|
||||
if-ge v10, v9, :cond_1
|
||||
|
||||
invoke-virtual {v8, v10}, Lokhttp3/Headers;->d(I)Ljava/lang/String;
|
||||
|
||||
move-result-object v11
|
||||
|
||||
invoke-interface {p1, v11}, Lokio/BufferedSink;->Z(Ljava/lang/String;)Lokio/BufferedSink;
|
||||
|
||||
move-result-object v11
|
||||
|
||||
sget-object v12, Lokhttp3/MultipartBody;->h:[B
|
||||
|
||||
invoke-interface {v11, v12}, Lokio/BufferedSink;->write([B)Lokio/BufferedSink;
|
||||
|
||||
move-result-object v11
|
||||
|
||||
invoke-virtual {v8, v10}, Lokhttp3/Headers;->g(I)Ljava/lang/String;
|
||||
|
||||
move-result-object v12
|
||||
|
||||
invoke-interface {v11, v12}, Lokio/BufferedSink;->Z(Ljava/lang/String;)Lokio/BufferedSink;
|
||||
|
||||
move-result-object v11
|
||||
|
||||
sget-object v12, Lokhttp3/MultipartBody;->i:[B
|
||||
|
||||
invoke-interface {v11, v12}, Lokio/BufferedSink;->write([B)Lokio/BufferedSink;
|
||||
|
||||
add-int/lit8 v10, v10, 0x1
|
||||
|
||||
goto :goto_2
|
||||
|
||||
:cond_1
|
||||
invoke-virtual {v7}, Lokhttp3/RequestBody;->contentType()Lokhttp3/MediaType;
|
||||
|
||||
move-result-object v8
|
||||
|
||||
if-eqz v8, :cond_2
|
||||
|
||||
const-string v9, "Content-Type: "
|
||||
|
||||
invoke-interface {p1, v9}, Lokio/BufferedSink;->Z(Ljava/lang/String;)Lokio/BufferedSink;
|
||||
|
||||
move-result-object v9
|
||||
|
||||
iget-object v8, v8, Lokhttp3/MediaType;->a:Ljava/lang/String;
|
||||
|
||||
invoke-interface {v9, v8}, Lokio/BufferedSink;->Z(Ljava/lang/String;)Lokio/BufferedSink;
|
||||
|
||||
move-result-object v8
|
||||
|
||||
sget-object v9, Lokhttp3/MultipartBody;->i:[B
|
||||
|
||||
invoke-interface {v8, v9}, Lokio/BufferedSink;->write([B)Lokio/BufferedSink;
|
||||
|
||||
:cond_2
|
||||
invoke-virtual {v7}, Lokhttp3/RequestBody;->contentLength()J
|
||||
|
||||
move-result-wide v8
|
||||
|
||||
const-wide/16 v10, -0x1
|
||||
|
||||
cmp-long v12, v8, v10
|
||||
|
||||
if-eqz v12, :cond_3
|
||||
|
||||
const-string v10, "Content-Length: "
|
||||
|
||||
invoke-interface {p1, v10}, Lokio/BufferedSink;->Z(Ljava/lang/String;)Lokio/BufferedSink;
|
||||
|
||||
move-result-object v10
|
||||
|
||||
invoke-interface {v10, v8, v9}, Lokio/BufferedSink;->H0(J)Lokio/BufferedSink;
|
||||
|
||||
move-result-object v10
|
||||
|
||||
sget-object v11, Lokhttp3/MultipartBody;->i:[B
|
||||
|
||||
invoke-interface {v10, v11}, Lokio/BufferedSink;->write([B)Lokio/BufferedSink;
|
||||
|
||||
goto :goto_3
|
||||
|
||||
:cond_3
|
||||
if-eqz p2, :cond_5
|
||||
|
||||
if-eqz v1, :cond_4
|
||||
|
||||
iget-wide p1, v1, Le0/e;->e:J
|
||||
|
||||
invoke-virtual {v1, p1, p2}, Le0/e;->skip(J)V
|
||||
|
||||
return-wide v10
|
||||
|
||||
:cond_4
|
||||
invoke-static {}, Lz/n/c/j;->throwNpe()V
|
||||
|
||||
throw v0
|
||||
|
||||
:cond_5
|
||||
:goto_3
|
||||
sget-object v10, Lokhttp3/MultipartBody;->i:[B
|
||||
|
||||
invoke-interface {p1, v10}, Lokio/BufferedSink;->write([B)Lokio/BufferedSink;
|
||||
|
||||
if-eqz p2, :cond_6
|
||||
|
||||
add-long/2addr v4, v8
|
||||
|
||||
goto :goto_4
|
||||
|
||||
:cond_6
|
||||
invoke-virtual {v7, p1}, Lokhttp3/RequestBody;->writeTo(Lokio/BufferedSink;)V
|
||||
|
||||
:goto_4
|
||||
sget-object v7, Lokhttp3/MultipartBody;->i:[B
|
||||
|
||||
invoke-interface {p1, v7}, Lokio/BufferedSink;->write([B)Lokio/BufferedSink;
|
||||
|
||||
add-int/lit8 v6, v6, 0x1
|
||||
|
||||
goto/16 :goto_1
|
||||
|
||||
:cond_7
|
||||
invoke-static {}, Lz/n/c/j;->throwNpe()V
|
||||
|
||||
throw v0
|
||||
|
||||
:cond_8
|
||||
if-eqz p1, :cond_b
|
||||
|
||||
sget-object v2, Lokhttp3/MultipartBody;->j:[B
|
||||
|
||||
invoke-interface {p1, v2}, Lokio/BufferedSink;->write([B)Lokio/BufferedSink;
|
||||
|
||||
iget-object v2, p0, Lokhttp3/MultipartBody;->c:Lokio/ByteString;
|
||||
|
||||
invoke-interface {p1, v2}, Lokio/BufferedSink;->t0(Lokio/ByteString;)Lokio/BufferedSink;
|
||||
|
||||
sget-object v2, Lokhttp3/MultipartBody;->j:[B
|
||||
|
||||
invoke-interface {p1, v2}, Lokio/BufferedSink;->write([B)Lokio/BufferedSink;
|
||||
|
||||
sget-object v2, Lokhttp3/MultipartBody;->i:[B
|
||||
|
||||
invoke-interface {p1, v2}, Lokio/BufferedSink;->write([B)Lokio/BufferedSink;
|
||||
|
||||
if-eqz p2, :cond_a
|
||||
|
||||
if-eqz v1, :cond_9
|
||||
|
||||
iget-wide p1, v1, Le0/e;->e:J
|
||||
|
||||
add-long/2addr v4, p1
|
||||
|
||||
invoke-virtual {v1, p1, p2}, Le0/e;->skip(J)V
|
||||
|
||||
goto :goto_5
|
||||
|
||||
:cond_9
|
||||
invoke-static {}, Lz/n/c/j;->throwNpe()V
|
||||
|
||||
throw v0
|
||||
|
||||
:cond_a
|
||||
:goto_5
|
||||
return-wide v4
|
||||
|
||||
:cond_b
|
||||
invoke-static {}, Lz/n/c/j;->throwNpe()V
|
||||
|
||||
throw v0
|
||||
.end method
|
||||
|
||||
.method public contentLength()J
|
||||
.locals 5
|
||||
.annotation system Ldalvik/annotation/Throws;
|
||||
value = {
|
||||
Ljava/io/IOException;
|
||||
}
|
||||
.end annotation
|
||||
|
||||
iget-wide v0, p0, Lokhttp3/MultipartBody;->b:J
|
||||
|
||||
const-wide/16 v2, -0x1
|
||||
|
||||
cmp-long v4, v0, v2
|
||||
|
||||
if-nez v4, :cond_0
|
||||
|
||||
const/4 v0, 0x0
|
||||
|
||||
const/4 v1, 0x1
|
||||
|
||||
invoke-virtual {p0, v0, v1}, Lokhttp3/MultipartBody;->a(Lokio/BufferedSink;Z)J
|
||||
|
||||
move-result-wide v0
|
||||
|
||||
iput-wide v0, p0, Lokhttp3/MultipartBody;->b:J
|
||||
|
||||
:cond_0
|
||||
return-wide v0
|
||||
.end method
|
||||
|
||||
.method public contentType()Lokhttp3/MediaType;
|
||||
.locals 1
|
||||
|
||||
iget-object v0, p0, Lokhttp3/MultipartBody;->a:Lokhttp3/MediaType;
|
||||
|
||||
return-object v0
|
||||
.end method
|
||||
|
||||
.method public writeTo(Lokio/BufferedSink;)V
|
||||
.locals 1
|
||||
.annotation system Ldalvik/annotation/Throws;
|
||||
value = {
|
||||
Ljava/io/IOException;
|
||||
}
|
||||
.end annotation
|
||||
|
||||
const-string v0, "sink"
|
||||
|
||||
invoke-static {p1, v0}, Lz/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
||||
|
||||
const/4 v0, 0x0
|
||||
|
||||
invoke-virtual {p0, p1, v0}, Lokhttp3/MultipartBody;->a(Lokio/BufferedSink;Z)J
|
||||
|
||||
return-void
|
||||
.end method
|
|
@ -0,0 +1,80 @@
|
|||
.class public final Lokhttp3/RequestBody$Companion$a;
|
||||
.super Lokhttp3/RequestBody;
|
||||
.source "RequestBody.kt"
|
||||
|
||||
|
||||
# annotations
|
||||
.annotation system Ldalvik/annotation/EnclosingMethod;
|
||||
value = Lokhttp3/RequestBody$Companion;->b([BLokhttp3/MediaType;II)Lokhttp3/RequestBody;
|
||||
.end annotation
|
||||
|
||||
.annotation system Ldalvik/annotation/InnerClass;
|
||||
accessFlags = 0x19
|
||||
name = null
|
||||
.end annotation
|
||||
|
||||
|
||||
# instance fields
|
||||
.field public final synthetic a:[B
|
||||
|
||||
.field public final synthetic b:Lokhttp3/MediaType;
|
||||
|
||||
.field public final synthetic c:I
|
||||
|
||||
.field public final synthetic d:I
|
||||
|
||||
|
||||
# direct methods
|
||||
.method public constructor <init>([BLokhttp3/MediaType;II)V
|
||||
.locals 0
|
||||
|
||||
iput-object p1, p0, Lokhttp3/RequestBody$Companion$a;->a:[B
|
||||
|
||||
iput-object p2, p0, Lokhttp3/RequestBody$Companion$a;->b:Lokhttp3/MediaType;
|
||||
|
||||
iput p3, p0, Lokhttp3/RequestBody$Companion$a;->c:I
|
||||
|
||||
iput p4, p0, Lokhttp3/RequestBody$Companion$a;->d:I
|
||||
|
||||
invoke-direct {p0}, Lokhttp3/RequestBody;-><init>()V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
|
||||
# virtual methods
|
||||
.method public contentLength()J
|
||||
.locals 2
|
||||
|
||||
iget v0, p0, Lokhttp3/RequestBody$Companion$a;->c:I
|
||||
|
||||
int-to-long v0, v0
|
||||
|
||||
return-wide v0
|
||||
.end method
|
||||
|
||||
.method public contentType()Lokhttp3/MediaType;
|
||||
.locals 1
|
||||
|
||||
iget-object v0, p0, Lokhttp3/RequestBody$Companion$a;->b:Lokhttp3/MediaType;
|
||||
|
||||
return-object v0
|
||||
.end method
|
||||
|
||||
.method public writeTo(Lokio/BufferedSink;)V
|
||||
.locals 3
|
||||
|
||||
const-string v0, "sink"
|
||||
|
||||
invoke-static {p1, v0}, Lz/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
||||
|
||||
iget-object v0, p0, Lokhttp3/RequestBody$Companion$a;->a:[B
|
||||
|
||||
iget v1, p0, Lokhttp3/RequestBody$Companion$a;->d:I
|
||||
|
||||
iget v2, p0, Lokhttp3/RequestBody$Companion$a;->c:I
|
||||
|
||||
invoke-interface {p1, v0, v1, v2}, Lokio/BufferedSink;->write([BII)Lokio/BufferedSink;
|
||||
|
||||
return-void
|
||||
.end method
|
187
com.discord/smali_classes2/okhttp3/RequestBody$Companion.smali
Normal file
187
com.discord/smali_classes2/okhttp3/RequestBody$Companion.smali
Normal file
|
@ -0,0 +1,187 @@
|
|||
.class public final Lokhttp3/RequestBody$Companion;
|
||||
.super Ljava/lang/Object;
|
||||
.source "RequestBody.kt"
|
||||
|
||||
|
||||
# annotations
|
||||
.annotation system Ldalvik/annotation/EnclosingClass;
|
||||
value = Lokhttp3/RequestBody;
|
||||
.end annotation
|
||||
|
||||
.annotation system Ldalvik/annotation/InnerClass;
|
||||
accessFlags = 0x19
|
||||
name = "Companion"
|
||||
.end annotation
|
||||
|
||||
|
||||
# direct methods
|
||||
.method public constructor <init>()V
|
||||
.locals 0
|
||||
|
||||
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public constructor <init>(Lkotlin/jvm/internal/DefaultConstructorMarker;)V
|
||||
.locals 0
|
||||
|
||||
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public static c(Lokhttp3/RequestBody$Companion;Lokhttp3/MediaType;[BIII)Lokhttp3/RequestBody;
|
||||
.locals 1
|
||||
|
||||
and-int/lit8 v0, p5, 0x4
|
||||
|
||||
if-eqz v0, :cond_0
|
||||
|
||||
const/4 p3, 0x0
|
||||
|
||||
:cond_0
|
||||
and-int/lit8 p5, p5, 0x8
|
||||
|
||||
if-eqz p5, :cond_1
|
||||
|
||||
array-length p4, p2
|
||||
|
||||
:cond_1
|
||||
if-eqz p0, :cond_2
|
||||
|
||||
const-string p5, "content"
|
||||
|
||||
invoke-static {p2, p5}, Lz/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
||||
|
||||
invoke-virtual {p0, p2, p1, p3, p4}, Lokhttp3/RequestBody$Companion;->b([BLokhttp3/MediaType;II)Lokhttp3/RequestBody;
|
||||
|
||||
move-result-object p0
|
||||
|
||||
return-object p0
|
||||
|
||||
:cond_2
|
||||
const/4 p0, 0x0
|
||||
|
||||
throw p0
|
||||
.end method
|
||||
|
||||
.method public static synthetic d(Lokhttp3/RequestBody$Companion;[BLokhttp3/MediaType;III)Lokhttp3/RequestBody;
|
||||
.locals 1
|
||||
|
||||
and-int/lit8 v0, p5, 0x1
|
||||
|
||||
if-eqz v0, :cond_0
|
||||
|
||||
const/4 p2, 0x0
|
||||
|
||||
:cond_0
|
||||
and-int/lit8 v0, p5, 0x2
|
||||
|
||||
if-eqz v0, :cond_1
|
||||
|
||||
const/4 p3, 0x0
|
||||
|
||||
:cond_1
|
||||
and-int/lit8 p5, p5, 0x4
|
||||
|
||||
if-eqz p5, :cond_2
|
||||
|
||||
array-length p4, p1
|
||||
|
||||
:cond_2
|
||||
invoke-virtual {p0, p1, p2, p3, p4}, Lokhttp3/RequestBody$Companion;->b([BLokhttp3/MediaType;II)Lokhttp3/RequestBody;
|
||||
|
||||
move-result-object p0
|
||||
|
||||
return-object p0
|
||||
.end method
|
||||
|
||||
|
||||
# virtual methods
|
||||
.method public final a(Ljava/lang/String;Lokhttp3/MediaType;)Lokhttp3/RequestBody;
|
||||
.locals 2
|
||||
|
||||
const-string v0, "$this$toRequestBody"
|
||||
|
||||
invoke-static {p1, v0}, Lz/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
||||
|
||||
sget-object v0, Lz/t/a;->a:Ljava/nio/charset/Charset;
|
||||
|
||||
if-eqz p2, :cond_0
|
||||
|
||||
const/4 v0, 0x0
|
||||
|
||||
const/4 v1, 0x1
|
||||
|
||||
invoke-static {p2, v0, v1}, Lokhttp3/MediaType;->b(Lokhttp3/MediaType;Ljava/nio/charset/Charset;I)Ljava/nio/charset/Charset;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
if-nez v0, :cond_0
|
||||
|
||||
sget-object v0, Lz/t/a;->a:Ljava/nio/charset/Charset;
|
||||
|
||||
sget-object v1, Lokhttp3/MediaType;->g:Lokhttp3/MediaType$a;
|
||||
|
||||
new-instance v1, Ljava/lang/StringBuilder;
|
||||
|
||||
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
|
||||
|
||||
invoke-virtual {v1, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
||||
|
||||
const-string p2, "; charset=utf-8"
|
||||
|
||||
invoke-virtual {v1, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||||
|
||||
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
||||
|
||||
move-result-object p2
|
||||
|
||||
invoke-static {p2}, Lokhttp3/MediaType$a;->b(Ljava/lang/String;)Lokhttp3/MediaType;
|
||||
|
||||
move-result-object p2
|
||||
|
||||
:cond_0
|
||||
invoke-virtual {p1, v0}, Ljava/lang/String;->getBytes(Ljava/nio/charset/Charset;)[B
|
||||
|
||||
move-result-object p1
|
||||
|
||||
const-string v0, "(this as java.lang.String).getBytes(charset)"
|
||||
|
||||
invoke-static {p1, v0}, Lz/n/c/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
||||
|
||||
const/4 v0, 0x0
|
||||
|
||||
array-length v1, p1
|
||||
|
||||
invoke-virtual {p0, p1, p2, v0, v1}, Lokhttp3/RequestBody$Companion;->b([BLokhttp3/MediaType;II)Lokhttp3/RequestBody;
|
||||
|
||||
move-result-object p1
|
||||
|
||||
return-object p1
|
||||
.end method
|
||||
|
||||
.method public final b([BLokhttp3/MediaType;II)Lokhttp3/RequestBody;
|
||||
.locals 7
|
||||
|
||||
const-string v0, "$this$toRequestBody"
|
||||
|
||||
invoke-static {p1, v0}, Lz/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
||||
|
||||
array-length v0, p1
|
||||
|
||||
int-to-long v1, v0
|
||||
|
||||
int-to-long v3, p3
|
||||
|
||||
int-to-long v5, p4
|
||||
|
||||
invoke-static/range {v1 .. v6}, Ld0/h0/c;->e(JJJ)V
|
||||
|
||||
new-instance v0, Lokhttp3/RequestBody$Companion$a;
|
||||
|
||||
invoke-direct {v0, p1, p2, p4, p3}, Lokhttp3/RequestBody$Companion$a;-><init>([BLokhttp3/MediaType;II)V
|
||||
|
||||
return-object v0
|
||||
.end method
|
361
com.discord/smali_classes2/okhttp3/RequestBody.smali
Normal file
361
com.discord/smali_classes2/okhttp3/RequestBody.smali
Normal file
|
@ -0,0 +1,361 @@
|
|||
.class public abstract Lokhttp3/RequestBody;
|
||||
.super Ljava/lang/Object;
|
||||
.source "RequestBody.kt"
|
||||
|
||||
|
||||
# annotations
|
||||
.annotation system Ldalvik/annotation/MemberClasses;
|
||||
value = {
|
||||
Lokhttp3/RequestBody$Companion;
|
||||
}
|
||||
.end annotation
|
||||
|
||||
|
||||
# static fields
|
||||
.field public static final Companion:Lokhttp3/RequestBody$Companion;
|
||||
|
||||
|
||||
# direct methods
|
||||
.method public static constructor <clinit>()V
|
||||
.locals 2
|
||||
|
||||
new-instance v0, Lokhttp3/RequestBody$Companion;
|
||||
|
||||
const/4 v1, 0x0
|
||||
|
||||
invoke-direct {v0, v1}, Lokhttp3/RequestBody$Companion;-><init>(Lkotlin/jvm/internal/DefaultConstructorMarker;)V
|
||||
|
||||
sput-object v0, Lokhttp3/RequestBody;->Companion:Lokhttp3/RequestBody$Companion;
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public constructor <init>()V
|
||||
.locals 0
|
||||
|
||||
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public static final create(Ljava/io/File;Lokhttp3/MediaType;)Lokhttp3/RequestBody;
|
||||
.locals 1
|
||||
|
||||
sget-object v0, Lokhttp3/RequestBody;->Companion:Lokhttp3/RequestBody$Companion;
|
||||
|
||||
if-eqz v0, :cond_0
|
||||
|
||||
const-string v0, "$this$asRequestBody"
|
||||
|
||||
invoke-static {p0, v0}, Lz/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
||||
|
||||
new-instance v0, Ld0/c0;
|
||||
|
||||
invoke-direct {v0, p0, p1}, Ld0/c0;-><init>(Ljava/io/File;Lokhttp3/MediaType;)V
|
||||
|
||||
return-object v0
|
||||
|
||||
:cond_0
|
||||
const/4 p0, 0x0
|
||||
|
||||
throw p0
|
||||
.end method
|
||||
|
||||
.method public static final create(Ljava/lang/String;Lokhttp3/MediaType;)Lokhttp3/RequestBody;
|
||||
.locals 1
|
||||
|
||||
sget-object v0, Lokhttp3/RequestBody;->Companion:Lokhttp3/RequestBody$Companion;
|
||||
|
||||
invoke-virtual {v0, p0, p1}, Lokhttp3/RequestBody$Companion;->a(Ljava/lang/String;Lokhttp3/MediaType;)Lokhttp3/RequestBody;
|
||||
|
||||
move-result-object p0
|
||||
|
||||
return-object p0
|
||||
.end method
|
||||
|
||||
.method public static final create(Lokhttp3/MediaType;Ljava/io/File;)Lokhttp3/RequestBody;
|
||||
.locals 1
|
||||
|
||||
sget-object v0, Lokhttp3/RequestBody;->Companion:Lokhttp3/RequestBody$Companion;
|
||||
|
||||
if-eqz v0, :cond_0
|
||||
|
||||
const-string v0, "file"
|
||||
|
||||
invoke-static {p1, v0}, Lz/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
||||
|
||||
const-string v0, "$this$asRequestBody"
|
||||
|
||||
invoke-static {p1, v0}, Lz/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
||||
|
||||
new-instance v0, Ld0/c0;
|
||||
|
||||
invoke-direct {v0, p1, p0}, Ld0/c0;-><init>(Ljava/io/File;Lokhttp3/MediaType;)V
|
||||
|
||||
return-object v0
|
||||
|
||||
:cond_0
|
||||
const/4 p0, 0x0
|
||||
|
||||
throw p0
|
||||
.end method
|
||||
|
||||
.method public static final create(Lokhttp3/MediaType;Ljava/lang/String;)Lokhttp3/RequestBody;
|
||||
.locals 2
|
||||
|
||||
sget-object v0, Lokhttp3/RequestBody;->Companion:Lokhttp3/RequestBody$Companion;
|
||||
|
||||
if-eqz v0, :cond_0
|
||||
|
||||
const-string v1, "content"
|
||||
|
||||
invoke-static {p1, v1}, Lz/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
||||
|
||||
invoke-virtual {v0, p1, p0}, Lokhttp3/RequestBody$Companion;->a(Ljava/lang/String;Lokhttp3/MediaType;)Lokhttp3/RequestBody;
|
||||
|
||||
move-result-object p0
|
||||
|
||||
return-object p0
|
||||
|
||||
:cond_0
|
||||
const/4 p0, 0x0
|
||||
|
||||
throw p0
|
||||
.end method
|
||||
|
||||
.method public static final create(Lokhttp3/MediaType;Lokio/ByteString;)Lokhttp3/RequestBody;
|
||||
.locals 1
|
||||
|
||||
sget-object v0, Lokhttp3/RequestBody;->Companion:Lokhttp3/RequestBody$Companion;
|
||||
|
||||
if-eqz v0, :cond_0
|
||||
|
||||
const-string v0, "content"
|
||||
|
||||
invoke-static {p1, v0}, Lz/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
||||
|
||||
const-string v0, "$this$toRequestBody"
|
||||
|
||||
invoke-static {p1, v0}, Lz/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
||||
|
||||
new-instance v0, Ld0/d0;
|
||||
|
||||
invoke-direct {v0, p1, p0}, Ld0/d0;-><init>(Lokio/ByteString;Lokhttp3/MediaType;)V
|
||||
|
||||
return-object v0
|
||||
|
||||
:cond_0
|
||||
const/4 p0, 0x0
|
||||
|
||||
throw p0
|
||||
.end method
|
||||
|
||||
.method public static final create(Lokhttp3/MediaType;[B)Lokhttp3/RequestBody;
|
||||
.locals 6
|
||||
|
||||
sget-object v0, Lokhttp3/RequestBody;->Companion:Lokhttp3/RequestBody$Companion;
|
||||
|
||||
const/4 v3, 0x0
|
||||
|
||||
const/4 v4, 0x0
|
||||
|
||||
const/16 v5, 0xc
|
||||
|
||||
move-object v1, p0
|
||||
|
||||
move-object v2, p1
|
||||
|
||||
invoke-static/range {v0 .. v5}, Lokhttp3/RequestBody$Companion;->c(Lokhttp3/RequestBody$Companion;Lokhttp3/MediaType;[BIII)Lokhttp3/RequestBody;
|
||||
|
||||
move-result-object p0
|
||||
|
||||
return-object p0
|
||||
.end method
|
||||
|
||||
.method public static final create(Lokhttp3/MediaType;[BI)Lokhttp3/RequestBody;
|
||||
.locals 6
|
||||
|
||||
sget-object v0, Lokhttp3/RequestBody;->Companion:Lokhttp3/RequestBody$Companion;
|
||||
|
||||
const/4 v4, 0x0
|
||||
|
||||
const/16 v5, 0x8
|
||||
|
||||
move-object v1, p0
|
||||
|
||||
move-object v2, p1
|
||||
|
||||
move v3, p2
|
||||
|
||||
invoke-static/range {v0 .. v5}, Lokhttp3/RequestBody$Companion;->c(Lokhttp3/RequestBody$Companion;Lokhttp3/MediaType;[BIII)Lokhttp3/RequestBody;
|
||||
|
||||
move-result-object p0
|
||||
|
||||
return-object p0
|
||||
.end method
|
||||
|
||||
.method public static final create(Lokhttp3/MediaType;[BII)Lokhttp3/RequestBody;
|
||||
.locals 2
|
||||
|
||||
sget-object v0, Lokhttp3/RequestBody;->Companion:Lokhttp3/RequestBody$Companion;
|
||||
|
||||
if-eqz v0, :cond_0
|
||||
|
||||
const-string v1, "content"
|
||||
|
||||
invoke-static {p1, v1}, Lz/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
||||
|
||||
invoke-virtual {v0, p1, p0, p2, p3}, Lokhttp3/RequestBody$Companion;->b([BLokhttp3/MediaType;II)Lokhttp3/RequestBody;
|
||||
|
||||
move-result-object p0
|
||||
|
||||
return-object p0
|
||||
|
||||
:cond_0
|
||||
const/4 p0, 0x0
|
||||
|
||||
throw p0
|
||||
.end method
|
||||
|
||||
.method public static final create(Lokio/ByteString;Lokhttp3/MediaType;)Lokhttp3/RequestBody;
|
||||
.locals 1
|
||||
|
||||
sget-object v0, Lokhttp3/RequestBody;->Companion:Lokhttp3/RequestBody$Companion;
|
||||
|
||||
if-eqz v0, :cond_0
|
||||
|
||||
const-string v0, "$this$toRequestBody"
|
||||
|
||||
invoke-static {p0, v0}, Lz/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
||||
|
||||
new-instance v0, Ld0/d0;
|
||||
|
||||
invoke-direct {v0, p0, p1}, Ld0/d0;-><init>(Lokio/ByteString;Lokhttp3/MediaType;)V
|
||||
|
||||
return-object v0
|
||||
|
||||
:cond_0
|
||||
const/4 p0, 0x0
|
||||
|
||||
throw p0
|
||||
.end method
|
||||
|
||||
.method public static final create([B)Lokhttp3/RequestBody;
|
||||
.locals 6
|
||||
|
||||
sget-object v0, Lokhttp3/RequestBody;->Companion:Lokhttp3/RequestBody$Companion;
|
||||
|
||||
const/4 v2, 0x0
|
||||
|
||||
const/4 v3, 0x0
|
||||
|
||||
const/4 v4, 0x0
|
||||
|
||||
const/4 v5, 0x7
|
||||
|
||||
move-object v1, p0
|
||||
|
||||
invoke-static/range {v0 .. v5}, Lokhttp3/RequestBody$Companion;->d(Lokhttp3/RequestBody$Companion;[BLokhttp3/MediaType;III)Lokhttp3/RequestBody;
|
||||
|
||||
move-result-object p0
|
||||
|
||||
return-object p0
|
||||
.end method
|
||||
|
||||
.method public static final create([BLokhttp3/MediaType;)Lokhttp3/RequestBody;
|
||||
.locals 6
|
||||
|
||||
sget-object v0, Lokhttp3/RequestBody;->Companion:Lokhttp3/RequestBody$Companion;
|
||||
|
||||
const/4 v3, 0x0
|
||||
|
||||
const/4 v4, 0x0
|
||||
|
||||
const/4 v5, 0x6
|
||||
|
||||
move-object v1, p0
|
||||
|
||||
move-object v2, p1
|
||||
|
||||
invoke-static/range {v0 .. v5}, Lokhttp3/RequestBody$Companion;->d(Lokhttp3/RequestBody$Companion;[BLokhttp3/MediaType;III)Lokhttp3/RequestBody;
|
||||
|
||||
move-result-object p0
|
||||
|
||||
return-object p0
|
||||
.end method
|
||||
|
||||
.method public static final create([BLokhttp3/MediaType;I)Lokhttp3/RequestBody;
|
||||
.locals 6
|
||||
|
||||
sget-object v0, Lokhttp3/RequestBody;->Companion:Lokhttp3/RequestBody$Companion;
|
||||
|
||||
const/4 v4, 0x0
|
||||
|
||||
const/4 v5, 0x4
|
||||
|
||||
move-object v1, p0
|
||||
|
||||
move-object v2, p1
|
||||
|
||||
move v3, p2
|
||||
|
||||
invoke-static/range {v0 .. v5}, Lokhttp3/RequestBody$Companion;->d(Lokhttp3/RequestBody$Companion;[BLokhttp3/MediaType;III)Lokhttp3/RequestBody;
|
||||
|
||||
move-result-object p0
|
||||
|
||||
return-object p0
|
||||
.end method
|
||||
|
||||
.method public static final create([BLokhttp3/MediaType;II)Lokhttp3/RequestBody;
|
||||
.locals 1
|
||||
|
||||
sget-object v0, Lokhttp3/RequestBody;->Companion:Lokhttp3/RequestBody$Companion;
|
||||
|
||||
invoke-virtual {v0, p0, p1, p2, p3}, Lokhttp3/RequestBody$Companion;->b([BLokhttp3/MediaType;II)Lokhttp3/RequestBody;
|
||||
|
||||
move-result-object p0
|
||||
|
||||
return-object p0
|
||||
.end method
|
||||
|
||||
|
||||
# virtual methods
|
||||
.method public contentLength()J
|
||||
.locals 2
|
||||
.annotation system Ldalvik/annotation/Throws;
|
||||
value = {
|
||||
Ljava/io/IOException;
|
||||
}
|
||||
.end annotation
|
||||
|
||||
const-wide/16 v0, -0x1
|
||||
|
||||
return-wide v0
|
||||
.end method
|
||||
|
||||
.method public abstract contentType()Lokhttp3/MediaType;
|
||||
.end method
|
||||
|
||||
.method public isDuplex()Z
|
||||
.locals 1
|
||||
|
||||
const/4 v0, 0x0
|
||||
|
||||
return v0
|
||||
.end method
|
||||
|
||||
.method public isOneShot()Z
|
||||
.locals 1
|
||||
|
||||
const/4 v0, 0x0
|
||||
|
||||
return v0
|
||||
.end method
|
||||
|
||||
.method public abstract writeTo(Lokio/BufferedSink;)V
|
||||
.annotation system Ldalvik/annotation/Throws;
|
||||
value = {
|
||||
Ljava/io/IOException;
|
||||
}
|
||||
.end annotation
|
||||
.end method
|
469
com.discord/smali_classes2/okhttp3/Response$a.smali
Normal file
469
com.discord/smali_classes2/okhttp3/Response$a.smali
Normal file
|
@ -0,0 +1,469 @@
|
|||
.class public Lokhttp3/Response$a;
|
||||
.super Ljava/lang/Object;
|
||||
.source "Response.kt"
|
||||
|
||||
|
||||
# annotations
|
||||
.annotation system Ldalvik/annotation/EnclosingClass;
|
||||
value = Lokhttp3/Response;
|
||||
.end annotation
|
||||
|
||||
.annotation system Ldalvik/annotation/InnerClass;
|
||||
accessFlags = 0x9
|
||||
name = "a"
|
||||
.end annotation
|
||||
|
||||
|
||||
# instance fields
|
||||
.field public a:Ld0/b0;
|
||||
|
||||
.field public b:Ld0/a0;
|
||||
|
||||
.field public c:I
|
||||
|
||||
.field public d:Ljava/lang/String;
|
||||
|
||||
.field public e:Ld0/x;
|
||||
|
||||
.field public f:Lokhttp3/Headers$a;
|
||||
|
||||
.field public g:Lokhttp3/ResponseBody;
|
||||
|
||||
.field public h:Lokhttp3/Response;
|
||||
|
||||
.field public i:Lokhttp3/Response;
|
||||
|
||||
.field public j:Lokhttp3/Response;
|
||||
|
||||
.field public k:J
|
||||
|
||||
.field public l:J
|
||||
|
||||
.field public m:Ld0/h0/g/c;
|
||||
|
||||
|
||||
# direct methods
|
||||
.method public constructor <init>()V
|
||||
.locals 1
|
||||
|
||||
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||||
|
||||
const/4 v0, -0x1
|
||||
|
||||
iput v0, p0, Lokhttp3/Response$a;->c:I
|
||||
|
||||
new-instance v0, Lokhttp3/Headers$a;
|
||||
|
||||
invoke-direct {v0}, Lokhttp3/Headers$a;-><init>()V
|
||||
|
||||
iput-object v0, p0, Lokhttp3/Response$a;->f:Lokhttp3/Headers$a;
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public constructor <init>(Lokhttp3/Response;)V
|
||||
.locals 2
|
||||
|
||||
const-string v0, "response"
|
||||
|
||||
invoke-static {p1, v0}, Lz/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
||||
|
||||
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||||
|
||||
const/4 v0, -0x1
|
||||
|
||||
iput v0, p0, Lokhttp3/Response$a;->c:I
|
||||
|
||||
iget-object v0, p1, Lokhttp3/Response;->d:Ld0/b0;
|
||||
|
||||
iput-object v0, p0, Lokhttp3/Response$a;->a:Ld0/b0;
|
||||
|
||||
iget-object v0, p1, Lokhttp3/Response;->e:Ld0/a0;
|
||||
|
||||
iput-object v0, p0, Lokhttp3/Response$a;->b:Ld0/a0;
|
||||
|
||||
iget v0, p1, Lokhttp3/Response;->g:I
|
||||
|
||||
iput v0, p0, Lokhttp3/Response$a;->c:I
|
||||
|
||||
iget-object v0, p1, Lokhttp3/Response;->f:Ljava/lang/String;
|
||||
|
||||
iput-object v0, p0, Lokhttp3/Response$a;->d:Ljava/lang/String;
|
||||
|
||||
iget-object v0, p1, Lokhttp3/Response;->h:Ld0/x;
|
||||
|
||||
iput-object v0, p0, Lokhttp3/Response$a;->e:Ld0/x;
|
||||
|
||||
iget-object v0, p1, Lokhttp3/Response;->i:Lokhttp3/Headers;
|
||||
|
||||
invoke-virtual {v0}, Lokhttp3/Headers;->e()Lokhttp3/Headers$a;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
iput-object v0, p0, Lokhttp3/Response$a;->f:Lokhttp3/Headers$a;
|
||||
|
||||
iget-object v0, p1, Lokhttp3/Response;->j:Lokhttp3/ResponseBody;
|
||||
|
||||
iput-object v0, p0, Lokhttp3/Response$a;->g:Lokhttp3/ResponseBody;
|
||||
|
||||
iget-object v0, p1, Lokhttp3/Response;->k:Lokhttp3/Response;
|
||||
|
||||
iput-object v0, p0, Lokhttp3/Response$a;->h:Lokhttp3/Response;
|
||||
|
||||
iget-object v0, p1, Lokhttp3/Response;->l:Lokhttp3/Response;
|
||||
|
||||
iput-object v0, p0, Lokhttp3/Response$a;->i:Lokhttp3/Response;
|
||||
|
||||
iget-object v0, p1, Lokhttp3/Response;->m:Lokhttp3/Response;
|
||||
|
||||
iput-object v0, p0, Lokhttp3/Response$a;->j:Lokhttp3/Response;
|
||||
|
||||
iget-wide v0, p1, Lokhttp3/Response;->n:J
|
||||
|
||||
iput-wide v0, p0, Lokhttp3/Response$a;->k:J
|
||||
|
||||
iget-wide v0, p1, Lokhttp3/Response;->o:J
|
||||
|
||||
iput-wide v0, p0, Lokhttp3/Response$a;->l:J
|
||||
|
||||
iget-object p1, p1, Lokhttp3/Response;->p:Ld0/h0/g/c;
|
||||
|
||||
iput-object p1, p0, Lokhttp3/Response$a;->m:Ld0/h0/g/c;
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
|
||||
# virtual methods
|
||||
.method public a()Lokhttp3/Response;
|
||||
.locals 19
|
||||
|
||||
move-object/from16 v0, p0
|
||||
|
||||
iget v1, v0, Lokhttp3/Response$a;->c:I
|
||||
|
||||
if-ltz v1, :cond_0
|
||||
|
||||
const/4 v1, 0x1
|
||||
|
||||
goto :goto_0
|
||||
|
||||
:cond_0
|
||||
const/4 v1, 0x0
|
||||
|
||||
:goto_0
|
||||
if-eqz v1, :cond_4
|
||||
|
||||
iget-object v3, v0, Lokhttp3/Response$a;->a:Ld0/b0;
|
||||
|
||||
if-eqz v3, :cond_3
|
||||
|
||||
iget-object v4, v0, Lokhttp3/Response$a;->b:Ld0/a0;
|
||||
|
||||
if-eqz v4, :cond_2
|
||||
|
||||
iget-object v5, v0, Lokhttp3/Response$a;->d:Ljava/lang/String;
|
||||
|
||||
if-eqz v5, :cond_1
|
||||
|
||||
iget v6, v0, Lokhttp3/Response$a;->c:I
|
||||
|
||||
iget-object v7, v0, Lokhttp3/Response$a;->e:Ld0/x;
|
||||
|
||||
iget-object v1, v0, Lokhttp3/Response$a;->f:Lokhttp3/Headers$a;
|
||||
|
||||
invoke-virtual {v1}, Lokhttp3/Headers$a;->c()Lokhttp3/Headers;
|
||||
|
||||
move-result-object v8
|
||||
|
||||
iget-object v9, v0, Lokhttp3/Response$a;->g:Lokhttp3/ResponseBody;
|
||||
|
||||
iget-object v10, v0, Lokhttp3/Response$a;->h:Lokhttp3/Response;
|
||||
|
||||
iget-object v11, v0, Lokhttp3/Response$a;->i:Lokhttp3/Response;
|
||||
|
||||
iget-object v12, v0, Lokhttp3/Response$a;->j:Lokhttp3/Response;
|
||||
|
||||
iget-wide v13, v0, Lokhttp3/Response$a;->k:J
|
||||
|
||||
iget-wide v1, v0, Lokhttp3/Response$a;->l:J
|
||||
|
||||
iget-object v15, v0, Lokhttp3/Response$a;->m:Ld0/h0/g/c;
|
||||
|
||||
new-instance v18, Lokhttp3/Response;
|
||||
|
||||
move-wide/from16 v16, v1
|
||||
|
||||
move-object/from16 v2, v18
|
||||
|
||||
move-object v1, v15
|
||||
|
||||
move-wide/from16 v15, v16
|
||||
|
||||
move-object/from16 v17, v1
|
||||
|
||||
invoke-direct/range {v2 .. v17}, Lokhttp3/Response;-><init>(Ld0/b0;Ld0/a0;Ljava/lang/String;ILd0/x;Lokhttp3/Headers;Lokhttp3/ResponseBody;Lokhttp3/Response;Lokhttp3/Response;Lokhttp3/Response;JJLd0/h0/g/c;)V
|
||||
|
||||
return-object v18
|
||||
|
||||
:cond_1
|
||||
new-instance v1, Ljava/lang/IllegalStateException;
|
||||
|
||||
const-string v2, "message == null"
|
||||
|
||||
invoke-virtual {v2}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
||||
|
||||
move-result-object v2
|
||||
|
||||
invoke-direct {v1, v2}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
||||
|
||||
throw v1
|
||||
|
||||
:cond_2
|
||||
new-instance v1, Ljava/lang/IllegalStateException;
|
||||
|
||||
const-string v2, "protocol == null"
|
||||
|
||||
invoke-virtual {v2}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
||||
|
||||
move-result-object v2
|
||||
|
||||
invoke-direct {v1, v2}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
||||
|
||||
throw v1
|
||||
|
||||
:cond_3
|
||||
new-instance v1, Ljava/lang/IllegalStateException;
|
||||
|
||||
const-string v2, "request == null"
|
||||
|
||||
invoke-virtual {v2}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
||||
|
||||
move-result-object v2
|
||||
|
||||
invoke-direct {v1, v2}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
||||
|
||||
throw v1
|
||||
|
||||
:cond_4
|
||||
const-string v1, "code < 0: "
|
||||
|
||||
invoke-static {v1}, Lf/e/c/a/a;->E(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||||
|
||||
move-result-object v1
|
||||
|
||||
iget v2, v0, Lokhttp3/Response$a;->c:I
|
||||
|
||||
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
|
||||
|
||||
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
||||
|
||||
move-result-object v1
|
||||
|
||||
new-instance v2, Ljava/lang/IllegalStateException;
|
||||
|
||||
invoke-virtual {v1}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
||||
|
||||
move-result-object v1
|
||||
|
||||
invoke-direct {v2, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
||||
|
||||
throw v2
|
||||
.end method
|
||||
|
||||
.method public b(Lokhttp3/Response;)Lokhttp3/Response$a;
|
||||
.locals 1
|
||||
|
||||
const-string v0, "cacheResponse"
|
||||
|
||||
invoke-virtual {p0, v0, p1}, Lokhttp3/Response$a;->c(Ljava/lang/String;Lokhttp3/Response;)V
|
||||
|
||||
iput-object p1, p0, Lokhttp3/Response$a;->i:Lokhttp3/Response;
|
||||
|
||||
return-object p0
|
||||
.end method
|
||||
|
||||
.method public final c(Ljava/lang/String;Lokhttp3/Response;)V
|
||||
.locals 2
|
||||
|
||||
if-eqz p2, :cond_8
|
||||
|
||||
iget-object v0, p2, Lokhttp3/Response;->j:Lokhttp3/ResponseBody;
|
||||
|
||||
const/4 v1, 0x0
|
||||
|
||||
if-nez v0, :cond_0
|
||||
|
||||
const/4 v0, 0x1
|
||||
|
||||
goto :goto_0
|
||||
|
||||
:cond_0
|
||||
const/4 v0, 0x0
|
||||
|
||||
:goto_0
|
||||
if-eqz v0, :cond_7
|
||||
|
||||
iget-object v0, p2, Lokhttp3/Response;->k:Lokhttp3/Response;
|
||||
|
||||
if-nez v0, :cond_1
|
||||
|
||||
const/4 v0, 0x1
|
||||
|
||||
goto :goto_1
|
||||
|
||||
:cond_1
|
||||
const/4 v0, 0x0
|
||||
|
||||
:goto_1
|
||||
if-eqz v0, :cond_6
|
||||
|
||||
iget-object v0, p2, Lokhttp3/Response;->l:Lokhttp3/Response;
|
||||
|
||||
if-nez v0, :cond_2
|
||||
|
||||
const/4 v0, 0x1
|
||||
|
||||
goto :goto_2
|
||||
|
||||
:cond_2
|
||||
const/4 v0, 0x0
|
||||
|
||||
:goto_2
|
||||
if-eqz v0, :cond_5
|
||||
|
||||
iget-object p2, p2, Lokhttp3/Response;->m:Lokhttp3/Response;
|
||||
|
||||
if-nez p2, :cond_3
|
||||
|
||||
const/4 v1, 0x1
|
||||
|
||||
:cond_3
|
||||
if-eqz v1, :cond_4
|
||||
|
||||
goto :goto_3
|
||||
|
||||
:cond_4
|
||||
const-string p2, ".priorResponse != null"
|
||||
|
||||
invoke-static {p1, p2}, Lf/e/c/a/a;->q(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
|
||||
|
||||
move-result-object p1
|
||||
|
||||
new-instance p2, Ljava/lang/IllegalArgumentException;
|
||||
|
||||
invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
||||
|
||||
move-result-object p1
|
||||
|
||||
invoke-direct {p2, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
||||
|
||||
throw p2
|
||||
|
||||
:cond_5
|
||||
const-string p2, ".cacheResponse != null"
|
||||
|
||||
invoke-static {p1, p2}, Lf/e/c/a/a;->q(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
|
||||
|
||||
move-result-object p1
|
||||
|
||||
new-instance p2, Ljava/lang/IllegalArgumentException;
|
||||
|
||||
invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
||||
|
||||
move-result-object p1
|
||||
|
||||
invoke-direct {p2, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
||||
|
||||
throw p2
|
||||
|
||||
:cond_6
|
||||
const-string p2, ".networkResponse != null"
|
||||
|
||||
invoke-static {p1, p2}, Lf/e/c/a/a;->q(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
|
||||
|
||||
move-result-object p1
|
||||
|
||||
new-instance p2, Ljava/lang/IllegalArgumentException;
|
||||
|
||||
invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
||||
|
||||
move-result-object p1
|
||||
|
||||
invoke-direct {p2, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
||||
|
||||
throw p2
|
||||
|
||||
:cond_7
|
||||
const-string p2, ".body != null"
|
||||
|
||||
invoke-static {p1, p2}, Lf/e/c/a/a;->q(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
|
||||
|
||||
move-result-object p1
|
||||
|
||||
new-instance p2, Ljava/lang/IllegalArgumentException;
|
||||
|
||||
invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
||||
|
||||
move-result-object p1
|
||||
|
||||
invoke-direct {p2, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
||||
|
||||
throw p2
|
||||
|
||||
:cond_8
|
||||
:goto_3
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public d(Lokhttp3/Headers;)Lokhttp3/Response$a;
|
||||
.locals 1
|
||||
|
||||
const-string v0, "headers"
|
||||
|
||||
invoke-static {p1, v0}, Lz/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
||||
|
||||
invoke-virtual {p1}, Lokhttp3/Headers;->e()Lokhttp3/Headers$a;
|
||||
|
||||
move-result-object p1
|
||||
|
||||
iput-object p1, p0, Lokhttp3/Response$a;->f:Lokhttp3/Headers$a;
|
||||
|
||||
return-object p0
|
||||
.end method
|
||||
|
||||
.method public e(Ljava/lang/String;)Lokhttp3/Response$a;
|
||||
.locals 1
|
||||
|
||||
const-string v0, "message"
|
||||
|
||||
invoke-static {p1, v0}, Lz/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
||||
|
||||
iput-object p1, p0, Lokhttp3/Response$a;->d:Ljava/lang/String;
|
||||
|
||||
return-object p0
|
||||
.end method
|
||||
|
||||
.method public f(Ld0/a0;)Lokhttp3/Response$a;
|
||||
.locals 1
|
||||
|
||||
const-string v0, "protocol"
|
||||
|
||||
invoke-static {p1, v0}, Lz/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
||||
|
||||
iput-object p1, p0, Lokhttp3/Response$a;->b:Ld0/a0;
|
||||
|
||||
return-object p0
|
||||
.end method
|
||||
|
||||
.method public g(Ld0/b0;)Lokhttp3/Response$a;
|
||||
.locals 1
|
||||
|
||||
const-string v0, "request"
|
||||
|
||||
invoke-static {p1, v0}, Lz/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
||||
|
||||
iput-object p1, p0, Lokhttp3/Response$a;->a:Ld0/b0;
|
||||
|
||||
return-object p0
|
||||
.end method
|
257
com.discord/smali_classes2/okhttp3/Response.smali
Normal file
257
com.discord/smali_classes2/okhttp3/Response.smali
Normal file
|
@ -0,0 +1,257 @@
|
|||
.class public final Lokhttp3/Response;
|
||||
.super Ljava/lang/Object;
|
||||
.source "Response.kt"
|
||||
|
||||
# interfaces
|
||||
.implements Ljava/io/Closeable;
|
||||
|
||||
|
||||
# annotations
|
||||
.annotation system Ldalvik/annotation/MemberClasses;
|
||||
value = {
|
||||
Lokhttp3/Response$a;
|
||||
}
|
||||
.end annotation
|
||||
|
||||
|
||||
# instance fields
|
||||
.field public final d:Ld0/b0;
|
||||
|
||||
.field public final e:Ld0/a0;
|
||||
|
||||
.field public final f:Ljava/lang/String;
|
||||
|
||||
.field public final g:I
|
||||
|
||||
.field public final h:Ld0/x;
|
||||
|
||||
.field public final i:Lokhttp3/Headers;
|
||||
|
||||
.field public final j:Lokhttp3/ResponseBody;
|
||||
|
||||
.field public final k:Lokhttp3/Response;
|
||||
|
||||
.field public final l:Lokhttp3/Response;
|
||||
|
||||
.field public final m:Lokhttp3/Response;
|
||||
|
||||
.field public final n:J
|
||||
|
||||
.field public final o:J
|
||||
|
||||
.field public final p:Ld0/h0/g/c;
|
||||
|
||||
|
||||
# direct methods
|
||||
.method public constructor <init>(Ld0/b0;Ld0/a0;Ljava/lang/String;ILd0/x;Lokhttp3/Headers;Lokhttp3/ResponseBody;Lokhttp3/Response;Lokhttp3/Response;Lokhttp3/Response;JJLd0/h0/g/c;)V
|
||||
.locals 6
|
||||
|
||||
move-object v0, p0
|
||||
|
||||
move-object v1, p1
|
||||
|
||||
move-object v2, p2
|
||||
|
||||
move-object v3, p3
|
||||
|
||||
move-object v4, p6
|
||||
|
||||
const-string v5, "request"
|
||||
|
||||
invoke-static {p1, v5}, Lz/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
||||
|
||||
const-string v5, "protocol"
|
||||
|
||||
invoke-static {p2, v5}, Lz/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
||||
|
||||
const-string v5, "message"
|
||||
|
||||
invoke-static {p3, v5}, Lz/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
||||
|
||||
const-string v5, "headers"
|
||||
|
||||
invoke-static {p6, v5}, Lz/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
||||
|
||||
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||||
|
||||
iput-object v1, v0, Lokhttp3/Response;->d:Ld0/b0;
|
||||
|
||||
iput-object v2, v0, Lokhttp3/Response;->e:Ld0/a0;
|
||||
|
||||
iput-object v3, v0, Lokhttp3/Response;->f:Ljava/lang/String;
|
||||
|
||||
move v1, p4
|
||||
|
||||
iput v1, v0, Lokhttp3/Response;->g:I
|
||||
|
||||
move-object v1, p5
|
||||
|
||||
iput-object v1, v0, Lokhttp3/Response;->h:Ld0/x;
|
||||
|
||||
iput-object v4, v0, Lokhttp3/Response;->i:Lokhttp3/Headers;
|
||||
|
||||
move-object v1, p7
|
||||
|
||||
iput-object v1, v0, Lokhttp3/Response;->j:Lokhttp3/ResponseBody;
|
||||
|
||||
move-object v1, p8
|
||||
|
||||
iput-object v1, v0, Lokhttp3/Response;->k:Lokhttp3/Response;
|
||||
|
||||
move-object v1, p9
|
||||
|
||||
iput-object v1, v0, Lokhttp3/Response;->l:Lokhttp3/Response;
|
||||
|
||||
move-object/from16 v1, p10
|
||||
|
||||
iput-object v1, v0, Lokhttp3/Response;->m:Lokhttp3/Response;
|
||||
|
||||
move-wide/from16 v1, p11
|
||||
|
||||
iput-wide v1, v0, Lokhttp3/Response;->n:J
|
||||
|
||||
move-wide/from16 v1, p13
|
||||
|
||||
iput-wide v1, v0, Lokhttp3/Response;->o:J
|
||||
|
||||
move-object/from16 v1, p15
|
||||
|
||||
iput-object v1, v0, Lokhttp3/Response;->p:Ld0/h0/g/c;
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public static a(Lokhttp3/Response;Ljava/lang/String;Ljava/lang/String;I)Ljava/lang/String;
|
||||
.locals 0
|
||||
|
||||
and-int/lit8 p2, p3, 0x2
|
||||
|
||||
const/4 p2, 0x0
|
||||
|
||||
if-eqz p0, :cond_1
|
||||
|
||||
const-string p3, "name"
|
||||
|
||||
invoke-static {p1, p3}, Lz/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
||||
|
||||
iget-object p0, p0, Lokhttp3/Response;->i:Lokhttp3/Headers;
|
||||
|
||||
invoke-virtual {p0, p1}, Lokhttp3/Headers;->c(Ljava/lang/String;)Ljava/lang/String;
|
||||
|
||||
move-result-object p0
|
||||
|
||||
if-eqz p0, :cond_0
|
||||
|
||||
move-object p2, p0
|
||||
|
||||
:cond_0
|
||||
return-object p2
|
||||
|
||||
:cond_1
|
||||
throw p2
|
||||
.end method
|
||||
|
||||
|
||||
# virtual methods
|
||||
.method public final b()Z
|
||||
.locals 2
|
||||
|
||||
iget v0, p0, Lokhttp3/Response;->g:I
|
||||
|
||||
const/16 v1, 0xc8
|
||||
|
||||
if-le v1, v0, :cond_0
|
||||
|
||||
goto :goto_0
|
||||
|
||||
:cond_0
|
||||
const/16 v1, 0x12b
|
||||
|
||||
if-lt v1, v0, :cond_1
|
||||
|
||||
const/4 v0, 0x1
|
||||
|
||||
goto :goto_1
|
||||
|
||||
:cond_1
|
||||
:goto_0
|
||||
const/4 v0, 0x0
|
||||
|
||||
:goto_1
|
||||
return v0
|
||||
.end method
|
||||
|
||||
.method public close()V
|
||||
.locals 2
|
||||
|
||||
iget-object v0, p0, Lokhttp3/Response;->j:Lokhttp3/ResponseBody;
|
||||
|
||||
if-eqz v0, :cond_0
|
||||
|
||||
invoke-virtual {v0}, Lokhttp3/ResponseBody;->close()V
|
||||
|
||||
return-void
|
||||
|
||||
:cond_0
|
||||
new-instance v0, Ljava/lang/IllegalStateException;
|
||||
|
||||
const-string v1, "response is not eligible for a body and must not be closed"
|
||||
|
||||
invoke-virtual {v1}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
||||
|
||||
move-result-object v1
|
||||
|
||||
invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
||||
|
||||
throw v0
|
||||
.end method
|
||||
|
||||
.method public toString()Ljava/lang/String;
|
||||
.locals 2
|
||||
|
||||
const-string v0, "Response{protocol="
|
||||
|
||||
invoke-static {v0}, Lf/e/c/a/a;->E(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
iget-object v1, p0, Lokhttp3/Response;->e:Ld0/a0;
|
||||
|
||||
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
||||
|
||||
const-string v1, ", code="
|
||||
|
||||
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||||
|
||||
iget v1, p0, Lokhttp3/Response;->g:I
|
||||
|
||||
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
|
||||
|
||||
const-string v1, ", message="
|
||||
|
||||
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||||
|
||||
iget-object v1, p0, Lokhttp3/Response;->f:Ljava/lang/String;
|
||||
|
||||
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||||
|
||||
const-string v1, ", url="
|
||||
|
||||
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||||
|
||||
iget-object v1, p0, Lokhttp3/Response;->d:Ld0/b0;
|
||||
|
||||
iget-object v1, v1, Ld0/b0;->b:Ld0/y;
|
||||
|
||||
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
||||
|
||||
const/16 v1, 0x7d
|
||||
|
||||
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
|
||||
|
||||
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
return-object v0
|
||||
.end method
|
137
com.discord/smali_classes2/okhttp3/ResponseBody$a.smali
Normal file
137
com.discord/smali_classes2/okhttp3/ResponseBody$a.smali
Normal file
|
@ -0,0 +1,137 @@
|
|||
.class public final Lokhttp3/ResponseBody$a;
|
||||
.super Ljava/io/Reader;
|
||||
.source "ResponseBody.kt"
|
||||
|
||||
|
||||
# annotations
|
||||
.annotation system Ldalvik/annotation/EnclosingClass;
|
||||
value = Lokhttp3/ResponseBody;
|
||||
.end annotation
|
||||
|
||||
.annotation system Ldalvik/annotation/InnerClass;
|
||||
accessFlags = 0x19
|
||||
name = "a"
|
||||
.end annotation
|
||||
|
||||
|
||||
# instance fields
|
||||
.field public d:Z
|
||||
|
||||
.field public e:Ljava/io/Reader;
|
||||
|
||||
.field public final f:Le0/g;
|
||||
|
||||
.field public final g:Ljava/nio/charset/Charset;
|
||||
|
||||
|
||||
# direct methods
|
||||
.method public constructor <init>(Le0/g;Ljava/nio/charset/Charset;)V
|
||||
.locals 1
|
||||
|
||||
const-string v0, "source"
|
||||
|
||||
invoke-static {p1, v0}, Lz/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
||||
|
||||
const-string v0, "charset"
|
||||
|
||||
invoke-static {p2, v0}, Lz/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
||||
|
||||
invoke-direct {p0}, Ljava/io/Reader;-><init>()V
|
||||
|
||||
iput-object p1, p0, Lokhttp3/ResponseBody$a;->f:Le0/g;
|
||||
|
||||
iput-object p2, p0, Lokhttp3/ResponseBody$a;->g:Ljava/nio/charset/Charset;
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
|
||||
# virtual methods
|
||||
.method public close()V
|
||||
.locals 1
|
||||
.annotation system Ldalvik/annotation/Throws;
|
||||
value = {
|
||||
Ljava/io/IOException;
|
||||
}
|
||||
.end annotation
|
||||
|
||||
const/4 v0, 0x1
|
||||
|
||||
iput-boolean v0, p0, Lokhttp3/ResponseBody$a;->d:Z
|
||||
|
||||
iget-object v0, p0, Lokhttp3/ResponseBody$a;->e:Ljava/io/Reader;
|
||||
|
||||
if-eqz v0, :cond_0
|
||||
|
||||
invoke-virtual {v0}, Ljava/io/Reader;->close()V
|
||||
|
||||
goto :goto_0
|
||||
|
||||
:cond_0
|
||||
iget-object v0, p0, Lokhttp3/ResponseBody$a;->f:Le0/g;
|
||||
|
||||
invoke-interface {v0}, Le0/x;->close()V
|
||||
|
||||
:goto_0
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public read([CII)I
|
||||
.locals 4
|
||||
.annotation system Ldalvik/annotation/Throws;
|
||||
value = {
|
||||
Ljava/io/IOException;
|
||||
}
|
||||
.end annotation
|
||||
|
||||
const-string v0, "cbuf"
|
||||
|
||||
invoke-static {p1, v0}, Lz/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
||||
|
||||
iget-boolean v0, p0, Lokhttp3/ResponseBody$a;->d:Z
|
||||
|
||||
if-nez v0, :cond_1
|
||||
|
||||
iget-object v0, p0, Lokhttp3/ResponseBody$a;->e:Ljava/io/Reader;
|
||||
|
||||
if-eqz v0, :cond_0
|
||||
|
||||
goto :goto_0
|
||||
|
||||
:cond_0
|
||||
new-instance v0, Ljava/io/InputStreamReader;
|
||||
|
||||
iget-object v1, p0, Lokhttp3/ResponseBody$a;->f:Le0/g;
|
||||
|
||||
invoke-interface {v1}, Le0/g;->M0()Ljava/io/InputStream;
|
||||
|
||||
move-result-object v1
|
||||
|
||||
iget-object v2, p0, Lokhttp3/ResponseBody$a;->f:Le0/g;
|
||||
|
||||
iget-object v3, p0, Lokhttp3/ResponseBody$a;->g:Ljava/nio/charset/Charset;
|
||||
|
||||
invoke-static {v2, v3}, Ld0/h0/c;->x(Le0/g;Ljava/nio/charset/Charset;)Ljava/nio/charset/Charset;
|
||||
|
||||
move-result-object v2
|
||||
|
||||
invoke-direct {v0, v1, v2}, Ljava/io/InputStreamReader;-><init>(Ljava/io/InputStream;Ljava/nio/charset/Charset;)V
|
||||
|
||||
iput-object v0, p0, Lokhttp3/ResponseBody$a;->e:Ljava/io/Reader;
|
||||
|
||||
:goto_0
|
||||
invoke-virtual {v0, p1, p2, p3}, Ljava/io/Reader;->read([CII)I
|
||||
|
||||
move-result p1
|
||||
|
||||
return p1
|
||||
|
||||
:cond_1
|
||||
new-instance p1, Ljava/io/IOException;
|
||||
|
||||
const-string p2, "Stream closed"
|
||||
|
||||
invoke-direct {p1, p2}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V
|
||||
|
||||
throw p1
|
||||
.end method
|
24
com.discord/smali_classes2/okhttp3/ResponseBody$b.smali
Normal file
24
com.discord/smali_classes2/okhttp3/ResponseBody$b.smali
Normal file
|
@ -0,0 +1,24 @@
|
|||
.class public final Lokhttp3/ResponseBody$b;
|
||||
.super Ljava/lang/Object;
|
||||
.source "ResponseBody.kt"
|
||||
|
||||
|
||||
# annotations
|
||||
.annotation system Ldalvik/annotation/EnclosingClass;
|
||||
value = Lokhttp3/ResponseBody;
|
||||
.end annotation
|
||||
|
||||
.annotation system Ldalvik/annotation/InnerClass;
|
||||
accessFlags = 0x19
|
||||
name = "b"
|
||||
.end annotation
|
||||
|
||||
|
||||
# direct methods
|
||||
.method public constructor <init>(Lkotlin/jvm/internal/DefaultConstructorMarker;)V
|
||||
.locals 0
|
||||
|
||||
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||||
|
||||
return-void
|
||||
.end method
|
135
com.discord/smali_classes2/okhttp3/ResponseBody.smali
Normal file
135
com.discord/smali_classes2/okhttp3/ResponseBody.smali
Normal file
|
@ -0,0 +1,135 @@
|
|||
.class public abstract Lokhttp3/ResponseBody;
|
||||
.super Ljava/lang/Object;
|
||||
.source "ResponseBody.kt"
|
||||
|
||||
# interfaces
|
||||
.implements Ljava/io/Closeable;
|
||||
|
||||
|
||||
# annotations
|
||||
.annotation system Ldalvik/annotation/MemberClasses;
|
||||
value = {
|
||||
Lokhttp3/ResponseBody$a;,
|
||||
Lokhttp3/ResponseBody$b;
|
||||
}
|
||||
.end annotation
|
||||
|
||||
|
||||
# static fields
|
||||
.field public static final e:Lokhttp3/ResponseBody$b;
|
||||
|
||||
|
||||
# instance fields
|
||||
.field public d:Ljava/io/Reader;
|
||||
|
||||
|
||||
# direct methods
|
||||
.method public static constructor <clinit>()V
|
||||
.locals 2
|
||||
|
||||
new-instance v0, Lokhttp3/ResponseBody$b;
|
||||
|
||||
const/4 v1, 0x0
|
||||
|
||||
invoke-direct {v0, v1}, Lokhttp3/ResponseBody$b;-><init>(Lkotlin/jvm/internal/DefaultConstructorMarker;)V
|
||||
|
||||
sput-object v0, Lokhttp3/ResponseBody;->e:Lokhttp3/ResponseBody$b;
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public constructor <init>()V
|
||||
.locals 0
|
||||
|
||||
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
|
||||
# virtual methods
|
||||
.method public abstract a()J
|
||||
.end method
|
||||
|
||||
.method public abstract b()Lokhttp3/MediaType;
|
||||
.end method
|
||||
|
||||
.method public abstract c()Le0/g;
|
||||
.end method
|
||||
|
||||
.method public close()V
|
||||
.locals 1
|
||||
|
||||
invoke-virtual {p0}, Lokhttp3/ResponseBody;->c()Le0/g;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
invoke-static {v0}, Ld0/h0/c;->f(Ljava/io/Closeable;)V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public final d()Ljava/lang/String;
|
||||
.locals 3
|
||||
.annotation system Ldalvik/annotation/Throws;
|
||||
value = {
|
||||
Ljava/io/IOException;
|
||||
}
|
||||
.end annotation
|
||||
|
||||
invoke-virtual {p0}, Lokhttp3/ResponseBody;->c()Le0/g;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
:try_start_0
|
||||
invoke-virtual {p0}, Lokhttp3/ResponseBody;->b()Lokhttp3/MediaType;
|
||||
|
||||
move-result-object v1
|
||||
|
||||
if-eqz v1, :cond_0
|
||||
|
||||
sget-object v2, Lz/t/a;->a:Ljava/nio/charset/Charset;
|
||||
|
||||
invoke-virtual {v1, v2}, Lokhttp3/MediaType;->a(Ljava/nio/charset/Charset;)Ljava/nio/charset/Charset;
|
||||
|
||||
move-result-object v1
|
||||
|
||||
if-eqz v1, :cond_0
|
||||
|
||||
goto :goto_0
|
||||
|
||||
:cond_0
|
||||
sget-object v1, Lz/t/a;->a:Ljava/nio/charset/Charset;
|
||||
|
||||
:goto_0
|
||||
invoke-static {v0, v1}, Ld0/h0/c;->x(Le0/g;Ljava/nio/charset/Charset;)Ljava/nio/charset/Charset;
|
||||
|
||||
move-result-object v1
|
||||
|
||||
invoke-interface {v0, v1}, Le0/g;->a0(Ljava/nio/charset/Charset;)Ljava/lang/String;
|
||||
|
||||
move-result-object v1
|
||||
:try_end_0
|
||||
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
||||
|
||||
const/4 v2, 0x0
|
||||
|
||||
invoke-static {v0, v2}, Lz/i/s;->closeFinally(Ljava/io/Closeable;Ljava/lang/Throwable;)V
|
||||
|
||||
return-object v1
|
||||
|
||||
:catchall_0
|
||||
move-exception v1
|
||||
|
||||
:try_start_1
|
||||
throw v1
|
||||
:try_end_1
|
||||
.catchall {:try_start_1 .. :try_end_1} :catchall_1
|
||||
|
||||
:catchall_1
|
||||
move-exception v2
|
||||
|
||||
invoke-static {v0, v1}, Lz/i/s;->closeFinally(Ljava/io/Closeable;Ljava/lang/Throwable;)V
|
||||
|
||||
throw v2
|
||||
.end method
|
14
com.discord/smali_classes2/okhttp3/WebSocket.smali
Normal file
14
com.discord/smali_classes2/okhttp3/WebSocket.smali
Normal file
|
@ -0,0 +1,14 @@
|
|||
.class public interface abstract Lokhttp3/WebSocket;
|
||||
.super Ljava/lang/Object;
|
||||
.source "WebSocket.kt"
|
||||
|
||||
|
||||
# virtual methods
|
||||
.method public abstract a(Ljava/lang/String;)Z
|
||||
.end method
|
||||
|
||||
.method public abstract cancel()V
|
||||
.end method
|
||||
|
||||
.method public abstract e(ILjava/lang/String;)Z
|
||||
.end method
|
99
com.discord/smali_classes2/okhttp3/WebSocketListener.smali
Normal file
99
com.discord/smali_classes2/okhttp3/WebSocketListener.smali
Normal file
|
@ -0,0 +1,99 @@
|
|||
.class public abstract Lokhttp3/WebSocketListener;
|
||||
.super Ljava/lang/Object;
|
||||
.source "WebSocketListener.kt"
|
||||
|
||||
|
||||
# direct methods
|
||||
.method public constructor <init>()V
|
||||
.locals 0
|
||||
|
||||
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
|
||||
# virtual methods
|
||||
.method public onClosed(Lokhttp3/WebSocket;ILjava/lang/String;)V
|
||||
.locals 0
|
||||
|
||||
const-string p2, "webSocket"
|
||||
|
||||
invoke-static {p1, p2}, Lz/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
||||
|
||||
const-string p1, "reason"
|
||||
|
||||
invoke-static {p3, p1}, Lz/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public onClosing(Lokhttp3/WebSocket;ILjava/lang/String;)V
|
||||
.locals 0
|
||||
|
||||
const-string p2, "webSocket"
|
||||
|
||||
invoke-static {p1, p2}, Lz/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
||||
|
||||
const-string p1, "reason"
|
||||
|
||||
invoke-static {p3, p1}, Lz/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public onFailure(Lokhttp3/WebSocket;Ljava/lang/Throwable;Lokhttp3/Response;)V
|
||||
.locals 0
|
||||
|
||||
const-string p3, "webSocket"
|
||||
|
||||
invoke-static {p1, p3}, Lz/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
||||
|
||||
const-string p1, "t"
|
||||
|
||||
invoke-static {p2, p1}, Lz/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public onMessage(Lokhttp3/WebSocket;Ljava/lang/String;)V
|
||||
.locals 1
|
||||
|
||||
const-string v0, "webSocket"
|
||||
|
||||
invoke-static {p1, v0}, Lz/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
||||
|
||||
const-string p1, "text"
|
||||
|
||||
invoke-static {p2, p1}, Lz/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public onMessage(Lokhttp3/WebSocket;Lokio/ByteString;)V
|
||||
.locals 1
|
||||
|
||||
const-string v0, "webSocket"
|
||||
|
||||
invoke-static {p1, v0}, Lz/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
||||
|
||||
const-string p1, "bytes"
|
||||
|
||||
invoke-static {p2, p1}, Lz/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public onOpen(Lokhttp3/WebSocket;Lokhttp3/Response;)V
|
||||
.locals 1
|
||||
|
||||
const-string v0, "webSocket"
|
||||
|
||||
invoke-static {p1, v0}, Lz/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
||||
|
||||
const-string p1, "response"
|
||||
|
||||
invoke-static {p2, p1}, Lz/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
||||
|
||||
return-void
|
||||
.end method
|
|
@ -0,0 +1,27 @@
|
|||
.class public final Lokhttp3/internal/connection/RouteException;
|
||||
.super Ljava/lang/RuntimeException;
|
||||
.source "RouteException.kt"
|
||||
|
||||
|
||||
# instance fields
|
||||
.field public final firstConnectException:Ljava/io/IOException;
|
||||
|
||||
.field public lastConnectException:Ljava/io/IOException;
|
||||
|
||||
|
||||
# direct methods
|
||||
.method public constructor <init>(Ljava/io/IOException;)V
|
||||
.locals 1
|
||||
|
||||
const-string v0, "firstConnectException"
|
||||
|
||||
invoke-static {p1, v0}, Lz/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
||||
|
||||
invoke-direct {p0, p1}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/Throwable;)V
|
||||
|
||||
iput-object p1, p0, Lokhttp3/internal/connection/RouteException;->firstConnectException:Ljava/io/IOException;
|
||||
|
||||
iput-object p1, p0, Lokhttp3/internal/connection/RouteException;->lastConnectException:Ljava/io/IOException;
|
||||
|
||||
return-void
|
||||
.end method
|
|
@ -0,0 +1,13 @@
|
|||
.class public final Lokhttp3/internal/http2/ConnectionShutdownException;
|
||||
.super Ljava/io/IOException;
|
||||
.source "ConnectionShutdownException.kt"
|
||||
|
||||
|
||||
# direct methods
|
||||
.method public constructor <init>()V
|
||||
.locals 0
|
||||
|
||||
invoke-direct {p0}, Ljava/io/IOException;-><init>()V
|
||||
|
||||
return-void
|
||||
.end method
|
|
@ -0,0 +1,37 @@
|
|||
.class public final Lokhttp3/internal/http2/StreamResetException;
|
||||
.super Ljava/io/IOException;
|
||||
.source "StreamResetException.kt"
|
||||
|
||||
|
||||
# instance fields
|
||||
.field public final errorCode:Ld0/h0/j/a;
|
||||
|
||||
|
||||
# direct methods
|
||||
.method public constructor <init>(Ld0/h0/j/a;)V
|
||||
.locals 2
|
||||
|
||||
const-string v0, "errorCode"
|
||||
|
||||
invoke-static {p1, v0}, Lz/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
||||
|
||||
new-instance v0, Ljava/lang/StringBuilder;
|
||||
|
||||
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
|
||||
|
||||
const-string v1, "stream was reset: "
|
||||
|
||||
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||||
|
||||
invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
||||
|
||||
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
invoke-direct {p0, v0}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V
|
||||
|
||||
iput-object p1, p0, Lokhttp3/internal/http2/StreamResetException;->errorCode:Ld0/h0/j/a;
|
||||
|
||||
return-void
|
||||
.end method
|
|
@ -0,0 +1,239 @@
|
|||
.class public final Lokhttp3/internal/publicsuffix/PublicSuffixDatabase$a;
|
||||
.super Ljava/lang/Object;
|
||||
.source "PublicSuffixDatabase.kt"
|
||||
|
||||
|
||||
# annotations
|
||||
.annotation system Ldalvik/annotation/EnclosingClass;
|
||||
value = Lokhttp3/internal/publicsuffix/PublicSuffixDatabase;
|
||||
.end annotation
|
||||
|
||||
.annotation system Ldalvik/annotation/InnerClass;
|
||||
accessFlags = 0x19
|
||||
name = "a"
|
||||
.end annotation
|
||||
|
||||
|
||||
# direct methods
|
||||
.method public constructor <init>(Lkotlin/jvm/internal/DefaultConstructorMarker;)V
|
||||
.locals 0
|
||||
|
||||
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public static final a(Lokhttp3/internal/publicsuffix/PublicSuffixDatabase$a;[B[[BI)Ljava/lang/String;
|
||||
.locals 18
|
||||
|
||||
move-object/from16 v0, p1
|
||||
|
||||
move-object/from16 v1, p2
|
||||
|
||||
array-length v2, v0
|
||||
|
||||
const/4 v4, 0x0
|
||||
|
||||
:goto_0
|
||||
if-ge v4, v2, :cond_c
|
||||
|
||||
add-int v5, v4, v2
|
||||
|
||||
div-int/lit8 v5, v5, 0x2
|
||||
|
||||
:goto_1
|
||||
const/16 v6, 0xa
|
||||
|
||||
const/4 v7, -0x1
|
||||
|
||||
if-le v5, v7, :cond_0
|
||||
|
||||
aget-byte v8, v0, v5
|
||||
|
||||
int-to-byte v9, v6
|
||||
|
||||
if-eq v8, v9, :cond_0
|
||||
|
||||
add-int/lit8 v5, v5, -0x1
|
||||
|
||||
goto :goto_1
|
||||
|
||||
:cond_0
|
||||
add-int/lit8 v5, v5, 0x1
|
||||
|
||||
const/4 v8, 0x1
|
||||
|
||||
const/4 v9, 0x1
|
||||
|
||||
:goto_2
|
||||
add-int v10, v5, v9
|
||||
|
||||
aget-byte v11, v0, v10
|
||||
|
||||
int-to-byte v12, v6
|
||||
|
||||
if-eq v11, v12, :cond_1
|
||||
|
||||
add-int/lit8 v9, v9, 0x1
|
||||
|
||||
goto :goto_2
|
||||
|
||||
:cond_1
|
||||
sub-int v6, v10, v5
|
||||
|
||||
move/from16 v11, p3
|
||||
|
||||
const/4 v9, 0x0
|
||||
|
||||
const/4 v12, 0x0
|
||||
|
||||
const/4 v13, 0x0
|
||||
|
||||
:goto_3
|
||||
const/16 v14, 0xff
|
||||
|
||||
if-eqz v9, :cond_2
|
||||
|
||||
const/16 v9, 0x2e
|
||||
|
||||
const/4 v15, 0x0
|
||||
|
||||
goto :goto_4
|
||||
|
||||
:cond_2
|
||||
aget-object v15, v1, v11
|
||||
|
||||
aget-byte v15, v15, v12
|
||||
|
||||
invoke-static {v15, v14}, Ld0/h0/c;->a(BI)I
|
||||
|
||||
move-result v15
|
||||
|
||||
move/from16 v17, v15
|
||||
|
||||
move v15, v9
|
||||
|
||||
move/from16 v9, v17
|
||||
|
||||
:goto_4
|
||||
add-int v16, v5, v13
|
||||
|
||||
aget-byte v3, v0, v16
|
||||
|
||||
invoke-static {v3, v14}, Ld0/h0/c;->a(BI)I
|
||||
|
||||
move-result v3
|
||||
|
||||
sub-int/2addr v9, v3
|
||||
|
||||
if-eqz v9, :cond_3
|
||||
|
||||
goto :goto_5
|
||||
|
||||
:cond_3
|
||||
add-int/lit8 v13, v13, 0x1
|
||||
|
||||
add-int/lit8 v12, v12, 0x1
|
||||
|
||||
if-ne v13, v6, :cond_4
|
||||
|
||||
goto :goto_5
|
||||
|
||||
:cond_4
|
||||
aget-object v3, v1, v11
|
||||
|
||||
array-length v3, v3
|
||||
|
||||
if-ne v3, v12, :cond_b
|
||||
|
||||
array-length v3, v1
|
||||
|
||||
sub-int/2addr v3, v8
|
||||
|
||||
if-ne v11, v3, :cond_a
|
||||
|
||||
:goto_5
|
||||
if-gez v9, :cond_5
|
||||
|
||||
goto :goto_7
|
||||
|
||||
:cond_5
|
||||
if-lez v9, :cond_6
|
||||
|
||||
goto :goto_8
|
||||
|
||||
:cond_6
|
||||
sub-int v3, v6, v13
|
||||
|
||||
aget-object v7, v1, v11
|
||||
|
||||
array-length v7, v7
|
||||
|
||||
sub-int/2addr v7, v12
|
||||
|
||||
add-int/lit8 v11, v11, 0x1
|
||||
|
||||
array-length v8, v1
|
||||
|
||||
:goto_6
|
||||
if-ge v11, v8, :cond_7
|
||||
|
||||
aget-object v9, v1, v11
|
||||
|
||||
array-length v9, v9
|
||||
|
||||
add-int/2addr v7, v9
|
||||
|
||||
add-int/lit8 v11, v11, 0x1
|
||||
|
||||
goto :goto_6
|
||||
|
||||
:cond_7
|
||||
if-ge v7, v3, :cond_8
|
||||
|
||||
:goto_7
|
||||
add-int/lit8 v2, v5, -0x1
|
||||
|
||||
goto :goto_0
|
||||
|
||||
:cond_8
|
||||
if-le v7, v3, :cond_9
|
||||
|
||||
:goto_8
|
||||
add-int/lit8 v4, v10, 0x1
|
||||
|
||||
goto :goto_0
|
||||
|
||||
:cond_9
|
||||
sget-object v1, Ljava/nio/charset/StandardCharsets;->UTF_8:Ljava/nio/charset/Charset;
|
||||
|
||||
const-string v2, "UTF_8"
|
||||
|
||||
invoke-static {v1, v2}, Lz/n/c/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
||||
|
||||
new-instance v2, Ljava/lang/String;
|
||||
|
||||
invoke-direct {v2, v0, v5, v6, v1}, Ljava/lang/String;-><init>([BIILjava/nio/charset/Charset;)V
|
||||
|
||||
goto :goto_9
|
||||
|
||||
:cond_a
|
||||
add-int/lit8 v11, v11, 0x1
|
||||
|
||||
const/4 v9, 0x1
|
||||
|
||||
const/4 v12, -0x1
|
||||
|
||||
goto :goto_3
|
||||
|
||||
:cond_b
|
||||
move v9, v15
|
||||
|
||||
goto :goto_3
|
||||
|
||||
:cond_c
|
||||
const/4 v2, 0x0
|
||||
|
||||
:goto_9
|
||||
return-object v2
|
||||
.end method
|
|
@ -0,0 +1,829 @@
|
|||
.class public final Lokhttp3/internal/publicsuffix/PublicSuffixDatabase;
|
||||
.super Ljava/lang/Object;
|
||||
.source "PublicSuffixDatabase.kt"
|
||||
|
||||
|
||||
# annotations
|
||||
.annotation system Ldalvik/annotation/MemberClasses;
|
||||
value = {
|
||||
Lokhttp3/internal/publicsuffix/PublicSuffixDatabase$a;
|
||||
}
|
||||
.end annotation
|
||||
|
||||
|
||||
# static fields
|
||||
.field public static final e:[B
|
||||
|
||||
.field public static final f:Ljava/util/List;
|
||||
.annotation system Ldalvik/annotation/Signature;
|
||||
value = {
|
||||
"Ljava/util/List<",
|
||||
"Ljava/lang/String;",
|
||||
">;"
|
||||
}
|
||||
.end annotation
|
||||
.end field
|
||||
|
||||
.field public static final g:Lokhttp3/internal/publicsuffix/PublicSuffixDatabase;
|
||||
|
||||
.field public static final h:Lokhttp3/internal/publicsuffix/PublicSuffixDatabase$a;
|
||||
|
||||
|
||||
# instance fields
|
||||
.field public final a:Ljava/util/concurrent/atomic/AtomicBoolean;
|
||||
|
||||
.field public final b:Ljava/util/concurrent/CountDownLatch;
|
||||
|
||||
.field public c:[B
|
||||
|
||||
.field public d:[B
|
||||
|
||||
|
||||
# direct methods
|
||||
.method public static constructor <clinit>()V
|
||||
.locals 3
|
||||
|
||||
new-instance v0, Lokhttp3/internal/publicsuffix/PublicSuffixDatabase$a;
|
||||
|
||||
const/4 v1, 0x0
|
||||
|
||||
invoke-direct {v0, v1}, Lokhttp3/internal/publicsuffix/PublicSuffixDatabase$a;-><init>(Lkotlin/jvm/internal/DefaultConstructorMarker;)V
|
||||
|
||||
sput-object v0, Lokhttp3/internal/publicsuffix/PublicSuffixDatabase;->h:Lokhttp3/internal/publicsuffix/PublicSuffixDatabase$a;
|
||||
|
||||
const/4 v0, 0x1
|
||||
|
||||
new-array v0, v0, [B
|
||||
|
||||
const/16 v1, 0x2a
|
||||
|
||||
int-to-byte v1, v1
|
||||
|
||||
const/4 v2, 0x0
|
||||
|
||||
aput-byte v1, v0, v2
|
||||
|
||||
sput-object v0, Lokhttp3/internal/publicsuffix/PublicSuffixDatabase;->e:[B
|
||||
|
||||
const-string v0, "*"
|
||||
|
||||
invoke-static {v0}, Lf/h/a/f/f/n/f;->listOf(Ljava/lang/Object;)Ljava/util/List;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
sput-object v0, Lokhttp3/internal/publicsuffix/PublicSuffixDatabase;->f:Ljava/util/List;
|
||||
|
||||
new-instance v0, Lokhttp3/internal/publicsuffix/PublicSuffixDatabase;
|
||||
|
||||
invoke-direct {v0}, Lokhttp3/internal/publicsuffix/PublicSuffixDatabase;-><init>()V
|
||||
|
||||
sput-object v0, Lokhttp3/internal/publicsuffix/PublicSuffixDatabase;->g:Lokhttp3/internal/publicsuffix/PublicSuffixDatabase;
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public constructor <init>()V
|
||||
.locals 2
|
||||
|
||||
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||||
|
||||
new-instance v0, Ljava/util/concurrent/atomic/AtomicBoolean;
|
||||
|
||||
const/4 v1, 0x0
|
||||
|
||||
invoke-direct {v0, v1}, Ljava/util/concurrent/atomic/AtomicBoolean;-><init>(Z)V
|
||||
|
||||
iput-object v0, p0, Lokhttp3/internal/publicsuffix/PublicSuffixDatabase;->a:Ljava/util/concurrent/atomic/AtomicBoolean;
|
||||
|
||||
new-instance v0, Ljava/util/concurrent/CountDownLatch;
|
||||
|
||||
const/4 v1, 0x1
|
||||
|
||||
invoke-direct {v0, v1}, Ljava/util/concurrent/CountDownLatch;-><init>(I)V
|
||||
|
||||
iput-object v0, p0, Lokhttp3/internal/publicsuffix/PublicSuffixDatabase;->b:Ljava/util/concurrent/CountDownLatch;
|
||||
|
||||
return-void
|
||||
.end method
|
||||
|
||||
|
||||
# virtual methods
|
||||
.method public final a(Ljava/lang/String;)Ljava/lang/String;
|
||||
.locals 13
|
||||
|
||||
const-string v0, "domain"
|
||||
|
||||
invoke-static {p1, v0}, Lz/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
||||
|
||||
invoke-static {p1}, Ljava/net/IDN;->toUnicode(Ljava/lang/String;)Ljava/lang/String;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
const-string v1, "unicodeDomain"
|
||||
|
||||
invoke-static {v0, v1}, Lz/n/c/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
||||
|
||||
invoke-virtual {p0, v0}, Lokhttp3/internal/publicsuffix/PublicSuffixDatabase;->c(Ljava/lang/String;)Ljava/util/List;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
iget-object v1, p0, Lokhttp3/internal/publicsuffix/PublicSuffixDatabase;->a:Ljava/util/concurrent/atomic/AtomicBoolean;
|
||||
|
||||
invoke-virtual {v1}, Ljava/util/concurrent/atomic/AtomicBoolean;->get()Z
|
||||
|
||||
move-result v1
|
||||
|
||||
const/4 v2, 0x1
|
||||
|
||||
const/4 v3, 0x0
|
||||
|
||||
if-nez v1, :cond_1
|
||||
|
||||
iget-object v1, p0, Lokhttp3/internal/publicsuffix/PublicSuffixDatabase;->a:Ljava/util/concurrent/atomic/AtomicBoolean;
|
||||
|
||||
invoke-virtual {v1, v3, v2}, Ljava/util/concurrent/atomic/AtomicBoolean;->compareAndSet(ZZ)Z
|
||||
|
||||
move-result v1
|
||||
|
||||
if-eqz v1, :cond_1
|
||||
|
||||
const/4 v1, 0x0
|
||||
|
||||
:goto_0
|
||||
:try_start_0
|
||||
invoke-virtual {p0}, Lokhttp3/internal/publicsuffix/PublicSuffixDatabase;->b()V
|
||||
:try_end_0
|
||||
.catch Ljava/io/InterruptedIOException; {:try_start_0 .. :try_end_0} :catch_1
|
||||
.catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0
|
||||
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
||||
|
||||
if-eqz v1, :cond_2
|
||||
|
||||
:try_start_1
|
||||
invoke-static {}, Ljava/lang/Thread;->currentThread()Ljava/lang/Thread;
|
||||
|
||||
move-result-object v4
|
||||
|
||||
invoke-virtual {v4}, Ljava/lang/Thread;->interrupt()V
|
||||
:try_end_1
|
||||
.catch Ljava/io/InterruptedIOException; {:try_start_1 .. :try_end_1} :catch_1
|
||||
.catch Ljava/io/IOException; {:try_start_1 .. :try_end_1} :catch_0
|
||||
|
||||
goto :goto_2
|
||||
|
||||
:catchall_0
|
||||
move-exception p1
|
||||
|
||||
goto :goto_1
|
||||
|
||||
:catch_0
|
||||
move-exception v4
|
||||
|
||||
:try_start_2
|
||||
sget-object v5, Ld0/h0/k/h;->c:Ld0/h0/k/h$a;
|
||||
|
||||
sget-object v5, Ld0/h0/k/h;->a:Ld0/h0/k/h;
|
||||
|
||||
const-string v6, "Failed to read public suffix list"
|
||||
|
||||
const/4 v7, 0x5
|
||||
|
||||
invoke-virtual {v5, v6, v7, v4}, Ld0/h0/k/h;->i(Ljava/lang/String;ILjava/lang/Throwable;)V
|
||||
:try_end_2
|
||||
.catchall {:try_start_2 .. :try_end_2} :catchall_0
|
||||
|
||||
if-eqz v1, :cond_2
|
||||
|
||||
invoke-static {}, Ljava/lang/Thread;->currentThread()Ljava/lang/Thread;
|
||||
|
||||
move-result-object v1
|
||||
|
||||
invoke-virtual {v1}, Ljava/lang/Thread;->interrupt()V
|
||||
|
||||
goto :goto_2
|
||||
|
||||
:catch_1
|
||||
:try_start_3
|
||||
invoke-static {}, Ljava/lang/Thread;->interrupted()Z
|
||||
:try_end_3
|
||||
.catchall {:try_start_3 .. :try_end_3} :catchall_0
|
||||
|
||||
const/4 v1, 0x1
|
||||
|
||||
goto :goto_0
|
||||
|
||||
:goto_1
|
||||
if-eqz v1, :cond_0
|
||||
|
||||
invoke-static {}, Ljava/lang/Thread;->currentThread()Ljava/lang/Thread;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
invoke-virtual {v0}, Ljava/lang/Thread;->interrupt()V
|
||||
|
||||
:cond_0
|
||||
throw p1
|
||||
|
||||
:cond_1
|
||||
:try_start_4
|
||||
iget-object v1, p0, Lokhttp3/internal/publicsuffix/PublicSuffixDatabase;->b:Ljava/util/concurrent/CountDownLatch;
|
||||
|
||||
invoke-virtual {v1}, Ljava/util/concurrent/CountDownLatch;->await()V
|
||||
:try_end_4
|
||||
.catch Ljava/lang/InterruptedException; {:try_start_4 .. :try_end_4} :catch_2
|
||||
|
||||
goto :goto_2
|
||||
|
||||
:catch_2
|
||||
invoke-static {}, Ljava/lang/Thread;->currentThread()Ljava/lang/Thread;
|
||||
|
||||
move-result-object v1
|
||||
|
||||
invoke-virtual {v1}, Ljava/lang/Thread;->interrupt()V
|
||||
|
||||
:cond_2
|
||||
:goto_2
|
||||
iget-object v1, p0, Lokhttp3/internal/publicsuffix/PublicSuffixDatabase;->c:[B
|
||||
|
||||
if-eqz v1, :cond_3
|
||||
|
||||
const/4 v1, 0x1
|
||||
|
||||
goto :goto_3
|
||||
|
||||
:cond_3
|
||||
const/4 v1, 0x0
|
||||
|
||||
:goto_3
|
||||
if-eqz v1, :cond_16
|
||||
|
||||
invoke-interface {v0}, Ljava/util/List;->size()I
|
||||
|
||||
move-result v1
|
||||
|
||||
new-array v4, v1, [[B
|
||||
|
||||
const/4 v5, 0x0
|
||||
|
||||
:goto_4
|
||||
if-ge v5, v1, :cond_5
|
||||
|
||||
invoke-interface {v0, v5}, Ljava/util/List;->get(I)Ljava/lang/Object;
|
||||
|
||||
move-result-object v6
|
||||
|
||||
check-cast v6, Ljava/lang/String;
|
||||
|
||||
sget-object v7, Ljava/nio/charset/StandardCharsets;->UTF_8:Ljava/nio/charset/Charset;
|
||||
|
||||
const-string v8, "UTF_8"
|
||||
|
||||
invoke-static {v7, v8}, Lz/n/c/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
||||
|
||||
if-eqz v6, :cond_4
|
||||
|
||||
invoke-virtual {v6, v7}, Ljava/lang/String;->getBytes(Ljava/nio/charset/Charset;)[B
|
||||
|
||||
move-result-object v6
|
||||
|
||||
const-string v7, "(this as java.lang.String).getBytes(charset)"
|
||||
|
||||
invoke-static {v6, v7}, Lz/n/c/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
||||
|
||||
aput-object v6, v4, v5
|
||||
|
||||
add-int/lit8 v5, v5, 0x1
|
||||
|
||||
goto :goto_4
|
||||
|
||||
:cond_4
|
||||
new-instance p1, Lkotlin/TypeCastException;
|
||||
|
||||
const-string v0, "null cannot be cast to non-null type java.lang.String"
|
||||
|
||||
invoke-direct {p1, v0}, Lkotlin/TypeCastException;-><init>(Ljava/lang/String;)V
|
||||
|
||||
throw p1
|
||||
|
||||
:cond_5
|
||||
const/4 v5, 0x0
|
||||
|
||||
:goto_5
|
||||
const-string v6, "publicSuffixListBytes"
|
||||
|
||||
const/4 v7, 0x0
|
||||
|
||||
if-ge v5, v1, :cond_8
|
||||
|
||||
sget-object v8, Lokhttp3/internal/publicsuffix/PublicSuffixDatabase;->h:Lokhttp3/internal/publicsuffix/PublicSuffixDatabase$a;
|
||||
|
||||
iget-object v9, p0, Lokhttp3/internal/publicsuffix/PublicSuffixDatabase;->c:[B
|
||||
|
||||
if-eqz v9, :cond_7
|
||||
|
||||
invoke-static {v8, v9, v4, v5}, Lokhttp3/internal/publicsuffix/PublicSuffixDatabase$a;->a(Lokhttp3/internal/publicsuffix/PublicSuffixDatabase$a;[B[[BI)Ljava/lang/String;
|
||||
|
||||
move-result-object v8
|
||||
|
||||
if-eqz v8, :cond_6
|
||||
|
||||
goto :goto_6
|
||||
|
||||
:cond_6
|
||||
add-int/lit8 v5, v5, 0x1
|
||||
|
||||
goto :goto_5
|
||||
|
||||
:cond_7
|
||||
invoke-static {v6}, Lz/n/c/j;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V
|
||||
|
||||
throw v7
|
||||
|
||||
:cond_8
|
||||
move-object v8, v7
|
||||
|
||||
:goto_6
|
||||
if-le v1, v2, :cond_b
|
||||
|
||||
invoke-virtual {v4}, Ljava/lang/Object;->clone()Ljava/lang/Object;
|
||||
|
||||
move-result-object v5
|
||||
|
||||
check-cast v5, [[B
|
||||
|
||||
array-length v9, v5
|
||||
|
||||
sub-int/2addr v9, v2
|
||||
|
||||
const/4 v10, 0x0
|
||||
|
||||
:goto_7
|
||||
if-ge v10, v9, :cond_b
|
||||
|
||||
sget-object v11, Lokhttp3/internal/publicsuffix/PublicSuffixDatabase;->e:[B
|
||||
|
||||
aput-object v11, v5, v10
|
||||
|
||||
sget-object v11, Lokhttp3/internal/publicsuffix/PublicSuffixDatabase;->h:Lokhttp3/internal/publicsuffix/PublicSuffixDatabase$a;
|
||||
|
||||
iget-object v12, p0, Lokhttp3/internal/publicsuffix/PublicSuffixDatabase;->c:[B
|
||||
|
||||
if-eqz v12, :cond_a
|
||||
|
||||
invoke-static {v11, v12, v5, v10}, Lokhttp3/internal/publicsuffix/PublicSuffixDatabase$a;->a(Lokhttp3/internal/publicsuffix/PublicSuffixDatabase$a;[B[[BI)Ljava/lang/String;
|
||||
|
||||
move-result-object v11
|
||||
|
||||
if-eqz v11, :cond_9
|
||||
|
||||
goto :goto_8
|
||||
|
||||
:cond_9
|
||||
add-int/lit8 v10, v10, 0x1
|
||||
|
||||
goto :goto_7
|
||||
|
||||
:cond_a
|
||||
invoke-static {v6}, Lz/n/c/j;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V
|
||||
|
||||
throw v7
|
||||
|
||||
:cond_b
|
||||
move-object v11, v7
|
||||
|
||||
:goto_8
|
||||
if-eqz v11, :cond_e
|
||||
|
||||
sub-int/2addr v1, v2
|
||||
|
||||
const/4 v5, 0x0
|
||||
|
||||
:goto_9
|
||||
if-ge v5, v1, :cond_e
|
||||
|
||||
sget-object v6, Lokhttp3/internal/publicsuffix/PublicSuffixDatabase;->h:Lokhttp3/internal/publicsuffix/PublicSuffixDatabase$a;
|
||||
|
||||
iget-object v9, p0, Lokhttp3/internal/publicsuffix/PublicSuffixDatabase;->d:[B
|
||||
|
||||
if-eqz v9, :cond_d
|
||||
|
||||
invoke-static {v6, v9, v4, v5}, Lokhttp3/internal/publicsuffix/PublicSuffixDatabase$a;->a(Lokhttp3/internal/publicsuffix/PublicSuffixDatabase$a;[B[[BI)Ljava/lang/String;
|
||||
|
||||
move-result-object v6
|
||||
|
||||
if-eqz v6, :cond_c
|
||||
|
||||
goto :goto_a
|
||||
|
||||
:cond_c
|
||||
add-int/lit8 v5, v5, 0x1
|
||||
|
||||
goto :goto_9
|
||||
|
||||
:cond_d
|
||||
const-string p1, "publicSuffixExceptionListBytes"
|
||||
|
||||
invoke-static {p1}, Lz/n/c/j;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V
|
||||
|
||||
throw v7
|
||||
|
||||
:cond_e
|
||||
move-object v6, v7
|
||||
|
||||
:goto_a
|
||||
const/4 v1, 0x6
|
||||
|
||||
const/16 v4, 0x2e
|
||||
|
||||
const/16 v5, 0x21
|
||||
|
||||
if-eqz v6, :cond_f
|
||||
|
||||
new-instance v8, Ljava/lang/StringBuilder;
|
||||
|
||||
invoke-direct {v8}, Ljava/lang/StringBuilder;-><init>()V
|
||||
|
||||
invoke-virtual {v8, v5}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
|
||||
|
||||
invoke-virtual {v8, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||||
|
||||
invoke-virtual {v8}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
||||
|
||||
move-result-object v6
|
||||
|
||||
new-array v8, v2, [C
|
||||
|
||||
aput-char v4, v8, v3
|
||||
|
||||
invoke-static {v6, v8, v3, v3, v1}, Lz/t/p;->split$default(Ljava/lang/CharSequence;[CZII)Ljava/util/List;
|
||||
|
||||
move-result-object v1
|
||||
|
||||
goto :goto_d
|
||||
|
||||
:cond_f
|
||||
if-nez v8, :cond_10
|
||||
|
||||
if-nez v11, :cond_10
|
||||
|
||||
sget-object v1, Lokhttp3/internal/publicsuffix/PublicSuffixDatabase;->f:Ljava/util/List;
|
||||
|
||||
goto :goto_d
|
||||
|
||||
:cond_10
|
||||
if-eqz v8, :cond_11
|
||||
|
||||
new-array v6, v2, [C
|
||||
|
||||
aput-char v4, v6, v3
|
||||
|
||||
invoke-static {v8, v6, v3, v3, v1}, Lz/t/p;->split$default(Ljava/lang/CharSequence;[CZII)Ljava/util/List;
|
||||
|
||||
move-result-object v6
|
||||
|
||||
goto :goto_b
|
||||
|
||||
:cond_11
|
||||
sget-object v6, Lz/i/l;->d:Lz/i/l;
|
||||
|
||||
:goto_b
|
||||
if-eqz v11, :cond_12
|
||||
|
||||
new-array v8, v2, [C
|
||||
|
||||
aput-char v4, v8, v3
|
||||
|
||||
invoke-static {v11, v8, v3, v3, v1}, Lz/t/p;->split$default(Ljava/lang/CharSequence;[CZII)Ljava/util/List;
|
||||
|
||||
move-result-object v1
|
||||
|
||||
goto :goto_c
|
||||
|
||||
:cond_12
|
||||
sget-object v1, Lz/i/l;->d:Lz/i/l;
|
||||
|
||||
:goto_c
|
||||
invoke-interface {v6}, Ljava/util/List;->size()I
|
||||
|
||||
move-result v4
|
||||
|
||||
invoke-interface {v1}, Ljava/util/List;->size()I
|
||||
|
||||
move-result v8
|
||||
|
||||
if-le v4, v8, :cond_13
|
||||
|
||||
move-object v1, v6
|
||||
|
||||
:cond_13
|
||||
:goto_d
|
||||
invoke-interface {v0}, Ljava/util/List;->size()I
|
||||
|
||||
move-result v4
|
||||
|
||||
invoke-interface {v1}, Ljava/util/List;->size()I
|
||||
|
||||
move-result v6
|
||||
|
||||
if-ne v4, v6, :cond_14
|
||||
|
||||
invoke-interface {v1, v3}, Ljava/util/List;->get(I)Ljava/lang/Object;
|
||||
|
||||
move-result-object v4
|
||||
|
||||
check-cast v4, Ljava/lang/String;
|
||||
|
||||
invoke-virtual {v4, v3}, Ljava/lang/String;->charAt(I)C
|
||||
|
||||
move-result v4
|
||||
|
||||
if-eq v4, v5, :cond_14
|
||||
|
||||
return-object v7
|
||||
|
||||
:cond_14
|
||||
invoke-interface {v1, v3}, Ljava/util/List;->get(I)Ljava/lang/Object;
|
||||
|
||||
move-result-object v4
|
||||
|
||||
check-cast v4, Ljava/lang/String;
|
||||
|
||||
invoke-virtual {v4, v3}, Ljava/lang/String;->charAt(I)C
|
||||
|
||||
move-result v3
|
||||
|
||||
if-ne v3, v5, :cond_15
|
||||
|
||||
invoke-interface {v0}, Ljava/util/List;->size()I
|
||||
|
||||
move-result v0
|
||||
|
||||
invoke-interface {v1}, Ljava/util/List;->size()I
|
||||
|
||||
move-result v1
|
||||
|
||||
goto :goto_e
|
||||
|
||||
:cond_15
|
||||
invoke-interface {v0}, Ljava/util/List;->size()I
|
||||
|
||||
move-result v0
|
||||
|
||||
invoke-interface {v1}, Ljava/util/List;->size()I
|
||||
|
||||
move-result v1
|
||||
|
||||
add-int/2addr v1, v2
|
||||
|
||||
:goto_e
|
||||
sub-int/2addr v0, v1
|
||||
|
||||
invoke-virtual {p0, p1}, Lokhttp3/internal/publicsuffix/PublicSuffixDatabase;->c(Ljava/lang/String;)Ljava/util/List;
|
||||
|
||||
move-result-object p1
|
||||
|
||||
invoke-static {p1}, Lz/i/f;->asSequence(Ljava/lang/Iterable;)Lkotlin/sequences/Sequence;
|
||||
|
||||
move-result-object p1
|
||||
|
||||
invoke-static {p1, v0}, Lz/i/s;->drop(Lkotlin/sequences/Sequence;I)Lkotlin/sequences/Sequence;
|
||||
|
||||
move-result-object v1
|
||||
|
||||
const/4 v3, 0x0
|
||||
|
||||
const/4 v4, 0x0
|
||||
|
||||
const/4 v5, 0x0
|
||||
|
||||
const/4 v6, 0x0
|
||||
|
||||
const/4 v7, 0x0
|
||||
|
||||
const/16 v8, 0x3e
|
||||
|
||||
const-string v2, "."
|
||||
|
||||
invoke-static/range {v1 .. v8}, Lz/i/s;->joinToString$default(Lkotlin/sequences/Sequence;Ljava/lang/CharSequence;Ljava/lang/CharSequence;Ljava/lang/CharSequence;ILjava/lang/CharSequence;Lkotlin/jvm/functions/Function1;I)Ljava/lang/String;
|
||||
|
||||
move-result-object p1
|
||||
|
||||
return-object p1
|
||||
|
||||
:cond_16
|
||||
new-instance p1, Ljava/lang/IllegalStateException;
|
||||
|
||||
const-string v0, "Unable to load publicsuffixes.gz resource from the classpath."
|
||||
|
||||
invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
invoke-direct {p1, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
||||
|
||||
throw p1
|
||||
.end method
|
||||
|
||||
.method public final b()V
|
||||
.locals 4
|
||||
.annotation system Ldalvik/annotation/Throws;
|
||||
value = {
|
||||
Ljava/io/IOException;
|
||||
}
|
||||
.end annotation
|
||||
|
||||
const-class v0, Lokhttp3/internal/publicsuffix/PublicSuffixDatabase;
|
||||
|
||||
const-string v1, "publicsuffixes.gz"
|
||||
|
||||
invoke-virtual {v0, v1}, Ljava/lang/Class;->getResourceAsStream(Ljava/lang/String;)Ljava/io/InputStream;
|
||||
|
||||
move-result-object v0
|
||||
|
||||
if-eqz v0, :cond_2
|
||||
|
||||
new-instance v1, Le0/l;
|
||||
|
||||
const-string v2, "$this$source"
|
||||
|
||||
invoke-static {v0, v2}, Lz/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
||||
|
||||
new-instance v2, Le0/n;
|
||||
|
||||
new-instance v3, Le0/y;
|
||||
|
||||
invoke-direct {v3}, Le0/y;-><init>()V
|
||||
|
||||
invoke-direct {v2, v0, v3}, Le0/n;-><init>(Ljava/io/InputStream;Le0/y;)V
|
||||
|
||||
invoke-direct {v1, v2}, Le0/l;-><init>(Le0/x;)V
|
||||
|
||||
const-string v0, "$this$buffer"
|
||||
|
||||
invoke-static {v1, v0}, Lz/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
||||
|
||||
new-instance v0, Le0/r;
|
||||
|
||||
invoke-direct {v0, v1}, Le0/r;-><init>(Le0/x;)V
|
||||
|
||||
:try_start_0
|
||||
invoke-interface {v0}, Le0/g;->readInt()I
|
||||
|
||||
move-result v1
|
||||
|
||||
int-to-long v1, v1
|
||||
|
||||
invoke-interface {v0, v1, v2}, Le0/g;->o0(J)[B
|
||||
|
||||
move-result-object v1
|
||||
|
||||
invoke-interface {v0}, Le0/g;->readInt()I
|
||||
|
||||
move-result v2
|
||||
|
||||
int-to-long v2, v2
|
||||
|
||||
invoke-interface {v0, v2, v3}, Le0/g;->o0(J)[B
|
||||
|
||||
move-result-object v2
|
||||
:try_end_0
|
||||
.catchall {:try_start_0 .. :try_end_0} :catchall_1
|
||||
|
||||
const/4 v3, 0x0
|
||||
|
||||
invoke-static {v0, v3}, Lz/i/s;->closeFinally(Ljava/io/Closeable;Ljava/lang/Throwable;)V
|
||||
|
||||
monitor-enter p0
|
||||
|
||||
if-eqz v1, :cond_1
|
||||
|
||||
:try_start_1
|
||||
iput-object v1, p0, Lokhttp3/internal/publicsuffix/PublicSuffixDatabase;->c:[B
|
||||
|
||||
if-eqz v2, :cond_0
|
||||
|
||||
iput-object v2, p0, Lokhttp3/internal/publicsuffix/PublicSuffixDatabase;->d:[B
|
||||
:try_end_1
|
||||
.catchall {:try_start_1 .. :try_end_1} :catchall_0
|
||||
|
||||
monitor-exit p0
|
||||
|
||||
iget-object v0, p0, Lokhttp3/internal/publicsuffix/PublicSuffixDatabase;->b:Ljava/util/concurrent/CountDownLatch;
|
||||
|
||||
invoke-virtual {v0}, Ljava/util/concurrent/CountDownLatch;->countDown()V
|
||||
|
||||
return-void
|
||||
|
||||
:cond_0
|
||||
:try_start_2
|
||||
invoke-static {}, Lz/n/c/j;->throwNpe()V
|
||||
:try_end_2
|
||||
.catchall {:try_start_2 .. :try_end_2} :catchall_0
|
||||
|
||||
throw v3
|
||||
|
||||
:catchall_0
|
||||
move-exception v0
|
||||
|
||||
goto :goto_0
|
||||
|
||||
:cond_1
|
||||
:try_start_3
|
||||
invoke-static {}, Lz/n/c/j;->throwNpe()V
|
||||
:try_end_3
|
||||
.catchall {:try_start_3 .. :try_end_3} :catchall_0
|
||||
|
||||
throw v3
|
||||
|
||||
:goto_0
|
||||
monitor-exit p0
|
||||
|
||||
throw v0
|
||||
|
||||
:catchall_1
|
||||
move-exception v1
|
||||
|
||||
:try_start_4
|
||||
throw v1
|
||||
:try_end_4
|
||||
.catchall {:try_start_4 .. :try_end_4} :catchall_2
|
||||
|
||||
:catchall_2
|
||||
move-exception v2
|
||||
|
||||
invoke-static {v0, v1}, Lz/i/s;->closeFinally(Ljava/io/Closeable;Ljava/lang/Throwable;)V
|
||||
|
||||
throw v2
|
||||
|
||||
:cond_2
|
||||
return-void
|
||||
.end method
|
||||
|
||||
.method public final c(Ljava/lang/String;)Ljava/util/List;
|
||||
.locals 4
|
||||
.annotation system Ldalvik/annotation/Signature;
|
||||
value = {
|
||||
"(",
|
||||
"Ljava/lang/String;",
|
||||
")",
|
||||
"Ljava/util/List<",
|
||||
"Ljava/lang/String;",
|
||||
">;"
|
||||
}
|
||||
.end annotation
|
||||
|
||||
const/4 v0, 0x1
|
||||
|
||||
new-array v1, v0, [C
|
||||
|
||||
const/4 v2, 0x0
|
||||
|
||||
const/16 v3, 0x2e
|
||||
|
||||
aput-char v3, v1, v2
|
||||
|
||||
const/4 v3, 0x6
|
||||
|
||||
invoke-static {p1, v1, v2, v2, v3}, Lz/t/p;->split$default(Ljava/lang/CharSequence;[CZII)Ljava/util/List;
|
||||
|
||||
move-result-object p1
|
||||
|
||||
invoke-static {p1}, Lz/i/f;->last(Ljava/util/List;)Ljava/lang/Object;
|
||||
|
||||
move-result-object v1
|
||||
|
||||
check-cast v1, Ljava/lang/String;
|
||||
|
||||
const-string v3, ""
|
||||
|
||||
invoke-static {v1, v3}, Lz/n/c/j;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
|
||||
|
||||
move-result v1
|
||||
|
||||
if-eqz v1, :cond_1
|
||||
|
||||
const-string v1, "$this$dropLast"
|
||||
|
||||
invoke-static {p1, v1}, Lz/n/c/j;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
||||
|
||||
invoke-interface {p1}, Ljava/util/List;->size()I
|
||||
|
||||
move-result v1
|
||||
|
||||
sub-int/2addr v1, v0
|
||||
|
||||
if-gez v1, :cond_0
|
||||
|
||||
goto :goto_0
|
||||
|
||||
:cond_0
|
||||
move v2, v1
|
||||
|
||||
:goto_0
|
||||
invoke-static {p1, v2}, Lz/i/f;->take(Ljava/lang/Iterable;I)Ljava/util/List;
|
||||
|
||||
move-result-object p1
|
||||
|
||||
:cond_1
|
||||
return-object p1
|
||||
.end method
|
Loading…
Add table
Add a link
Reference in a new issue