Home
last modified time | relevance | path

Searched refs:defaultRestrictions (Results 1 – 2 of 2) sorted by relevance

/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
DDevicePolicyManagerTest.java1600 final String[] defaultRestrictions = UserRestrictionsUtils in testSetUserRestriction_asDo() local
1603 DpmTestUtils.newRestrictions(defaultRestrictions), in testSetUserRestriction_asDo()
1607 DpmTestUtils.newRestrictions(defaultRestrictions), in testSetUserRestriction_asDo()
1612 MockUtils.checkUserRestrictions(defaultRestrictions), in testSetUserRestriction_asDo()
1618 for (String restriction : defaultRestrictions) { in testSetUserRestriction_asDo()
1857 String[] defaultRestrictions = UserRestrictionsUtils in testDefaultEnabledUserRestrictions() local
1859 assertTrue(defaultRestrictions.length > 0); in testDefaultEnabledUserRestrictions()
1861 DpmTestUtils.newRestrictions(defaultRestrictions), in testDefaultEnabledUserRestrictions()
1865 DpmTestUtils.newRestrictions(defaultRestrictions), in testDefaultEnabledUserRestrictions()
1870 MockUtils.checkUserRestrictions(defaultRestrictions), in testDefaultEnabledUserRestrictions()
[all …]
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
DDevicePolicyManagerService.java2310 int userId, ActiveAdmin admin, Set<String> defaultRestrictions) { in maybeSetDefaultRestrictionsForAdminLocked() argument
2311 if (defaultRestrictions.equals(admin.defaultEnabledRestrictionsAlreadySet)) { in maybeSetDefaultRestrictionsForAdminLocked()
2318 + defaultRestrictions in maybeSetDefaultRestrictionsForAdminLocked()
2323 final Set<String> restrictionsToSet = new ArraySet<>(defaultRestrictions); in maybeSetDefaultRestrictionsForAdminLocked()