Home
last modified time | relevance | path

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

/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DUserRestrictionsUtilsTest.java44 Bundle out = UserRestrictionsUtils.nonNull(null); in testNonNull()
49 assertSame(in, UserRestrictionsUtils.nonNull(in)); in testNonNull()
53 assertTrue(UserRestrictionsUtils.isEmpty(null)); in testIsEmpty()
54 assertTrue(UserRestrictionsUtils.isEmpty(new Bundle())); in testIsEmpty()
55 assertFalse(UserRestrictionsUtils.isEmpty(newRestrictions("a"))); in testIsEmpty()
60 Bundle out = UserRestrictionsUtils.clone(in); in testClone()
64 out = UserRestrictionsUtils.clone(null); in testClone()
73 UserRestrictionsUtils.merge(a, b); in testMerge()
77 UserRestrictionsUtils.merge(a, null); in testMerge()
82 UserRestrictionsUtils.merge(a, a); in testMerge()
[all …]
/frameworks/base/services/core/java/com/android/server/pm/
DUserManagerService.java1394 UserRestrictionsUtils.sortToGlobalAndLocal(restrictions, isDeviceOwner, in setDevicePolicyUserRestrictionsInner()
1449 !UserRestrictionsUtils.areEqual(restrictionsArray.get(userId), restrictions); in updateRestrictionsIfNeededLR()
1451 if (!UserRestrictionsUtils.isEmpty(restrictions)) { in updateRestrictionsIfNeededLR()
1463 UserRestrictionsUtils.nonNull(mBaseUserRestrictions.get(userId)); in computeEffectiveUserRestrictionsLR()
1464 final Bundle global = UserRestrictionsUtils.mergeAll(mDevicePolicyGlobalUserRestrictions); in computeEffectiveUserRestrictionsLR()
1467 if (UserRestrictionsUtils.isEmpty(global) && UserRestrictionsUtils.isEmpty(local)) { in computeEffectiveUserRestrictionsLR()
1471 final Bundle effective = UserRestrictionsUtils.clone(baseRestrictions); in computeEffectiveUserRestrictionsLR()
1472 UserRestrictionsUtils.merge(effective, global); in computeEffectiveUserRestrictionsLR()
1473 UserRestrictionsUtils.merge(effective, local); in computeEffectiveUserRestrictionsLR()
1500 if (!UserRestrictionsUtils.isValidRestriction(restrictionKey)) { in hasUserRestriction()
[all …]
DUserRestrictionsUtils.java58 public class UserRestrictionsUtils { class
61 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;
115 return UserRestrictionsUtils.areEqual((Bundle) item, expected); in checkUserRestrictions()
DDevicePolicyManagerTest.java94 import com.android.server.pm.UserRestrictionsUtils;
1600 final String[] defaultRestrictions = UserRestrictionsUtils in testSetUserRestriction_asDo()
1857 String[] defaultRestrictions = UserRestrictionsUtils in testDefaultEnabledUserRestrictions()
1893 assertFalse(UserRestrictionsUtils in testDefaultEnabledUserRestrictions()
1895 UserRestrictionsUtils in testDefaultEnabledUserRestrictions()
1928 UserRestrictionsUtils in testDefaultEnabledUserRestrictions()
/frameworks/base/services/core/java/com/android/server/oemlock/
DOemLockService.java39 import com.android.server.pm.UserRestrictionsUtils;
96 if (UserRestrictionsUtils.restrictionsChanged(prevRestrictions, newRestrictions,
/frameworks/base/services/core/java/com/android/server/
DBluetoothManagerService.java67 import com.android.server.pm.UserRestrictionsUtils;
227 if (UserRestrictionsUtils.restrictionsChanged(prevRestrictions, newRestrictions,
235 && UserRestrictionsUtils.restrictionsChanged(prevRestrictions,
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
DDevicePolicyManagerService.java231 import com.android.server.pm.UserRestrictionsUtils;
1236 UserRestrictionsUtils.writeRestrictions( in writeToXml()
1432 userRestrictions = UserRestrictionsUtils.readRestrictions(parser); in readFromXml()
1691 UserRestrictionsUtils.dumpRestrictions(pw, prefix + " ", userRestrictions); in dump()
2266 deviceOwner, UserRestrictionsUtils.getDefaultEnabledForDeviceOwner()); in maybeSetDefaultDeviceOwnerUserRestrictionsLocked()
2283 UserRestrictionsUtils.getDefaultEnabledForManagedProfiles()); in maybeSetDefaultProfileOwnerUserRestrictions()
2475 ? UserRestrictionsUtils.canDeviceOwnerChange(key) in migrateUserRestrictionsForUser()
2476 : UserRestrictionsUtils.canProfileOwnerChange(key, user.getIdentifier()); in migrateUserRestrictionsForUser()
7215 UserRestrictionsUtils.getDefaultEnabledForDeviceOwner(); in setDeviceOwner()
7474 UserRestrictionsUtils.getDefaultEnabledForManagedProfiles()); in setProfileOwner()
[all …]
/frameworks/base/services/
Dart-profile3101 Lcom/android/server/pm/UserRestrictionsUtils;