Home
last modified time | relevance | path

Searched refs:targetPackageName (Results 1 – 23 of 23) sorted by relevance

/cts/tests/tests/appenumeration/src/android/appenumeration/cts/
DAppEnumerationTestsBase.java99 Result sendCommand(@NonNull String sourcePackageName, @Nullable String targetPackageName, in sendCommand() argument
108 if (targetPackageName != null) { in sendCommand()
109 intent.putExtra(Intent.EXTRA_PACKAGE_NAME, targetPackageName); in sendCommand()
172 @Nullable String targetPackageName, @Nullable Parcelable intentExtra, String action) in sendCommandBlocking() argument
174 final Result result = sendCommand(sourcePackageName, targetPackageName, in sendCommandBlocking()
187 void assertVisible(String sourcePackageName, String targetPackageName, in assertVisible() argument
192 assertThat(sourcePackageName + " should be able to see " + targetPackageName, in assertVisible()
193 packageNames, hasItemInArray(targetPackageName)); in assertVisible()
196 void assertNotVisible(String sourcePackageName, String targetPackageName, in assertNotVisible() argument
201 assertThat(sourcePackageName + " should not be able to see " + targetPackageName, in assertNotVisible()
[all …]
DSyncAdapterEnumerationTests.java248 String targetPackageName) throws Exception { in getSyncAdapterPackagesForAuthorityAsUser() argument
250 extraData.putString(EXTRA_AUTHORITY, targetPackageName + AUTHORITY_SUFFIX); in getSyncAdapterPackagesForAuthorityAsUser()
258 String targetPackageName) throws Exception { in requestSyncAndAwaitStatus() argument
261 extraData.putString(EXTRA_AUTHORITY, targetPackageName + AUTHORITY_SUFFIX); in requestSyncAndAwaitStatus()
268 String targetPackageName) throws Exception { in getSyncAdapterControlPanel() argument
270 targetPackageName, SERVICE_CLASS_SYNC_ADAPTER); in getSyncAdapterControlPanel()
273 extraData.putString(EXTRA_AUTHORITY, targetPackageName + AUTHORITY_SUFFIX); in getSyncAdapterControlPanel()
301 private boolean getSyncAutomatically(String sourcePackageName, String targetPackageName) in getSyncAutomatically() argument
303 final String authority = targetPackageName + AUTHORITY_SUFFIX; in getSyncAutomatically()
311 private int getIsSyncable(String sourcePackageName, Account account, String targetPackageName) in getIsSyncable() argument
[all …]
DAppEnumerationTests.java428 String sourcePackageName, String targetPackageName, Intent intent) throws Exception { in startExplicitActivityWithIntent() argument
429 sendCommandBlocking(sourcePackageName, targetPackageName, in startExplicitActivityWithIntent()
430 intent.setClassName(targetPackageName, ACTIVITY_CLASS_TEST), in startExplicitActivityWithIntent()
1399 private void assertVisible(String sourcePackageName, String targetPackageName) in assertVisible() argument
1401 Assert.assertNotNull(sourcePackageName + " should be able to see " + targetPackageName, in assertVisible()
1402 getPackageInfo(sourcePackageName, targetPackageName)); in assertVisible()
1405 private void assertNotVisible(String sourcePackageName, String targetPackageName) in assertNotVisible() argument
1408 getPackageInfo(sourcePackageName, targetPackageName); in assertNotVisible()
1409 fail(sourcePackageName + " should not be able to see " + targetPackageName); in assertNotVisible()
1414 private void assertServiceVisible(String sourcePackageName, String targetPackageName) in assertServiceVisible() argument
[all …]
DMediaSessionEnumerationTests.java67 String targetPackageName) throws Exception { in isTrustedForMediaControl() argument
69 targetPackageName, PackageManager.PackageInfoFlags.of(0)); in isTrustedForMediaControl()
72 targetPackageName, in isTrustedForMediaControl()
DLauncherAppsEnumerationTests.java549 String targetPackageName) throws Exception { in getSuspendedPackageLauncherExtras() argument
550 final Bundle response = sendCommandBlocking(sourcePackageName, targetPackageName, in getSuspendedPackageLauncherExtras()
562 private boolean shouldHideFromSuggestions(String sourcePackageName, String targetPackageName) in shouldHideFromSuggestions() argument
566 final Bundle response = sendCommandBlocking(sourcePackageName, targetPackageName, extraData, in shouldHideFromSuggestions()
/cts/tests/tests/companion/core/src/android/companion/cts/core/
DObservingDeviceUuidEventTest.kt67 stopObservingDevicePresenceByUuid(userId, targetPackageName, UUID_A.toString()) in tearDown()
68 stopObservingDevicePresenceByUuid(userId, targetPackageName, UUID_B.toString()) in tearDown()
115 startObservingDevicePresenceByUuid(userId, targetPackageName, UUID_A.toString()) in test_startObservingDeviceUuidPresence_singleDevice()
129 stopObservingDevicePresenceByUuid(userId, targetPackageName, UUID_A.toString()) in test_startObservingDeviceUuidPresence_singleDevice()
136 startObservingDevicePresenceByUuid(userId, targetPackageName, UUID_A.toString()) in test_startObservingDeviceUuidPresence_multiDevices()
137 startObservingDevicePresenceByUuid(userId, targetPackageName, UUID_B.toString()) in test_startObservingDeviceUuidPresence_multiDevices()
181 stopObservingDevicePresenceByUuid(userId, targetPackageName, UUID_A.toString()) in test_startObservingDeviceUuidPresence_multiDevices()
182 stopObservingDevicePresenceByUuid(userId, targetPackageName, UUID_B.toString()) in test_startObservingDeviceUuidPresence_multiDevices()
206 startObservingDevicePresenceByUuid(userId, targetPackageName, UUID_A.toString()) in test_observingDevicePresence_bothAssociationAndUuid()
225 stopObservingDevicePresenceByUuid(userId, targetPackageName, UUID_A.toString()) in test_observingDevicePresence_bothAssociationAndUuid()
DDeviceAssociatedForWifiConnectionTest.kt48 targetPackageName, MAC_ADDRESS_A, UserHandle(targetUserId)) in test_isDeviceAssociatedForWifiConnection_requiresPermission()
58 targetPackageName, MAC_ADDRESS_A, UserHandle(targetUserId))) in test_isDeviceAssociatedForWifiConnection_no_association()
65 targetPackageName, MAC_ADDRESS_A, UserHandle(targetUserId))) in test_isDeviceAssociatedForWifiConnection_no_association()
76 targetPackageName, MAC_ADDRESS_A, UserHandle(targetUserId))) in test_isDeviceAssociatedForWifiConnection_no_wifi_permission()
DDumpSysTest.kt58 assertFalse(out[2].contains("u$userId\\$targetPackageName")) // App is not bound yet in test_dump_singleDevice()
69 assertTrue(out[2].contains("u$userId, $targetPackageName")) // App is now bound in test_dump_singleDevice()
89 assertFalse(out[2].contains("u$userId, $targetPackageName")) // App is not bound yet in test_dump_multiDevice()
100 assertTrue(out[2].contains("u$userId, $targetPackageName")) // App is now bound in test_dump_multiDevice()
DDeviceEventDeviceLockedTest.kt184 startObservingDevicePresenceByUuid(userId, targetPackageName, UUID_A.toString()) in test_uuid_event_on_device_locked()
206 stopObservingDevicePresenceByUuid(userId, targetPackageName, UUID_A.toString()) in test_uuid_event_on_device_locked()
291 startObservingDevicePresenceByUuid(userId, targetPackageName, UUID_A.toString()) in test_uuid_event_disconnected_before_device_unlocked()
310 stopObservingDevicePresenceByUuid(userId, targetPackageName, UUID_A.toString()) in test_uuid_event_disconnected_before_device_unlocked()
DBackupAndRestoreTest.kt123 val secondaryApp = AppHelper(instrumentation, secondaryUserId, targetPackageName) in <lambda>()
/cts/tests/appsearch/testutils/src/android/app/appsearch/testutil/external/
DGlobalSearchSessionShim.java159 @NonNull String targetPackageName, in registerObserverCallback()
187 @NonNull String targetPackageName, @NonNull ObserverCallback observer) in unregisterObserverCallback()
/cts/tests/tests/content/src/android/content/om/cts/
DOverlayManagerTest.java122 String targetPackageName = "overlay target package name"; in testGetOverlayInfosForTarget() local
125 verify(mMockService, times(0)).getOverlayInfosForTarget(targetPackageName, userId); in testGetOverlayInfosForTarget()
126 mManager.getOverlayInfosForTarget(targetPackageName, user); in testGetOverlayInfosForTarget()
127 verify(mMockService, times(1)).getOverlayInfosForTarget(targetPackageName, userId); in testGetOverlayInfosForTarget()
185 String overlayableName, String targetPackageName) { in assertOverlayInfoList() argument
191 targetPackageName); in assertOverlayInfoList()
DOverlayInfoTest.java106 assertEquals(info.targetPackageName, copyInfo.targetPackageName); in testWriteToParcel()
/cts/tests/appsearch/testutils/src/android/app/appsearch/testutil/
DGlobalSearchSessionShimImpl.java129 @NonNull String targetPackageName, in registerObserverCallback()
133 mGlobalSearchSession.registerObserverCallback(targetPackageName, spec, mExecutor, observer); in registerObserverCallback()
138 @NonNull String targetPackageName, @NonNull ObserverCallback observer) in unregisterObserverCallback()
140 mGlobalSearchSession.unregisterObserverCallback(targetPackageName, observer); in unregisterObserverCallback()
/cts/hostsidetests/devicepolicy/app/CorpOwnedManagedProfile/src/com/android/cts/comp/
DBindDeviceAdminServiceFailsTest.java66 private void checkCannotBind(String targetPackageName, UserHandle otherProfile) { in checkCannotBind() argument
69 … serviceIntent.setClassName(targetPackageName, ProtectedCrossUserService.class.getName()); in checkCannotBind()
/cts/tests/tests/appenumeration/lib/src/android/appenumeration/cts/
DTestActivity.java339 final String targetPackageName = intent.getStringExtra(Intent.EXTRA_PACKAGE_NAME); in handleIntent() local
342 sendSetInstallerPackageName(remoteCallback, targetPackageName, in handleIntent()
348 final String targetPackageName = intent.getStringExtra(Intent.EXTRA_PACKAGE_NAME); in handleIntent() local
350 sendLauncherAppsShouldHideFromSuggestions(remoteCallback, targetPackageName, in handleIntent()
353 final String targetPackageName = intent.getStringExtra(Intent.EXTRA_PACKAGE_NAME); in handleIntent() local
357 sendCheckUriPermission(remoteCallback, sourceAuthority, targetPackageName, in handleIntent()
360 final String targetPackageName = intent.getStringExtra(Intent.EXTRA_PACKAGE_NAME); in handleIntent() local
365 targetPackageName, targetUid); in handleIntent()
376 final String targetPackageName = intent.getBundleExtra(EXTRA_DATA) in handleIntent() local
378 sendCanPackageQuery(remoteCallback, sourcePackageName, targetPackageName); in handleIntent()
[all …]
/cts/tests/tests/companion/multiprocess/src/android/companion/cts/multiprocess/
DRebindServiceTest.kt137 startObservingDevicePresenceByUuid(userId, targetPackageName, UUID_A.toString()) in <lambda>()
156 stopObservingDevicePresenceByUuid(userId, targetPackageName, UUID_A.toString()) in <lambda>()
/cts/hostsidetests/appsecurity/test-apps/ExternalStorageApp/src/com/android/cts/externalstorageapp/
DCommonExternalStorageTest.java171 String targetPackageName) { in getAllPackageSpecificObbGiftPaths() argument
175 obbDir.getAbsolutePath().replace(context.getPackageName(), targetPackageName)); in getAllPackageSpecificObbGiftPaths()
176 targetFiles.add(new File(targetObbDir, targetPackageName + ".gift")); in getAllPackageSpecificObbGiftPaths()
186 String targetPackageName) { in getAllPackageSpecificNoGiftPaths() argument
191 file.getAbsolutePath().replace(context.getPackageName(), targetPackageName)); in getAllPackageSpecificNoGiftPaths()
192 targetFiles.add(new File(targetFile, targetPackageName + ".gift")); in getAllPackageSpecificNoGiftPaths()
/cts/tests/tests/companion/common/src/android/companion/cts/common/
DTestBase.kt65 protected val targetPackageName = instrumentation.targetContext.packageName constant
68 protected val targetApp = AppHelper(instrumentation, userId, targetPackageName)
191 "$uuid $targetPackageName $userId $event" in simulateDeviceEvent()
/cts/tests/tests/content/src/android/content/pm/cts/
DLauncherAppsForHiddenProfilesTest.java414 TestLauncherCallback(UserHandle targetUser, String targetPackageName) { in TestLauncherCallback() argument
416 mTargetPackage = targetPackageName; in TestLauncherCallback()
/cts/tests/framework/base/locale/src/android/localemanager/cts/
DLocaleManagerTests.java249 private void setInstallerForPackage(String targetPackageName) { in setInstallerForPackage() argument
251 (pm) -> pm.setInstallerPackageName(targetPackageName, INSTALLER_PACKAGE)); in setInstallerForPackage()
/cts/tests/providerui/src/android/providerui/cts/
DMediaStoreUiTest.java451 private void assertToolbarTitleEquals(String targetPackageName, String label) in assertToolbarTitleEquals() argument
454 targetPackageName + ":id/toolbar"); in assertToolbarTitleEquals()
/cts/tests/tests/companion/uiautomation/src/android/companion/cts/uiautomation/
DUiAutomationTestBase.kt366 assertContains(roleHolders, targetPackageName, "Not a holder of $roleName") in <lambda>()