a$g.smali
2.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
.class public Lb/h0/h/a$g;
.super Lb/h0/h/a$b;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lb/h0/h/a;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1
name = "g"
.end annotation
# instance fields
.field public e:Z
# direct methods
.method public constructor <init>(Lb/h0/h/a;)V
.locals 1
const/4 v0, 0x0
invoke-direct {p0, p1, v0}, Lb/h0/h/a$b;-><init>(Lb/h0/h/a;Lb/h0/h/a$a;)V
return-void
.end method
# virtual methods
.method public b(Lc/f;J)J
.locals 3
const-wide/16 v0, 0x0
cmp-long v0, p2, v0
if-ltz v0, :cond_3
iget-boolean v0, p0, Lb/h0/h/a$b;->b:Z
if-nez v0, :cond_2
iget-boolean v0, p0, Lb/h0/h/a$g;->e:Z
const-wide/16 v1, -0x1
if-eqz v0, :cond_0
return-wide v1
:cond_0
invoke-super {p0, p1, p2, p3}, Lb/h0/h/a$b;->b(Lc/f;J)J
move-result-wide p1
cmp-long p3, p1, v1
if-nez p3, :cond_1
const/4 p1, 0x1
iput-boolean p1, p0, Lb/h0/h/a$g;->e:Z
const/4 p2, 0x0
invoke-virtual {p0, p1, p2}, Lb/h0/h/a$b;->a(ZLjava/io/IOException;)V
return-wide v1
:cond_1
return-wide p1
:cond_2
new-instance p1, Ljava/lang/IllegalStateException;
const-string p2, "closed"
invoke-direct {p1, p2}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw p1
:cond_3
new-instance p1, Ljava/lang/IllegalArgumentException;
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
const-string v1, "byteCount < 0: "
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/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw p1
.end method
.method public close()V
.locals 2
iget-boolean v0, p0, Lb/h0/h/a$b;->b:Z
if-eqz v0, :cond_0
return-void
:cond_0
iget-boolean v0, p0, Lb/h0/h/a$g;->e:Z
if-nez v0, :cond_1
const/4 v0, 0x0
const/4 v1, 0x0
invoke-virtual {p0, v0, v1}, Lb/h0/h/a$b;->a(ZLjava/io/IOException;)V
:cond_1
const/4 v0, 0x1
iput-boolean v0, p0, Lb/h0/h/a$b;->b:Z
return-void
.end method