Home
last modified time | relevance | path

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

1234567891011

/cts/tests/tests/externalservice/src/android/externalservice/cts/
DPackagePrivateIsolatedServiceTest.java94 intent.setComponent(new ComponentName(sServicePackage, in testBasicConnection()
121 intent.setComponent( in testBindExportedServiceSharedProcessNotAllowed()
150 intent.setComponent(new ComponentName(sServicePackage, in testBindMultipleExportedServiceS()
173 intent.setComponent( in testBindMultipleExportedServiceS()
209 intent.setComponent( in testFailBindDefaultProcessService()
230 intent.setComponent( in testFailBindExportedNonIsolated()
252 intent.setComponent( in testFailBindNonDefaultProcessExportedNonIsolated()
274 intent.setComponent(new ComponentName(sServicePackage, in testFailBindPlainIsolatedService()
299 intent.setComponent(new ComponentName(sServicePackage, in testFailBindNonDefaultProcessIsolatedService()
323 intent.setComponent( in testFailBindPlainExternalIsolatedService()
[all …]
DExternalServiceTest.java55 intent.setComponent(new ComponentName(sServicePackage, sServicePackage+".IsolatedService")); in testFailBindIsolated()
66 intent.setComponent(new ComponentName(sServicePackage, sServicePackage+".IsolatedService")); in testFailBindExternalIsolated()
79 intent.setComponent(new ComponentName(sServicePackage, sServicePackage+".ExportedService")); in testFailBindExternalExported()
91 intent.setComponent( in testFailBindExternalNonExported()
104 intent.setComponent( in testFailBindExternalNonIsolated()
117 intent.setComponent(new ComponentName(sServicePackage, sServicePackage+".ExternalService")); in testFailBindWithoutBindExternal()
129 intent.setComponent(new ComponentName(sServicePackage, sServicePackage+".ExternalService")); in testBindExternalService()
157 intent.setComponent(new ComponentName(sServicePackage, sServicePackage+".ServiceCreator")); in testBindExternalServiceWithRunningOwn()
205 intent.setComponent(new ComponentName(sServicePackage, sServicePackage+".ExternalService")); in testBindExternalServiceWithRunningOwn()
252 intent.setComponent(new ComponentName(sServicePackage, sServicePackage+".ExternalService")); in testBindExternalAboveClient()
[all …]
DSharedIsolatedServiceTest.java49 intent.setComponent(new ComponentName(sServicePackage, in testBasicConnection()
69 intent.setComponent(new ComponentName(sServicePackage, in testSharedIsolatedProcessNotAllowed()
86 intent.setComponent(new ComponentName(sServicePackage, in testMultipleServicesWithSingleInstance()
106 intent.setComponent(new ComponentName(sServicePackage, in testMultipleServicesWithSingleInstance()
133 intent.setComponent(new ComponentName(sServicePackage, in testMultipleServicesWithMultiInstance()
153 intent.setComponent(new ComponentName(sServicePackage, in testMultipleServicesWithMultiInstance()
/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()
231 bindIntent.setComponent(TEST_SERVICE_IN_SAME_PKG_COMPONENT_NAME); in testBindServiceAsUser_differentProfileGroup_samePackage_withAcrossUsersPermission_bindsService()
248 bindIntent.setComponent(TEST_SERVICE_IN_DIFFERENT_PKG_COMPONENT_NAME); in testBindServiceAsUser_differentProfileGroup_differentPackage_withAcrossUsersPermission_throwsException()
269 bindIntent.setComponent(TEST_SERVICE_IN_SAME_PKG_COMPONENT_NAME); in testBindServiceAsUser_differentProfileGroup_withInteractAcrossProfilesPermission_throwsException()
[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/hostsidetests/securitybulletin/test-apps/CVE-2021-0921/src/android/security/cts/CVE_2021_0921/
DTrigger.java51 intent.setComponent(new ComponentName(pkg, pkg + ".accounts.AddAccountActivity")); in accountSettings()
54 … intent.setComponent(new ComponentName(pkg, pkg + ".accounts.AddAccountWithTypeActivity")); in accountSettings()
57 intent.setComponent(new ComponentName(pkg, pkg + ".accounts.SetupAccountReceiver")); in accountSettings()
59 intent.setComponent(new ComponentName(pkg, pkg + ".accounts.AddAccountSettings")); in accountSettings()
/cts/tests/app/FgsTimeoutTest/src/android/app/cts/fgstimeouttest/
DFgsTimeoutTest.java136 sContext.stopService(new Intent().setComponent(FGS0)); in testTimeout()
172 sContext.stopService(new Intent().setComponent(FGS0)); in testTimeout_startService()
208 sContext.stopService(new Intent().setComponent(FGS2)); in testTimeout_withParallelNormalFgs()
212 sContext.stopService(new Intent().setComponent(FGS1)); in testTimeout_withParallelNormalFgs()
240 sContext.stopService(new Intent().setComponent(FGS0)); in testTimeout_withParallelTimeRestrictedFgs()
257 sContext.stopService(new Intent().setComponent(FGS1)); in testTimeout_withParallelTimeRestrictedFgs()
310 sContext.stopService(new Intent().setComponent(FGS0)); in testStop_stopService()
367 sContext.stopService(new Intent().setComponent(FGS0)); in testStartService_fromTimeRestrictedFgs()
371 sContext.stopService(new Intent().setComponent(FGS1)); in testStartService_fromTimeRestrictedFgs()
424 sContext.stopService(new Intent().setComponent(FGS0)); in testTypeChange_fromTimeRestrictedToNormal()
[all …]
/cts/tests/app/PendingIntentApi33/src/android/app/cts/pendingintentapi33/
DPendingIntentApi33Test.java54 intent.setComponent(null); in testGetActivity()
86 intents[i].setComponent(null); in testGetActivities()
114 intent.setComponent(null); in testGetBroadcast()
141 intent.setComponent(null); in testGetService()
171 intent.setComponent(null); in testCreatePendingResult()
/cts/tests/tests/shortcutmanager/src/android/content/pm/cts/shortcutmanager/
DShortcutManagerStartShortcutTest.java104 .setComponent(mLaunchedActivity) in testStartSingle()
133 .setComponent(mLaunchedActivity) in testStartMultiple()
137 .setComponent(mLaunchedActivity) in testStartMultiple()
140 .setComponent(mLaunchedActivity) in testStartMultiple()
214 .setComponent(mLaunchedActivity) in testShortcutWrongId()
334 .setComponent(new ComponentName("abc", "def")); in testNonExistent()
357 .setComponent(new ComponentName( in testUnExported()
/cts/tests/devicepolicy/src/android/devicepolicy/cts/
DActivityTest.java78 intent.setComponent(activityReference.component().componentName()); in startActivityForResultAsUser_differentUser_startedSuccessfully()
102 intent.setComponent(activityReference.component().componentName()); in startActivityForResultAsUser_requestCodeAndResultPassedSuccessfully()
136 intent.setComponent(activityReference.component().componentName()); in startActivityForResultAsUser_noPermissions_throwsSecurityException()
158 intent.setComponent(activityReference.component().componentName()); in startActivityAsUser_differentUser_startedSuccessfully()
183 intent.setComponent(activityReference.component().componentName()); in startActivityAsUser_noPermissions_throwsSecurityException()
DStartActivityFromBackgroundTest.java52 .setComponent(testActivity.component().componentName()); in startActivityFromBackground_dpcNotAllowed_unableToStart()
68 .setComponent(testActivity.component().componentName()); in startActivityFromBackground_dpcAllowed_ableToStart()
/cts/tests/framework/base/windowmanager/src/android/server/wm/activity/
DStartActivityTests.java247 final Intent intent = new Intent().setComponent(TEST_ACTIVITY); in verifyNavigateUpTo()
277 new Intent().setComponent(NO_RELAUNCH_ACTIVITY) in testStartActivitiesInNewAndSameTask()
279 new Intent().setComponent(LAUNCHING_ACTIVITY) }); in testStartActivitiesInNewAndSameTask()
361 new Intent().setComponent(SECOND_ACTIVITY) in testStartActivitiesWithDiffUidNotInSameTask()
363 new Intent().setComponent(LAUNCHING_ACTIVITY) }); in testStartActivitiesWithDiffUidNotInSameTask()
391 final Intent taskOverlay = new Intent().setComponent(SECOND_ACTIVITY); in testStartActivitiesTaskOverlayStayOnTop()
397 final Intent behindOverlay = new Intent().setComponent(TEST_ACTIVITY); in testStartActivitiesTaskOverlayStayOnTop()
456 final Intent taskOverlay = new Intent().setComponent(SECOND_ACTIVITY); in verifyStartActivitiesTaskOverlayWithLaunchFlags()
/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/tests/tests/app/test-apps/TestShareIdentityApp/src/android/app/cts/testshareidentity/
DTestShareIdentityActivity.java319 intent.setComponent(getShareIdentityActivity(testCase)); in onStart()
355 intent.setComponent(null); in onStart()
437 broadcastIntent.setComponent(SHARED_IDENTITY_RECEIVER); in testSendBroadcast()
/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/tests/app/ShortFgsTest/ShortFgsTestHelper/src/android/app/cts/shortfgstesthelper/
DShortFgsMessageReceiver.java60 i.setComponent(new ComponentName(packageName, ShortFgsMessageReceiver.class.getName())); in sendMessage()
112 setMessage(new Intent().setComponent(m.getComponentName()), m)); in onReceive()
122 setMessage(new Intent().setComponent(m.getComponentName()), m)); in onReceive()
178 .setComponent(m.getComponentName()); in onReceive()
/cts/tests/tests/app.usage/BroadcastResponseStats/src/android/app/usage/brs/cts/
DBroadcastResponseStatsTest.java198 final Intent intent = new Intent().setComponent(new ComponentName( in testBroadcastOptions_noPermission()
262 final Intent intent = new Intent().setComponent(new ComponentName( in testBroadcastResponseStats_broadcastDispatchedCount()
333 final Intent intent = new Intent().setComponent(new ComponentName( in testBroadcastResponseStats_notificationPostedCount()
432 final Intent intent = new Intent().setComponent(new ComponentName( in testBroadcastResponseStats_notificationUpdatedCount()
513 final Intent intent = new Intent().setComponent(new ComponentName( in testBroadcastResponseStats_notificationCancelledCount()
572 final Intent intent = new Intent().setComponent(new ComponentName( in testBroadcastResponseStats_multipleEvents()
714 final Intent intent = new Intent().setComponent(new ComponentName( in testBroadcastResponseStats_clearCounts()
815 final Intent intent = new Intent().setComponent(new ComponentName( in testBroadcastResponseStats_changeResponseWindowDuration()
908 final Intent intent = new Intent().setComponent(new ComponentName( in testBroadcastResponseStats_appNotInForeground()
1017 final Intent intent = new Intent().setComponent(new ComponentName( in testBroadcastResponseStats_multiplePackages()
[all …]
/cts/tests/tests/content/src/android/content/pm/cts/
DSaferIntentTest.java327 intent.setComponent(comp); in testQueryEnforceIntentFilterMatch()
334 intent.setComponent(comp); in testQueryEnforceIntentFilterMatch()
338 intent.setComponent(comp); in testQueryEnforceIntentFilterMatch()
345 intent.setComponent(comp); in testQueryEnforceIntentFilterMatch()
349 intent.setComponent(comp); in testQueryEnforceIntentFilterMatch()
353 intent.setComponent(comp); in testQueryEnforceIntentFilterMatch()
360 intent.setComponent(comp); in testQueryEnforceIntentFilterMatch()
391 intent.setComponent(comp); in testQueryEnforceIntentFilterMatch()
395 intent.setComponent(comp); in testQueryEnforceIntentFilterMatch()
399 intent.setComponent(comp); in testQueryEnforceIntentFilterMatch()
[all …]
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/
DDelegatedCertInstallerTest.java267 intent.setComponent(CERT_INSTALLER_COMPONENT); in installCaCert()
276 intent.setComponent(CERT_INSTALLER_COMPONENT); in removeCaCert()
285 intent.setComponent(CERT_INSTALLER_COMPONENT); in verifyCaCert()
317 intent.setComponent(CERT_INSTALLER_COMPONENT); in installKeyPair()
328 intent.setComponent(CERT_INSTALLER_COMPONENT); in readEnrollmentId()
/cts/tests/app/FgsTimeoutTest/FgsTimeoutTestHelper/src/android/app/cts/fgstimeouttesthelper/
DFgsTimeoutMessageReceiver.java53 i.setComponent(new ComponentName(packageName, FgsTimeoutMessageReceiver.class.getName())); in sendMessage()
104 setMessage(new Intent().setComponent(m.getComponentName()), m)); in onReceive()
114 setMessage(new Intent().setComponent(m.getComponentName()), m)); in onReceive()
/cts/hostsidetests/appsecurity/test-apps/EphemeralTestApp/EphemeralApp1/src/com/android/cts/ephemeralapp1/
DStartForResultActivity.java27 startActivityForResult(getIntent().setFlags(0).setComponent(null), 100 /* requestCode */); in onCreate()
/cts/common/device-side/bedstead/testapp/src/library/main/java/com/android/bedstead/testapp/
DTestAppActivityReference.java68 intent.setComponent(mComponent.componentName()); in start()
90 intent.setComponent(mComponent.componentName()); in start()
/cts/common/device-side/bedstead/eventlib/src/test/java/com/android/eventlib/premade/
DEventLibAppComponentFactoryTest.java63 intent.setComponent(new ComponentName(sContext.getPackageName(), in startActivity_activityDoesNotExist_startsLoggingActivity()
90 intent.setComponent(new ComponentName(sContext.getPackageName(), in startService_serviceDoesNotExist_startsLoggingService()
/cts/hostsidetests/securitybulletin/test-apps/CVE-2022-20007/test-app/src/android/security/cts/CVE_2022_20007/
DPocMainActivity.java35 coverIntent.setComponent(new ComponentName(getString(R.string.attackerPkg), in onCreate()
49 secondVictimIntent.setComponent(new ComponentName( in onCreate()
/cts/common/device-side/bedstead/testapp/src/test/java/com/android/bedstead/testapp/
DTestAppAppComponentFactoryTest.java72 intent.setComponent(new ComponentName(sContext.getPackageName(), in startActivity_activityDoesNotExist_startsLoggingActivity()
98 intent.setComponent(new ComponentName(sContext.getPackageName(), in startService_serviceDoesNotExist_startsLoggingService()

1234567891011