zzacb.java
6.81 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
310
311
312
313
package com.google.android.gms.internal;
import android.graphics.Canvas;
import android.graphics.ColorFilter;
import android.graphics.Rect;
import android.graphics.drawable.Drawable;
import android.graphics.drawable.Drawable.Callback;
import android.graphics.drawable.Drawable.ConstantState;
import android.os.SystemClock;
public final class zzacb
extends Drawable
implements Drawable.Callback
{
private int a = 0;
private long b;
private int c;
private int d;
private int e = 255;
private int f;
private int g = 0;
private boolean h = true;
private boolean i;
private b j;
private Drawable k;
private Drawable l;
private boolean m;
private boolean n;
private boolean o;
private int p;
public zzacb(Drawable paramDrawable1, Drawable paramDrawable2)
{
this(null);
Object localObject = paramDrawable1;
if (paramDrawable1 == null) {
localObject = a.a();
}
this.k = ((Drawable)localObject);
((Drawable)localObject).setCallback(this);
paramDrawable1 = this.j;
paramDrawable1.b |= ((Drawable)localObject).getChangingConfigurations();
paramDrawable1 = paramDrawable2;
if (paramDrawable2 == null) {
paramDrawable1 = a.a();
}
this.l = paramDrawable1;
paramDrawable1.setCallback(this);
paramDrawable2 = this.j;
paramDrawable2.b |= paramDrawable1.getChangingConfigurations();
}
zzacb(b paramb)
{
this.j = new b(paramb);
}
public final boolean canConstantState()
{
if (!this.m) {
if ((this.k.getConstantState() == null) || (this.l.getConstantState() == null)) {
break label44;
}
}
label44:
for (boolean bool = true;; bool = false)
{
this.n = bool;
this.m = true;
return this.n;
}
}
public final void draw(Canvas paramCanvas)
{
int i2 = 1;
int i1 = 1;
int i3 = 0;
switch (this.a)
{
}
boolean bool;
Drawable localDrawable1;
Drawable localDrawable2;
do
{
for (;;)
{
i2 = this.g;
bool = this.h;
localDrawable1 = this.k;
localDrawable2 = this.l;
if (i1 == 0) {
break;
}
if ((!bool) || (i2 == 0)) {
localDrawable1.draw(paramCanvas);
}
if (i2 == this.e)
{
localDrawable2.setAlpha(this.e);
localDrawable2.draw(paramCanvas);
}
return;
this.b = SystemClock.uptimeMillis();
this.a = 2;
i1 = i3;
}
} while (this.b < 0L);
float f1 = (float)(SystemClock.uptimeMillis() - this.b) / this.f;
if (f1 >= 1.0F) {}
for (i1 = i2;; i1 = 0)
{
if (i1 != 0) {
this.a = 0;
}
this.g = ((int)(Math.min(f1, 1.0F) * (this.d + 0) + 0.0F));
break;
}
if (bool) {
localDrawable1.setAlpha(this.e - i2);
}
localDrawable1.draw(paramCanvas);
if (bool) {
localDrawable1.setAlpha(this.e);
}
if (i2 > 0)
{
localDrawable2.setAlpha(i2);
localDrawable2.draw(paramCanvas);
localDrawable2.setAlpha(this.e);
}
invalidateSelf();
}
public final int getChangingConfigurations()
{
return super.getChangingConfigurations() | this.j.a | this.j.b;
}
public final Drawable.ConstantState getConstantState()
{
if (canConstantState())
{
this.j.a = getChangingConfigurations();
return this.j;
}
return null;
}
public final int getIntrinsicHeight()
{
return Math.max(this.k.getIntrinsicHeight(), this.l.getIntrinsicHeight());
}
public final int getIntrinsicWidth()
{
return Math.max(this.k.getIntrinsicWidth(), this.l.getIntrinsicWidth());
}
public final int getOpacity()
{
if (!this.o)
{
this.p = Drawable.resolveOpacity(this.k.getOpacity(), this.l.getOpacity());
this.o = true;
}
return this.p;
}
public final void invalidateDrawable(Drawable paramDrawable)
{
paramDrawable = getCallback();
if (paramDrawable != null) {
paramDrawable.invalidateDrawable(this);
}
}
public final Drawable mutate()
{
if ((!this.i) && (super.mutate() == this))
{
if (!canConstantState()) {
throw new IllegalStateException("One or more children of this LayerDrawable does not have constant state; this drawable cannot be mutated.");
}
this.k.mutate();
this.l.mutate();
this.i = true;
}
return this;
}
protected final void onBoundsChange(Rect paramRect)
{
this.k.setBounds(paramRect);
this.l.setBounds(paramRect);
}
public final void scheduleDrawable(Drawable paramDrawable, Runnable paramRunnable, long paramLong)
{
paramDrawable = getCallback();
if (paramDrawable != null) {
paramDrawable.scheduleDrawable(this, paramRunnable, paramLong);
}
}
public final void setAlpha(int paramInt)
{
if (this.g == this.e) {
this.g = paramInt;
}
this.e = paramInt;
invalidateSelf();
}
public final void setColorFilter(ColorFilter paramColorFilter)
{
this.k.setColorFilter(paramColorFilter);
this.l.setColorFilter(paramColorFilter);
}
public final void startTransition(int paramInt)
{
this.c = 0;
this.d = this.e;
this.g = 0;
this.f = paramInt;
this.a = 1;
invalidateSelf();
}
public final void unscheduleDrawable(Drawable paramDrawable, Runnable paramRunnable)
{
paramDrawable = getCallback();
if (paramDrawable != null) {
paramDrawable.unscheduleDrawable(this, paramRunnable);
}
}
public final Drawable zzxs()
{
return this.l;
}
static final class a
extends Drawable
{
private static final a a = new a();
private static final a b = new a((byte)0);
public final void draw(Canvas paramCanvas) {}
public final Drawable.ConstantState getConstantState()
{
return b;
}
public final int getOpacity()
{
return -2;
}
public final void setAlpha(int paramInt) {}
public final void setColorFilter(ColorFilter paramColorFilter) {}
static final class a
extends Drawable.ConstantState
{
public final int getChangingConfigurations()
{
return 0;
}
public final Drawable newDrawable()
{
return zzacb.a.a();
}
}
}
static final class b
extends Drawable.ConstantState
{
int a;
int b;
b(b paramb)
{
if (paramb != null)
{
this.a = paramb.a;
this.b = paramb.b;
}
}
public final int getChangingConfigurations()
{
return this.a;
}
public final Drawable newDrawable()
{
return new zzacb(this);
}
}
}
/* Location: /home/merong/decompile/hackery-dex2jar.jar!/com/google/android/gms/internal/zzacb.class
* Java compiler version: 6 (50.0)
* JD-Core Version: 0.7.1
*/