Home
last modified time | relevance | path

Searched refs:UserRestrictionsUtils (Results 1 – 5 of 5) sorted by relevance

/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DUserRestrictionsUtilsTest.java40 Bundle out = UserRestrictionsUtils.nonNull(null); in testNonNull()
45 assertSame(in, UserRestrictionsUtils.nonNull(in)); in testNonNull()
49 assertTrue(UserRestrictionsUtils.isEmpty(null)); in testIsEmpty()
50 assertTrue(UserRestrictionsUtils.isEmpty(new Bundle())); in testIsEmpty()
51 assertFalse(UserRestrictionsUtils.isEmpty(DpmTestUtils.newRestrictions("a"))); in testIsEmpty()
56 Bundle out = UserRestrictionsUtils.clone(in); in testClone()
60 out = UserRestrictionsUtils.clone(null); in testClone()
69 UserRestrictionsUtils.merge(a, b); in testMerge()
73 UserRestrictionsUtils.merge(a, null); in testMerge()
78 UserRestrictionsUtils.merge(a, a); in testMerge()
[all …]
/frameworks/base/services/core/java/com/android/server/pm/
DUserManagerService.java1081 globalChanged = !UserRestrictionsUtils.areEqual( in setDevicePolicyUserRestrictionsInner()
1101 localChanged = !UserRestrictionsUtils.areEqual(prev, local); in setDevicePolicyUserRestrictionsInner()
1135 UserRestrictionsUtils.nonNull(mBaseUserRestrictions.get(userId)); in computeEffectiveUserRestrictionsLR()
1139 if (UserRestrictionsUtils.isEmpty(global) && UserRestrictionsUtils.isEmpty(local)) { in computeEffectiveUserRestrictionsLR()
1143 final Bundle effective = UserRestrictionsUtils.clone(baseRestrictions); in computeEffectiveUserRestrictionsLR()
1144 UserRestrictionsUtils.merge(effective, global); in computeEffectiveUserRestrictionsLR()
1145 UserRestrictionsUtils.merge(effective, local); in computeEffectiveUserRestrictionsLR()
1172 if (!UserRestrictionsUtils.isValidRestriction(restrictionKey)) { in hasUserRestriction()
1208 if (!UserRestrictionsUtils.isEmpty(localRestrictions) in getUserRestrictionSource()
1218 if (!UserRestrictionsUtils.isEmpty(mDevicePolicyGlobalUserRestrictions) in getUserRestrictionSource()
[all …]
DUserRestrictionsUtils.java54 public class UserRestrictionsUtils { class
57 private UserRestrictionsUtils() { in UserRestrictionsUtils() method in UserRestrictionsUtils
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
DMockUtils.java21 import com.android.server.pm.UserRestrictionsUtils;
91 return UserRestrictionsUtils.areEqual((Bundle) item, expected); in checkUserRestrictions()
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
DDevicePolicyManagerService.java142 import com.android.server.pm.UserRestrictionsUtils;
869 UserRestrictionsUtils.writeRestrictions( in writeToXml()
1015 UserRestrictionsUtils.readRestrictions(parser, ensureUserRestrictions()); in readFromXml()
1258 UserRestrictionsUtils.dumpRestrictions(pw, prefix + " ", userRestrictions); in dump()
1810 ? UserRestrictionsUtils.canDeviceOwnerChange(key) in migrateUserRestrictionsForUser()
1811 : UserRestrictionsUtils.canProfileOwnerChange(key, user.getIdentifier()); in migrateUserRestrictionsForUser()
7269 if (!UserRestrictionsUtils.isValidRestriction(key)) { in setUserRestriction()
7280 if (!UserRestrictionsUtils.canDeviceOwnerChange(key)) { in setUserRestriction()
7284 if (!UserRestrictionsUtils.canProfileOwnerChange(key, userHandle)) { in setUserRestriction()
7311 UserRestrictionsUtils.sortToGlobalAndLocal(deviceOwner.userRestrictions, in pushUserRestrictions()
[all …]