ErrorCode.smali
8.5 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
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
.class public final enum Lokhttp3/internal/http2/ErrorCode;
.super Ljava/lang/Enum;
.source "ErrorCode.java"
# annotations
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Enum<",
"Lokhttp3/internal/http2/ErrorCode;",
">;"
}
.end annotation
# static fields
.field private static final synthetic $VALUES:[Lokhttp3/internal/http2/ErrorCode;
.field public static final enum CANCEL:Lokhttp3/internal/http2/ErrorCode;
.field public static final enum COMPRESSION_ERROR:Lokhttp3/internal/http2/ErrorCode;
.field public static final enum CONNECT_ERROR:Lokhttp3/internal/http2/ErrorCode;
.field public static final enum ENHANCE_YOUR_CALM:Lokhttp3/internal/http2/ErrorCode;
.field public static final enum FLOW_CONTROL_ERROR:Lokhttp3/internal/http2/ErrorCode;
.field public static final enum HTTP_1_1_REQUIRED:Lokhttp3/internal/http2/ErrorCode;
.field public static final enum INADEQUATE_SECURITY:Lokhttp3/internal/http2/ErrorCode;
.field public static final enum INTERNAL_ERROR:Lokhttp3/internal/http2/ErrorCode;
.field public static final enum NO_ERROR:Lokhttp3/internal/http2/ErrorCode;
.field public static final enum PROTOCOL_ERROR:Lokhttp3/internal/http2/ErrorCode;
.field public static final enum REFUSED_STREAM:Lokhttp3/internal/http2/ErrorCode;
# instance fields
.field public final httpCode:I
# direct methods
.method static constructor <clinit>()V
.locals 15
.line 21
new-instance v0, Lokhttp3/internal/http2/ErrorCode;
const/4 v1, 0x0
const-string v2, "NO_ERROR"
invoke-direct {v0, v2, v1, v1}, Lokhttp3/internal/http2/ErrorCode;-><init>(Ljava/lang/String;II)V
sput-object v0, Lokhttp3/internal/http2/ErrorCode;->NO_ERROR:Lokhttp3/internal/http2/ErrorCode;
.line 23
new-instance v0, Lokhttp3/internal/http2/ErrorCode;
const/4 v2, 0x1
const-string v3, "PROTOCOL_ERROR"
invoke-direct {v0, v3, v2, v2}, Lokhttp3/internal/http2/ErrorCode;-><init>(Ljava/lang/String;II)V
sput-object v0, Lokhttp3/internal/http2/ErrorCode;->PROTOCOL_ERROR:Lokhttp3/internal/http2/ErrorCode;
.line 25
new-instance v0, Lokhttp3/internal/http2/ErrorCode;
const/4 v3, 0x2
const-string v4, "INTERNAL_ERROR"
invoke-direct {v0, v4, v3, v3}, Lokhttp3/internal/http2/ErrorCode;-><init>(Ljava/lang/String;II)V
sput-object v0, Lokhttp3/internal/http2/ErrorCode;->INTERNAL_ERROR:Lokhttp3/internal/http2/ErrorCode;
.line 27
new-instance v0, Lokhttp3/internal/http2/ErrorCode;
const/4 v4, 0x3
const-string v5, "FLOW_CONTROL_ERROR"
invoke-direct {v0, v5, v4, v4}, Lokhttp3/internal/http2/ErrorCode;-><init>(Ljava/lang/String;II)V
sput-object v0, Lokhttp3/internal/http2/ErrorCode;->FLOW_CONTROL_ERROR:Lokhttp3/internal/http2/ErrorCode;
.line 29
new-instance v0, Lokhttp3/internal/http2/ErrorCode;
const/4 v5, 0x4
const/4 v6, 0x7
const-string v7, "REFUSED_STREAM"
invoke-direct {v0, v7, v5, v6}, Lokhttp3/internal/http2/ErrorCode;-><init>(Ljava/lang/String;II)V
sput-object v0, Lokhttp3/internal/http2/ErrorCode;->REFUSED_STREAM:Lokhttp3/internal/http2/ErrorCode;
.line 31
new-instance v0, Lokhttp3/internal/http2/ErrorCode;
const/4 v7, 0x5
const/16 v8, 0x8
const-string v9, "CANCEL"
invoke-direct {v0, v9, v7, v8}, Lokhttp3/internal/http2/ErrorCode;-><init>(Ljava/lang/String;II)V
sput-object v0, Lokhttp3/internal/http2/ErrorCode;->CANCEL:Lokhttp3/internal/http2/ErrorCode;
.line 33
new-instance v0, Lokhttp3/internal/http2/ErrorCode;
const/4 v9, 0x6
const/16 v10, 0x9
const-string v11, "COMPRESSION_ERROR"
invoke-direct {v0, v11, v9, v10}, Lokhttp3/internal/http2/ErrorCode;-><init>(Ljava/lang/String;II)V
sput-object v0, Lokhttp3/internal/http2/ErrorCode;->COMPRESSION_ERROR:Lokhttp3/internal/http2/ErrorCode;
.line 35
new-instance v0, Lokhttp3/internal/http2/ErrorCode;
const/16 v11, 0xa
const-string v12, "CONNECT_ERROR"
invoke-direct {v0, v12, v6, v11}, Lokhttp3/internal/http2/ErrorCode;-><init>(Ljava/lang/String;II)V
sput-object v0, Lokhttp3/internal/http2/ErrorCode;->CONNECT_ERROR:Lokhttp3/internal/http2/ErrorCode;
.line 37
new-instance v0, Lokhttp3/internal/http2/ErrorCode;
const/16 v12, 0xb
const-string v13, "ENHANCE_YOUR_CALM"
invoke-direct {v0, v13, v8, v12}, Lokhttp3/internal/http2/ErrorCode;-><init>(Ljava/lang/String;II)V
sput-object v0, Lokhttp3/internal/http2/ErrorCode;->ENHANCE_YOUR_CALM:Lokhttp3/internal/http2/ErrorCode;
.line 39
new-instance v0, Lokhttp3/internal/http2/ErrorCode;
const-string v13, "INADEQUATE_SECURITY"
const/16 v14, 0xc
invoke-direct {v0, v13, v10, v14}, Lokhttp3/internal/http2/ErrorCode;-><init>(Ljava/lang/String;II)V
sput-object v0, Lokhttp3/internal/http2/ErrorCode;->INADEQUATE_SECURITY:Lokhttp3/internal/http2/ErrorCode;
.line 41
new-instance v0, Lokhttp3/internal/http2/ErrorCode;
const-string v13, "HTTP_1_1_REQUIRED"
const/16 v14, 0xd
invoke-direct {v0, v13, v11, v14}, Lokhttp3/internal/http2/ErrorCode;-><init>(Ljava/lang/String;II)V
sput-object v0, Lokhttp3/internal/http2/ErrorCode;->HTTP_1_1_REQUIRED:Lokhttp3/internal/http2/ErrorCode;
.line 19
new-array v0, v12, [Lokhttp3/internal/http2/ErrorCode;
sget-object v12, Lokhttp3/internal/http2/ErrorCode;->NO_ERROR:Lokhttp3/internal/http2/ErrorCode;
aput-object v12, v0, v1
sget-object v1, Lokhttp3/internal/http2/ErrorCode;->PROTOCOL_ERROR:Lokhttp3/internal/http2/ErrorCode;
aput-object v1, v0, v2
sget-object v1, Lokhttp3/internal/http2/ErrorCode;->INTERNAL_ERROR:Lokhttp3/internal/http2/ErrorCode;
aput-object v1, v0, v3
sget-object v1, Lokhttp3/internal/http2/ErrorCode;->FLOW_CONTROL_ERROR:Lokhttp3/internal/http2/ErrorCode;
aput-object v1, v0, v4
sget-object v1, Lokhttp3/internal/http2/ErrorCode;->REFUSED_STREAM:Lokhttp3/internal/http2/ErrorCode;
aput-object v1, v0, v5
sget-object v1, Lokhttp3/internal/http2/ErrorCode;->CANCEL:Lokhttp3/internal/http2/ErrorCode;
aput-object v1, v0, v7
sget-object v1, Lokhttp3/internal/http2/ErrorCode;->COMPRESSION_ERROR:Lokhttp3/internal/http2/ErrorCode;
aput-object v1, v0, v9
sget-object v1, Lokhttp3/internal/http2/ErrorCode;->CONNECT_ERROR:Lokhttp3/internal/http2/ErrorCode;
aput-object v1, v0, v6
sget-object v1, Lokhttp3/internal/http2/ErrorCode;->ENHANCE_YOUR_CALM:Lokhttp3/internal/http2/ErrorCode;
aput-object v1, v0, v8
sget-object v1, Lokhttp3/internal/http2/ErrorCode;->INADEQUATE_SECURITY:Lokhttp3/internal/http2/ErrorCode;
aput-object v1, v0, v10
sget-object v1, Lokhttp3/internal/http2/ErrorCode;->HTTP_1_1_REQUIRED:Lokhttp3/internal/http2/ErrorCode;
aput-object v1, v0, v11
sput-object v0, Lokhttp3/internal/http2/ErrorCode;->$VALUES:[Lokhttp3/internal/http2/ErrorCode;
return-void
.end method
.method private constructor <init>(Ljava/lang/String;II)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(I)V"
}
.end annotation
.line 45
invoke-direct {p0, p1, p2}, Ljava/lang/Enum;-><init>(Ljava/lang/String;I)V
.line 46
iput p3, p0, Lokhttp3/internal/http2/ErrorCode;->httpCode:I
return-void
.end method
.method public static fromHttp2(I)Lokhttp3/internal/http2/ErrorCode;
.locals 5
.line 50
invoke-static {}, Lokhttp3/internal/http2/ErrorCode;->values()[Lokhttp3/internal/http2/ErrorCode;
move-result-object v0
array-length v1, v0
const/4 v2, 0x0
:goto_0
if-ge v2, v1, :cond_1
aget-object v3, v0, v2
.line 51
iget v4, v3, Lokhttp3/internal/http2/ErrorCode;->httpCode:I
if-ne v4, p0, :cond_0
return-object v3
:cond_0
add-int/lit8 v2, v2, 0x1
goto :goto_0
:cond_1
const/4 p0, 0x0
return-object p0
.end method
.method public static valueOf(Ljava/lang/String;)Lokhttp3/internal/http2/ErrorCode;
.locals 1
.line 19
const-class v0, Lokhttp3/internal/http2/ErrorCode;
invoke-static {v0, p0}, Ljava/lang/Enum;->valueOf(Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/Enum;
move-result-object p0
check-cast p0, Lokhttp3/internal/http2/ErrorCode;
return-object p0
.end method
.method public static values()[Lokhttp3/internal/http2/ErrorCode;
.locals 1
.line 19
sget-object v0, Lokhttp3/internal/http2/ErrorCode;->$VALUES:[Lokhttp3/internal/http2/ErrorCode;
invoke-virtual {v0}, [Lokhttp3/internal/http2/ErrorCode;->clone()Ljava/lang/Object;
move-result-object v0
check-cast v0, [Lokhttp3/internal/http2/ErrorCode;
return-object v0
.end method