zzl.java
5.26 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
package com.google.android.gms.internal;
import android.net.Uri;
import android.os.Handler;
import android.os.Looper;
import android.text.TextUtils;
import java.util.Collections;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Queue;
import java.util.Set;
import java.util.concurrent.PriorityBlockingQueue;
public abstract class zzl<T>
implements Comparable<zzl<T>>
{
private final zzt.a a;
private final int b;
private final String c;
private final int d;
private final zzn.zza e;
private Integer f;
private zzm g;
private boolean h;
private boolean i;
private boolean j;
private boolean k;
private zzp l;
private zzb.zza m;
public zzl(int paramInt, String paramString, zzn.zza paramzza)
{
zzt.a locala;
if (zzt.a.a)
{
locala = new zzt.a();
this.a = locala;
this.h = true;
this.i = false;
this.j = false;
this.k = false;
this.m = null;
this.b = paramInt;
this.c = paramString;
this.e = paramzza;
zza(new zze());
if (TextUtils.isEmpty(paramString)) {
break label119;
}
paramString = Uri.parse(paramString);
if (paramString == null) {
break label119;
}
paramString = paramString.getHost();
if (paramString == null) {
break label119;
}
}
label119:
for (paramInt = paramString.hashCode();; paramInt = 0)
{
this.d = paramInt;
return;
locala = null;
break;
}
}
final void a(final String paramString)
{
zzm localzzm;
Object localObject2;
if (this.g != null)
{
localzzm = this.g;
synchronized (localzzm.b)
{
localzzm.b.remove(this);
synchronized (localzzm.d)
{
localObject2 = localzzm.d.iterator();
if (((Iterator)localObject2).hasNext()) {
((Iterator)localObject2).next();
}
}
}
if (!zzn()) {}
}
final long l1;
synchronized (localzzm.a)
{
localObject2 = zzg();
Queue localQueue = (Queue)localzzm.a.remove(localObject2);
if (localQueue != null)
{
if (zzt.DEBUG) {
zzt.zza("Releasing %d waiting requests for cacheKey=%s.", new Object[] { Integer.valueOf(localQueue.size()), localObject2 });
}
localzzm.c.addAll(localQueue);
}
if (zzt.a.a)
{
l1 = Thread.currentThread().getId();
if (Looper.myLooper() != Looper.getMainLooper()) {
new Handler(Looper.getMainLooper()).post(new Runnable()
{
public final void run()
{
zzl.a(zzl.this).a(paramString, l1);
zzl.a(zzl.this).a(toString());
}
});
}
}
else
{
return;
}
}
this.a.a(paramString, l1);
this.a.a(toString());
}
public Map<String, String> getHeaders()
throws zza
{
return Collections.emptyMap();
}
public int getMethod()
{
return this.b;
}
public String getUrl()
{
return this.c;
}
public String toString()
{
String str = "0x" + Integer.toHexString(zzf());
return "[ ] " + getUrl() + " " + str + " " + zzo() + " " + this.f;
}
public final zzl<?> zza(int paramInt)
{
this.f = Integer.valueOf(paramInt);
return this;
}
public zzl<?> zza(zzb.zza paramzza)
{
this.m = paramzza;
return this;
}
public zzl<?> zza(zzm paramzzm)
{
this.g = paramzzm;
return this;
}
public zzl<?> zza(zzp paramzzp)
{
this.l = paramzzp;
return this;
}
protected abstract zzn<T> zza(zzj paramzzj);
protected abstract void zza(T paramT);
protected zzs zzb(zzs paramzzs)
{
return paramzzs;
}
public int zzc(zzl<T> paramzzl)
{
zza localzza1 = zzo();
zza localzza2 = paramzzl.zzo();
if (localzza1 == localzza2) {
return this.f.intValue() - paramzzl.f.intValue();
}
return localzza2.ordinal() - localzza1.ordinal();
}
public void zzc(zzs paramzzs)
{
if (this.e != null) {
this.e.zze(paramzzs);
}
}
public void zzc(String paramString)
{
if (zzt.a.a) {
this.a.a(paramString, Thread.currentThread().getId());
}
}
public int zzf()
{
return this.d;
}
public String zzg()
{
return getUrl();
}
public zzb.zza zzh()
{
return this.m;
}
@Deprecated
public String zzi()
{
return zzl();
}
@Deprecated
public byte[] zzj()
throws zza
{
return null;
}
protected String zzk()
{
return "UTF-8";
}
public String zzl()
{
return "application/x-www-form-urlencoded; charset=" + zzk();
}
public byte[] zzm()
throws zza
{
return null;
}
public final boolean zzn()
{
return this.h;
}
public zza zzo()
{
return zza.zzT;
}
public final int zzp()
{
return this.l.zzc();
}
public zzp zzq()
{
return this.l;
}
public void zzr()
{
this.j = true;
}
public boolean zzs()
{
return this.j;
}
public static enum zza
{
private zza() {}
}
}
/* Location: /home/merong/decompile/hackery-dex2jar.jar!/com/google/android/gms/internal/zzl.class
* Java compiler version: 6 (50.0)
* JD-Core Version: 0.7.1
*/