apkfuckery/com.discord/smali_classes2/okhttp3/Headers.smali

387 lines
8 KiB
Smali
Raw Normal View History

2019-07-24 11:27:29 +00:00
.class public final Lokhttp3/Headers;
.super Ljava/lang/Object;
2019-11-28 00:30:53 +00:00
.source "Headers.kt"
# interfaces
.implements Ljava/lang/Iterable;
2020-05-07 23:11:04 +00:00
.implements Ly/v/b/a0/a;
2019-07-24 11:27:29 +00:00
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
2019-11-28 00:30:53 +00:00
Lokhttp3/Headers$a;,
Lokhttp3/Headers$b;
2019-07-24 11:27:29 +00:00
}
.end annotation
2019-11-28 00:30:53 +00:00
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Object;",
"Ljava/lang/Iterable<",
"Lkotlin/Pair<",
"+",
"Ljava/lang/String;",
"+",
"Ljava/lang/String;",
">;>;",
2020-05-07 23:11:04 +00:00
"Ly/v/b/a0/a;"
2019-11-28 00:30:53 +00:00
}
.end annotation
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
# static fields
2019-12-06 03:29:40 +00:00
.field public static final e:Lokhttp3/Headers$b;
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
# instance fields
2019-12-06 03:29:40 +00:00
.field public final d:[Ljava/lang/String;
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
# direct methods
2019-12-06 03:29:40 +00:00
.method public static constructor <clinit>()V
2019-11-28 00:30:53 +00:00
.locals 2
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
new-instance v0, Lokhttp3/Headers$b;
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
const/4 v1, 0x0
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
invoke-direct {v0, v1}, Lokhttp3/Headers$b;-><init>(Lkotlin/jvm/internal/DefaultConstructorMarker;)V
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
sput-object v0, Lokhttp3/Headers;->e:Lokhttp3/Headers$b;
2019-07-24 11:27:29 +00:00
return-void
.end method
2019-12-06 03:29:40 +00:00
.method public synthetic constructor <init>([Ljava/lang/String;Lkotlin/jvm/internal/DefaultConstructorMarker;)V
2019-07-24 11:27:29 +00:00
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
2019-12-06 03:29:40 +00:00
iput-object p1, p0, Lokhttp3/Headers;->d:[Ljava/lang/String;
2019-07-24 11:27:29 +00:00
return-void
.end method
2019-12-06 03:29:40 +00:00
.method public static final varargs a([Ljava/lang/String;)Lokhttp3/Headers;
.locals 1
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
sget-object v0, Lokhttp3/Headers;->e:Lokhttp3/Headers$b;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
invoke-virtual {v0, p0}, Lokhttp3/Headers$b;->a([Ljava/lang/String;)Lokhttp3/Headers;
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
move-result-object p0
2019-07-24 11:27:29 +00:00
return-object p0
.end method
2019-11-28 00:30:53 +00:00
# virtual methods
2019-12-06 03:29:40 +00:00
.method public final a(Ljava/lang/String;)Ljava/lang/String;
.locals 2
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
if-eqz p1, :cond_0
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
sget-object v0, Lokhttp3/Headers;->e:Lokhttp3/Headers$b;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
iget-object v1, p0, Lokhttp3/Headers;->d:[Ljava/lang/String;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
invoke-virtual {v0, v1, p1}, Lokhttp3/Headers$b;->a([Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
move-result-object p1
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
return-object p1
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
:cond_0
const-string p1, "name"
2019-07-24 11:27:29 +00:00
2020-05-07 23:11:04 +00:00
invoke-static {p1}, Ly/v/b/j;->a(Ljava/lang/String;)V
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
const/4 p1, 0x0
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
throw p1
2019-07-24 11:27:29 +00:00
.end method
2019-12-06 03:29:40 +00:00
.method public final b(Ljava/lang/String;)Ljava/util/List;
.locals 5
2019-11-28 00:30:53 +00:00
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/String;",
")",
"Ljava/util/List<",
"Ljava/lang/String;",
">;"
}
.end annotation
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
const/4 v0, 0x0
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
if-eqz p1, :cond_4
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
const/4 v1, 0x0
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
invoke-virtual {p0}, Lokhttp3/Headers;->size()I
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
move-result v2
2019-07-24 11:27:29 +00:00
:goto_0
2019-12-06 03:29:40 +00:00
if-ge v1, v2, :cond_2
2019-07-24 11:27:29 +00:00
2020-02-20 19:33:18 +00:00
invoke-virtual {p0, v1}, Lokhttp3/Headers;->f(I)Ljava/lang/String;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
move-result-object v3
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
const/4 v4, 0x1
2019-07-24 11:27:29 +00:00
2020-05-07 23:11:04 +00:00
invoke-static {p1, v3, v4}, Ly/b0/p;->equals(Ljava/lang/String;Ljava/lang/String;Z)Z
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
move-result v3
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
if-eqz v3, :cond_1
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
if-nez v0, :cond_0
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
new-instance v0, Ljava/util/ArrayList;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
const/4 v3, 0x2
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
invoke-direct {v0, v3}, Ljava/util/ArrayList;-><init>(I)V
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
:cond_0
2020-02-20 19:33:18 +00:00
invoke-virtual {p0, v1}, Lokhttp3/Headers;->g(I)Ljava/lang/String;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
move-result-object v3
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
invoke-interface {v0, v3}, Ljava/util/List;->add(Ljava/lang/Object;)Z
2019-07-24 11:27:29 +00:00
:cond_1
2019-12-06 03:29:40 +00:00
add-int/lit8 v1, v1, 0x1
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
goto :goto_0
2019-07-24 11:27:29 +00:00
:cond_2
2019-12-06 03:29:40 +00:00
if-eqz v0, :cond_3
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
invoke-static {v0}, Ljava/util/Collections;->unmodifiableList(Ljava/util/List;)Ljava/util/List;
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
move-result-object p1
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
const-string v0, "Collections.unmodifiableList(result)"
2019-07-24 11:27:29 +00:00
2020-05-07 23:11:04 +00:00
invoke-static {p1, v0}, Ly/v/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
goto :goto_1
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
:cond_3
2020-05-07 23:11:04 +00:00
sget-object p1, Ly/q/p;->d:Ly/q/p;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
:goto_1
2019-11-28 00:30:53 +00:00
return-object p1
2019-12-06 03:29:40 +00:00
:cond_4
const-string p1, "name"
2020-05-07 23:11:04 +00:00
invoke-static {p1}, Ly/v/b/j;->a(Ljava/lang/String;)V
2019-12-06 03:29:40 +00:00
throw 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
2019-07-24 11:27:29 +00:00
.end method
2020-02-20 19:33:18 +00:00
.method public final f(I)Ljava/lang/String;
2019-12-06 01:29:57 +00:00
.locals 1
2019-12-06 03:29:40 +00:00
iget-object v0, p0, Lokhttp3/Headers;->d:[Ljava/lang/String;
2019-12-06 01:29:57 +00:00
mul-int/lit8 p1, p1, 0x2
aget-object p1, v0, p1
return-object p1
.end method
2020-02-20 19:33:18 +00:00
.method public final g(I)Ljava/lang/String;
2019-12-06 01:29:57 +00:00
.locals 1
2019-12-06 03:29:40 +00:00
iget-object v0, p0, Lokhttp3/Headers;->d:[Ljava/lang/String;
2019-12-06 01:29:57 +00:00
mul-int/lit8 p1, p1, 0x2
add-int/lit8 p1, p1, 0x1
aget-object p1, v0, p1
return-object p1
.end method
2020-02-20 19:33:18 +00:00
.method public final g()Lokhttp3/Headers$a;
2020-03-19 22:21:18 +00:00
.locals 3
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
new-instance v0, Lokhttp3/Headers$a;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
invoke-direct {v0}, Lokhttp3/Headers$a;-><init>()V
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
iget-object v1, v0, Lokhttp3/Headers$a;->a:Ljava/util/List;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
iget-object v2, p0, Lokhttp3/Headers;->d:[Ljava/lang/String;
2019-07-24 11:27:29 +00:00
2020-05-07 23:11:04 +00:00
invoke-static {v1, v2}, Lf/o/a/j/a;->addAll(Ljava/util/Collection;[Ljava/lang/Object;)Z
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
return-object v0
2019-07-24 11:27:29 +00:00
.end method
2020-02-20 19:33:18 +00:00
.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
2019-12-06 03:29:40 +00:00
.method public iterator()Ljava/util/Iterator;
.locals 6
2019-11-28 00:30:53 +00:00
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljava/util/Iterator<",
"Lkotlin/Pair<",
"Ljava/lang/String;",
"Ljava/lang/String;",
">;>;"
}
.end annotation
2019-12-06 03:29:40 +00:00
invoke-virtual {p0}, Lokhttp3/Headers;->size()I
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
move-result v0
2019-11-28 00:30:53 +00:00
new-array v1, v0, [Lkotlin/Pair;
const/4 v2, 0x0
:goto_0
if-ge v2, v0, :cond_0
2020-02-20 19:33:18 +00:00
invoke-virtual {p0, v2}, Lokhttp3/Headers;->f(I)Ljava/lang/String;
2019-11-28 00:30:53 +00:00
move-result-object v3
2020-02-20 19:33:18 +00:00
invoke-virtual {p0, v2}, Lokhttp3/Headers;->g(I)Ljava/lang/String;
2019-11-28 00:30:53 +00:00
move-result-object v4
2019-12-06 03:29:40 +00:00
new-instance v5, Lkotlin/Pair;
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
invoke-direct {v5, v3, v4}, Lkotlin/Pair;-><init>(Ljava/lang/Object;Ljava/lang/Object;)V
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
aput-object v5, v1, v2
2019-11-28 00:30:53 +00:00
add-int/lit8 v2, v2, 0x1
goto :goto_0
:cond_0
2020-05-07 23:11:04 +00:00
invoke-static {v1}, Lf/o/a/j/a;->iterator([Ljava/lang/Object;)Ljava/util/Iterator;
2019-11-28 00:30:53 +00:00
move-result-object v0
return-object v0
.end method
2019-12-06 03:29:40 +00:00
.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;
2019-07-24 11:27:29 +00:00
.locals 4
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
2019-12-06 03:29:40 +00:00
invoke-virtual {p0}, Lokhttp3/Headers;->size()I
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
move-result v1
2019-07-24 11:27:29 +00:00
const/4 v2, 0x0
:goto_0
if-ge v2, v1, :cond_0
2020-02-20 19:33:18 +00:00
invoke-virtual {p0, v2}, Lokhttp3/Headers;->f(I)Ljava/lang/String;
2019-07-24 11:27:29 +00:00
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;
2020-02-20 19:33:18 +00:00
invoke-virtual {p0, v2}, Lokhttp3/Headers;->g(I)Ljava/lang/String;
2019-07-24 11:27:29 +00:00
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
2019-11-28 00:30:53 +00:00
const-string v1, "StringBuilder().apply(builderAction).toString()"
2020-05-07 23:11:04 +00:00
invoke-static {v0, v1}, Ly/v/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2019-11-28 00:30:53 +00:00
2019-07-24 11:27:29 +00:00
return-object v0
.end method