Home
last modified time | relevance | path

Searched refs:setComponent (Results 1 – 25 of 171) sorted by relevance

1234567

/cts/tests/framework/base/windowmanager/backgroundactivity/src/android/server/wm/
DBackgroundActivityLaunchTest.java146 intent.setComponent(APP_A_START_ACTIVITY_RECEIVER); in testBackgroundActivityBlocked()
179 firstIntent.setComponent(APP_A_FOREGROUND_ACTIVITY); in testBackgroundActivityNotBlockedWithinGracePeriod()
188 secondIntent.setComponent(APP_A_START_ACTIVITY_RECEIVER); in testBackgroundActivityNotBlockedWithinGracePeriod()
204 intent.setComponent(APP_A_START_ACTIVITY_RECEIVER); in testBackgroundActivityNotBlockedWhenSystemAlertWindowGranted()
214 intent.setComponent(APP_A_FOREGROUND_ACTIVITY); in testBackgroundActivityNotBlockedWhenForegroundActivityExists()
223 intent.setComponent(APP_A_START_ACTIVITY_RECEIVER); in testBackgroundActivityNotBlockedWhenForegroundActivityExists()
236 intent.setComponent(APP_A_FOREGROUND_ACTIVITY); in testActivityNotBlockedWhenForegroundActivityLaunch()
251 intent.setComponent(APP_A_FOREGROUND_ACTIVITY); in testActivityBroughtToTopOfTaskWhenLaunchedInTheBackground()
276 intent.setComponent(APP_A_FOREGROUND_ACTIVITY); in testActivityBlockedWhenLaunchedAfterHomePress()
303 .setComponent(APP_A_FOREGROUND_ACTIVITY) in testActivityNotBlockedFromBgActivityInFgTask()
[all …]
/cts/hostsidetests/content/test-apps/ContextCrossProfileApps/ContextCrossProfileApp/src/com/android/cts/context/
DContextCrossProfileDeviceTest.java92 bindIntent.setComponent(TEST_SERVICE_IN_DIFFERENT_PKG_COMPONENT_NAME); in testBindServiceAsUser_differentUser_bindsServiceToCorrectUser()
112 bindIntent.setComponent(TEST_SERVICE_IN_SAME_PKG_COMPONENT_NAME); in testBindServiceAsUser_sameProfileGroup_samePackage_withAcrossUsersPermission_bindsService()
128 bindIntent.setComponent(TEST_SERVICE_IN_DIFFERENT_PKG_COMPONENT_NAME); in testBindServiceAsUser_sameProfileGroup_differentPackage_withAcrossUsersPermission_bindsService()
149 bindIntent.setComponent(TEST_SERVICE_IN_SAME_PKG_COMPONENT_NAME); in testBindServiceAsUser_sameProfileGroup_samePackage_withAcrossProfilesPermission_bindsService()
165 bindIntent.setComponent(TEST_SERVICE_IN_DIFFERENT_PKG_COMPONENT_NAME); in testBindServiceAsUser_sameProfileGroup_differentPackage_withAcrossProfilesPermission_throwsException()
190 bindIntent.setComponent(TEST_SERVICE_IN_SAME_PKG_COMPONENT_NAME); in testBindServiceAsUser_sameProfileGroup_samePackage_withAcrossProfilesAppOp_bindsService()
210 bindIntent.setComponent(TEST_SERVICE_IN_DIFFERENT_PKG_COMPONENT_NAME); in testBindServiceAsUser_sameProfileGroup_differentPackage_withAcrossProfilesAppOp_throwsException()
232 bindIntent.setComponent(TEST_SERVICE_IN_SAME_PKG_COMPONENT_NAME); in testBindServiceAsUser_differentProfileGroup_withInteractAcrossUsersPermission_throwsException()
253 bindIntent.setComponent(TEST_SERVICE_IN_SAME_PKG_COMPONENT_NAME); in testBindServiceAsUser_differentProfileGroup_withInteractAcrossProfilesPermission_throwsException()
278 bindIntent.setComponent(TEST_SERVICE_IN_SAME_PKG_COMPONENT_NAME); in testBindServiceAsUser_differentProfileGroup_withInteractAcrossProfilesAppOp_throwsException()
[all …]
/cts/hostsidetests/devicepolicy/app/CrossProfileTestApps/CrossProfileAppsTest/src/com/android/cts/crossprofileappstest/
DCrossProfileAppsStartActivityTest.java107 intent.setComponent(MainActivity.getComponentName(mContext)); in testCannotStartActivityByIntentWithNoPermissions()
116 intent.setComponent(MainActivity.getComponentName(mContext)); in testCanStartActivityByIntentWithInteractAcrossProfilesPermission()
136 intent.setComponent(MainActivity.getComponentName(mContext)); in testCanStartActivityByIntentWithInteractAcrossUsersPermission()
156 intent.setComponent(MainActivity.getComponentName(mContext)); in testCanStartActivityByIntentWithInteractAcrossUsersFullPermission()
188 mainActivityIntent.setComponent(MainActivity.getComponentName(mContext)); in testCanStartMainActivityByIntent()
210 mainActivityIntent.setComponent(MainActivity.getComponentName(mContext)); in testCanStartMainActivityByIntent_withOptionsBundle()
236 nonMainActivityIntent.setComponent(NonMainActivity.getComponentName(mContext)); in testCanStartNonMainActivityByIntent()
264 crossProfileSameTaskCheckerIntent.setComponent( in testStartActivityIntent_sameTaskByDefault()
285 .setComponent(CrossProfileResultCheckerActivity.buildComponentName(mContext)) in testStartActivityIntent_crossProfile_returnsResult()
305 nonMainActivityIntent.setComponent(NonMainActivity.getComponentName(mContext)); in testStartActivityByIntent_noAsserts()
[all …]
/cts/tests/tests/appcomponentfactory/src/android/app/componentfactory/cts/
DAppComponentFactoryTest.java42 .setComponent(new ComponentName(mContext.getPackageName(), in testActivity()
50 .setComponent(new ComponentName(mContext.getPackageName(), in testReceiver()
57 .setComponent(new ComponentName(mContext.getPackageName(), in testService()
/cts/tests/tests/externalservice/src/android/externalservice/cts/
DExternalServiceTest.java57 intent.setComponent(new ComponentName(sServicePackage, sServicePackage+".IsolatedService")); in testFailBindIsolated()
68 intent.setComponent(new ComponentName(sServicePackage, sServicePackage+".IsolatedService")); in testFailBindExternalIsolated()
81 intent.setComponent(new ComponentName(sServicePackage, sServicePackage+".ExportedService")); in testFailBindExternalExported()
93 intent.setComponent( in testFailBindExternalNonExported()
106 intent.setComponent( in testFailBindExternalNonIsolated()
119 intent.setComponent(new ComponentName(sServicePackage, sServicePackage+".ExternalService")); in testFailBindWithoutBindExternal()
131 intent.setComponent(new ComponentName(sServicePackage, sServicePackage+".ExternalService")); in testBindExternalService()
159 intent.setComponent(new ComponentName(sServicePackage, sServicePackage+".ServiceCreator")); in testBindExternalServiceWithRunningOwn()
207 intent.setComponent(new ComponentName(sServicePackage, sServicePackage+".ExternalService")); in testBindExternalServiceWithRunningOwn()
254 intent.setComponent(new ComponentName(sServicePackage, sServicePackage+".ExternalService")); in testBindExternalAboveClient()
[all …]
/cts/tests/tests/shortcutmanager/src/android/content/pm/cts/shortcutmanager/
DShortcutManagerStartShortcutTest.java102 .setComponent(mLaunchedActivity) in testStartSingle()
131 .setComponent(mLaunchedActivity) in testStartMultiple()
135 .setComponent(mLaunchedActivity) in testStartMultiple()
138 .setComponent(mLaunchedActivity) in testStartMultiple()
210 .setComponent(mLaunchedActivity) in testShortcutWrongId()
330 .setComponent(new ComponentName("abc", "def")); in testNonExistent()
353 .setComponent(new ComponentName( in testUnExported()
/cts/tests/framework/base/windowmanager/backgroundactivity/AppA/src/android/server/wm/backgroundactivity/appa/
DSendPendingIntentReceiver.java54 newIntent.setComponent(APP_A_START_ACTIVITY_RECEIVER); in onReceive()
62 newIntent.setComponent(APP_A_BACKGROUND_ACTIVITY); in onReceive()
70 intent.setComponent(APP_B_START_PENDING_INTENT_RECEIVER); in onReceive()
/cts/tests/framework/base/windowmanager/src/android/server/wm/
DStartActivityTests.java224 final Intent intent = new Intent().setComponent(TEST_ACTIVITY); in testStartActivityByNavigateUpToFromDiffUid()
254 new Intent().setComponent(NO_RELAUNCH_ACTIVITY) in testStartActivitiesInNewAndSameTask()
256 new Intent().setComponent(LAUNCHING_ACTIVITY) }); in testStartActivitiesInNewAndSameTask()
315 new Intent().setComponent(SECOND_ACTIVITY) in testStartActivitiesWithDiffUidNotInSameTask()
317 new Intent().setComponent(LAUNCHING_ACTIVITY) }); in testStartActivitiesWithDiffUidNotInSameTask()
345 final Intent taskOverlay = new Intent().setComponent(SECOND_ACTIVITY); in testStartActivitiesTaskOverlayStayOnTop()
351 final Intent behindOverlay = new Intent().setComponent(TEST_ACTIVITY); in testStartActivitiesTaskOverlayStayOnTop()
DMultiDisplayPrivateDisplayTests.java113 final Intent intent = new Intent(Intent.ACTION_VIEW).setComponent(TEST_ACTIVITY); in testCantAccessPrivateDisplay()
131 .setComponent(TEST_ACTIVITY); in testCanAccessPrivateDisplayWithInternalPermission()
DActivityTransitionTests.java139 final Intent intent = new Intent().setComponent(TEST_ACTIVITY) in testTaskTransitionDurationNoShortenAsExpected()
180 final Intent intent = new Intent().setComponent(TEST_ACTIVITY) in testTaskTransitionOverrideDisabled()
221 final Intent intent = new Intent().setComponent(TEST_ACTIVITY) in testTaskTransitionOverride()
/cts/tests/tests/voiceinteraction/src/android/voiceinteraction/cts/
DTestVoiceInteractionServiceActivity.java33 serviceIntent.setComponent(new ComponentName(this, in triggerHotwordDetectionServiceTest()
36 serviceIntent.setComponent(new ComponentName(this, in triggerHotwordDetectionServiceTest()
/cts/tests/app/app/src/android/app/stubs/
DCommandReceiver.java181 bindIntent.setComponent(new ComponentName(targetPackage, serviceName)); in doBindService()
197 fgsIntent.setComponent(new ComponentName(targetPackage, FG_SERVICE_NAME)); in doStartForegroundService()
212 fgsIntent.setComponent(new ComponentName(targetPackage, FG_SERVICE_NAME)); in doStartService()
220 fgsIntent.setComponent(new ComponentName(targetPackage, FG_LOCATION_SERVICE_NAME)); in doStartForegroundServiceWithType()
235 fgsIntent.setComponent(new ComponentName(targetPackage, FG_STICKY_SERVICE_NAME)); in doStartForegroundServiceSticky()
250 fgsIntent.setComponent(new ComponentName(targetPackage, serviceName)); in doStopService()
276 activityIntent.setComponent(new ComponentName(targetPackage, ACTIVITY_NAME)); in doStartActivity()
291 final Intent intent = new Intent().setComponent( in doCreateFgslPendingIntent()
412 intent.setComponent(new ComponentName(sourcePackage, "android.app.stubs.CommandReceiver")); in makeIntent()
/cts/hostsidetests/appsecurity/test-apps/IsolatedSplitApp/src/com/android/cts/isolatedsplitapp/
DSplitAppTest.java101 new Intent().setComponent(BASE_ACTIVITY)); in shouldLoadDefault()
123 new Intent().setComponent(BASE_ACTIVITY)); in shouldLoadPolishLocale()
144 new Intent().setComponent(FEATURE_A_ACTIVITY)); in shouldLoadFeatureADefault()
169 new Intent().setComponent(FEATURE_A_ACTIVITY)); in shouldLoadFeatureAPolishLocale()
205 new Intent().setComponent(FEATURE_B_ACTIVITY)); in shouldLoadFeatureBDefault()
233 new Intent().setComponent(FEATURE_B_ACTIVITY)); in shouldLoadFeatureBPolishLocale()
271 new Intent().setComponent(FEATURE_C_ACTIVITY)); in shouldLoadFeatureCDefault()
296 new Intent().setComponent(FEATURE_C_ACTIVITY)); in shouldLoadFeatureCPolishLocale()
320 new Intent().setComponent(FEATURE_A_ACTIVITY)); in shouldLoadFeatureADiffRevision()
401 mActivityRule.launchActivity(new Intent().setComponent(activity)); in assertActivityDoNotExist()
/cts/hostsidetests/appsecurity/test-apps/SessionInspector/src/com/android/cts/sessioninspector/
DSessionInspectorTest.java72 Bundle result = sendCommand(new Intent(ACTION_CREATE_SESSION).setComponent( in createSession()
80 PackageInstaller.EXTRA_SESSION_ID, session).setComponent( in getSessionInfo()
87 sessionId).setComponent(new ComponentName(packageName, ACTIVITY_NAME))); in abandonSession()
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/
DDelegatedCertInstallerTest.java265 intent.setComponent(CERT_INSTALLER_COMPONENT); in installCaCert()
274 intent.setComponent(CERT_INSTALLER_COMPONENT); in removeCaCert()
283 intent.setComponent(CERT_INSTALLER_COMPONENT); in verifyCaCert()
315 intent.setComponent(CERT_INSTALLER_COMPONENT); in installKeyPair()
326 intent.setComponent(CERT_INSTALLER_COMPONENT); in readEnrollmentId()
/cts/hostsidetests/classloaders/splits/apps/src/com/android/cts/classloadersplitapp/
DSplitAppTest.java97 new Intent().setComponent(FEATURE_A_ACTIVITY)); in testFeatureAClassLoader()
112 new Intent().setComponent(FEATURE_B_ACTIVITY)); in testFeatureBClassLoader()
172 intent.setComponent(componentName); in getService()
/cts/common/device-side/bedstead/testapp/src/main/library/java/com/android/bedstead/testapp/
DTestAppActivityReference.java67 intent.setComponent(mComponent.componentName()); in start()
89 intent.setComponent(mComponent.componentName()); in start()
/cts/tests/tests/appop/src/android/app/appops/cts/
DForegroundModeTest.kt100 val serviceIntent = Intent().setComponent(ComponentName(TEST_SERVICE_PKG, in <lambda>()
122 context.startActivity(Intent().setComponent( in <lambda>()
150 startingContext.startForegroundService(Intent().setComponent( in <lambda>()
157 startingContext.startForegroundService(Intent().setComponent( in <lambda>()
/cts/hostsidetests/appsecurity/test-apps/EphemeralTestApp/EphemeralApp1/src/com/android/cts/ephemeralapp1/
DStartForResultActivity.java27 startActivityForResult(getIntent().setFlags(0).setComponent(null), 100 /* requestCode */); in onCreate()
DClientTest.java291 queryIntent.setComponent( in testQuery()
348 queryIntent.setComponent( in testQuery()
426 startNormalIntent.setComponent(new ComponentName( in testStartNormal()
479 startNormalIntent.setComponent(new ComponentName( in testStartNormal()
551 startExposedIntent.setComponent(new ComponentName( in testStartExposed03()
589 startExposedIntent.setComponent(new ComponentName( in testStartExposed05()
624 startExposedIntent.setComponent(new ComponentName( in testStartExposed07()
674 startExposedIntent.setComponent(new ComponentName( in testStartExposed09()
736 context.startActivity(startExposedIntent.setComponent( in testStartExposed11()
793 startEphemeralIntent.setComponent( in testStartEphemeral()
[all …]
/cts/tests/AlarmManager/src/android/alarmmanager/cts/
DBackgroundRestrictedAlarmsTest.java99 setAlarmIntent.setComponent(mAlarmScheduler); in scheduleAlarm()
110 setAlarmClockIntent.setComponent(mAlarmScheduler); in scheduleAlarmClock()
157 cancelAlarmsIntent.setComponent(mAlarmScheduler); in tearDown()
/cts/tests/tests/wifi/src/android/net/wifi/cts/
DWaitForResultActivity.java55 .setComponent(componentName); in startActivityToWaitForResult()
116 .setComponent(new ComponentName(WIFI_LOCATION_TEST_APP_PACKAGE_NAME, in startServiceToWaitForResult()
/cts/tests/tests/content/src/android/content/cts/
DReadableUriExtraToClipDataTest.java84 intent.setComponent(new ComponentName(getContext(), ReadableFileReceiverActivity.class)); in testUriExtraStreamMigratedToClipData_sendIntent()
96 intent.setComponent(new ComponentName(getContext(), ReadableFileReceiverActivity.class)); in testUriExtraStreamMigratedToClipData_sendMultipleIntent()
/cts/tests/framework/base/windowmanager/app/src/android/server/wm/app/
DLaunchTestOnDestroyActivity.java37 intent.setComponent(TEST_ACTIVITY); in onDestroy()
/cts/tests/JobScheduler/src/android/jobscheduler/cts/
DTestAppInterface.java79 cancelJobsIntent.setComponent(new ComponentName(TEST_APP_PACKAGE, TEST_APP_RECEIVER)); in cleanup()
106 scheduleJobIntent.setComponent(new ComponentName(TEST_APP_PACKAGE, TEST_APP_RECEIVER)); in scheduleJob()
129 testActivity.setComponent(testComponentName); in startAndKeepTestActivity()

1234567