a$e.smali
3.9 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
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
.class public final Lb/h0/h/a$e;
.super Ljava/lang/Object;
# interfaces
.implements Lc/w;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lb/h0/h/a;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x11
name = "e"
.end annotation
# instance fields
.field public final a:Lc/l;
.field public b:Z
.field public c:J
.field public final synthetic d:Lb/h0/h/a;
# direct methods
.method public constructor <init>(Lb/h0/h/a;J)V
.locals 1
iput-object p1, p0, Lb/h0/h/a$e;->d:Lb/h0/h/a;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
new-instance v0, Lc/l;
iget-object p1, p1, Lb/h0/h/a;->d:Lc/g;
invoke-interface {p1}, Lc/w;->d()Lc/y;
move-result-object p1
invoke-direct {v0, p1}, Lc/l;-><init>(Lc/y;)V
iput-object v0, p0, Lb/h0/h/a$e;->a:Lc/l;
iput-wide p2, p0, Lb/h0/h/a$e;->c:J
return-void
.end method
# virtual methods
.method public a(Lc/f;J)V
.locals 7
iget-boolean v0, p0, Lb/h0/h/a$e;->b:Z
if-nez v0, :cond_1
.line 1
iget-wide v1, p1, Lc/f;->c:J
const-wide/16 v3, 0x0
move-wide v5, p2
.line 2
invoke-static/range {v1 .. v6}, Lb/h0/c;->a(JJJ)V
iget-wide v0, p0, Lb/h0/h/a$e;->c:J
cmp-long v0, p2, v0
if-gtz v0, :cond_0
iget-object v0, p0, Lb/h0/h/a$e;->d:Lb/h0/h/a;
iget-object v0, v0, Lb/h0/h/a;->d:Lc/g;
invoke-interface {v0, p1, p2, p3}, Lc/w;->a(Lc/f;J)V
iget-wide v0, p0, Lb/h0/h/a$e;->c:J
sub-long/2addr v0, p2
iput-wide v0, p0, Lb/h0/h/a$e;->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, Lb/h0/h/a$e;->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 4
iget-boolean v0, p0, Lb/h0/h/a$e;->b:Z
if-eqz v0, :cond_0
return-void
:cond_0
const/4 v0, 0x1
iput-boolean v0, p0, Lb/h0/h/a$e;->b:Z
iget-wide v0, p0, Lb/h0/h/a$e;->c:J
const-wide/16 v2, 0x0
cmp-long v0, v0, v2
if-gtz v0, :cond_1
iget-object v0, p0, Lb/h0/h/a$e;->d:Lb/h0/h/a;
iget-object v1, p0, Lb/h0/h/a$e;->a:Lc/l;
invoke-virtual {v0, v1}, Lb/h0/h/a;->a(Lc/l;)V
iget-object v0, p0, Lb/h0/h/a$e;->d:Lb/h0/h/a;
const/4 v1, 0x3
iput v1, v0, Lb/h0/h/a;->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 d()Lc/y;
.locals 1
iget-object v0, p0, Lb/h0/h/a$e;->a:Lc/l;
return-object v0
.end method
.method public flush()V
.locals 1
iget-boolean v0, p0, Lb/h0/h/a$e;->b:Z
if-eqz v0, :cond_0
return-void
:cond_0
iget-object v0, p0, Lb/h0/h/a$e;->d:Lb/h0/h/a;
iget-object v0, v0, Lb/h0/h/a;->d:Lc/g;
invoke-interface {v0}, Lc/g;->flush()V
return-void
.end method