Home
last modified time | relevance | path

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

/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/
DPermissionsTest.java300 Intent launchIntent = new Intent(); in assertPermissionRequest() local
301 launchIntent.setComponent(new ComponentName(PERMISSION_APP_PACKAGE_NAME, in assertPermissionRequest()
303 launchIntent.putExtra(EXTRA_PERMISSION, permission); in assertPermissionRequest()
304 launchIntent.setAction(ACTION_REQUEST_PERMISSION); in assertPermissionRequest()
305 launchIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_MULTIPLE_TASK); in assertPermissionRequest()
306 mContext.startActivity(launchIntent); in assertPermissionRequest()
316 Intent launchIntent = new Intent(); in assertPermissionGrantState() local
317 launchIntent.setComponent(new ComponentName(PERMISSION_APP_PACKAGE_NAME, in assertPermissionGrantState()
319 launchIntent.putExtra(EXTRA_PERMISSION, PERMISSION_NAME); in assertPermissionGrantState()
320 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()
DContentSuggestionsActivity.java44 final Intent launchIntent = new Intent(); in onCreate() local
45 launchIntent.setComponent(new ComponentName( in onCreate()
47 startActivityForResult(launchIntent, 42); in onCreate()
DContentCaptureRestrictionsTest.java60 final Intent launchIntent = new Intent(); in testDisallowContentCapture_allowed() local
61 launchIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); in testDisallowContentCapture_allowed()
62 launchIntent.setClassName(CONTENT_CAPTURE_PACKAGE_NAME, CONTENT_CAPTURE_ACTIVITY_NAME); in testDisallowContentCapture_allowed()
DContentSuggestionsRestrictionsTest.java76 final Intent launchIntent = new Intent(); in launchActivityAndGetEnabled() local
77 launchIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); in launchActivityAndGetEnabled()
78 launchIntent.setClassName( in launchActivityAndGetEnabled()
DContentCaptureActivity.java53 final Intent launchIntent = new Intent(); in onCreate() local
54 launchIntent.setComponent( in onCreate()
56 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()
DLockTaskTest.java264 Intent launchIntent = createReceiverActivityIntent(true /*newTask*/, true /*shouldWait*/); in testUpdateWhitelisting_twoTasks() local
265 mContext.startActivity(launchIntent); in testUpdateWhitelisting_twoTasks()
293 Intent launchIntent = createReceiverActivityIntent(false /*newTask*/, false /*shouldWait*/); in testStartActivity_withinTask() local
295 lockTaskUtility.putExtra(LockTaskUtilityActivity.START_ACTIVITY, launchIntent); in testStartActivity_withinTask()
314 Intent launchIntent = createReceiverActivityIntent(true /*newTask*/, false /*shouldWait*/); in testStartActivity_outsideTaskWhitelisted() local
315 mContext.startActivity(launchIntent); in testStartActivity_outsideTaskWhitelisted()
330 Intent launchIntent = createReceiverActivityIntent(true /*newTask*/, false /*shouldWait*/); in testStartActivity_outsideTaskNonWhitelisted() local
331 mContext.startActivity(launchIntent); in testStartActivity_outsideTaskNonWhitelisted()
DMeteredDataRestrictionTest.java110 final Intent launchIntent = new Intent() in verifyAppNetworkState() local
114 mContext.startActivity(launchIntent); in verifyAppNetworkState()
/cts/tests/framework/base/windowmanager/app/src/android/server/wm/app/
DAssistantActivity.java46 final Intent launchIntent = new Intent(); in onCreate() local
47 launchIntent.setComponent(launchActivity) in onCreate()
53 startActivity(launchIntent, displayOptions.toBundle()); in onCreate()
55 startActivity(launchIntent); in onCreate()
DTestActivityWithSameAffinity.java45 Intent launchIntent = new Intent(); in onCreate() local
46 launchIntent.setComponent(ComponentName.unflattenFromString(launchActivityComponent)); in onCreate()
47 startActivity(launchIntent); in onCreate()
DPipActivity.java176 Intent launchIntent = new Intent(); in onCreate() local
177 launchIntent.setComponent(ComponentName.unflattenFromString(launchActivityComponent)); in onCreate()
178 startActivity(launchIntent); in onCreate()
/cts/tests/framework/base/windowmanager/src/android/server/wm/intent/
DLaunchSequence.java174 public ConsecutiveLaunch(LaunchSequence previous, LaunchIntent launchIntent, in ConsecutiveLaunch() argument
177 mLaunchIntent = launchIntent; in ConsecutiveLaunch()
222 public RootLaunch(LaunchIntent launchIntent) { in RootLaunch() argument
223 mLaunchIntent = launchIntent; in RootLaunch()
/cts/tests/tests/widget/src/android/widget/cts/
DTabHostTest.java105 final Intent launchIntent = new Intent(Intent.ACTION_MAIN); in testSetup1() local
106 launchIntent.setClassName("android.widget.cts", CtsActivity.class.getName()); in testSetup1()
107 launchIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); in testSetup1()
108 final Activity activity = mInstrumentation.startActivitySync(launchIntent); in testSetup1()
139 final Intent launchIntent = new Intent(Intent.ACTION_MAIN); in testSetup2() local
140 launchIntent.setClassName("android.widget.cts", ActivityGroup.class.getName()); in testSetup2()
141 launchIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); in testSetup2()
143 (ActivityGroup) mInstrumentation.startActivitySync(launchIntent); in testSetup2()
/cts/tests/framework/base/windowmanager/util/src/android/server/wm/
DActivityLauncher.java234 final Intent launchIntent = new Intent(Intent.ACTION_VIEW).setComponent(componentName); in checkActivityStartOnDisplay() local
237 .isActivityStartAllowedOnDisplay(context, displayId, launchIntent); in checkActivityStartOnDisplay()
/cts/hostsidetests/net/app/src/com/android/cts/net/hostside/
DAbstractRestrictBackgroundNetworkTestCase.java751 final Intent launchIntent = getIntentForComponent(type); in launchComponentAndAssertNetworkAccess() local
755 launchIntent.putExtras(extras); in launchComponentAndAssertNetworkAccess()
756 mContext.startActivity(launchIntent); in launchComponentAndAssertNetworkAccess()
775 final Intent launchIntent = getIntentForComponent(TYPE_COMPONENT_FOREGROUND_SERVICE); in startForegroundService() local
776 mContext.startForegroundService(launchIntent); in startForegroundService()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/
DByodHelperActivity.java377 Intent launchIntent = keyguardManager.createConfirmDeviceCredentialIntent(null, null); in onCreate() local
378 if (launchIntent != null) { in onCreate()
379 startActivity(launchIntent); in onCreate()