Home
last modified time | relevance | path

Searched refs:launchIntent (Results 1 – 9 of 9) sorted by relevance

/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/
DPermissionsTest.java235 Intent launchIntent = new Intent(); in assertPermissionRequest() local
236 launchIntent.setComponent(new ComponentName(PERMISSION_APP_PACKAGE_NAME, in assertPermissionRequest()
238 launchIntent.putExtra(EXTRA_PERMISSION, PERMISSION_NAME); in assertPermissionRequest()
239 launchIntent.setAction(ACTION_REQUEST_PERMISSION); in assertPermissionRequest()
240 launchIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_MULTIPLE_TASK); in assertPermissionRequest()
241 mContext.startActivity(launchIntent); in assertPermissionRequest()
251 Intent launchIntent = new Intent(); in assertPermissionGrantState() local
252 launchIntent.setComponent(new ComponentName(PERMISSION_APP_PACKAGE_NAME, in assertPermissionGrantState()
254 launchIntent.putExtra(EXTRA_PERMISSION, PERMISSION_NAME); in assertPermissionGrantState()
255 launchIntent.setAction(ACTION_CHECK_HAS_PERMISSION); in assertPermissionGrantState()
[all …]
DAutofillActivity.java42 final Intent launchIntent = new Intent(); in onCreate() local
43 launchIntent.setComponent(new ComponentName(AUTOFILL_PACKAGE_NAME, AUTOFILL_ACTIVITY_NAME)); in onCreate()
44 startActivityForResult(launchIntent, 42); in onCreate()
DAutofillRestrictionsTest.java77 final Intent launchIntent = new Intent(); in launchActivityAndGetEnabled() local
78 launchIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); in launchActivityAndGetEnabled()
79 launchIntent.setClassName(AUTOFILL_PACKAGE_NAME, AUTOFILL_ACTIVITY_NAME); in launchActivityAndGetEnabled()
/cts/hostsidetests/services/activityandwindowmanager/activitymanager/app/src/android/server/cts/
DTestActivityWithSameAffinity.java52 Intent launchIntent = new Intent(); in onCreate() local
53 launchIntent.setComponent(ComponentName.unflattenFromString(launchActivityComponent)); in onCreate()
54 startActivity(launchIntent); in onCreate()
DPipActivity.java204 Intent launchIntent = new Intent(); in onCreate() local
205 launchIntent.setComponent(ComponentName.unflattenFromString(launchActivityComponent)); in onCreate()
206 startActivity(launchIntent); in onCreate()
/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/
DLockTaskTest.java231 Intent launchIntent = getIntentReceivingActivityIntent(0); in testStartActivity_withinTask() local
233 lockTaskUtility.putExtra(LockTaskUtilityActivity.START_ACTIVITY, launchIntent); in testStartActivity_withinTask()
253 Intent launchIntent = getIntentReceivingActivityIntent(0); in testStartActivity_outsideTaskWhitelisted() local
254 launchIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); in testStartActivity_outsideTaskWhitelisted()
255 mContext.startActivity(launchIntent); in testStartActivity_outsideTaskWhitelisted()
271 Intent launchIntent = getIntentReceivingActivityIntent(Intent.FLAG_ACTIVITY_NEW_TASK); in testStartActivity_outsideTaskNonWhitelisted() local
272 mContext.startActivity(launchIntent); in testStartActivity_outsideTaskNonWhitelisted()
/cts/tests/tests/widget/src/android/widget/cts/
DTabHostTest.java103 final Intent launchIntent = new Intent(Intent.ACTION_MAIN); in testSetup1() local
104 launchIntent.setClassName("android.widget.cts", CtsActivity.class.getName()); in testSetup1()
105 launchIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); in testSetup1()
106 final Activity activity = mInstrumentation.startActivitySync(launchIntent); in testSetup1()
137 final Intent launchIntent = new Intent(Intent.ACTION_MAIN); in testSetup2() local
138 launchIntent.setClassName("android.widget.cts", ActivityGroup.class.getName()); in testSetup2()
139 launchIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); in testSetup2()
141 (ActivityGroup) mInstrumentation.startActivitySync(launchIntent); in testSetup2()
/cts/hostsidetests/net/app/src/com/android/cts/net/hostside/
DAbstractRestrictBackgroundNetworkTestCase.java914 final Intent launchIntent = getIntentForComponent(type); in launchComponentAndAssertNetworkAccess() local
918 launchIntent.putExtras(extras); in launchComponentAndAssertNetworkAccess()
919 mContext.startActivity(launchIntent); in launchComponentAndAssertNetworkAccess()
938 final Intent launchIntent = getIntentForComponent(TYPE_COMPONENT_FOREGROUND_SERVICE); in startForegroundService() local
939 mContext.startForegroundService(launchIntent); in startForegroundService()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/
DByodHelperActivity.java353 Intent launchIntent = keyguardManager.createConfirmDeviceCredentialIntent(null, null); in onCreate() local
354 startActivity(launchIntent); in onCreate()