ActivityOptionsCompat.java
9.82 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
314
315
316
317
318
319
320
321
322
323
324
325
package android.support.v4.app;
import android.annotation.TargetApi;
import android.app.Activity;
import android.app.ActivityOptions;
import android.app.PendingIntent;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.Rect;
import android.os.Build.VERSION;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.annotation.RequiresApi;
import android.support.v4.util.Pair;
import android.view.View;
import cd;
import ce;
import cf;
import cg;
public class ActivityOptionsCompat
{
public static final String EXTRA_USAGE_TIME_REPORT = "android.activity.usage_time";
public static final String EXTRA_USAGE_TIME_REPORT_PACKAGES = "android.usage_time_packages";
public static ActivityOptionsCompat makeBasic()
{
if (Build.VERSION.SDK_INT >= 24) {
return new c(new cf(ActivityOptions.makeBasic()));
}
if (Build.VERSION.SDK_INT >= 23) {
return new b(new ce(ActivityOptions.makeBasic()));
}
return new ActivityOptionsCompat();
}
public static ActivityOptionsCompat makeClipRevealAnimation(View paramView, int paramInt1, int paramInt2, int paramInt3, int paramInt4)
{
if (Build.VERSION.SDK_INT >= 24) {
return new c(new cf(ActivityOptions.makeClipRevealAnimation(paramView, paramInt1, paramInt2, paramInt3, paramInt4)));
}
if (Build.VERSION.SDK_INT >= 23) {
return new b(new ce(ActivityOptions.makeClipRevealAnimation(paramView, paramInt1, paramInt2, paramInt3, paramInt4)));
}
return new ActivityOptionsCompat();
}
public static ActivityOptionsCompat makeCustomAnimation(Context paramContext, int paramInt1, int paramInt2)
{
if (Build.VERSION.SDK_INT >= 24) {
return new c(new cf(ActivityOptions.makeCustomAnimation(paramContext, paramInt1, paramInt2)));
}
if (Build.VERSION.SDK_INT >= 23) {
return new b(new ce(ActivityOptions.makeCustomAnimation(paramContext, paramInt1, paramInt2)));
}
if (Build.VERSION.SDK_INT >= 21) {
return new a(new cd(ActivityOptions.makeCustomAnimation(paramContext, paramInt1, paramInt2)));
}
if (Build.VERSION.SDK_INT >= 16) {
return new d(new cg(ActivityOptions.makeCustomAnimation(paramContext, paramInt1, paramInt2)));
}
return new ActivityOptionsCompat();
}
public static ActivityOptionsCompat makeScaleUpAnimation(View paramView, int paramInt1, int paramInt2, int paramInt3, int paramInt4)
{
if (Build.VERSION.SDK_INT >= 24) {
return new c(new cf(ActivityOptions.makeScaleUpAnimation(paramView, paramInt1, paramInt2, paramInt3, paramInt4)));
}
if (Build.VERSION.SDK_INT >= 23) {
return new b(new ce(ActivityOptions.makeScaleUpAnimation(paramView, paramInt1, paramInt2, paramInt3, paramInt4)));
}
if (Build.VERSION.SDK_INT >= 21) {
return new a(new cd(ActivityOptions.makeScaleUpAnimation(paramView, paramInt1, paramInt2, paramInt3, paramInt4)));
}
if (Build.VERSION.SDK_INT >= 16) {
return new d(new cg(ActivityOptions.makeScaleUpAnimation(paramView, paramInt1, paramInt2, paramInt3, paramInt4)));
}
return new ActivityOptionsCompat();
}
public static ActivityOptionsCompat makeSceneTransitionAnimation(Activity paramActivity, View paramView, String paramString)
{
if (Build.VERSION.SDK_INT >= 24) {
return new c(new cf(ActivityOptions.makeSceneTransitionAnimation(paramActivity, paramView, paramString)));
}
if (Build.VERSION.SDK_INT >= 23) {
return new b(new ce(ActivityOptions.makeSceneTransitionAnimation(paramActivity, paramView, paramString)));
}
if (Build.VERSION.SDK_INT >= 21) {
return new a(new cd(ActivityOptions.makeSceneTransitionAnimation(paramActivity, paramView, paramString)));
}
return new ActivityOptionsCompat();
}
public static ActivityOptionsCompat makeSceneTransitionAnimation(Activity paramActivity, Pair<View, String>... paramVarArgs)
{
Object localObject = null;
String[] arrayOfString;
if (Build.VERSION.SDK_INT >= 21)
{
if (paramVarArgs == null) {
break label136;
}
localObject = new View[paramVarArgs.length];
arrayOfString = new String[paramVarArgs.length];
int i = 0;
while (i < paramVarArgs.length)
{
localObject[i] = ((View)paramVarArgs[i].first);
arrayOfString[i] = ((String)paramVarArgs[i].second);
i += 1;
}
paramVarArgs = arrayOfString;
}
for (;;)
{
if (Build.VERSION.SDK_INT >= 24) {
return new c(cf.a(paramActivity, (View[])localObject, paramVarArgs));
}
if (Build.VERSION.SDK_INT >= 23) {
return new b(ce.a(paramActivity, (View[])localObject, paramVarArgs));
}
return new a(cd.a(paramActivity, (View[])localObject, paramVarArgs));
return new ActivityOptionsCompat();
label136:
arrayOfString = null;
paramVarArgs = (Pair<View, String>[])localObject;
localObject = arrayOfString;
}
}
public static ActivityOptionsCompat makeTaskLaunchBehind()
{
if (Build.VERSION.SDK_INT >= 24) {
return new c(new cf(ActivityOptions.makeTaskLaunchBehind()));
}
if (Build.VERSION.SDK_INT >= 23) {
return new b(new ce(ActivityOptions.makeTaskLaunchBehind()));
}
if (Build.VERSION.SDK_INT >= 21) {
return new a(new cd(ActivityOptions.makeTaskLaunchBehind()));
}
return new ActivityOptionsCompat();
}
public static ActivityOptionsCompat makeThumbnailScaleUpAnimation(View paramView, Bitmap paramBitmap, int paramInt1, int paramInt2)
{
if (Build.VERSION.SDK_INT >= 24) {
return new c(new cf(ActivityOptions.makeThumbnailScaleUpAnimation(paramView, paramBitmap, paramInt1, paramInt2)));
}
if (Build.VERSION.SDK_INT >= 23) {
return new b(new ce(ActivityOptions.makeThumbnailScaleUpAnimation(paramView, paramBitmap, paramInt1, paramInt2)));
}
if (Build.VERSION.SDK_INT >= 21) {
return new a(new cd(ActivityOptions.makeThumbnailScaleUpAnimation(paramView, paramBitmap, paramInt1, paramInt2)));
}
if (Build.VERSION.SDK_INT >= 16) {
return new d(new cg(ActivityOptions.makeThumbnailScaleUpAnimation(paramView, paramBitmap, paramInt1, paramInt2)));
}
return new ActivityOptionsCompat();
}
@Nullable
public Rect getLaunchBounds()
{
return null;
}
public void requestUsageTimeReport(PendingIntent paramPendingIntent) {}
public ActivityOptionsCompat setLaunchBounds(@Nullable Rect paramRect)
{
return null;
}
public Bundle toBundle()
{
return null;
}
public void update(ActivityOptionsCompat paramActivityOptionsCompat) {}
@TargetApi(21)
@RequiresApi(21)
static final class a
extends ActivityOptionsCompat
{
private final cd a;
a(cd paramcd)
{
this.a = paramcd;
}
public final Bundle toBundle()
{
return this.a.a.toBundle();
}
public final void update(ActivityOptionsCompat paramActivityOptionsCompat)
{
if ((paramActivityOptionsCompat instanceof a))
{
Object localObject = (a)paramActivityOptionsCompat;
paramActivityOptionsCompat = this.a;
localObject = ((a)localObject).a;
paramActivityOptionsCompat.a.update(((cd)localObject).a);
}
}
}
@TargetApi(23)
@RequiresApi(23)
static final class b
extends ActivityOptionsCompat
{
private final ce a;
b(ce paramce)
{
this.a = paramce;
}
public final void requestUsageTimeReport(PendingIntent paramPendingIntent)
{
this.a.a.requestUsageTimeReport(paramPendingIntent);
}
public final Bundle toBundle()
{
return this.a.a.toBundle();
}
public final void update(ActivityOptionsCompat paramActivityOptionsCompat)
{
if ((paramActivityOptionsCompat instanceof b))
{
Object localObject = (b)paramActivityOptionsCompat;
paramActivityOptionsCompat = this.a;
localObject = ((b)localObject).a;
paramActivityOptionsCompat.a.update(((ce)localObject).a);
}
}
}
@TargetApi(24)
@RequiresApi(24)
static final class c
extends ActivityOptionsCompat
{
private final cf a;
c(cf paramcf)
{
this.a = paramcf;
}
public final Rect getLaunchBounds()
{
return this.a.a.getLaunchBounds();
}
public final void requestUsageTimeReport(PendingIntent paramPendingIntent)
{
this.a.a.requestUsageTimeReport(paramPendingIntent);
}
public final ActivityOptionsCompat setLaunchBounds(@Nullable Rect paramRect)
{
return new c(new cf(this.a.a.setLaunchBounds(paramRect)));
}
public final Bundle toBundle()
{
return this.a.a.toBundle();
}
public final void update(ActivityOptionsCompat paramActivityOptionsCompat)
{
if ((paramActivityOptionsCompat instanceof c))
{
Object localObject = (c)paramActivityOptionsCompat;
paramActivityOptionsCompat = this.a;
localObject = ((c)localObject).a;
paramActivityOptionsCompat.a.update(((cf)localObject).a);
}
}
}
@TargetApi(16)
@RequiresApi(16)
static final class d
extends ActivityOptionsCompat
{
private final cg a;
d(cg paramcg)
{
this.a = paramcg;
}
public final Bundle toBundle()
{
return this.a.a.toBundle();
}
public final void update(ActivityOptionsCompat paramActivityOptionsCompat)
{
if ((paramActivityOptionsCompat instanceof d))
{
Object localObject = (d)paramActivityOptionsCompat;
paramActivityOptionsCompat = this.a;
localObject = ((d)localObject).a;
paramActivityOptionsCompat.a.update(((cg)localObject).a);
}
}
}
}
/* Location: /home/merong/decompile/hackery-dex2jar.jar!/android/support/v4/app/ActivityOptionsCompat.class
* Java compiler version: 6 (50.0)
* JD-Core Version: 0.7.1
*/