XploitSPY/app/factory/decompiled/smali/c/a/d/b$d.smali

207 lines
3.9 KiB
Smali
Raw Normal View History

2020-03-24 04:02:59 +08:00
.class final Lc/a/d/b$d;
.super Ljava/lang/Object;
.source ""
# interfaces
.implements Ld/v;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lc/a/d/b;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x12
name = "d"
.end annotation
# instance fields
.field private final a:Ld/j;
.field private b:Z
.field private c:J
.field final synthetic d:Lc/a/d/b;
# direct methods
.method constructor <init>(Lc/a/d/b;J)V
.locals 1
iput-object p1, p0, Lc/a/d/b$d;->d:Lc/a/d/b;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
new-instance p1, Ld/j;
iget-object v0, p0, Lc/a/d/b$d;->d:Lc/a/d/b;
iget-object v0, v0, Lc/a/d/b;->d:Ld/f;
invoke-interface {v0}, Ld/v;->b()Ld/y;
move-result-object v0
invoke-direct {p1, v0}, Ld/j;-><init>(Ld/y;)V
iput-object p1, p0, Lc/a/d/b$d;->a:Ld/j;
iput-wide p2, p0, Lc/a/d/b$d;->c:J
return-void
.end method
# virtual methods
.method public b()Ld/y;
.locals 1
iget-object v0, p0, Lc/a/d/b$d;->a:Ld/j;
return-object v0
.end method
.method public c(Ld/e;J)V
.locals 7
iget-boolean v0, p0, Lc/a/d/b$d;->b:Z
if-nez v0, :cond_1
invoke-virtual {p1}, Ld/e;->o()J
move-result-wide v1
const-wide/16 v3, 0x0
move-wide v5, p2
invoke-static/range {v1 .. v6}, Lc/a/d;->a(JJJ)V
iget-wide v0, p0, Lc/a/d/b$d;->c:J
cmp-long v2, p2, v0
if-gtz v2, :cond_0
iget-object v0, p0, Lc/a/d/b$d;->d:Lc/a/d/b;
iget-object v0, v0, Lc/a/d/b;->d:Ld/f;
invoke-interface {v0, p1, p2, p3}, Ld/v;->c(Ld/e;J)V
iget-wide v0, p0, Lc/a/d/b$d;->c:J
sub-long/2addr v0, p2
iput-wide v0, p0, Lc/a/d/b$d;->c:J
return-void
:cond_0
new-instance p1, Ljava/net/ProtocolException;
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
const-string v1, "expected "
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
iget-wide v1, p0, Lc/a/d/b$d;->c:J
invoke-virtual {v0, v1, v2}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;
const-string v1, " bytes but received "
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v0, p2, p3}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p2
invoke-direct {p1, p2}, Ljava/net/ProtocolException;-><init>(Ljava/lang/String;)V
throw p1
:cond_1
new-instance p1, Ljava/lang/IllegalStateException;
const-string p2, "closed"
invoke-direct {p1, p2}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw p1
.end method
.method public close()V
.locals 5
iget-boolean v0, p0, Lc/a/d/b$d;->b:Z
if-eqz v0, :cond_0
return-void
:cond_0
const/4 v0, 0x1
iput-boolean v0, p0, Lc/a/d/b$d;->b:Z
iget-wide v0, p0, Lc/a/d/b$d;->c:J
const-wide/16 v2, 0x0
cmp-long v4, v0, v2
if-gtz v4, :cond_1
iget-object v0, p0, Lc/a/d/b$d;->d:Lc/a/d/b;
iget-object v1, p0, Lc/a/d/b$d;->a:Ld/j;
invoke-virtual {v0, v1}, Lc/a/d/b;->a(Ld/j;)V
iget-object v0, p0, Lc/a/d/b$d;->d:Lc/a/d/b;
const/4 v1, 0x3
iput v1, v0, Lc/a/d/b;->e:I
return-void
:cond_1
new-instance v0, Ljava/net/ProtocolException;
const-string v1, "unexpected end of stream"
invoke-direct {v0, v1}, Ljava/net/ProtocolException;-><init>(Ljava/lang/String;)V
throw v0
.end method
.method public flush()V
.locals 1
iget-boolean v0, p0, Lc/a/d/b$d;->b:Z
if-eqz v0, :cond_0
return-void
:cond_0
iget-object v0, p0, Lc/a/d/b$d;->d:Lc/a/d/b;
iget-object v0, v0, Lc/a/d/b;->d:Ld/f;
invoke-interface {v0}, Ld/f;->flush()V
return-void
.end method