Searched refs:localRestrictions (Results 1 – 5 of 5) sorted by relevance
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/pm/ |
H A D | UserRestrictionsUtilsTest.java | 106 SparseArray<RestrictionsSet> localRestrictions = new SparseArray<>(); in testMoveRestriction() local 110 localRestrictions.put(0, newRestrictions(0, UserManager.DISALLOW_ADJUST_VOLUME)); in testMoveRestriction() 113 localRestrictions.put(1, newRestrictions(1, UserManager.ENSURE_VERIFY_APPS)); in testMoveRestriction() 117 localRestrictions.put(2, newRestrictions(2, in testMoveRestriction() 121 UserManager.ENSURE_VERIFY_APPS, localRestrictions, globalRestrictions); in testMoveRestriction() 126 localRestrictions.get(0)); in testMoveRestriction() 130 assertTrue(localRestrictions.get(1).isEmpty()); in testMoveRestriction() 138 localRestrictions.get(2)); in testMoveRestriction()
|
H A D | UserManagerServiceUserInfoTest.java | 305 final String[] localRestrictions = new String[] { in testUserRestrictionsUpgradeFromV9() local 316 for (String restriction : localRestrictions) { in testUserRestrictionsUpgradeFromV9() 335 for (String restriction : localRestrictions) { in testUserRestrictionsUpgradeFromV9()
|
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/ |
H A D | DpmTestUtils.java | 64 RestrictionsSet localRestrictions = new RestrictionsSet(); in newRestrictions() local 65 localRestrictions.updateRestrictions(userId, localRestrictionsBundle); in newRestrictions() 66 return localRestrictions; in newRestrictions()
|
H A D | DevicePolicyManagerTest.java | 7817 RestrictionsSet localRestrictions = new RestrictionsSet(); in testSetUserRestriction_financeDo_validRestrictions_setsRestriction() local 7818 localRestrictions.updateRestrictions( in testSetUserRestriction_financeDo_validRestrictions_setsRestriction() 7826 UserHandle.USER_SYSTEM, localRestrictions), in testSetUserRestriction_financeDo_validRestrictions_setsRestriction()
|
/aosp14/frameworks/base/services/core/java/com/android/server/pm/ |
H A D | UserManagerService.java | 4439 Bundle localRestrictions = null; 4512 localRestrictions = oldLocalRestrictions.mergeAll(); 4514 localRestrictions = UserRestrictionsUtils.readRestrictions(parser); 4584 if (localRestrictions != null) { 4585 mDevicePolicyUserRestrictions.updateRestrictions(id, localRestrictions);
|