181 lines
4.3 KiB
Smali
181 lines
4.3 KiB
Smali
.class public final Lokhttp3/q$a;
|
|
.super Ljava/lang/Object;
|
|
.source "FormBody.java"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
value = Lokhttp3/q;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x19
|
|
name = "a"
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field public final bty:Ljava/util/List;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/util/List<",
|
|
"Ljava/lang/String;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field private final btz:Ljava/nio/charset/Charset;
|
|
|
|
.field public final names: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 1
|
|
|
|
const/4 v0, 0x0
|
|
|
|
invoke-direct {p0, v0}, Lokhttp3/q$a;-><init>(B)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private constructor <init>(B)V
|
|
.locals 0
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
new-instance p1, Ljava/util/ArrayList;
|
|
|
|
invoke-direct {p1}, Ljava/util/ArrayList;-><init>()V
|
|
|
|
iput-object p1, p0, Lokhttp3/q$a;->names:Ljava/util/List;
|
|
|
|
new-instance p1, Ljava/util/ArrayList;
|
|
|
|
invoke-direct {p1}, Ljava/util/ArrayList;-><init>()V
|
|
|
|
iput-object p1, p0, Lokhttp3/q$a;->bty:Ljava/util/List;
|
|
|
|
const/4 p1, 0x0
|
|
|
|
iput-object p1, p0, Lokhttp3/q$a;->btz:Ljava/nio/charset/Charset;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final ah(Ljava/lang/String;Ljava/lang/String;)Lokhttp3/q$a;
|
|
.locals 4
|
|
|
|
if-eqz p1, :cond_1
|
|
|
|
if-eqz p2, :cond_0
|
|
|
|
iget-object v0, p0, Lokhttp3/q$a;->names:Ljava/util/List;
|
|
|
|
iget-object v1, p0, Lokhttp3/q$a;->btz:Ljava/nio/charset/Charset;
|
|
|
|
const/4 v2, 0x0
|
|
|
|
const-string v3, " \"\':;<=>@[]^`{}|/\\?#&!$(),~"
|
|
|
|
invoke-static {p1, v3, v2, v1}, Lokhttp3/s;->a(Ljava/lang/String;Ljava/lang/String;ZLjava/nio/charset/Charset;)Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-interface {v0, p1}, Ljava/util/List;->add(Ljava/lang/Object;)Z
|
|
|
|
iget-object p1, p0, Lokhttp3/q$a;->bty:Ljava/util/List;
|
|
|
|
iget-object v0, p0, Lokhttp3/q$a;->btz:Ljava/nio/charset/Charset;
|
|
|
|
invoke-static {p2, v3, v2, v0}, Lokhttp3/s;->a(Ljava/lang/String;Ljava/lang/String;ZLjava/nio/charset/Charset;)Ljava/lang/String;
|
|
|
|
move-result-object p2
|
|
|
|
invoke-interface {p1, p2}, Ljava/util/List;->add(Ljava/lang/Object;)Z
|
|
|
|
return-object p0
|
|
|
|
:cond_0
|
|
new-instance p1, Ljava/lang/NullPointerException;
|
|
|
|
const-string p2, "value == null"
|
|
|
|
invoke-direct {p1, p2}, Ljava/lang/NullPointerException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p1
|
|
|
|
:cond_1
|
|
new-instance p1, Ljava/lang/NullPointerException;
|
|
|
|
const-string p2, "name == null"
|
|
|
|
invoke-direct {p1, p2}, Ljava/lang/NullPointerException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method public final ai(Ljava/lang/String;Ljava/lang/String;)Lokhttp3/q$a;
|
|
.locals 4
|
|
|
|
if-eqz p1, :cond_1
|
|
|
|
if-eqz p2, :cond_0
|
|
|
|
iget-object v0, p0, Lokhttp3/q$a;->names:Ljava/util/List;
|
|
|
|
iget-object v1, p0, Lokhttp3/q$a;->btz:Ljava/nio/charset/Charset;
|
|
|
|
const/4 v2, 0x1
|
|
|
|
const-string v3, " \"\':;<=>@[]^`{}|/\\?#&!$(),~"
|
|
|
|
invoke-static {p1, v3, v2, v1}, Lokhttp3/s;->a(Ljava/lang/String;Ljava/lang/String;ZLjava/nio/charset/Charset;)Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-interface {v0, p1}, Ljava/util/List;->add(Ljava/lang/Object;)Z
|
|
|
|
iget-object p1, p0, Lokhttp3/q$a;->bty:Ljava/util/List;
|
|
|
|
iget-object v0, p0, Lokhttp3/q$a;->btz:Ljava/nio/charset/Charset;
|
|
|
|
invoke-static {p2, v3, v2, v0}, Lokhttp3/s;->a(Ljava/lang/String;Ljava/lang/String;ZLjava/nio/charset/Charset;)Ljava/lang/String;
|
|
|
|
move-result-object p2
|
|
|
|
invoke-interface {p1, p2}, Ljava/util/List;->add(Ljava/lang/Object;)Z
|
|
|
|
return-object p0
|
|
|
|
:cond_0
|
|
new-instance p1, Ljava/lang/NullPointerException;
|
|
|
|
const-string p2, "value == null"
|
|
|
|
invoke-direct {p1, p2}, Ljava/lang/NullPointerException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p1
|
|
|
|
:cond_1
|
|
new-instance p1, Ljava/lang/NullPointerException;
|
|
|
|
const-string p2, "name == null"
|
|
|
|
invoke-direct {p1, p2}, Ljava/lang/NullPointerException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p1
|
|
.end method
|