XploitSPY/app/factory/decompiled/smali/b/a/d/b.smali
2020-02-20 19:26:05 +05:30

766 lines
16 KiB
Smali

.class public final Lb/a/d/b;
.super Ljava/lang/Object;
.source ""
# interfaces
.implements Lb/a/c/c;
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lb/a/d/b$f;,
Lb/a/d/b$c;,
Lb/a/d/b$e;,
Lb/a/d/b$a;,
Lb/a/d/b$b;,
Lb/a/d/b$d;
}
.end annotation
# instance fields
.field final a:Lb/A;
.field final b:Lb/a/b/g;
.field final c:Lc/g;
.field final d:Lc/f;
.field e:I
# direct methods
.method public constructor <init>(Lb/A;Lb/a/b/g;Lc/g;Lc/f;)V
.locals 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
const/4 v0, 0x0
iput v0, p0, Lb/a/d/b;->e:I
iput-object p1, p0, Lb/a/d/b;->a:Lb/A;
iput-object p2, p0, Lb/a/d/b;->b:Lb/a/b/g;
iput-object p3, p0, Lb/a/d/b;->c:Lc/g;
iput-object p4, p0, Lb/a/d/b;->d:Lc/f;
return-void
.end method
.method private b(Lb/G;)Lc/w;
.locals 4
invoke-static {p1}, Lb/a/c/f;->b(Lb/G;)Z
move-result v0
if-nez v0, :cond_0
const-wide/16 v0, 0x0
invoke-virtual {p0, v0, v1}, Lb/a/d/b;->b(J)Lc/w;
move-result-object p1
return-object p1
:cond_0
const-string v0, "Transfer-Encoding"
invoke-virtual {p1, v0}, Lb/G;->b(Ljava/lang/String;)Ljava/lang/String;
move-result-object v0
const-string v1, "chunked"
invoke-virtual {v1, v0}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z
move-result v0
if-eqz v0, :cond_1
invoke-virtual {p1}, Lb/G;->r()Lb/D;
move-result-object p1
invoke-virtual {p1}, Lb/D;->g()Lb/w;
move-result-object p1
invoke-virtual {p0, p1}, Lb/a/d/b;->a(Lb/w;)Lc/w;
move-result-object p1
return-object p1
:cond_1
invoke-static {p1}, Lb/a/c/f;->a(Lb/G;)J
move-result-wide v0
const-wide/16 v2, -0x1
cmp-long p1, v0, v2
if-eqz p1, :cond_2
invoke-virtual {p0, v0, v1}, Lb/a/d/b;->b(J)Lc/w;
move-result-object p1
return-object p1
:cond_2
invoke-virtual {p0}, Lb/a/d/b;->d()Lc/w;
move-result-object p1
return-object p1
.end method
# virtual methods
.method public a(Lb/G;)Lb/I;
.locals 2
invoke-direct {p0, p1}, Lb/a/d/b;->b(Lb/G;)Lc/w;
move-result-object v0
new-instance v1, Lb/a/c/i;
invoke-virtual {p1}, Lb/G;->n()Lb/v;
move-result-object p1
invoke-static {v0}, Lc/p;->a(Lc/w;)Lc/g;
move-result-object v0
invoke-direct {v1, p1, v0}, Lb/a/c/i;-><init>(Lb/v;Lc/g;)V
return-object v1
.end method
.method public a(J)Lc/v;
.locals 2
iget v0, p0, Lb/a/d/b;->e:I
const/4 v1, 0x1
if-ne v0, v1, :cond_0
const/4 v0, 0x2
iput v0, p0, Lb/a/d/b;->e:I
new-instance v0, Lb/a/d/b$d;
invoke-direct {v0, p0, p1, p2}, Lb/a/d/b$d;-><init>(Lb/a/d/b;J)V
return-object v0
:cond_0
new-instance p1, Ljava/lang/IllegalStateException;
new-instance p2, Ljava/lang/StringBuilder;
invoke-direct {p2}, Ljava/lang/StringBuilder;-><init>()V
const-string v0, "state: "
invoke-virtual {p2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
iget v0, p0, Lb/a/d/b;->e:I
invoke-virtual {p2, v0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
invoke-virtual {p2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p2
invoke-direct {p1, p2}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw p1
.end method
.method public a(Lb/D;J)Lc/v;
.locals 2
const-string v0, "Transfer-Encoding"
invoke-virtual {p1, v0}, Lb/D;->a(Ljava/lang/String;)Ljava/lang/String;
move-result-object p1
const-string v0, "chunked"
invoke-virtual {v0, p1}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z
move-result p1
if-eqz p1, :cond_0
invoke-virtual {p0}, Lb/a/d/b;->c()Lc/v;
move-result-object p1
return-object p1
:cond_0
const-wide/16 v0, -0x1
cmp-long p1, p2, v0
if-eqz p1, :cond_1
invoke-virtual {p0, p2, p3}, Lb/a/d/b;->a(J)Lc/v;
move-result-object p1
return-object p1
:cond_1
new-instance p1, Ljava/lang/IllegalStateException;
const-string p2, "Cannot stream a request body without chunked encoding or a known content length!"
invoke-direct {p1, p2}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw p1
.end method
.method public a(Lb/w;)Lc/w;
.locals 2
iget v0, p0, Lb/a/d/b;->e:I
const/4 v1, 0x4
if-ne v0, v1, :cond_0
const/4 v0, 0x5
iput v0, p0, Lb/a/d/b;->e:I
new-instance v0, Lb/a/d/b$c;
invoke-direct {v0, p0, p1}, Lb/a/d/b$c;-><init>(Lb/a/d/b;Lb/w;)V
return-object v0
:cond_0
new-instance p1, Ljava/lang/IllegalStateException;
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
const-string v1, "state: "
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
iget v1, p0, Lb/a/d/b;->e:I
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
invoke-direct {p1, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw p1
.end method
.method public a()V
.locals 1
iget-object v0, p0, Lb/a/d/b;->d:Lc/f;
invoke-interface {v0}, Lc/f;->flush()V
return-void
.end method
.method public a(Lb/D;)V
.locals 1
iget-object v0, p0, Lb/a/d/b;->b:Lb/a/b/g;
invoke-virtual {v0}, Lb/a/b/g;->c()Lb/a/b/c;
move-result-object v0
invoke-virtual {v0}, Lb/a/b/c;->a()Lb/J;
move-result-object v0
invoke-virtual {v0}, Lb/J;->b()Ljava/net/Proxy;
move-result-object v0
invoke-virtual {v0}, Ljava/net/Proxy;->type()Ljava/net/Proxy$Type;
move-result-object v0
invoke-static {p1, v0}, Lb/a/c/j;->a(Lb/D;Ljava/net/Proxy$Type;)Ljava/lang/String;
move-result-object v0
invoke-virtual {p1}, Lb/D;->c()Lb/v;
move-result-object p1
invoke-virtual {p0, p1, v0}, Lb/a/d/b;->a(Lb/v;Ljava/lang/String;)V
return-void
.end method
.method public a(Lb/v;Ljava/lang/String;)V
.locals 4
iget v0, p0, Lb/a/d/b;->e:I
if-nez v0, :cond_1
iget-object v0, p0, Lb/a/d/b;->d:Lc/f;
invoke-interface {v0, p2}, Lc/f;->a(Ljava/lang/String;)Lc/f;
move-result-object p2
const-string v0, "\r\n"
invoke-interface {p2, v0}, Lc/f;->a(Ljava/lang/String;)Lc/f;
const/4 p2, 0x0
invoke-virtual {p1}, Lb/v;->b()I
move-result v1
:goto_0
if-ge p2, v1, :cond_0
iget-object v2, p0, Lb/a/d/b;->d:Lc/f;
invoke-virtual {p1, p2}, Lb/v;->a(I)Ljava/lang/String;
move-result-object v3
invoke-interface {v2, v3}, Lc/f;->a(Ljava/lang/String;)Lc/f;
move-result-object v2
const-string v3, ": "
invoke-interface {v2, v3}, Lc/f;->a(Ljava/lang/String;)Lc/f;
move-result-object v2
invoke-virtual {p1, p2}, Lb/v;->b(I)Ljava/lang/String;
move-result-object v3
invoke-interface {v2, v3}, Lc/f;->a(Ljava/lang/String;)Lc/f;
move-result-object v2
invoke-interface {v2, v0}, Lc/f;->a(Ljava/lang/String;)Lc/f;
add-int/lit8 p2, p2, 0x1
goto :goto_0
:cond_0
iget-object p1, p0, Lb/a/d/b;->d:Lc/f;
invoke-interface {p1, v0}, Lc/f;->a(Ljava/lang/String;)Lc/f;
const/4 p1, 0x1
iput p1, p0, Lb/a/d/b;->e:I
return-void
:cond_1
new-instance p1, Ljava/lang/IllegalStateException;
new-instance p2, Ljava/lang/StringBuilder;
invoke-direct {p2}, Ljava/lang/StringBuilder;-><init>()V
const-string v0, "state: "
invoke-virtual {p2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
iget v0, p0, Lb/a/d/b;->e:I
invoke-virtual {p2, v0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
invoke-virtual {p2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p2
invoke-direct {p1, p2}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
goto :goto_2
:goto_1
throw p1
:goto_2
goto :goto_1
.end method
.method a(Lc/j;)V
.locals 2
invoke-virtual {p1}, Lc/j;->g()Lc/y;
move-result-object v0
sget-object v1, Lc/y;->a:Lc/y;
invoke-virtual {p1, v1}, Lc/j;->a(Lc/y;)Lc/j;
invoke-virtual {v0}, Lc/y;->a()Lc/y;
invoke-virtual {v0}, Lc/y;->b()Lc/y;
return-void
.end method
.method public b()Lb/G$a;
.locals 1
invoke-virtual {p0}, Lb/a/d/b;->f()Lb/G$a;
move-result-object v0
return-object v0
.end method
.method public b(J)Lc/w;
.locals 2
iget v0, p0, Lb/a/d/b;->e:I
const/4 v1, 0x4
if-ne v0, v1, :cond_0
const/4 v0, 0x5
iput v0, p0, Lb/a/d/b;->e:I
new-instance v0, Lb/a/d/b$e;
invoke-direct {v0, p0, p1, p2}, Lb/a/d/b$e;-><init>(Lb/a/d/b;J)V
return-object v0
:cond_0
new-instance p1, Ljava/lang/IllegalStateException;
new-instance p2, Ljava/lang/StringBuilder;
invoke-direct {p2}, Ljava/lang/StringBuilder;-><init>()V
const-string v0, "state: "
invoke-virtual {p2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
iget v0, p0, Lb/a/d/b;->e:I
invoke-virtual {p2, v0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
invoke-virtual {p2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p2
invoke-direct {p1, p2}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw p1
.end method
.method public c()Lc/v;
.locals 3
iget v0, p0, Lb/a/d/b;->e:I
const/4 v1, 0x1
if-ne v0, v1, :cond_0
const/4 v0, 0x2
iput v0, p0, Lb/a/d/b;->e:I
new-instance v0, Lb/a/d/b$b;
invoke-direct {v0, p0}, Lb/a/d/b$b;-><init>(Lb/a/d/b;)V
return-object v0
:cond_0
new-instance v0, Ljava/lang/IllegalStateException;
new-instance v1, Ljava/lang/StringBuilder;
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
const-string v2, "state: "
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
iget v2, p0, Lb/a/d/b;->e:I
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v1
invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw v0
.end method
.method public cancel()V
.locals 1
iget-object v0, p0, Lb/a/d/b;->b:Lb/a/b/g;
invoke-virtual {v0}, Lb/a/b/g;->c()Lb/a/b/c;
move-result-object v0
if-eqz v0, :cond_0
invoke-virtual {v0}, Lb/a/b/c;->b()V
:cond_0
return-void
.end method
.method public d()Lc/w;
.locals 3
iget v0, p0, Lb/a/d/b;->e:I
const/4 v1, 0x4
if-ne v0, v1, :cond_1
iget-object v0, p0, Lb/a/d/b;->b:Lb/a/b/g;
if-eqz v0, :cond_0
const/4 v1, 0x5
iput v1, p0, Lb/a/d/b;->e:I
invoke-virtual {v0}, Lb/a/b/g;->e()V
new-instance v0, Lb/a/d/b$f;
invoke-direct {v0, p0}, Lb/a/d/b$f;-><init>(Lb/a/d/b;)V
return-object v0
:cond_0
new-instance v0, Ljava/lang/IllegalStateException;
const-string v1, "streamAllocation == null"
invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw v0
:cond_1
new-instance v0, Ljava/lang/IllegalStateException;
new-instance v1, Ljava/lang/StringBuilder;
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
const-string v2, "state: "
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
iget v2, p0, Lb/a/d/b;->e:I
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v1
invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw v0
.end method
.method public e()Lb/v;
.locals 3
new-instance v0, Lb/v$a;
invoke-direct {v0}, Lb/v$a;-><init>()V
:goto_0
iget-object v1, p0, Lb/a/d/b;->c:Lc/g;
invoke-interface {v1}, Lc/g;->d()Ljava/lang/String;
move-result-object v1
invoke-virtual {v1}, Ljava/lang/String;->length()I
move-result v2
if-eqz v2, :cond_0
sget-object v2, Lb/a/a;->a:Lb/a/a;
invoke-virtual {v2, v0, v1}, Lb/a/a;->a(Lb/v$a;Ljava/lang/String;)V
goto :goto_0
:cond_0
invoke-virtual {v0}, Lb/v$a;->a()Lb/v;
move-result-object v0
return-object v0
.end method
.method public f()Lb/G$a;
.locals 4
iget v0, p0, Lb/a/d/b;->e:I
const/4 v1, 0x1
if-eq v0, v1, :cond_1
const/4 v1, 0x3
if-ne v0, v1, :cond_0
goto :goto_0
:cond_0
new-instance v0, Ljava/lang/IllegalStateException;
new-instance v1, Ljava/lang/StringBuilder;
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
const-string v2, "state: "
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
iget v2, p0, Lb/a/d/b;->e:I
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v1
invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw v0
:cond_1
:goto_0
:try_start_0
iget-object v0, p0, Lb/a/d/b;->c:Lc/g;
invoke-interface {v0}, Lc/g;->d()Ljava/lang/String;
move-result-object v0
invoke-static {v0}, Lb/a/c/l;->a(Ljava/lang/String;)Lb/a/c/l;
move-result-object v0
new-instance v1, Lb/G$a;
invoke-direct {v1}, Lb/G$a;-><init>()V
iget-object v2, v0, Lb/a/c/l;->a:Lb/B;
invoke-virtual {v1, v2}, Lb/G$a;->a(Lb/B;)Lb/G$a;
iget v2, v0, Lb/a/c/l;->b:I
invoke-virtual {v1, v2}, Lb/G$a;->a(I)Lb/G$a;
iget-object v2, v0, Lb/a/c/l;->c:Ljava/lang/String;
invoke-virtual {v1, v2}, Lb/G$a;->a(Ljava/lang/String;)Lb/G$a;
invoke-virtual {p0}, Lb/a/d/b;->e()Lb/v;
move-result-object v2
invoke-virtual {v1, v2}, Lb/G$a;->a(Lb/v;)Lb/G$a;
iget v0, v0, Lb/a/c/l;->b:I
const/16 v2, 0x64
if-eq v0, v2, :cond_1
const/4 v0, 0x4
iput v0, p0, Lb/a/d/b;->e:I
:try_end_0
.catch Ljava/io/EOFException; {:try_start_0 .. :try_end_0} :catch_0
return-object v1
:catch_0
move-exception v0
new-instance v1, Ljava/io/IOException;
new-instance v2, Ljava/lang/StringBuilder;
invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V
const-string v3, "unexpected end of stream on "
invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
iget-object v3, p0, Lb/a/d/b;->b:Lb/a/b/g;
invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v2
invoke-direct {v1, v2}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V
invoke-virtual {v1, v0}, Ljava/io/IOException;->initCause(Ljava/lang/Throwable;)Ljava/lang/Throwable;
goto :goto_2
:goto_1
throw v1
:goto_2
goto :goto_1
.end method