Home
last modified time | relevance | path

Searched refs:Intent (Results 1 – 25 of 2163) sorted by relevance

12345678910>>...87

/cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/
DIntentFiltersTestHelper.java22 import android.content.Intent;
51 private static final ArrayList<Intent> forwardedIntentsFromPrimary =
53 new Intent(Intent.ACTION_SEND).setType("*/*"),
54 new Intent(Intent.ACTION_SEND_MULTIPLE).setType("*/*")
58 private static final ArrayList<Intent> forwardedIntentsFromManaged =
60 new Intent(AlarmClock.ACTION_SET_ALARM),
61 new Intent(AlarmClock.ACTION_SET_TIMER),
62 new Intent(AlarmClock.ACTION_SHOW_ALARMS),
63 new Intent(Settings.ACTION_ACCESSIBILITY_SETTINGS),
64 new Intent(Settings.ACTION_CAPTIONING_SETTINGS),
[all …]
/cts/tests/tests/content/src/android/content/cts/
DAvailableIntentsTest.java26 import android.content.Intent;
65 private void assertCanBeHandled(final Intent intent) { in assertCanBeHandled()
77 private void assertDefaultHandlerValidPriority(final Intent intent) { in assertDefaultHandlerValidPriority()
90 private void assertHandledBySystemOnly(final Intent intent) { in assertHandledBySystemOnly()
104 private void assertHandledBySelfOnly(final Intent intent) { in assertHandledBySelfOnly()
122 Intent intent = new Intent(Intent.ACTION_VIEW, uri); in testViewNormalUrl()
132 Intent intent = new Intent(Intent.ACTION_VIEW, uri); in testViewSecureUrl()
142 Intent intent = new Intent(Intent.ACTION_WEB_SEARCH); in testWebSearchNormalUrl()
153 Intent intent = new Intent(Intent.ACTION_WEB_SEARCH); in testWebSearchSecureUrl()
164 Intent intent = new Intent(Intent.ACTION_WEB_SEARCH); in testWebSearchPlainText()
[all …]
DIntentTest.java19 import static android.content.Intent.FLAG_RECEIVER_FOREGROUND;
20 import static android.content.Intent.FLAG_RECEIVER_OFFLOAD;
40 import android.content.Intent;
93 private Intent mIntent;
129 mIntent = new Intent(); in setUp()
136 mIntent = new Intent(); in testConstructor()
139 Intent intent = new Intent(); in testConstructor()
142 mIntent = new Intent(intent); in testConstructor()
146 mIntent = new Intent(TEST_ACTION); in testConstructor()
150 mIntent = new Intent(TEST_ACTION, TEST_URI); in testConstructor()
[all …]
DIntent_FilterComparisonTest.java19 import android.content.Intent;
20 import android.content.Intent.FilterComparison;
28 Intent mIntent;
34 mIntent = new Intent(); in setUp()
40 mFilterComparison = new Intent.FilterComparison(mIntent); in testConstructor()
46 mFilterComparison = new Intent.FilterComparison(mIntent); in testHashCode()
52 mFilterComparison = new Intent.FilterComparison(mIntent); in testEquals()
54 FilterComparison target = new Intent.FilterComparison(mIntent); in testEquals()
57 target = new Intent.FilterComparison(new Intent("test")); in testEquals()
62 mFilterComparison = new Intent.FilterComparison(mIntent); in testGetIntent()
/cts/tests/JobSchedulerSharedUid/src/android/jobscheduler/cts/shareduidtests/
DEnqueueJobWorkTest.java23 import android.content.Intent;
60 private boolean intentEquals(Intent i1, Intent i2) { in intentEquals()
109 Intent work1 = new Intent("work1"); in testEnqueueOneWork()
128 Intent work1 = new Intent("work1"); in testEnqueueMultipleWork()
129 Intent work2 = new Intent("work2"); in testEnqueueMultipleWork()
130 Intent work3 = new Intent("work3"); in testEnqueueMultipleWork()
131 Intent work4 = new Intent("work4"); in testEnqueueMultipleWork()
132 Intent work5 = new Intent("work5"); in testEnqueueMultipleWork()
133 Intent work6 = new Intent("work6"); in testEnqueueMultipleWork()
134 Intent work7 = new Intent("work7"); in testEnqueueMultipleWork()
[all …]
DClipDataJobTest.java23 import android.content.Intent;
68 Process.myUid(), Intent.FLAG_GRANT_READ_URI_PERMISSION)); in testClipDataGrant()
71 Process.myUid(), Intent.FLAG_GRANT_WRITE_URI_PERMISSION)); in testClipDataGrant()
76 .setClipData(mFirstClipData, Intent.FLAG_GRANT_READ_URI_PERMISSION in testClipDataGrant()
77 | Intent.FLAG_GRANT_WRITE_URI_PERMISSION).build()); in testClipDataGrant()
83 Process.myUid(), Intent.FLAG_GRANT_READ_URI_PERMISSION)); in testClipDataGrant()
86 Process.myUid(), Intent.FLAG_GRANT_WRITE_URI_PERMISSION)); in testClipDataGrant()
98 waitPermissionRevoke(mFirstUri, Intent.FLAG_GRANT_WRITE_URI_PERMISSION, 5000); in testClipDataGrant()
108 .setClipData(mFirstClipData, Intent.FLAG_GRANT_READ_URI_PERMISSION in testClipDataGrant_Failed()
109 | Intent.FLAG_GRANT_WRITE_URI_PERMISSION).build()); in testClipDataGrant_Failed()
[all …]
/cts/tests/tests/os/src/android/os/cts/
DIntentLaunchActivity.java21 import android.content.Intent;
59 public static Intent getUnsafeIntentLaunchTestIntent(Context context) { in getUnsafeIntentLaunchTestIntent()
68 public static Intent getUnsafeDataCopyFromIntentTestIntent(Context context) { in getUnsafeDataCopyFromIntentTestIntent()
79 public static Intent getUnsafeDataCopyFromExtrasTestIntent(Context context) { in getUnsafeDataCopyFromExtrasTestIntent()
89 public static Intent getDataCopyFromDeliveredIntentWithUnparceledExtrasTestIntent( in getDataCopyFromDeliveredIntentWithUnparceledExtrasTestIntent()
103 private static Intent getTestIntentWithExtrasInParceledIntent(Context context, String action) { in getTestIntentWithExtrasInParceledIntent()
104 Intent intent = getTestIntent(context, action); in getTestIntentWithExtrasInParceledIntent()
105 Intent innerIntent = intent.getParcelableExtra(EXTRA_INNER_INTENT); in getTestIntentWithExtrasInParceledIntent()
117 public static Intent getUnsafeIntentFromUriLaunchTestIntent(Context context) { in getUnsafeIntentFromUriLaunchTestIntent()
127 public static Intent getSafeIntentFromUriLaunchTestIntent(Context context) { in getSafeIntentFromUriLaunchTestIntent()
[all …]
/cts/tests/tests/match_flags/src/android/matchflags/cts/
DMatchFlagTests.java23 import android.content.Intent;
67 Intent onlyBrowserIntent = new Intent(Intent.ACTION_VIEW) in startNoBrowserIntentWithNoMatchingApps()
68 .addCategory(Intent.CATEGORY_BROWSABLE) in startNoBrowserIntentWithNoMatchingApps()
82 Intent noBrowserWithBrowserOnlyIntent = new Intent(onlyBrowserIntent) in startNoBrowserIntentWithNoMatchingApps()
83 .addFlags(Intent.FLAG_ACTIVITY_REQUIRE_NON_BROWSER); in startNoBrowserIntentWithNoMatchingApps()
95 Intent sharedIntent = new Intent("android.matchflags.app.SHARED_ACTION"); in startRequireDefaultWithNoDefault()
99 Intent sharedIntentRequireDefault = new Intent(sharedIntent) in startRequireDefaultWithNoDefault()
100 .addFlags(Intent.FLAG_ACTIVITY_REQUIRE_DEFAULT); in startRequireDefaultWithNoDefault()
112 Intent uniqueIntent = new Intent("android.matchflags.app.UNIQUE_ACTION") in startRequireDefaultWithSingleMatch()
113 .addFlags(Intent.FLAG_ACTIVITY_REQUIRE_DEFAULT); in startRequireDefaultWithSingleMatch()
[all …]
/cts/tests/framework/base/locale/util/src/android/localemanager/cts/util/
DLocaleUtils.java19 import android.content.Intent;
42 public static Intent constructResultIntent(String action, Intent intent) { in constructResultIntent()
43 return new Intent(action) in constructResultIntent()
44 .putExtra(Intent.EXTRA_PACKAGE_NAME, in constructResultIntent()
45 intent.getStringExtra(Intent.EXTRA_PACKAGE_NAME)) in constructResultIntent()
46 .putExtra(Intent.EXTRA_LOCALE_LIST, in constructResultIntent()
47 (Parcelable) intent.getParcelableExtra(Intent.EXTRA_LOCALE_LIST)); in constructResultIntent()
57 public static Intent constructResultIntent(String action, String packageName, in constructResultIntent()
59 return new Intent(action) in constructResultIntent()
60 .putExtra(Intent.EXTRA_PACKAGE_NAME, packageName) in constructResultIntent()
[all …]
/cts/hostsidetests/appsecurity/test-apps/UsePermissionDiffCert/src/com/android/cts/usespermissiondiffcertapp/
DUriGrantsTest.java35 import android.content.Intent;
69 clip.addItem(new ClipData.Item(new Intent(Intent.ACTION_VIEW, grantClip3Uri))); in makeMultiClipData()
70 Intent intent = new Intent(Intent.ACTION_VIEW, grantClip4Uri); in makeMultiClipData()
71 intent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION in makeMultiClipData()
72 | Intent.FLAG_GRANT_WRITE_URI_PERMISSION); in makeMultiClipData()
74 intent = new Intent(Intent.ACTION_VIEW); in makeMultiClipData()
97 resolver.takePersistableUriPermission(target, Intent.FLAG_GRANT_READ_URI_PERMISSION); in testGrantPersistableUriPermission()
107 grantClipUriPermissionViaActivity(clip, Intent.FLAG_GRANT_READ_URI_PERMISSION in testGrantPersistableUriPermission()
108 | Intent.FLAG_GRANT_PERSISTABLE_URI_PERMISSION); in testGrantPersistableUriPermission()
119 resolver.takePersistableUriPermission(target, Intent.FLAG_GRANT_READ_URI_PERMISSION); in testGrantPersistableUriPermission()
[all …]
/cts/tests/mediaprovider/src/android/provider/cts/media/
DMediaStoreIntentsTest.java24 import android.content.Intent;
70 public void assertCanBeHandled(Intent intent) { in assertCanBeHandled()
80 Intent intent = new Intent(Intent.ACTION_PICK); in testPickImageDir()
87 Intent intent = new Intent(Intent.ACTION_PICK); in testPickVideoDir()
94 Intent intent = new Intent(Intent.ACTION_PICK); in testPickAudioDir()
101 Intent intent = new Intent(Intent.ACTION_VIEW); in testViewImageDir()
108 Intent intent = new Intent(Intent.ACTION_VIEW); in testViewVideoDir()
125 Intent intent = new Intent(Intent.ACTION_VIEW); in testViewImageFile()
144 Intent intent = new Intent(Intent.ACTION_VIEW); in testViewVideoFile()
163 Intent intent = new Intent(Intent.ACTION_VIEW); in testViewAudioFile()
/cts/tests/tests/shortcutmanager/src/android/content/pm/cts/shortcutmanager/
DShortcutManagerStartShortcutTest.java26 import android.content.Intent;
53 private List<Intent> launchShortcutAndGetIntents(Context launcher, Context client, in launchShortcutAndGetIntents()
59 private List<Intent> launchShortcutAndGetIntents(Context launcher, Context client, in launchShortcutAndGetIntents()
78 final List<Intent> launched = launchShortcutAndGetIntents(launcher, client, id, 1, in assertShortcutStarts()
94 private static final String[] EXPECTED_ACTIONS_SINGLE = new String[]{Intent.ACTION_MAIN};
103 Intent i = new Intent(Intent.ACTION_MAIN) in testStartSingle()
105 .setFlags(Intent.FLAG_ACTIVITY_NO_ANIMATION) in testStartSingle()
115 List<Intent> launched = launchShortcutAndGetIntents(mLauncherContext1, mPackageContext1, in testStartSingle()
118 assertEquals(Intent.ACTION_MAIN, launched.get(0).getAction()); in testStartSingle()
119 assertTrue((launched.get(0).getFlags() & Intent.FLAG_ACTIVITY_NO_ANIMATION) != 0); in testStartSingle()
[all …]
/cts/common/device-side/bedstead/testapp/src/testapps/main/java/com/android/bedstead/testapp/
DBaseTestAppDeviceAdminReceiver.java21 import android.content.Intent;
35 public void onEnabled(Context context, Intent intent) { in onEnabled()
40 public CharSequence onDisableRequested(Context context, Intent intent) { in onDisableRequested()
45 public void onDisabled(Context context, Intent intent) { in onDisabled()
50 public void onPasswordChanged(Context context, Intent intent) { in onPasswordChanged()
55 public void onPasswordChanged(Context context, Intent intent, UserHandle user) { in onPasswordChanged()
60 public void onPasswordFailed(Context context, Intent intent) { in onPasswordFailed()
65 public void onPasswordFailed(Context context, Intent intent, UserHandle user) { in onPasswordFailed()
70 public void onPasswordSucceeded(Context context, Intent intent) { in onPasswordSucceeded()
75 public void onPasswordSucceeded(Context context, Intent intent, UserHandle user) { in onPasswordSucceeded()
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sharesheet/
DSharesheetChooserResultComponentActivity.java19 import static android.content.Intent.EXTRA_INITIAL_INTENTS;
23 import android.content.Intent;
31 protected Intent getTestActivityIntent() { in getTestActivityIntent()
32 return new Intent(this, SharesheetChooserResultComponentActivity.class) in getTestActivityIntent()
33 .addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); in getTestActivityIntent()
37 protected Intent createChooserIntent() { in createChooserIntent()
38 Intent sendIntent = new Intent(); in createChooserIntent()
39 sendIntent.setAction(Intent.ACTION_SEND); in createChooserIntent()
40 sendIntent.putExtra(Intent.EXTRA_TEXT, in createChooserIntent()
42 Intent chooserIntent = wrapWithChooserIntent(sendIntent); in createChooserIntent()
[all …]
/cts/hostsidetests/securitybulletin/test-apps/CVE-2022-20007/test-app/src/android/security/cts/CVE_2022_20007/
DPocMainActivity.java22 import android.content.Intent;
34 final Intent coverIntent = new Intent(); in onCreate()
37 coverIntent.setFlags(Intent.FLAG_ACTIVITY_NO_ANIMATION | Intent.FLAG_ACTIVITY_NEW_TASK in onCreate()
38 | Intent.FLAG_ACTIVITY_MULTIPLE_TASK | Intent.FLAG_ACTIVITY_NO_HISTORY); in onCreate()
39 final Intent victimIntent = new Intent(PocMainActivity.this, FirstPocActivity.class); in onCreate()
41 .setFlags(Intent.FLAG_ACTIVITY_NO_ANIMATION | Intent.FLAG_ACTIVITY_NO_HISTORY); in onCreate()
45 Intent[] intents = {victimIntent, coverIntent}; in onCreate()
48 final Intent secondVictimIntent = new Intent(); in onCreate()
53 Intent.FLAG_ACTIVITY_NO_ANIMATION | Intent.FLAG_ACTIVITY_NO_HISTORY); in onCreate()
58 Intent[] intents2 = {secondVictimIntent, coverIntent}; in onCreate()
/cts/hostsidetests/appcloning/test-apps/AppCloningIntentRedirectionApps/IntentRedirectionTestApp/src/com/android/cts/appcloning/intentredirectiontest/app/
DIntentRedirectionAppTest.java25 import android.content.Intent;
85 Intent intent = buildIntentForTest(intentAction); in testIntentResolutionForUser()
133 private Intent buildIntentForTest(String intentAction) { in buildIntentForTest()
134 Intent intent = null; in buildIntentForTest()
136 case Intent.ACTION_VIEW : in buildIntentForTest()
137 intent = new Intent(Intent.ACTION_VIEW, Uri.parse("https://www.google.com")); in buildIntentForTest()
139 case Intent.ACTION_SENDTO : in buildIntentForTest()
140 intent = new Intent(Intent.ACTION_SENDTO); in buildIntentForTest()
142 intent.putExtra(Intent.EXTRA_TEXT, "Hello world!"); in buildIntentForTest()
144 case Intent.ACTION_SEND : in buildIntentForTest()
[all …]
/cts/tests/PhotoPicker/src/android/photopicker/cts/
DActionGetContentOnlyTest.java33 import android.content.Intent;
92 final Intent intent = new Intent(Intent.ACTION_GET_CONTENT); in testMimeTypeFilter()
93 intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK); in testMimeTypeFilter()
94 intent.addCategory(Intent.CATEGORY_OPENABLE); in testMimeTypeFilter()
107 final Intent intent = new Intent(Intent.ACTION_GET_CONTENT); in testExtraMimeTypeFilter()
108 intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK); in testExtraMimeTypeFilter()
109 intent.addCategory(Intent.CATEGORY_OPENABLE); in testExtraMimeTypeFilter()
111 intent.putExtra(Intent.EXTRA_MIME_TYPES, new String[]{"video/*", "audio/*"}); in testExtraMimeTypeFilter()
133 final Intent intent = new Intent(Intent.ACTION_GET_CONTENT); in testBrowse_singleSelect()
158 final Intent intent = new Intent(Intent.ACTION_GET_CONTENT); in testBrowse_multiSelect()
[all …]
/cts/tests/tests/sharesheet/src/android/sharesheet/cts/
DCtsSharesheetDeviceTest.java34 import android.content.Intent;
214 Intent shareIntent = createShareIntent(false, 0, 0); in init()
235 final AtomicReference<Intent> targetLaunchIntent = new AtomicReference<>(); in bulkTest1()
257 assertThat(targetLaunchIntent.get().getAction()).isEqualTo(Intent.ACTION_SEND); in bulkTest1()
311 final AtomicReference<Intent> refinementRequest = new AtomicReference<>(); in testRefinementIntentSender()
315 public void onReceive(Context context, Intent intent) { in testRefinementIntentSender()
320 Intent.EXTRA_RESULT_RECEIVER, ResultReceiver.class); in testRefinementIntentSender()
322 Intent[] alternates = intent.getParcelableArrayExtra( in testRefinementIntentSender()
323 Intent.EXTRA_ALTERNATE_INTENTS, Intent.class); in testRefinementIntentSender()
326 bundle.putParcelable(Intent.EXTRA_INTENT, alternates[0]); in testRefinementIntentSender()
[all …]
/cts/tests/framework/base/windowmanager/app/src/android/server/wm/app/
DRecursiveActivity.java19 import android.content.Intent;
34 final Intent intent = new Intent(this, RecursiveActivity.class); in onCreate()
35 intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_MULTIPLE_TASK); in onCreate()
39 final Intent intent = new Intent(this, TestActivity.class); in onCreate()
40 intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_MULTIPLE_TASK); in onCreate()
/cts/hostsidetests/appsecurity/test-apps/EphemeralTestApp/NormalApp/src/com/android/cts/normalapp/
DClientTest.java37 import android.content.Intent;
99 filter.addCategory(Intent.CATEGORY_DEFAULT); in setUp()
114 final Intent queryIntent = new Intent(ACTION_QUERY); in testQuery()
137 final Intent queryIntent = new Intent(ACTION_QUERY); in testQuery()
162 final Intent queryIntent = new Intent(ACTION_QUERY); in testQuery()
171 final Intent queryIntent = new Intent(ACTION_QUERY); in testQuery()
182 final Intent queryIntent = new Intent(ACTION_QUERY); in testQuery()
205 final Intent queryIntent = new Intent(ACTION_QUERY); in testQuery()
230 final Intent queryIntent = new Intent(ACTION_QUERY); in testQuery()
239 final Intent queryIntent = new Intent(ACTION_QUERY); in testQuery()
[all …]
/cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/
DCrossProfileSharingTest.java26 import android.content.Intent;
48 Intent intent = getSendIntent(); in startSwitchToOtherProfileIntent()
61 Intent switchToOtherProfileIntent = new Intent(intent); in startSwitchToOtherProfileIntent()
63 switchToOtherProfileIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); in startSwitchToOtherProfileIntent()
69 Intent intent = getSendIntent(); in startSwitchToOtherProfileIntent_chooser()
82 Intent chooserIntent = Intent.createChooser(intent, /* title */ null); in startSwitchToOtherProfileIntent_chooser()
83 Intent switchToOtherProfileIntent = new Intent(chooserIntent); in startSwitchToOtherProfileIntent_chooser()
85 switchToOtherProfileIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); in startSwitchToOtherProfileIntent_chooser()
96 filter.addAction(Intent.ACTION_SEND); in addCrossProfileIntents()
97 filter.addCategory(Intent.CATEGORY_DEFAULT); in addCrossProfileIntents()
[all …]
/cts/tests/tests/contactsprovider/src/android/provider/cts/contacts/
DContactsContractIntentsTest.java19 import android.content.Intent;
34 public void assertCanBeHandled(Intent intent) { in assertCanBeHandled()
43 Intent intent = new Intent(Intent.ACTION_VIEW); in testViewContactDir()
49 Intent intent = new Intent(Intent.ACTION_PICK); in testPickContactDir()
55 Intent intent = new Intent(Intent.ACTION_GET_CONTENT); in testGetContentContactDir()
70 Intent intent = new Intent(ContactsContract.Settings.ACTION_SET_DEFAULT_ACCOUNT); in testSetDefaultAccount()
/cts/hostsidetests/securitybulletin/test-apps/CVE-2022-20223/src/android/security/cts/CVE_2022_20223/
DPocBroadcastReceiver.java22 import android.content.Intent;
30 Intent intent = new Intent(Intent.ACTION_REQUEST_SHUTDOWN); in getShutdownDefaultComponent()
35 public void onReceive(Context context, Intent intent) { in onReceive()
38 Intent shutDownIntent = new Intent(); in onReceive()
41 shutDownIntent.setAction(Intent.ACTION_REQUEST_SHUTDOWN); in onReceive()
42 shutDownIntent.putExtra(Intent.EXTRA_KEY_CONFIRM, true); in onReceive()
43 shutDownIntent.putExtra(Intent.EXTRA_USER_REQUESTED_SHUTDOWN, true); in onReceive()
44 result.putParcelable(Intent.EXTRA_RESTRICTIONS_INTENT, shutDownIntent); in onReceive()
/cts/tests/tests/settings/src/android/settings/cts/
DSettingsIntentsInWorkProfileTest.java22 import android.content.Intent;
54 final Intent intent = new Intent(Settings.ACTION_IGNORE_BATTERY_OPTIMIZATION_SETTINGS); in settingActivity_launchIgnoreBatteryOptimizationIntent_shouldNotCrash()
61 final Intent intent = new Intent(Settings.ACTION_MANAGE_WRITE_SETTINGS); in settingActivity_launchManageWriteSettingsIntent_shouldNotCrash()
69 final Intent intent = new Intent(Settings.ACTION_APP_USAGE_SETTINGS); in settingActivity_launchAppUsageIntent_shouldNotCrash()
70 intent.putExtra(Intent.EXTRA_PACKAGE_NAME, TEST_PACKAGE); in settingActivity_launchAppUsageIntent_shouldNotCrash()
77 final Intent intent = new Intent(Settings.ACTION_APPLICATION_DETAILS_SETTINGS); in settingActivity_launchApplicationDetailsIntent_shouldNotCrash()
85 final Intent intent = new Intent(Settings.ACTION_DEVICE_INFO_SETTINGS); in settingActivity_launchDeviceInfoSetting_shouldNotCrash()
89 private void startActivity(Intent intent) { in startActivity()
94 intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); in startActivity()
/cts/hostsidetests/appsecurity/test-apps/PrivilegedUpdateApp/src/com/android/cts/privilegedupdate/
DPrivilegedUpdateTest.java22 import android.content.Intent;
47 assertFilterPriority(testComponent, Intent.ACTION_SEARCH, 0); in testSystemAppPriorities()
48 assertFilterPriority(testComponent, Intent.ACTION_VIEW, 0); in testSystemAppPriorities()
49 assertFilterPriority(testComponent, Intent.ACTION_SEND, 0); in testSystemAppPriorities()
50 assertFilterPriority(testComponent, Intent.ACTION_SEND_MULTIPLE, 0); in testSystemAppPriorities()
51 assertFilterPriority(testComponent, Intent.ACTION_SENDTO, 0); in testSystemAppPriorities()
63 assertFilterPriority(testComponent, Intent.ACTION_SEARCH, 100); in testPrivilegedAppPriorities()
64 assertFilterPriority(testComponent, Intent.ACTION_VIEW, 0); in testPrivilegedAppPriorities()
65 assertFilterPriority(testComponent, Intent.ACTION_SEND, 0); in testPrivilegedAppPriorities()
66 assertFilterPriority(testComponent, Intent.ACTION_SEND_MULTIPLE, 0); in testPrivilegedAppPriorities()
[all …]

12345678910>>...87