/cts/tests/tests/appenumeration/src/android/appenumeration/cts/ |
D | AppEnumerationTestsBase.java | 189 final String[] packageNames = commandMethod.apply(sourcePackageName); in assertVisible() local 191 packageNames, notNullValue()); in assertVisible() 193 packageNames, hasItemInArray(targetPackageName)); in assertVisible() 198 final String[] packageNames = commandMethod.apply(sourcePackageName); in assertNotVisible() local 200 packageNames, notNullValue()); in assertNotVisible() 202 packageNames, not(hasItemInArray(targetPackageName))); in assertNotVisible() 207 final String[] packageNames = commandMethod.apply(sourcePackageName, targetPackageName); in assertVisible() local 209 packageNames, hasItemInArray(targetPackageName)); in assertVisible() 214 final String[] packageNames = commandMethod.apply(sourcePackageName, targetPackageName); in assertNotVisible() local 216 packageNames, not(hasItemInArray(targetPackageName))); in assertNotVisible()
|
/cts/libs/install/src/com/android/cts/install/lib/ |
D | Uninstall.java | 33 public static void packages(String... packageNames) throws InterruptedException { in packages() argument 34 for (String pkg : packageNames) { in packages()
|
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/ |
D | PermissionUtils.java | 227 List<String> packageNames = getRoleHolders(roleName); in getRoleHolder() local 228 if (packageNames.isEmpty()) { in getRoleHolder() 230 } else if (packageNames.size() == 1) { in getRoleHolder() 231 return packageNames.get(0); in getRoleHolder() 234 + roleName + "\" but found " + packageNames.size() + ": " + packageNames); in getRoleHolder()
|
/cts/tests/security/src/android/keystore/cts/ |
D | AttestationApplicationId.java | 43 String[] packageNames = pm.getPackagesForUid(uid); in AttestationApplicationId() local 44 if (packageNames == null || packageNames.length == 0) { in AttestationApplicationId() 48 for (String packageName : packageNames) { in AttestationApplicationId() 59 PackageInfo packageInfo = pm.getPackageInfo(packageNames[0], PackageManager.GET_SIGNATURES); in AttestationApplicationId()
|
/cts/hostsidetests/packagemanager/installedloadingprogess/apps/src/com/android/tests/loadingprogress/registerapp/ |
D | MainActivity.java | 45 public void onPackagesAvailable(String[] packageNames, UserHandle user, in onCreate() 50 public void onPackagesUnavailable(String[] packageNames, UserHandle user, in onCreate()
|
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/ |
D | AccessibilityServiceInfoTest.java | 244 sentInfo.packageNames = new String[] { in fullyPopulateSentAccessibilityServiceInfo() 266 assertEquals("packageNames not marshalled properly", sentInfo.packageNames.length, in assertAllFieldsProperlyMarshalled() 267 receivedInfo.packageNames.length); in assertAllFieldsProperlyMarshalled() 268 assertEquals("packageNames not marshalled properly", sentInfo.packageNames[0], in assertAllFieldsProperlyMarshalled() 269 receivedInfo.packageNames[0]); in assertAllFieldsProperlyMarshalled() 285 info.packageNames = new String[]{"A".repeat(1024 * 32)}; in setLargePackageNames()
|
/cts/tools/signature-tools/src/signature/converter/doclet/ |
D | DocletFactory.java | 41 Set<String> fileNames, Set<String> packageNames) throws in loadApi() argument 43 for (String packageName : packageNames) { in loadApi() 54 RootDoc root = getRootDoc(visibility, sourcepath, packageNames); in loadApi() 57 packageNames); in loadApi()
|
/cts/tests/suspendapps/tests/src/android/suspendapps/cts/ |
D | SuspendPackagesTest.java | 222 public void onPackagesSuspended(String[] packageNames, UserHandle user) { in testLauncherCallback() 227 public void onPackagesSuspended(String[] packageNames, UserHandle user, in testLauncherCallback() 230 if (!Arrays.equals(packageNames, TEST_PACKAGE_ARRAY)) { in testLauncherCallback() 232 errorString.append(Arrays.toString(packageNames)); in testLauncherCallback() 328 public void onPackagesAvailable(String[] packageNames, UserHandle user, boolean replacing) { in onPackagesAvailable() argument 332 public void onPackagesUnavailable(String[] packageNames, UserHandle user, in onPackagesUnavailable() argument
|
/cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/ |
D | CrossProfileTest.java | 284 Set<String> packageNames, int mode, UserHandle userHandle) in assertThatPackagesHaveAppOpMode() argument 286 for (String unsetCrossProfilePackage : packageNames) { in assertThatPackagesHaveAppOpMode() 291 private void assertThatPackagesHaveAppOpMode(Set<String> packageNames, int mode) in assertThatPackagesHaveAppOpMode() argument 293 assertThatPackagesHaveAppOpMode(packageNames, mode, Process.myUserHandle()); in assertThatPackagesHaveAppOpMode()
|
/cts/tests/app/src/android/app/cts/ |
D | ActivityManagerTest.java | 1729 final String[] packageNames = {PACKAGE_NAME_APP1, PACKAGE_NAME_APP2, PACKAGE_NAME_APP3}; in testServiceDoneLRUPosition() local 1730 final WatchUidRunner[] watchers = initWatchUidRunners(packageNames, WAITFOR_MSEC); in testServiceDoneLRUPosition() 1747 forEach(packageNames, packageName -> runShellCommand(mInstrumentation, in testServiceDoneLRUPosition() 1802 verifyLruOrders(packageNames, 0, true, (a, b) -> a > b, "%s should be newer than %s"); in testServiceDoneLRUPosition() 1806 forEach(packageNames, packageName -> runShellCommand(mInstrumentation, in testServiceDoneLRUPosition() 1810 forEach(packageNames, packageName -> runWithShellPermissionIdentity( in testServiceDoneLRUPosition() 1823 final String[] packageNames = {PACKAGE_NAME_APP1, PACKAGE_NAME_APP2, PACKAGE_NAME_APP3}; in testBroadcastReceiverLRUPosition() local 1824 final WatchUidRunner[] watchers = initWatchUidRunners(packageNames, WAITFOR_MSEC * 2); in testBroadcastReceiverLRUPosition() 1834 forEach(packageNames, packageName -> runShellCommand(mInstrumentation, in testBroadcastReceiverLRUPosition() 1841 forBiEach(packageNames, watchers, (packageName, watcher) -> { in testBroadcastReceiverLRUPosition() [all …]
|
/cts/tests/tests/telephony/current/EmbmsMiddlewareTestApp/src/android/telephony/cts/embmstestapp/ |
D | CtsGroupCallService.java | 73 String[] packageNames = getPackageManager().getPackagesForUid(packageUid); in initialize() local 74 if (packageNames == null) { in initialize() 77 boolean isUidAllowed = Arrays.stream(packageNames).anyMatch(ALLOWED_PACKAGES::contains); in initialize()
|
D | CtsStreamingService.java | 108 String[] packageNames = getPackageManager().getPackagesForUid(packageUid); 109 if (packageNames == null) { 112 boolean isUidAllowed = Arrays.stream(packageNames).anyMatch(ALLOWED_PACKAGES::contains);
|
D | CtsDownloadService.java | 154 String[] packageNames = getPackageManager().getPackagesForUid(packageUid); 155 if (packageNames == null) { 158 boolean isUidAllowed = Arrays.stream(packageNames).anyMatch(ALLOWED_PACKAGES::contains);
|
/cts/tests/tests/gameservice/src/android/service/games/testing/ |
D | IGameServiceTestService.aidl | 28 void setGamePackageNames(in List<String> packageNames); in setGamePackageNames() argument
|
/cts/tests/tests/car_builtin/src/android/car/cts/builtin/content/pm/ |
D | PackageManagerHelperTest.java | 156 String[] packageNames = PackageManagerHelper in testGetNamesForUids() local 158 assertThat(packageNames).isEqualTo(expectedPackageNames[index]); in testGetNamesForUids() 267 private int[] convertPackageNamesToUids(String[] packageNames) { in convertPackageNamesToUids() argument 277 return Arrays.stream(packageNames).mapToInt(packageNameToUid).toArray(); in convertPackageNamesToUids()
|
/cts/hostsidetests/appsecurity/test-apps/ApplicationVisibilityCrossUserApp/src/com/android/cts/applicationvisibility/ |
D | ApplicationVisibilityCrossUserTest.java | 316 private boolean isAppInPackageNamesArray(String packageName, String[] packageNames) { in isAppInPackageNamesArray() argument 317 return packageNames != null && Stream.of(packageNames).anyMatch( in isAppInPackageNamesArray()
|
/cts/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/ |
D | ManagedProfileCrossProfileTest.java | 390 Set<String> packageNames) in assertTestAppsReceivedCanInteractAcrossProfilesChangedBroadcast() argument 392 for (String packageName : packageNames) { in assertTestAppsReceivedCanInteractAcrossProfilesChangedBroadcast() 402 Set<String> packageNames) in assertTestAppsDidNotReceiveCanInteractAcrossProfilesChangedBroadcast() argument 404 for (String packageName : packageNames) { in assertTestAppsDidNotReceiveCanInteractAcrossProfilesChangedBroadcast()
|
/cts/hostsidetests/packagemanager/installedloadingprogess/deviceside/src/com/android/tests/loadingprogress/device/ |
D | LoadingProgressTest.java | 174 public void onPackagesAvailable(String[] packageNames, UserHandle user, boolean replacing) { in onPackagesAvailable() argument 178 public void onPackagesUnavailable(String[] packageNames, UserHandle user, in onPackagesUnavailable() argument
|
/cts/tools/cts-tradefed/tests/src/com/android/compatibility/common/tradefed/presubmit/ |
D | ApkPackageNameCheck.java | 97 Map<String, String> packageNames = new HashMap<>(); in testApkPackageNames() local 171 String put = packageNames.put(packageName, apkName); in testApkPackageNames()
|
/cts/hostsidetests/devicepolicy/app/LauncherTestsSupport/src/com/android/cts/launchertests/support/ |
D | LauncherCallbackTestsService.java | 224 public void onPackagesAvailable(String[] packageNames, UserHandle user, in onPackagesAvailable() argument 228 public void onPackagesUnavailable(String[] packageNames, UserHandle user, in onPackagesUnavailable() argument
|
/cts/tests/tests/appenumeration/lib/src/android/appenumeration/cts/ |
D | TestActivity.java | 564 private void onPackageStateUpdated(String[] packageNames, int resultCode) { in awaitLauncherAppsCallback() 568 if (!matchPackageNames(expectedPackages, packageNames)) { in awaitLauncherAppsCallback() 573 result.putStringArray(EXTRA_PACKAGES, packageNames); in awaitLauncherAppsCallback() 597 public void onPackagesAvailable(String[] packageNames, UserHandle user, in awaitLauncherAppsCallback() 599 onPackageStateUpdated(packageNames, CALLBACK_EVENT_PACKAGES_AVAILABLE); in awaitLauncherAppsCallback() 603 public void onPackagesUnavailable(String[] packageNames, UserHandle user, in awaitLauncherAppsCallback() 605 onPackageStateUpdated(packageNames, CALLBACK_EVENT_PACKAGES_UNAVAILABLE); in awaitLauncherAppsCallback() 609 public void onPackagesSuspended(String[] packageNames, UserHandle user) { in awaitLauncherAppsCallback() 610 onPackageStateUpdated(packageNames, CALLBACK_EVENT_PACKAGES_SUSPENDED); in awaitLauncherAppsCallback() 611 super.onPackagesSuspended(packageNames, user); in awaitLauncherAppsCallback() [all …]
|
/cts/tests/tests/packageinstaller/install/src/android/packageinstaller/install/cts/ |
D | InstallConstraintsTest.kt | 377 val packageNames = intent.getStringArrayExtra(Intent.EXTRA_PACKAGES) in <lambda>() constant 384 assertThat(packageNames).asList().containsExactly(TestApp.A) in <lambda>() 401 val packageNames = intent.getStringArrayExtra(Intent.EXTRA_PACKAGES) in <lambda>() constant 408 assertThat(packageNames).asList().containsExactly(TestApp.A) in <lambda>()
|
/cts/tests/tests/shortcutmanager/src/android/content/pm/cts/shortcutmanager/ |
D | ShortcutManagerLauncherCallbackTest.java | 73 public void onPackagesAvailable(String[] packageNames, UserHandle user, boolean replacing) { in onPackagesAvailable() argument 77 public void onPackagesUnavailable(String[] packageNames, UserHandle user, in onPackagesUnavailable() argument
|
/cts/hostsidetests/packagemanager/domainverification/device/multiuser/src/com/android/cts/packagemanager/verify/domain/device/multiuser/ |
D | DomainVerificationWorkProfileTestsBase.kt | 148 protected fun verify(vararg packageNames: String) = packageNames.forEach { in <lambda>()
|
/cts/tests/accessibility/src/android/view/accessibility/cts/ |
D | AccessibilityServiceInfoTest.java | 142 assertNull(speakingService.packageNames /*all packages*/); in testAccessibilityServiceInfoForEnabledService()
|