Searched refs:visibilities (Results 1 – 2 of 2) sorted by relevance
745 Map<String, Integer> visibilities = am.getPackagesAndVisibilityForAccount(ACCOUNT); in testSetAccountVisibilityForPrivilegedPackage() local746 assertNull(visibilities.get(PACKAGE_NAME_PRIVILEGED)); // no entry in database in testSetAccountVisibilityForPrivilegedPackage()750 visibilities = am.getPackagesAndVisibilityForAccount(ACCOUNT); in testSetAccountVisibilityForPrivilegedPackage()752 assertEquals((int) visibilities.get(PACKAGE_NAME_PRIVILEGED), in testSetAccountVisibilityForPrivilegedPackage()767 Map<String, Integer> visibilities = am.getPackagesAndVisibilityForAccount(ACCOUNT); in testGetPackagesAndVisibilityForAccount() local768 assertNull(visibilities.get(PACKAGE_NAME_1)); // no entry in database in testGetPackagesAndVisibilityForAccount()773 visibilities = am.getPackagesAndVisibilityForAccount(ACCOUNT); in testGetPackagesAndVisibilityForAccount()774 assertEquals(visibilities.size(), 2); in testGetPackagesAndVisibilityForAccount()775 assertEquals((int) visibilities.get(PACKAGE_NAME_1), AccountManager.VISIBILITY_VISIBLE); in testGetPackagesAndVisibilityForAccount()776 assertEquals((int) visibilities.get(PACKAGE_NAME_PRIVILEGED), in testGetPackagesAndVisibilityForAccount()[all …]
1053 final boolean[] visibilities = getPackageManager().canPackageQuery(sourcePackageName, in sendCanPackageQueries()1056 result.putBooleanArray(EXTRA_RETURN_RESULT, visibilities); in sendCanPackageQueries()