Home
last modified time | relevance | path

Searched refs:newIntent (Results 1 – 14 of 14) sorted by relevance

/cts/tests/tests/app/test-apps/TestShareIdentityApp/src/android/app/cts/testshareidentity/
DTestShareIdentityReceiver.java44 Intent newIntent = new Intent(); in onReceive() local
45 newIntent.setComponent(getShareIdentityActivity(testCase)); in onReceive()
46 newIntent.putExtra(TEST_ID_KEY, testId); in onReceive()
47 newIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); in onReceive()
52 context.startActivity(newIntent); in onReceive()
56 context.startActivity(newIntent, bundle); in onReceive()
61 context.startActivity(newIntent, bundle); in onReceive()
/cts/tests/framework/base/windowmanager/util/src/android/server/wm/
DActivityLauncher.java174 final Intent newIntent = new Intent(); in launchActivityFromExtras() local
177 newIntent.setAction(extras.getString(KEY_ACTION, IMPLICIT_TARGET_SECOND_TEST_ACTION)); in launchActivityFromExtras()
182 newIntent.setComponent(componentName); in launchActivityFromExtras()
186 newIntent.addFlags(FLAG_ACTIVITY_NEW_TASK | FLAG_ACTIVITY_LAUNCH_ADJACENT); in launchActivityFromExtras()
191 newIntent.setData(data); in launchActivityFromExtras()
195 newIntent.addFlags(FLAG_ACTIVITY_MULTIPLE_TASK); in launchActivityFromExtras()
198 newIntent.addFlags(FLAG_ACTIVITY_NEW_TASK); in launchActivityFromExtras()
202 newIntent.addFlags(FLAG_ACTIVITY_REORDER_TO_FRONT); in launchActivityFromExtras()
207 newIntent.putExtras(intentExtras); in launchActivityFromExtras()
219 newIntent.addFlags(FLAG_ACTIVITY_NEW_TASK | FLAG_ACTIVITY_MULTIPLE_TASK); in launchActivityFromExtras()
[all …]
/cts/hostsidetests/appsecurity/test-apps/PermissionDeclareApp/src/com/android/cts/permissiondeclareapp/
DUtilsProvider.java70 final Intent newIntent = intent.getParcelableExtra(EXTRA_INTENT); in call() local
71 newIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); in call()
72 context.startActivity(newIntent); in call()
75 final Intent newIntent = intent.getParcelableExtra(EXTRA_INTENT); in call() local
76 newIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); in call()
77 context.startActivities(new Intent[] { newIntent }); in call()
80 final Intent newIntent = intent.getParcelableExtra(EXTRA_INTENT); in call() local
81 context.startService(newIntent); in call()
/cts/tests/tests/app/src/android/app/cts/
DComponentCallerTest.java510 Intent newIntent = getUriInDataSendBroadcastTestIntent(TestProvider.getContentUri(), in testActivityNewIntentCaller_checkContentUriPermission_throwsIfCallerOfApiDoesNotHaveTheSameAccessToContentUri() local
512 mContext.startActivity(newIntent); in testActivityNewIntentCaller_checkContentUriPermission_throwsIfCallerOfApiDoesNotHaveTheSameAccessToContentUri()
540 Intent newIntent = getSendBroadcastTestIntent(NONE_PROVIDED_USE_HELPER_APP_URI_LOCATION_ID, in testActivityNewIntentCaller_checkContentUriPermission_throwsIfContentUriWasNotPassedAtLaunch() local
543 mContext.startActivity(newIntent); in testActivityNewIntentCaller_checkContentUriPermission_throwsIfContentUriWasNotPassedAtLaunch()
570 Intent newIntent = getStartActivityTestIntent(NONE_PROVIDED_USE_HELPER_APP_URI_LOCATION_ID, in testActivityNewIntentCaller_checkContentUriPermission_returnsCorrectResultEvenIfCallerOfActivityGrantsAndDies() local
573 mContext.startActivity(newIntent); in testActivityNewIntentCaller_checkContentUriPermission_returnsCorrectResultEvenIfCallerOfActivityGrantsAndDies()
600 Intent newIntent = getUriInDataSendBroadcastTestIntent( in testActivityNewIntentCaller_checkContentUriPermission_getDataContentUriViaPermission_noPermission() local
603 mContext.startActivity(newIntent); in testActivityNewIntentCaller_checkContentUriPermission_getDataContentUriViaPermission_noPermission()
629 Intent newIntent = getUriInDataSendBroadcastTestIntent(CONTENT_URI_READ_PERMISSION, in testActivityNewIntentCaller_checkContentUriPermission_getDataContentUriViaPermission_hasRead() local
632 mContext.startActivity(newIntent); in testActivityNewIntentCaller_checkContentUriPermission_getDataContentUriViaPermission_hasRead()
[all …]
/cts/tests/fragment/src/android/fragment/cts/
DNewIntentActivity.java26 public final CountDownLatch newIntent = new CountDownLatch(1); field in NewIntentActivity
49 newIntent.countDown(); in onNewIntent()
DFragmentTransactionTest.java390 assertTrue(newIntentActivity.newIntent.await(1, TimeUnit.SECONDS)); in newIntentUnlocks()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/
DVpnTestActivity.java95 Intent newIntent = VpnService.prepare(this); in testVpnEstablishFails() local
96 if (newIntent != null) { in testVpnEstablishFails()
97 startActivityForResult(newIntent, REQUEST_VPN_CODE); in testVpnEstablishFails()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/bluetooth/
DBleScannerService.java188 Intent newIntent = new Intent(BLE_PRIVACY_NEW_MAC_RECEIVE); in onScanResult() local
189 sendBroadcast(newIntent); in onScanResult()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/capturecontentfornotes/
DCaptureContentForNotesVerifierActivity.java206 Intent intent = IntentDrivenTestActivity.newIntent(this, testId, title, in addTestsToAdapter()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/deskclock/
DDeskClockTestsActivity.java175 Intent intent = IntentDrivenTestActivity.newIntent(this, testId, title, in addTests()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/
DIntentDrivenTestActivity.java247 public static Intent newIntent(Context context, String testId, int titleResId, in newIntent() method in IntentDrivenTestActivity
/cts/tests/tests/content/src/android/content/cts/
DClipboardManagerTest.java139 ClipData intentData = ClipData.newIntent("IntentLabel", intent); in testSetPrimaryClip_intent()
/cts/tests/autofillservice/src/android/autofillservice/cts/unittests/
DDatasetTest.java368 ClipData clip = ClipData.newIntent("", new Intent()); in testBuilder_setContentWithIntentIsNotAllowed()
/cts/common/device-side/bedstead/remoteframeworkclasses/java/apis/
Dcurrent.txt10065 method public static android.content.ClipData newIntent(CharSequence, android.content.Intent);