506 lines
11 KiB
Smali
506 lines
11 KiB
Smali
.class public final Lf0/r;
|
|
.super Ljava/lang/Object;
|
|
.source "ServiceMethod.java"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Lf0/r$a;
|
|
}
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<R:",
|
|
"Ljava/lang/Object;",
|
|
"T:",
|
|
"Ljava/lang/Object;",
|
|
">",
|
|
"Ljava/lang/Object;"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# static fields
|
|
.field public static final m:Ljava/util/regex/Pattern;
|
|
|
|
.field public static final n:Ljava/util/regex/Pattern;
|
|
|
|
|
|
# instance fields
|
|
.field public final a:Lc0/e$a;
|
|
|
|
.field public final b:Lf0/c;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Lf0/c<",
|
|
"TR;TT;>;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field public final c:Lc0/u;
|
|
|
|
.field public final d:Lf0/e;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Lf0/e<",
|
|
"Lc0/z;",
|
|
"TR;>;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field public final e:Ljava/lang/String;
|
|
|
|
.field public final f:Ljava/lang/String;
|
|
|
|
.field public final g:Lokhttp3/Headers;
|
|
|
|
.field public final h:Lokhttp3/MediaType;
|
|
|
|
.field public final i:Z
|
|
|
|
.field public final j:Z
|
|
|
|
.field public final k:Z
|
|
|
|
.field public final l:[Lf0/l;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"[",
|
|
"Lf0/l<",
|
|
"*>;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
|
|
# direct methods
|
|
.method public static constructor <clinit>()V
|
|
.locals 1
|
|
|
|
const-string v0, "\\{([a-zA-Z][a-zA-Z0-9_-]*)\\}"
|
|
|
|
invoke-static {v0}, Ljava/util/regex/Pattern;->compile(Ljava/lang/String;)Ljava/util/regex/Pattern;
|
|
|
|
move-result-object v0
|
|
|
|
sput-object v0, Lf0/r;->m:Ljava/util/regex/Pattern;
|
|
|
|
const-string v0, "[a-zA-Z][a-zA-Z0-9_-]*"
|
|
|
|
invoke-static {v0}, Ljava/util/regex/Pattern;->compile(Ljava/lang/String;)Ljava/util/regex/Pattern;
|
|
|
|
move-result-object v0
|
|
|
|
sput-object v0, Lf0/r;->n:Ljava/util/regex/Pattern;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>(Lf0/r$a;)V
|
|
.locals 2
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Lf0/r$a<",
|
|
"TR;TT;>;)V"
|
|
}
|
|
.end annotation
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
iget-object v0, p1, Lf0/r$a;->a:Lf0/q;
|
|
|
|
iget-object v1, v0, Lf0/q;->b:Lc0/e$a;
|
|
|
|
iput-object v1, p0, Lf0/r;->a:Lc0/e$a;
|
|
|
|
iget-object v1, p1, Lf0/r$a;->w:Lf0/c;
|
|
|
|
iput-object v1, p0, Lf0/r;->b:Lf0/c;
|
|
|
|
iget-object v0, v0, Lf0/q;->c:Lc0/u;
|
|
|
|
iput-object v0, p0, Lf0/r;->c:Lc0/u;
|
|
|
|
iget-object v0, p1, Lf0/r$a;->v:Lf0/e;
|
|
|
|
iput-object v0, p0, Lf0/r;->d:Lf0/e;
|
|
|
|
iget-object v0, p1, Lf0/r$a;->m:Ljava/lang/String;
|
|
|
|
iput-object v0, p0, Lf0/r;->e:Ljava/lang/String;
|
|
|
|
iget-object v0, p1, Lf0/r$a;->q:Ljava/lang/String;
|
|
|
|
iput-object v0, p0, Lf0/r;->f:Ljava/lang/String;
|
|
|
|
iget-object v0, p1, Lf0/r$a;->r:Lokhttp3/Headers;
|
|
|
|
iput-object v0, p0, Lf0/r;->g:Lokhttp3/Headers;
|
|
|
|
iget-object v0, p1, Lf0/r$a;->s:Lokhttp3/MediaType;
|
|
|
|
iput-object v0, p0, Lf0/r;->h:Lokhttp3/MediaType;
|
|
|
|
iget-boolean v0, p1, Lf0/r$a;->n:Z
|
|
|
|
iput-boolean v0, p0, Lf0/r;->i:Z
|
|
|
|
iget-boolean v0, p1, Lf0/r$a;->o:Z
|
|
|
|
iput-boolean v0, p0, Lf0/r;->j:Z
|
|
|
|
iget-boolean v0, p1, Lf0/r$a;->p:Z
|
|
|
|
iput-boolean v0, p0, Lf0/r;->k:Z
|
|
|
|
iget-object p1, p1, Lf0/r$a;->u:[Lf0/l;
|
|
|
|
iput-object p1, p0, Lf0/r;->l:[Lf0/l;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static a(Ljava/lang/Class;)Ljava/lang/Class;
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Ljava/lang/Class<",
|
|
"*>;)",
|
|
"Ljava/lang/Class<",
|
|
"*>;"
|
|
}
|
|
.end annotation
|
|
|
|
sget-object v0, Ljava/lang/Boolean;->TYPE:Ljava/lang/Class;
|
|
|
|
if-ne v0, p0, :cond_0
|
|
|
|
const-class p0, Ljava/lang/Boolean;
|
|
|
|
return-object p0
|
|
|
|
:cond_0
|
|
sget-object v0, Ljava/lang/Byte;->TYPE:Ljava/lang/Class;
|
|
|
|
if-ne v0, p0, :cond_1
|
|
|
|
const-class p0, Ljava/lang/Byte;
|
|
|
|
return-object p0
|
|
|
|
:cond_1
|
|
sget-object v0, Ljava/lang/Character;->TYPE:Ljava/lang/Class;
|
|
|
|
if-ne v0, p0, :cond_2
|
|
|
|
const-class p0, Ljava/lang/Character;
|
|
|
|
return-object p0
|
|
|
|
:cond_2
|
|
sget-object v0, Ljava/lang/Double;->TYPE:Ljava/lang/Class;
|
|
|
|
if-ne v0, p0, :cond_3
|
|
|
|
const-class p0, Ljava/lang/Double;
|
|
|
|
return-object p0
|
|
|
|
:cond_3
|
|
sget-object v0, Ljava/lang/Float;->TYPE:Ljava/lang/Class;
|
|
|
|
if-ne v0, p0, :cond_4
|
|
|
|
const-class p0, Ljava/lang/Float;
|
|
|
|
return-object p0
|
|
|
|
:cond_4
|
|
sget-object v0, Ljava/lang/Integer;->TYPE:Ljava/lang/Class;
|
|
|
|
if-ne v0, p0, :cond_5
|
|
|
|
const-class p0, Ljava/lang/Integer;
|
|
|
|
return-object p0
|
|
|
|
:cond_5
|
|
sget-object v0, Ljava/lang/Long;->TYPE:Ljava/lang/Class;
|
|
|
|
if-ne v0, p0, :cond_6
|
|
|
|
const-class p0, Ljava/lang/Long;
|
|
|
|
return-object p0
|
|
|
|
:cond_6
|
|
sget-object v0, Ljava/lang/Short;->TYPE:Ljava/lang/Class;
|
|
|
|
if-ne v0, p0, :cond_7
|
|
|
|
const-class p0, Ljava/lang/Short;
|
|
|
|
:cond_7
|
|
return-object p0
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public varargs a([Ljava/lang/Object;)Lc0/y;
|
|
.locals 10
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/io/IOException;
|
|
}
|
|
.end annotation
|
|
|
|
new-instance v9, Lf0/n;
|
|
|
|
iget-object v1, p0, Lf0/r;->e:Ljava/lang/String;
|
|
|
|
iget-object v2, p0, Lf0/r;->c:Lc0/u;
|
|
|
|
iget-object v3, p0, Lf0/r;->f:Ljava/lang/String;
|
|
|
|
iget-object v4, p0, Lf0/r;->g:Lokhttp3/Headers;
|
|
|
|
iget-object v5, p0, Lf0/r;->h:Lokhttp3/MediaType;
|
|
|
|
iget-boolean v6, p0, Lf0/r;->i:Z
|
|
|
|
iget-boolean v7, p0, Lf0/r;->j:Z
|
|
|
|
iget-boolean v8, p0, Lf0/r;->k:Z
|
|
|
|
move-object v0, v9
|
|
|
|
invoke-direct/range {v0 .. v8}, Lf0/n;-><init>(Ljava/lang/String;Lc0/u;Ljava/lang/String;Lokhttp3/Headers;Lokhttp3/MediaType;ZZZ)V
|
|
|
|
iget-object v0, p0, Lf0/r;->l:[Lf0/l;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
array-length v2, p1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v2, 0x0
|
|
|
|
:goto_0
|
|
array-length v3, v0
|
|
|
|
if-ne v2, v3, :cond_a
|
|
|
|
const/4 v3, 0x0
|
|
|
|
:goto_1
|
|
if-ge v3, v2, :cond_1
|
|
|
|
aget-object v4, v0, v3
|
|
|
|
aget-object v5, p1, v3
|
|
|
|
invoke-virtual {v4, v9, v5}, Lf0/l;->a(Lf0/n;Ljava/lang/Object;)V
|
|
|
|
add-int/lit8 v3, v3, 0x1
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
iget-object p1, v9, Lf0/n;->d:Lc0/u$a;
|
|
|
|
if-eqz p1, :cond_2
|
|
|
|
invoke-virtual {p1}, Lc0/u$a;->a()Lc0/u;
|
|
|
|
move-result-object p1
|
|
|
|
goto :goto_2
|
|
|
|
:cond_2
|
|
iget-object p1, v9, Lf0/n;->b:Lc0/u;
|
|
|
|
iget-object v0, v9, Lf0/n;->c:Ljava/lang/String;
|
|
|
|
invoke-virtual {p1, v0}, Lc0/u;->b(Ljava/lang/String;)Lc0/u;
|
|
|
|
move-result-object p1
|
|
|
|
if-eqz p1, :cond_9
|
|
|
|
:goto_2
|
|
iget-object v0, v9, Lf0/n;->j:Lokhttp3/RequestBody;
|
|
|
|
if-nez v0, :cond_6
|
|
|
|
iget-object v2, v9, Lf0/n;->i:Lc0/s$a;
|
|
|
|
if-eqz v2, :cond_3
|
|
|
|
invoke-virtual {v2}, Lc0/s$a;->a()Lc0/s;
|
|
|
|
move-result-object v0
|
|
|
|
goto :goto_3
|
|
|
|
:cond_3
|
|
iget-object v2, v9, Lf0/n;->h:Lokhttp3/MultipartBody$a;
|
|
|
|
if-eqz v2, :cond_5
|
|
|
|
iget-object v0, v2, Lokhttp3/MultipartBody$a;->c:Ljava/util/List;
|
|
|
|
invoke-interface {v0}, Ljava/util/Collection;->isEmpty()Z
|
|
|
|
move-result v0
|
|
|
|
xor-int/lit8 v0, v0, 0x1
|
|
|
|
if-eqz v0, :cond_4
|
|
|
|
new-instance v0, Lokhttp3/MultipartBody;
|
|
|
|
iget-object v1, v2, Lokhttp3/MultipartBody$a;->a:Lokio/ByteString;
|
|
|
|
iget-object v3, v2, Lokhttp3/MultipartBody$a;->b:Lokhttp3/MediaType;
|
|
|
|
iget-object v2, v2, Lokhttp3/MultipartBody$a;->c:Ljava/util/List;
|
|
|
|
invoke-static {v2}, Lc0/c0/a;->b(Ljava/util/List;)Ljava/util/List;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-direct {v0, v1, v3, v2}, Lokhttp3/MultipartBody;-><init>(Lokio/ByteString;Lokhttp3/MediaType;Ljava/util/List;)V
|
|
|
|
goto :goto_3
|
|
|
|
:cond_4
|
|
new-instance p1, Ljava/lang/IllegalStateException;
|
|
|
|
const-string v0, "Multipart body must have at least one part."
|
|
|
|
invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-direct {p1, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p1
|
|
|
|
:cond_5
|
|
iget-boolean v2, v9, Lf0/n;->g:Z
|
|
|
|
if-eqz v2, :cond_6
|
|
|
|
const/4 v0, 0x0
|
|
|
|
new-array v1, v1, [B
|
|
|
|
invoke-static {v0, v1}, Lokhttp3/RequestBody;->create(Lokhttp3/MediaType;[B)Lokhttp3/RequestBody;
|
|
|
|
move-result-object v0
|
|
|
|
:cond_6
|
|
:goto_3
|
|
iget-object v1, v9, Lf0/n;->f:Lokhttp3/MediaType;
|
|
|
|
if-eqz v1, :cond_8
|
|
|
|
if-eqz v0, :cond_7
|
|
|
|
new-instance v2, Lf0/n$a;
|
|
|
|
invoke-direct {v2, v0, v1}, Lf0/n$a;-><init>(Lokhttp3/RequestBody;Lokhttp3/MediaType;)V
|
|
|
|
move-object v0, v2
|
|
|
|
goto :goto_4
|
|
|
|
:cond_7
|
|
iget-object v2, v9, Lf0/n;->e:Lc0/y$a;
|
|
|
|
invoke-virtual {v1}, Lokhttp3/MediaType;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
const-string v3, "Content-Type"
|
|
|
|
invoke-virtual {v2, v3, v1}, Lc0/y$a;->a(Ljava/lang/String;Ljava/lang/String;)Lc0/y$a;
|
|
|
|
:cond_8
|
|
:goto_4
|
|
iget-object v1, v9, Lf0/n;->e:Lc0/y$a;
|
|
|
|
iput-object p1, v1, Lc0/y$a;->a:Lc0/u;
|
|
|
|
iget-object p1, v9, Lf0/n;->a:Ljava/lang/String;
|
|
|
|
invoke-virtual {v1, p1, v0}, Lc0/y$a;->a(Ljava/lang/String;Lokhttp3/RequestBody;)Lc0/y$a;
|
|
|
|
invoke-virtual {v1}, Lc0/y$a;->a()Lc0/y;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
|
|
:cond_9
|
|
new-instance p1, Ljava/lang/IllegalArgumentException;
|
|
|
|
const-string v0, "Malformed URL. Base: "
|
|
|
|
invoke-static {v0}, Le/e/b/a/a;->a(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object v0
|
|
|
|
iget-object v1, v9, Lf0/n;->b:Lc0/u;
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
|
|
|
const-string v1, ", Relative: "
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
iget-object v1, v9, Lf0/n;->c:Ljava/lang/String;
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-direct {p1, v0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p1
|
|
|
|
:cond_a
|
|
new-instance p1, Ljava/lang/IllegalArgumentException;
|
|
|
|
const-string v1, "Argument count ("
|
|
|
|
const-string v3, ") doesn\'t match expected count ("
|
|
|
|
invoke-static {v1, v2, v3}, Le/e/b/a/a;->b(Ljava/lang/String;ILjava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object v1
|
|
|
|
array-length v0, v0
|
|
|
|
const-string v2, ")"
|
|
|
|
invoke-static {v1, v0, v2}, Le/e/b/a/a;->a(Ljava/lang/StringBuilder;ILjava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-direct {p1, v0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p1
|
|
.end method
|