Searched refs:allowlist (Results 1 – 4 of 4) sorted by relevance
49 Set<String> allowlist = mDevicePolicyManager.getCrossProfileCalendarPackages( in testCrossProfileCalendarPackage() local51 assertThat(allowlist).isEmpty(); in testCrossProfileCalendarPackage()55 allowlist = mDevicePolicyManager.getCrossProfileCalendarPackages( in testCrossProfileCalendarPackage()57 assertThat(allowlist.size()).isEqualTo(1); in testCrossProfileCalendarPackage()58 assertThat(allowlist.contains(MANAGED_PROFILE_PKG)).isTrue(); in testCrossProfileCalendarPackage()62 allowlist = mDevicePolicyManager.getCrossProfileCalendarPackages( in testCrossProfileCalendarPackage()64 assertThat(allowlist).isEmpty(); in testCrossProfileCalendarPackage()
59 final Set<String> allowlist = in testAlwaysOnSetAfterReboot() local63 assertNotNull("allowlist is lost after reboot", allowlist); in testAlwaysOnSetAfterReboot()65 Collections.singleton(mContext.getPackageName()), allowlist); in testAlwaysOnSetAfterReboot()
78 private fun setCameraPrivacyAllowlist(allowlist: List<String>) { in setCameraPrivacyAllowlist()80 spm.setCameraPrivacyAllowlist(allowlist) in setCameraPrivacyAllowlist()
2449 private static boolean setSafeBrowsingAllowlistSync(List<String> allowlist) { in setSafeBrowsingAllowlistSync() argument2452 allowlist, in setSafeBrowsingAllowlistSync()2470 List allowlist = new ArrayList<String>(); in testSetSafeBrowsingAllowlistWithMalformedList() local2472 allowlist.add("http://google.com"); in testSetSafeBrowsingAllowlistWithMalformedList()2473 assertFalse("Malformed list entry should fail", setSafeBrowsingAllowlistSync(allowlist)); in testSetSafeBrowsingAllowlistWithMalformedList()2483 List allowlist = new ArrayList<String>(); in testSetSafeBrowsingAllowlistWithValidList() local2484 allowlist.add("safe-browsing"); in testSetSafeBrowsingAllowlistWithValidList()2485 assertTrue("Valid allowlist should be successful", setSafeBrowsingAllowlistSync(allowlist)); in testSetSafeBrowsingAllowlistWithValidList()