apkfuckery/com.discord/smali_classes2/okhttp3/RequestBody$Companion.smali

291 lines
6.3 KiB
Smali
Raw Normal View History

2019-11-28 00:30:53 +00:00
.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
2019-12-06 03:29:40 +00:00
.method public constructor <init>()V
2019-11-28 00:30:53 +00:00
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
2019-12-06 03:29:40 +00:00
.method public synthetic constructor <init>(Lkotlin/jvm/internal/DefaultConstructorMarker;)V
2019-11-28 00:30:53 +00:00
.locals 0
2019-12-06 03:29:40 +00:00
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
2019-11-28 00:30:53 +00:00
return-void
.end method
2019-12-06 03:29:40 +00:00
.method public static synthetic a(Lokhttp3/RequestBody$Companion;[BLokhttp3/MediaType;III)Lokhttp3/RequestBody;
.locals 1
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
and-int/lit8 v0, p5, 0x1
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
if-eqz v0, :cond_0
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
const/4 p2, 0x0
2019-11-28 00:30:53 +00:00
:cond_0
2019-12-06 03:29:40 +00:00
and-int/lit8 v0, p5, 0x2
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
if-eqz v0, :cond_1
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
const/4 p3, 0x0
2019-11-28 00:30:53 +00:00
:cond_1
2019-12-06 03:29:40 +00:00
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;->a([BLokhttp3/MediaType;II)Lokhttp3/RequestBody;
2019-11-28 00:30:53 +00:00
move-result-object p0
return-object p0
.end method
2019-12-06 03:29:40 +00:00
# virtual methods
.method public final a(Ljava/io/File;Lokhttp3/MediaType;)Lokhttp3/RequestBody;
2019-11-28 00:30:53 +00:00
.locals 1
2019-12-06 03:29:40 +00:00
if-eqz p1, :cond_0
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
new-instance v0, Lokhttp3/RequestBody$Companion$a;
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
invoke-direct {v0, p1, p2}, Lokhttp3/RequestBody$Companion$a;-><init>(Ljava/io/File;Lokhttp3/MediaType;)V
return-object v0
2019-11-28 00:30:53 +00:00
:cond_0
2019-12-06 03:29:40 +00:00
const-string p1, "$this$asRequestBody"
2019-11-28 00:30:53 +00:00
2020-02-20 19:33:18 +00:00
invoke-static {p1}, Lw/u/b/j;->a(Ljava/lang/String;)V
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
const/4 p1, 0x0
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
throw p1
.end method
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
.method public final a(Ljava/lang/String;Lokhttp3/MediaType;)Lokhttp3/RequestBody;
.locals 3
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
const/4 v0, 0x0
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
if-eqz p1, :cond_1
2019-11-28 00:30:53 +00:00
2020-02-20 19:33:18 +00:00
sget-object v1, Lw/a0/a;->a:Ljava/nio/charset/Charset;
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
if-eqz p2, :cond_0
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
const/4 v1, 0x1
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
invoke-static {p2, v0, v1}, Lokhttp3/MediaType;->a(Lokhttp3/MediaType;Ljava/nio/charset/Charset;I)Ljava/nio/charset/Charset;
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
move-result-object v1
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
if-nez v1, :cond_0
2019-11-28 00:30:53 +00:00
2020-02-20 19:33:18 +00:00
sget-object v1, Lw/a0/a;->a:Ljava/nio/charset/Charset;
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
sget-object v0, Lokhttp3/MediaType;->g:Lokhttp3/MediaType$a;
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
new-instance v2, Ljava/lang/StringBuilder;
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
invoke-virtual {v2, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
const-string p2, "; charset=utf-8"
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
invoke-virtual {v2, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p2
invoke-virtual {v0, p2}, Lokhttp3/MediaType$a;->b(Ljava/lang/String;)Lokhttp3/MediaType;
move-result-object p2
:cond_0
invoke-virtual {p1, v1}, Ljava/lang/String;->getBytes(Ljava/nio/charset/Charset;)[B
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
move-result-object p1
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
const-string v0, "(this as java.lang.String).getBytes(charset)"
2019-11-28 00:30:53 +00:00
2020-02-20 19:33:18 +00:00
invoke-static {p1, v0}, Lw/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
const/4 v0, 0x0
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
array-length v1, p1
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
invoke-virtual {p0, p1, p2, v0, v1}, Lokhttp3/RequestBody$Companion;->a([BLokhttp3/MediaType;II)Lokhttp3/RequestBody;
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
move-result-object p1
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
return-object p1
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
:cond_1
const-string p1, "$this$toRequestBody"
2019-11-28 00:30:53 +00:00
2020-02-20 19:33:18 +00:00
invoke-static {p1}, Lw/u/b/j;->a(Ljava/lang/String;)V
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
throw v0
.end method
.method public final a(Lokhttp3/MediaType;Ljava/io/File;)Lokhttp3/RequestBody;
.locals 0
if-eqz p2, :cond_0
invoke-virtual {p0, p2, p1}, Lokhttp3/RequestBody$Companion;->a(Ljava/io/File;Lokhttp3/MediaType;)Lokhttp3/RequestBody;
2019-11-28 00:30:53 +00:00
move-result-object p1
2019-12-06 03:29:40 +00:00
return-object p1
:cond_0
const-string p1, "file"
2020-02-20 19:33:18 +00:00
invoke-static {p1}, Lw/u/b/j;->a(Ljava/lang/String;)V
2019-12-06 03:29:40 +00:00
const/4 p1, 0x0
throw p1
.end method
.method public final a(Lokhttp3/MediaType;Ljava/lang/String;)Lokhttp3/RequestBody;
.locals 0
if-eqz p2, :cond_0
invoke-virtual {p0, p2, p1}, Lokhttp3/RequestBody$Companion;->a(Ljava/lang/String;Lokhttp3/MediaType;)Lokhttp3/RequestBody;
2019-11-28 00:30:53 +00:00
move-result-object p1
2019-12-06 03:29:40 +00:00
return-object p1
2019-11-28 00:30:53 +00:00
:cond_0
2019-12-06 03:29:40 +00:00
const-string p1, "content"
2019-11-28 00:30:53 +00:00
2020-02-20 19:33:18 +00:00
invoke-static {p1}, Lw/u/b/j;->a(Ljava/lang/String;)V
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
const/4 p1, 0x0
throw p1
.end method
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
.method public final a(Lokhttp3/MediaType;Lokio/ByteString;)Lokhttp3/RequestBody;
.locals 0
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
if-eqz p2, :cond_0
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
invoke-virtual {p0, p2, p1}, Lokhttp3/RequestBody$Companion;->a(Lokio/ByteString;Lokhttp3/MediaType;)Lokhttp3/RequestBody;
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
move-result-object p1
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
return-object p1
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
:cond_0
const-string p1, "content"
2020-02-20 19:33:18 +00:00
invoke-static {p1}, Lw/u/b/j;->a(Ljava/lang/String;)V
2019-12-06 03:29:40 +00:00
const/4 p1, 0x0
throw p1
2019-11-28 00:30:53 +00:00
.end method
2019-12-06 03:29:40 +00:00
.method public final a(Lokhttp3/MediaType;[BII)Lokhttp3/RequestBody;
.locals 0
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
if-eqz p2, :cond_0
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
invoke-virtual {p0, p2, p1, p3, p4}, Lokhttp3/RequestBody$Companion;->a([BLokhttp3/MediaType;II)Lokhttp3/RequestBody;
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
move-result-object p1
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
return-object p1
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
:cond_0
const-string p1, "content"
2020-02-20 19:33:18 +00:00
invoke-static {p1}, Lw/u/b/j;->a(Ljava/lang/String;)V
2019-12-06 03:29:40 +00:00
const/4 p1, 0x0
throw p1
2019-11-28 00:30:53 +00:00
.end method
2019-12-06 03:29:40 +00:00
.method public final a(Lokio/ByteString;Lokhttp3/MediaType;)Lokhttp3/RequestBody;
2019-11-28 00:30:53 +00:00
.locals 1
2019-12-06 03:29:40 +00:00
if-eqz p1, :cond_0
2019-11-28 00:30:53 +00:00
new-instance v0, Lokhttp3/RequestBody$Companion$b;
2019-12-06 03:29:40 +00:00
invoke-direct {v0, p1, p2}, Lokhttp3/RequestBody$Companion$b;-><init>(Lokio/ByteString;Lokhttp3/MediaType;)V
2019-11-28 00:30:53 +00:00
return-object v0
2019-12-06 03:29:40 +00:00
:cond_0
const-string p1, "$this$toRequestBody"
2020-02-20 19:33:18 +00:00
invoke-static {p1}, Lw/u/b/j;->a(Ljava/lang/String;)V
2019-12-06 03:29:40 +00:00
const/4 p1, 0x0
throw p1
2019-11-28 00:30:53 +00:00
.end method
2019-12-06 03:29:40 +00:00
.method public final a([BLokhttp3/MediaType;II)Lokhttp3/RequestBody;
2019-11-28 00:30:53 +00:00
.locals 7
2019-12-06 03:29:40 +00:00
if-eqz p1, :cond_0
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
array-length v0, p1
2019-11-28 00:30:53 +00:00
int-to-long v1, v0
2019-12-06 03:29:40 +00:00
int-to-long v3, p3
2019-11-28 00:30:53 +00:00
2019-12-06 03:29:40 +00:00
int-to-long v5, p4
2019-11-28 00:30:53 +00:00
2020-02-20 19:33:18 +00:00
invoke-static/range {v1 .. v6}, La0/c0/a;->a(JJJ)V
2019-11-28 00:30:53 +00:00
new-instance v0, Lokhttp3/RequestBody$Companion$c;
2019-12-06 03:29:40 +00:00
invoke-direct {v0, p1, p2, p4, p3}, Lokhttp3/RequestBody$Companion$c;-><init>([BLokhttp3/MediaType;II)V
2019-11-28 00:30:53 +00:00
return-object v0
2019-12-06 03:29:40 +00:00
:cond_0
const-string p1, "$this$toRequestBody"
2020-02-20 19:33:18 +00:00
invoke-static {p1}, Lw/u/b/j;->a(Ljava/lang/String;)V
2019-12-06 03:29:40 +00:00
const/4 p1, 0x0
throw p1
2019-11-28 00:30:53 +00:00
.end method