|
5 | 5 | import android.content.Intent; |
6 | 6 | import android.os.Bundle; |
7 | 7 |
|
8 | | -public class AndroidIntentRedirectTest extends Activity { |
9 | | - AndroidIntentRedirectTest(Context base) { |
| 8 | +public class AndroidIntentRedirectionTest extends Activity { |
| 9 | + AndroidIntentRedirectionTest(Context base) { |
10 | 10 | super(base); |
11 | 11 | } |
12 | 12 |
|
13 | 13 | public void onCreate(Bundle savedInstanceState) { |
14 | 14 | { |
15 | 15 | Intent intent = (Intent) getIntent().getParcelableExtra("forward_intent"); |
16 | | - startActivities(new Intent[] {intent}); // $ hasAndroidIntentRedirect |
17 | | - startActivities(new Intent[] {intent}, null); // $ hasAndroidIntentRedirect |
18 | | - startActivity(intent); // $ hasAndroidIntentRedirect |
19 | | - startActivity(intent, null); // $ hasAndroidIntentRedirect |
20 | | - startActivityAsUser(intent, null); // $ hasAndroidIntentRedirect |
21 | | - startActivityAsUser(intent, null, null); // $ hasAndroidIntentRedirect |
22 | | - startActivityAsCaller(intent, null, false, 0); // $ hasAndroidIntentRedirect |
23 | | - startActivityAsUserFromFragment(null, intent, 0, null, null); // $ hasAndroidIntentRedirect |
24 | | - startActivityForResult(intent, 0); // $ hasAndroidIntentRedirect |
25 | | - startActivityForResult(intent, 0, null); // $ hasAndroidIntentRedirect |
26 | | - startActivityForResult(null, intent, 0, null); // $ hasAndroidIntentRedirect |
27 | | - startActivityForResultAsUser(intent, null, 0, null, null); // $ hasAndroidIntentRedirect |
28 | | - startActivityForResultAsUser(intent, 0, null, null); // $ hasAndroidIntentRedirect |
29 | | - startActivityForResultAsUser(intent, 0, null); // $ hasAndroidIntentRedirect |
| 16 | + startActivities(new Intent[] {intent}); // $ hasAndroidIntentRedirection |
| 17 | + startActivities(new Intent[] {intent}, null); // $ hasAndroidIntentRedirection |
| 18 | + startActivity(intent); // $ hasAndroidIntentRedirection |
| 19 | + startActivity(intent, null); // $ hasAndroidIntentRedirection |
| 20 | + startActivityAsUser(intent, null); // $ hasAndroidIntentRedirection |
| 21 | + startActivityAsUser(intent, null, null); // $ hasAndroidIntentRedirection |
| 22 | + startActivityAsCaller(intent, null, false, 0); // $ hasAndroidIntentRedirection |
| 23 | + startActivityAsUserFromFragment(null, intent, 0, null, null); // $ hasAndroidIntentRedirection |
| 24 | + startActivityForResult(intent, 0); // $ hasAndroidIntentRedirection |
| 25 | + startActivityForResult(intent, 0, null); // $ hasAndroidIntentRedirection |
| 26 | + startActivityForResult(null, intent, 0, null); // $ hasAndroidIntentRedirection |
| 27 | + startActivityForResultAsUser(intent, null, 0, null, null); // $ hasAndroidIntentRedirection |
| 28 | + startActivityForResultAsUser(intent, 0, null, null); // $ hasAndroidIntentRedirection |
| 29 | + startActivityForResultAsUser(intent, 0, null); // $ hasAndroidIntentRedirection |
30 | 30 | } |
31 | 31 | { |
32 | 32 | Intent intent = (Intent) getIntent().getParcelableExtra("forward_intent"); |
33 | | - startService(intent); // $ hasAndroidIntentRedirect |
34 | | - startServiceAsUser(intent, null); // $ hasAndroidIntentRedirect |
| 33 | + startService(intent); // $ hasAndroidIntentRedirection |
| 34 | + startServiceAsUser(intent, null); // $ hasAndroidIntentRedirection |
35 | 35 | } |
36 | 36 | { |
37 | 37 | Intent intent = (Intent) getIntent().getParcelableExtra("forward_intent"); |
38 | | - sendBroadcast(intent); // $ hasAndroidIntentRedirect |
39 | | - sendBroadcast(intent, null); // $ hasAndroidIntentRedirect |
40 | | - sendBroadcast(intent, null, null); // $ hasAndroidIntentRedirect |
41 | | - sendBroadcast(intent, null, 0); // $ hasAndroidIntentRedirect |
42 | | - sendBroadcastAsUser(intent, null); // $ hasAndroidIntentRedirect |
43 | | - sendBroadcastAsUser(intent, null, null); // $ hasAndroidIntentRedirect |
44 | | - sendBroadcastAsUser(intent, null, null, null); // $ hasAndroidIntentRedirect |
45 | | - sendBroadcastAsUser(intent, null, null, 0); // $ hasAndroidIntentRedirect |
46 | | - sendBroadcastAsUserMultiplePermissions(intent, null, null); // $ hasAndroidIntentRedirect |
47 | | - sendStickyBroadcast(intent); // $ hasAndroidIntentRedirect |
48 | | - sendStickyBroadcastAsUser(intent, null); // $ hasAndroidIntentRedirect |
49 | | - sendStickyBroadcastAsUser(intent, null, null); // $ hasAndroidIntentRedirect |
50 | | - sendStickyOrderedBroadcast(intent, null, null, 0, null, null); // $ hasAndroidIntentRedirect |
51 | | - sendStickyOrderedBroadcastAsUser(intent, null, null, null, 0, null, null); // $ hasAndroidIntentRedirect |
| 38 | + sendBroadcast(intent); // $ hasAndroidIntentRedirection |
| 39 | + sendBroadcast(intent, null); // $ hasAndroidIntentRedirection |
| 40 | + sendBroadcast(intent, null, null); // $ hasAndroidIntentRedirection |
| 41 | + sendBroadcast(intent, null, 0); // $ hasAndroidIntentRedirection |
| 42 | + sendBroadcastAsUser(intent, null); // $ hasAndroidIntentRedirection |
| 43 | + sendBroadcastAsUser(intent, null, null); // $ hasAndroidIntentRedirection |
| 44 | + sendBroadcastAsUser(intent, null, null, null); // $ hasAndroidIntentRedirection |
| 45 | + sendBroadcastAsUser(intent, null, null, 0); // $ hasAndroidIntentRedirection |
| 46 | + sendBroadcastAsUserMultiplePermissions(intent, null, null); // $ hasAndroidIntentRedirection |
| 47 | + sendStickyBroadcast(intent); // $ hasAndroidIntentRedirection |
| 48 | + sendStickyBroadcastAsUser(intent, null); // $ hasAndroidIntentRedirection |
| 49 | + sendStickyBroadcastAsUser(intent, null, null); // $ hasAndroidIntentRedirection |
| 50 | + sendStickyOrderedBroadcast(intent, null, null, 0, null, null); // $ hasAndroidIntentRedirection |
| 51 | + sendStickyOrderedBroadcastAsUser(intent, null, null, null, 0, null, null); // $ hasAndroidIntentRedirection |
52 | 52 | } |
53 | 53 |
|
54 | 54 | } |
|
0 commit comments