Searched refs:systemPackages (Results 1 – 3 of 3) sorted by relevance
136 final Set<String> systemPackages = new ArraySet<>(); in testBlocklist_isPackageAllowed() local137 systemPackages.add(TEST_SYSTEM_PACKAGE_NAME); in testBlocklist_isPackageAllowed()142 assertFalse(policy.isPackageAllowed(TEST_PACKAGE_NAME, systemPackages)); in testBlocklist_isPackageAllowed()144 assertTrue(policy.isPackageAllowed(TEST_PACKAGE_NAME_2, systemPackages)); in testBlocklist_isPackageAllowed()146 assertTrue(policy.isPackageAllowed(TEST_SYSTEM_PACKAGE_NAME, systemPackages)); in testBlocklist_isPackageAllowed()153 final Set<String> systemPackages = new ArraySet<>(); in testAllowlist_isPackageAllowed() local154 systemPackages.add(TEST_SYSTEM_PACKAGE_NAME); in testAllowlist_isPackageAllowed()158 assertTrue(policy.isPackageAllowed(TEST_PACKAGE_NAME, systemPackages)); in testAllowlist_isPackageAllowed()160 assertFalse(policy.isPackageAllowed(TEST_PACKAGE_NAME_2, systemPackages)); in testAllowlist_isPackageAllowed()162 assertFalse(policy.isPackageAllowed(TEST_SYSTEM_PACKAGE_NAME, systemPackages)); in testAllowlist_isPackageAllowed()[all …]
160 List<String> systemPackages = in getCarrierAppPackageForFiltering() local163 if (systemPackages != null && systemPackages.size() == 1) { in getCarrierAppPackageForFiltering()164 log("getCarrierAppPackageForFiltering: Found system package: " + systemPackages.get(0)); in getCarrierAppPackageForFiltering()165 return Optional.of(systemPackages.get(0)); in getCarrierAppPackageForFiltering()168 + " or systemPackages: " + systemPackages); in getCarrierAppPackageForFiltering()
151 @NonNull Set<String> systemPackages) { in isPackageAllowed() argument157 && systemPackages.contains(packageName)); in isPackageAllowed()