Home
last modified time | relevance | path

Searched refs:launchIntent (Results 1 – 18 of 18) 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.java282 Intent launchIntent = new Intent(); in onCreate() local
283 launchIntent.setComponent(ComponentName.unflattenFromString(launchActivityComponent)); in onCreate()
284 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()
DContentCaptureActivity.java54 final Intent launchIntent = new Intent(); in onCreate() local
55 launchIntent.setComponent( in onCreate()
57 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()
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/tests/framework/base/preferenceservice/src/android.service.settings.preferences/
DSettingsPreferenceMetadataTest.kt73 assertThat(launchIntent!!).isEqualTo(intent) in buildMetadata_allFieldsSet()
106 assertThat(launchIntent!!).isEqualTo(intent) in buildMetadata_deeplinkSensitivity_allFieldsSet()
118 assertThat(md.launchIntent).isNull() in buildMetadata_excludedSensitivity_nullLaunchIntent()
141 assertThat(launchIntent!!.toUri(0)).isEqualTo(intent.toUri(0)) in buildMetadata_fromParcelable()
/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/hostsidetests/network-policy/app/src/com/android/cts/netpolicy/hostside/
DAbstractRestrictBackgroundNetworkTestCase.java925 final Intent launchIntent = getIntentForComponent(TYPE_COMPONENT_ACTIVTIY); in launchActivity() local
927 launchIntent.putExtra(Intent.EXTRA_REMOTE_CALLBACK, callback); in launchActivity()
928 mContext.startActivity(launchIntent); in launchActivity()
950 final Intent launchIntent = getIntentForComponent(type); in launchComponentAndAssertNetworkAccess() local
957 launchIntent.putExtras(extras); in launchComponentAndAssertNetworkAccess()
958 mContext.startActivity(launchIntent); in launchComponentAndAssertNetworkAccess()
1025 final Intent launchIntent = getIntentForComponent(TYPE_COMPONENT_ACTIVTIY); in startActivity() local
1026 mContext.startActivity(launchIntent); in startActivity()
1030 final Intent launchIntent = getIntentForComponent(TYPE_COMPONENT_FOREGROUND_SERVICE); in startForegroundService() local
1031 mContext.startForegroundService(launchIntent); in startForegroundService()
/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.java383 Intent launchIntent = keyguardManager.createConfirmDeviceCredentialIntent(null, null); in onCreate() local
384 if (launchIntent != null) { in onCreate()
385 startActivity(launchIntent); in onCreate()