Home
last modified time | relevance | path

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

/cts/tests/framework/base/windowmanager/app/src/android/server/wm/app/
DTestActivityWithSameAffinity.java45 Intent launchIntent = new Intent(); in onCreate() local
46 launchIntent.setComponent(ComponentName.unflattenFromString(launchActivityComponent)); in onCreate()
47 startActivity(launchIntent); in onCreate()
DAssistantActivity.java49 final Intent launchIntent = new Intent(); in onCreate() local
50 launchIntent.setComponent(launchActivity) in onCreate()
56 startActivity(launchIntent, displayOptions.toBundle()); in onCreate()
58 startActivity(launchIntent); in onCreate()
DPipActivity.java281 Intent launchIntent = new Intent(); in onCreate() local
282 launchIntent.setComponent(ComponentName.unflattenFromString(launchActivityComponent)); in onCreate()
283 startActivity(launchIntent); in onCreate()
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/
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()
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()
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()
DContentCaptureActivity.java54 final Intent launchIntent = new Intent(); in onCreate() local
55 launchIntent.setComponent( in onCreate()
57 startActivityForResult(launchIntent, 42); in onCreate()
DMeteredDataRestrictionTest.java119 final Intent launchIntent = new Intent() in verifyAppNetworkState() local
123 mContext.startActivity(launchIntent); in verifyAppNetworkState()
/cts/hostsidetests/packagemanager/extractnativelibs/apps/app_no_extract/src/com/android/cts/extractnativelibs/app/noextract/
DExtractNativeLibsFalseDeviceTest.java67 Intent launchIntent = mContext.getPackageManager().getLaunchIntentForPackage( in launchActivity() local
69 Assert.assertNotNull(launchIntent); in launchActivity()
70 mContext.startActivity(launchIntent); in launchActivity()
/cts/hostsidetests/packagemanager/extractnativelibs/apps/app_extract/src/com/android/cts/extractnativelibs/app/extract/
DExtractNativeLibsTrueDeviceTest.java74 Intent launchIntent = mContext.getPackageManager().getLaunchIntentForPackage( in launchActivity() local
76 Assert.assertNotNull(launchIntent); in launchActivity()
77 mContext.startActivity(launchIntent); in launchActivity()
/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/hostsidetests/devicepolicy/app/common/src/com/android/cts/devicepolicy/
DPermissionUtils.java131 Intent launchIntent = new Intent(); in launchActivityWithAction() local
132 launchIntent.setComponent(new ComponentName(packageName, activityName)); in launchActivityWithAction()
133 launchIntent.putExtra(EXTRA_PERMISSION, permission); in launchActivityWithAction()
134 launchIntent.setAction(action); in launchActivityWithAction()
135 launchIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_MULTIPLE_TASK); in launchActivityWithAction()
136 Log.d(LOG_TAG, "Launching activity (with intent " + launchIntent + ") for permission " in launchActivityWithAction()
138 getContext().startActivity(launchIntent); in launchActivityWithAction()
/cts/tests/tests/widget/src/android/widget/cts/
DTabHostTest.java115 final Intent launchIntent = new Intent(Intent.ACTION_MAIN); in testSetup1() local
116 launchIntent.setClassName("android.widget.cts", CtsActivity.class.getName()); in testSetup1()
117 launchIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); in testSetup1()
118 final Activity activity = mInstrumentation.startActivitySync(launchIntent); in testSetup1()
149 final Intent launchIntent = new Intent(Intent.ACTION_MAIN); in testSetup2() local
150 launchIntent.setClassName("android.widget.cts", ActivityGroup.class.getName()); in testSetup2()
151 launchIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); in testSetup2()
153 (ActivityGroup) mInstrumentation.startActivitySync(launchIntent); in testSetup2()
/cts/tests/tests/content/src/android/content/pm/cts/
DResourcesHardeningTest.java356 final Intent launchIntent = new Intent(Intent.ACTION_MAIN); in start() local
357 launchIntent.setClassName(TestUtils.TEST_APP_PACKAGE, TestUtils.TEST_ACTIVITY_NAME); in start()
358 launchIntent.putExtra(TestUtils.TEST_NAME_EXTRA_KEY, mTestName); in start()
359 launchIntent.putExtra(TestUtils.TEST_ASSERT_SUCCESS_EXTRA_KEY, assertSuccess); in start()
360 launchIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK in start()
363 getContext().startActivity(launchIntent); in start()
/cts/tests/framework/base/windowmanager/util/src/android/server/wm/
DActivityLauncher.java285 final Intent launchIntent = new Intent(Intent.ACTION_VIEW).setComponent(componentName); in checkActivityStartOnDisplay() local
288 .isActivityStartAllowedOnDisplay(context, displayId, launchIntent); in checkActivityStartOnDisplay()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/
DByodHelperActivity.java373 Intent launchIntent = keyguardManager.createConfirmDeviceCredentialIntent(null, null); in onCreate() local
374 if (launchIntent != null) { in onCreate()
375 startActivity(launchIntent); in onCreate()