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

233 lines
4.9 KiB
Smali
Raw Normal View History

2019-11-28 00:30:53 +00:00
.class public final Lokhttp3/t;
.super Lokhttp3/RequestBody;
.source "FormBody.kt"
2019-07-24 11:27:29 +00:00
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
2019-11-28 00:30:53 +00:00
Lokhttp3/t$a;,
Lokhttp3/t$b;
2019-07-24 11:27:29 +00:00
}
.end annotation
# static fields
2019-12-03 21:42:56 +00:00
.field private static final brL:Lokhttp3/MediaType;
2019-07-24 11:27:29 +00:00
2019-12-03 21:42:56 +00:00
.field public static final brM:Lokhttp3/t$b;
2019-07-24 11:27:29 +00:00
# instance fields
2019-12-03 21:42:56 +00:00
.field private final brJ:Ljava/util/List;
2019-07-24 11:27:29 +00:00
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/List<",
2019-11-28 00:30:53 +00:00
"Ljava/lang/String;",
2019-07-24 11:27:29 +00:00
">;"
}
.end annotation
.end field
2019-12-03 21:42:56 +00:00
.field private final brK:Ljava/util/List;
2019-07-24 11:27:29 +00:00
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/List<",
2019-11-28 00:30:53 +00:00
"Ljava/lang/String;",
2019-07-24 11:27:29 +00:00
">;"
}
.end annotation
.end field
# direct methods
.method 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/t$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-11-28 00:30:53 +00:00
invoke-direct {v0, v1}, Lokhttp3/t$b;-><init>(B)V
2019-07-24 11:27:29 +00:00
2019-12-03 21:42:56 +00:00
sput-object v0, Lokhttp3/t;->brM:Lokhttp3/t$b;
2019-07-24 11:27:29 +00:00
2019-12-03 21:42:56 +00:00
sget-object v0, Lokhttp3/MediaType;->bss:Lokhttp3/MediaType$a;
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
const-string v0, "application/x-www-form-urlencoded"
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
invoke-static {v0}, Lokhttp3/MediaType$a;->dO(Ljava/lang/String;)Lokhttp3/MediaType;
2019-07-24 11:27:29 +00:00
move-result-object v0
2019-12-03 21:42:56 +00:00
sput-object v0, Lokhttp3/t;->brL:Lokhttp3/MediaType;
2019-07-24 11:27:29 +00:00
return-void
.end method
2019-11-28 00:30:53 +00:00
.method public constructor <init>(Ljava/util/List;Ljava/util/List;)V
2019-07-24 11:27:29 +00:00
.locals 1
2019-11-28 00:30:53 +00:00
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/List<",
"Ljava/lang/String;",
">;",
"Ljava/util/List<",
"Ljava/lang/String;",
">;)V"
}
.end annotation
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
const-string v0, "encodedNames"
2019-10-25 01:57:51 +00:00
2019-11-28 00:30:53 +00:00
invoke-static {p1, v0}, Lkotlin/jvm/internal/l;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2019-10-31 00:47:18 +00:00
2019-11-28 00:30:53 +00:00
const-string v0, "encodedValues"
2019-10-31 00:47:18 +00:00
2019-11-28 00:30:53 +00:00
invoke-static {p2, v0}, Lkotlin/jvm/internal/l;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
invoke-direct {p0}, Lokhttp3/RequestBody;-><init>()V
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
invoke-static {p1}, Lokhttp3/internal/b;->U(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-12-03 21:42:56 +00:00
iput-object p1, p0, Lokhttp3/t;->brJ:Ljava/util/List;
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
invoke-static {p2}, Lokhttp3/internal/b;->U(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-12-03 21:42:56 +00:00
iput-object p1, p0, Lokhttp3/t;->brK:Ljava/util/List;
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
return-void
.end method
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
.method private final a(Lokio/BufferedSink;Z)J
.locals 3
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
if-eqz p2, :cond_0
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
new-instance p1, Lokio/f;
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
invoke-direct {p1}, Lokio/f;-><init>()V
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
2019-11-28 00:30:53 +00:00
:cond_0
if-nez p1, :cond_1
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
invoke-static {}, Lkotlin/jvm/internal/l;->throwNpe()V
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
:cond_1
2019-12-03 21:42:56 +00:00
invoke-interface {p1}, Lokio/BufferedSink;->Ih()Lokio/f;
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
:goto_0
const/4 v0, 0x0
2019-07-24 11:27:29 +00:00
2019-12-03 21:42:56 +00:00
iget-object v1, p0, Lokhttp3/t;->brJ:Ljava/util/List;
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
invoke-interface {v1}, Ljava/util/List;->size()I
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
move-result v1
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
:goto_1
if-ge v0, v1, :cond_3
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
if-lez v0, :cond_2
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
const/16 v2, 0x26
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
invoke-virtual {p1, v2}, Lokio/f;->dA(I)Lokio/f;
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
:cond_2
2019-12-03 21:42:56 +00:00
iget-object v2, p0, Lokhttp3/t;->brJ:Ljava/util/List;
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
invoke-interface {v2, v0}, Ljava/util/List;->get(I)Ljava/lang/Object;
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
move-result-object v2
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
check-cast v2, Ljava/lang/String;
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
invoke-virtual {p1, v2}, Lokio/f;->es(Ljava/lang/String;)Lokio/f;
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
const/16 v2, 0x3d
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
invoke-virtual {p1, v2}, Lokio/f;->dA(I)Lokio/f;
2019-07-24 11:27:29 +00:00
2019-12-03 21:42:56 +00:00
iget-object v2, p0, Lokhttp3/t;->brK:Ljava/util/List;
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
invoke-interface {v2, v0}, Ljava/util/List;->get(I)Ljava/lang/Object;
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
move-result-object v2
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
check-cast v2, Ljava/lang/String;
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
invoke-virtual {p1, v2}, Lokio/f;->es(Ljava/lang/String;)Lokio/f;
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
add-int/lit8 v0, v0, 0x1
2019-07-24 11:27:29 +00:00
goto :goto_1
:cond_3
2019-11-28 00:30:53 +00:00
if-eqz p2, :cond_4
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
iget-wide v0, p1, Lokio/f;->size:J
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
invoke-virtual {p1}, Lokio/f;->clear()V
2019-07-24 11:27:29 +00:00
goto :goto_2
:cond_4
2019-11-28 00:30:53 +00:00
const-wide/16 v0, 0x0
2019-07-24 11:27:29 +00:00
:goto_2
2019-11-28 00:30:53 +00:00
return-wide v0
2019-07-24 11:27:29 +00:00
.end method
2019-11-28 00:30:53 +00:00
# virtual methods
.method public final contentLength()J
.locals 2
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
const/4 v0, 0x0
2019-07-24 11:27:29 +00:00
const/4 v1, 0x1
2019-11-28 00:30:53 +00:00
invoke-direct {p0, v0, v1}, Lokhttp3/t;->a(Lokio/BufferedSink;Z)J
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
move-result-wide v0
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
return-wide v0
2019-07-24 11:27:29 +00:00
.end method
2019-11-28 00:30:53 +00:00
.method public final contentType()Lokhttp3/MediaType;
2019-07-24 11:27:29 +00:00
.locals 1
2019-12-03 21:42:56 +00:00
sget-object v0, Lokhttp3/t;->brL:Lokhttp3/MediaType;
2019-07-24 11:27:29 +00:00
return-object v0
.end method
2019-11-28 00:30:53 +00:00
.method public final writeTo(Lokio/BufferedSink;)V
.locals 1
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
const-string v0, "sink"
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
invoke-static {p1, v0}, Lkotlin/jvm/internal/l;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2019-07-24 11:27:29 +00:00
const/4 v0, 0x0
2019-11-28 00:30:53 +00:00
invoke-direct {p0, p1, v0}, Lokhttp3/t;->a(Lokio/BufferedSink;Z)J
2019-07-24 11:27:29 +00:00
2019-11-28 00:30:53 +00:00
return-void
2019-07-24 11:27:29 +00:00
.end method