mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2024-12-26 09:02:34 -06:00
411 lines
10 KiB
Smali
411 lines
10 KiB
Smali
|
.class public final Lokhttp3/FormBody;
|
||
|
.super Lokhttp3/RequestBody;
|
||
|
.source "FormBody.kt"
|
||
|
|
||
|
|
||
|
# annotations
|
||
|
.annotation system Ldalvik/annotation/MemberClasses;
|
||
|
value = {
|
||
|
Lokhttp3/FormBody$Builder;,
|
||
|
Lokhttp3/FormBody$Companion;
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
.annotation runtime Lkotlin/Metadata;
|
||
|
bv = {
|
||
|
0x1,
|
||
|
0x0,
|
||
|
0x3
|
||
|
}
|
||
|
d1 = {
|
||
|
"\u0000@\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010 \n\u0002\u0010\u000e\n\u0002\u0008\u0003\n\u0002\u0010\u0008\n\u0002\u0008\u0002\n\u0002\u0010\t\n\u0000\n\u0002\u0018\u0002\n\u0002\u0008\u0008\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000b\n\u0000\n\u0002\u0010\u0002\n\u0002\u0008\u0003\u0018\u0000 \u001c2\u00020\u0001:\u0002\u001b\u001cB#\u0008\u0000\u0012\u000c\u0010\u0002\u001a\u0008\u0012\u0004\u0012\u00020\u00040\u0003\u0012\u000c\u0010\u0005\u001a\u0008\u0012\u0004\u0012\u00020\u00040\u0003\u00a2\u0006\u0002\u0010\u0006J\u0008\u0010\n\u001a\u00020\u000bH\u0016J\u0008\u0010\u000c\u001a\u00020\rH\u0016J\u000e\u0010\u000e\u001a\u00020\u00042\u0006\u0010\u000f\u001a\u00020\u0008J\u000e\u0010\u0010\u001a\u00020\u00042\u0006\u0010\u000f\u001a\u00020\u0008J\u000e\u0010\u0011\u001a\u00020\u00042\u0006\u0010\u000f\u001a\u00020\u0008J\r\u0010\u0007\u001a\u00020\u0008H\u0007\u00a2\u0006\u0002\u0008\u0012J\u000e\u0010\u0013\u001a\u00020\u00042\u0006\u0010\u000f\u001a\u00020\u0008J\u001a\u0010\u0014\u001a\u00020\u000b2\u0008\u0010\u0015\u001a\u0004\u0018\u00010\u00162\u0006\u0010\u0017\u001a\u00020\u0018H\u0002J\u0010\u0010\u0019\u001a\u00020\u001a2\u0006\u0010\u0015\u001a\u00020\u0016H\u0016R\u0014\u0010\u0002\u001a\u0008\u0012\u0004\u0012\u00020\u00040\u0003X\u0082\u0004\u00a2\u0006\u0002\n\u0000R\u0014\u0010\u0005\u001a\u0008\u0012\u0004\u0012\u00020\u00040\u0003X\u0082\u0004\u00a2\u0006\u0002\n\u0000R\u0011\u0010\u0007\u001a\u00020\u00088G\u00a2\u0006\u0006\u001a\u0004\u0008\u0007\u0010\t\u00a8\u0006\u001d"
|
||
|
}
|
||
|
d2 = {
|
||
|
"Lokhttp3/FormBody;",
|
||
|
"Lokhttp3/RequestBody;",
|
||
|
"encodedNames",
|
||
|
"",
|
||
|
"",
|
||
|
"encodedValues",
|
||
|
"(Ljava/util/List;Ljava/util/List;)V",
|
||
|
"size",
|
||
|
"",
|
||
|
"()I",
|
||
|
"contentLength",
|
||
|
"",
|
||
|
"contentType",
|
||
|
"Lokhttp3/MediaType;",
|
||
|
"encodedName",
|
||
|
"index",
|
||
|
"encodedValue",
|
||
|
"name",
|
||
|
"-deprecated_size",
|
||
|
"value",
|
||
|
"writeOrCountBytes",
|
||
|
"sink",
|
||
|
"Lokio/BufferedSink;",
|
||
|
"countBytes",
|
||
|
"",
|
||
|
"writeTo",
|
||
|
"",
|
||
|
"Builder",
|
||
|
"Companion",
|
||
|
"okhttp"
|
||
|
}
|
||
|
k = 0x1
|
||
|
mv = {
|
||
|
0x1,
|
||
|
0x4,
|
||
|
0x0
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
|
||
|
# static fields
|
||
|
.field private static final CONTENT_TYPE:Lokhttp3/MediaType;
|
||
|
|
||
|
.field public static final Companion:Lokhttp3/FormBody$Companion;
|
||
|
|
||
|
|
||
|
# instance fields
|
||
|
.field private final encodedNames:Ljava/util/List;
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"Ljava/util/List<",
|
||
|
"Ljava/lang/String;",
|
||
|
">;"
|
||
|
}
|
||
|
.end annotation
|
||
|
.end field
|
||
|
|
||
|
.field private final encodedValues:Ljava/util/List;
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"Ljava/util/List<",
|
||
|
"Ljava/lang/String;",
|
||
|
">;"
|
||
|
}
|
||
|
.end annotation
|
||
|
.end field
|
||
|
|
||
|
|
||
|
# direct methods
|
||
|
.method static constructor <clinit>()V
|
||
|
.locals 2
|
||
|
|
||
|
new-instance v0, Lokhttp3/FormBody$Companion;
|
||
|
|
||
|
const/4 v1, 0x0
|
||
|
|
||
|
invoke-direct {v0, v1}, Lokhttp3/FormBody$Companion;-><init>(Lkotlin/jvm/internal/DefaultConstructorMarker;)V
|
||
|
|
||
|
sput-object v0, Lokhttp3/FormBody;->Companion:Lokhttp3/FormBody$Companion;
|
||
|
|
||
|
.line 124
|
||
|
sget-object v0, Lokhttp3/MediaType;->Companion:Lokhttp3/MediaType$Companion;
|
||
|
|
||
|
const-string v1, "application/x-www-form-urlencoded"
|
||
|
|
||
|
invoke-virtual {v0, v1}, Lokhttp3/MediaType$Companion;->get(Ljava/lang/String;)Lokhttp3/MediaType;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
sput-object v0, Lokhttp3/FormBody;->CONTENT_TYPE:Lokhttp3/MediaType;
|
||
|
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method public constructor <init>(Ljava/util/List;Ljava/util/List;)V
|
||
|
.locals 1
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"(",
|
||
|
"Ljava/util/List<",
|
||
|
"Ljava/lang/String;",
|
||
|
">;",
|
||
|
"Ljava/util/List<",
|
||
|
"Ljava/lang/String;",
|
||
|
">;)V"
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
const-string v0, "encodedNames"
|
||
|
|
||
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
||
|
|
||
|
const-string v0, "encodedValues"
|
||
|
|
||
|
invoke-static {p2, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
||
|
|
||
|
.line 31
|
||
|
invoke-direct {p0}, Lokhttp3/RequestBody;-><init>()V
|
||
|
|
||
|
.line 32
|
||
|
invoke-static {p1}, Lokhttp3/internal/Util;->toImmutableList(Ljava/util/List;)Ljava/util/List;
|
||
|
|
||
|
move-result-object p1
|
||
|
|
||
|
iput-object p1, p0, Lokhttp3/FormBody;->encodedNames:Ljava/util/List;
|
||
|
|
||
|
.line 33
|
||
|
invoke-static {p2}, Lokhttp3/internal/Util;->toImmutableList(Ljava/util/List;)Ljava/util/List;
|
||
|
|
||
|
move-result-object p1
|
||
|
|
||
|
iput-object p1, p0, Lokhttp3/FormBody;->encodedValues:Ljava/util/List;
|
||
|
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method private final writeOrCountBytes(Lokio/BufferedSink;Z)J
|
||
|
.locals 3
|
||
|
|
||
|
if-eqz p2, :cond_0
|
||
|
|
||
|
.line 71
|
||
|
new-instance p1, Lokio/Buffer;
|
||
|
|
||
|
invoke-direct {p1}, Lokio/Buffer;-><init>()V
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:cond_0
|
||
|
invoke-static {p1}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;)V
|
||
|
|
||
|
invoke-interface {p1}, Lokio/BufferedSink;->getBuffer()Lokio/Buffer;
|
||
|
|
||
|
move-result-object p1
|
||
|
|
||
|
:goto_0
|
||
|
iget-object v0, p0, Lokhttp3/FormBody;->encodedNames:Ljava/util/List;
|
||
|
|
||
|
.line 73
|
||
|
invoke-interface {v0}, Ljava/util/List;->size()I
|
||
|
|
||
|
move-result v0
|
||
|
|
||
|
const/4 v1, 0x0
|
||
|
|
||
|
:goto_1
|
||
|
if-ge v1, v0, :cond_2
|
||
|
|
||
|
if-lez v1, :cond_1
|
||
|
|
||
|
const/16 v2, 0x26
|
||
|
|
||
|
.line 74
|
||
|
invoke-virtual {p1, v2}, Lokio/Buffer;->writeByte(I)Lokio/Buffer;
|
||
|
|
||
|
:cond_1
|
||
|
iget-object v2, p0, Lokhttp3/FormBody;->encodedNames:Ljava/util/List;
|
||
|
|
||
|
.line 75
|
||
|
invoke-interface {v2, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;
|
||
|
|
||
|
move-result-object v2
|
||
|
|
||
|
check-cast v2, Ljava/lang/String;
|
||
|
|
||
|
invoke-virtual {p1, v2}, Lokio/Buffer;->writeUtf8(Ljava/lang/String;)Lokio/Buffer;
|
||
|
|
||
|
const/16 v2, 0x3d
|
||
|
|
||
|
.line 76
|
||
|
invoke-virtual {p1, v2}, Lokio/Buffer;->writeByte(I)Lokio/Buffer;
|
||
|
|
||
|
iget-object v2, p0, Lokhttp3/FormBody;->encodedValues:Ljava/util/List;
|
||
|
|
||
|
.line 77
|
||
|
invoke-interface {v2, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;
|
||
|
|
||
|
move-result-object v2
|
||
|
|
||
|
check-cast v2, Ljava/lang/String;
|
||
|
|
||
|
invoke-virtual {p1, v2}, Lokio/Buffer;->writeUtf8(Ljava/lang/String;)Lokio/Buffer;
|
||
|
|
||
|
add-int/lit8 v1, v1, 0x1
|
||
|
|
||
|
goto :goto_1
|
||
|
|
||
|
:cond_2
|
||
|
if-eqz p2, :cond_3
|
||
|
|
||
|
.line 81
|
||
|
invoke-virtual {p1}, Lokio/Buffer;->size()J
|
||
|
|
||
|
move-result-wide v0
|
||
|
|
||
|
.line 82
|
||
|
invoke-virtual {p1}, Lokio/Buffer;->clear()V
|
||
|
|
||
|
goto :goto_2
|
||
|
|
||
|
:cond_3
|
||
|
const-wide/16 v0, 0x0
|
||
|
|
||
|
:goto_2
|
||
|
return-wide v0
|
||
|
.end method
|
||
|
|
||
|
|
||
|
# virtual methods
|
||
|
.method public final -deprecated_size()I
|
||
|
.locals 0
|
||
|
.annotation runtime Lkotlin/Deprecated;
|
||
|
level = .enum Lkotlin/DeprecationLevel;->ERROR:Lkotlin/DeprecationLevel;
|
||
|
message = "moved to val"
|
||
|
replaceWith = .subannotation Lkotlin/ReplaceWith;
|
||
|
expression = "size"
|
||
|
imports = {}
|
||
|
.end subannotation
|
||
|
.end annotation
|
||
|
|
||
|
.line 44
|
||
|
invoke-virtual {p0}, Lokhttp3/FormBody;->size()I
|
||
|
|
||
|
move-result p0
|
||
|
|
||
|
return p0
|
||
|
.end method
|
||
|
|
||
|
.method public contentLength()J
|
||
|
.locals 2
|
||
|
|
||
|
const/4 v0, 0x0
|
||
|
|
||
|
const/4 v1, 0x1
|
||
|
|
||
|
.line 56
|
||
|
invoke-direct {p0, v0, v1}, Lokhttp3/FormBody;->writeOrCountBytes(Lokio/BufferedSink;Z)J
|
||
|
|
||
|
move-result-wide v0
|
||
|
|
||
|
return-wide v0
|
||
|
.end method
|
||
|
|
||
|
.method public contentType()Lokhttp3/MediaType;
|
||
|
.locals 0
|
||
|
|
||
|
sget-object p0, Lokhttp3/FormBody;->CONTENT_TYPE:Lokhttp3/MediaType;
|
||
|
|
||
|
return-object p0
|
||
|
.end method
|
||
|
|
||
|
.method public final encodedName(I)Ljava/lang/String;
|
||
|
.locals 0
|
||
|
|
||
|
iget-object p0, p0, Lokhttp3/FormBody;->encodedNames:Ljava/util/List;
|
||
|
|
||
|
.line 46
|
||
|
invoke-interface {p0, p1}, Ljava/util/List;->get(I)Ljava/lang/Object;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
check-cast p0, Ljava/lang/String;
|
||
|
|
||
|
return-object p0
|
||
|
.end method
|
||
|
|
||
|
.method public final encodedValue(I)Ljava/lang/String;
|
||
|
.locals 0
|
||
|
|
||
|
iget-object p0, p0, Lokhttp3/FormBody;->encodedValues:Ljava/util/List;
|
||
|
|
||
|
.line 50
|
||
|
invoke-interface {p0, p1}, Ljava/util/List;->get(I)Ljava/lang/Object;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
check-cast p0, Ljava/lang/String;
|
||
|
|
||
|
return-object p0
|
||
|
.end method
|
||
|
|
||
|
.method public final name(I)Ljava/lang/String;
|
||
|
.locals 7
|
||
|
|
||
|
.line 48
|
||
|
sget-object v0, Lokhttp3/HttpUrl;->Companion:Lokhttp3/HttpUrl$Companion;
|
||
|
|
||
|
invoke-virtual {p0, p1}, Lokhttp3/FormBody;->encodedName(I)Ljava/lang/String;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
const/4 v2, 0x0
|
||
|
|
||
|
const/4 v3, 0x0
|
||
|
|
||
|
const/4 v4, 0x1
|
||
|
|
||
|
const/4 v5, 0x3
|
||
|
|
||
|
const/4 v6, 0x0
|
||
|
|
||
|
invoke-static/range {v0 .. v6}, Lokhttp3/HttpUrl$Companion;->percentDecode$okhttp$default(Lokhttp3/HttpUrl$Companion;Ljava/lang/String;IIZILjava/lang/Object;)Ljava/lang/String;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
return-object p0
|
||
|
.end method
|
||
|
|
||
|
.method public final size()I
|
||
|
.locals 0
|
||
|
|
||
|
iget-object p0, p0, Lokhttp3/FormBody;->encodedNames:Ljava/util/List;
|
||
|
|
||
|
.line 37
|
||
|
invoke-interface {p0}, Ljava/util/List;->size()I
|
||
|
|
||
|
move-result p0
|
||
|
|
||
|
return p0
|
||
|
.end method
|
||
|
|
||
|
.method public final value(I)Ljava/lang/String;
|
||
|
.locals 7
|
||
|
|
||
|
.line 52
|
||
|
sget-object v0, Lokhttp3/HttpUrl;->Companion:Lokhttp3/HttpUrl$Companion;
|
||
|
|
||
|
invoke-virtual {p0, p1}, Lokhttp3/FormBody;->encodedValue(I)Ljava/lang/String;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
const/4 v2, 0x0
|
||
|
|
||
|
const/4 v3, 0x0
|
||
|
|
||
|
const/4 v4, 0x1
|
||
|
|
||
|
const/4 v5, 0x3
|
||
|
|
||
|
const/4 v6, 0x0
|
||
|
|
||
|
invoke-static/range {v0 .. v6}, Lokhttp3/HttpUrl$Companion;->percentDecode$okhttp$default(Lokhttp3/HttpUrl$Companion;Ljava/lang/String;IIZILjava/lang/Object;)Ljava/lang/String;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
return-object p0
|
||
|
.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}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
||
|
|
||
|
const/4 v0, 0x0
|
||
|
|
||
|
.line 60
|
||
|
invoke-direct {p0, p1, v0}, Lokhttp3/FormBody;->writeOrCountBytes(Lokio/BufferedSink;Z)J
|
||
|
|
||
|
return-void
|
||
|
.end method
|