Home
last modified time | relevance | path

Searched refs:UserRestrictionsUtils (Results 1 – 11 of 11) 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.java1445 UserRestrictionsUtils.sortToGlobalAndLocal(restrictions, isDeviceOwner, in setDevicePolicyUserRestrictionsInner()
1500 !UserRestrictionsUtils.areEqual(restrictionsArray.get(userId), restrictions); in updateRestrictionsIfNeededLR()
1502 if (!UserRestrictionsUtils.isEmpty(restrictions)) { in updateRestrictionsIfNeededLR()
1514 UserRestrictionsUtils.nonNull(mBaseUserRestrictions.get(userId)); in computeEffectiveUserRestrictionsLR()
1515 final Bundle global = UserRestrictionsUtils.mergeAll(mDevicePolicyGlobalUserRestrictions); in computeEffectiveUserRestrictionsLR()
1518 if (UserRestrictionsUtils.isEmpty(global) && UserRestrictionsUtils.isEmpty(local)) { in computeEffectiveUserRestrictionsLR()
1522 final Bundle effective = UserRestrictionsUtils.clone(baseRestrictions); in computeEffectiveUserRestrictionsLR()
1523 UserRestrictionsUtils.merge(effective, global); in computeEffectiveUserRestrictionsLR()
1524 UserRestrictionsUtils.merge(effective, local); in computeEffectiveUserRestrictionsLR()
1551 if (!UserRestrictionsUtils.isValidRestriction(restrictionKey)) { in hasUserRestriction()
[all …]
DOWNERS34 per-file UserRestrictionsUtils.java = omakoto@google.com, rubinxu@google.com, sandness@google.com, …
DUserRestrictionsUtils.java62 public class UserRestrictionsUtils { class
65 private UserRestrictionsUtils() { in UserRestrictionsUtils() method in UserRestrictionsUtils
/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/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.java99 import com.android.server.pm.UserRestrictionsUtils;
1615 final String[] defaultRestrictions = UserRestrictionsUtils in testSetUserRestriction_asDo()
1883 String[] defaultRestrictions = UserRestrictionsUtils in testDefaultEnabledUserRestrictions()
1919 assertFalse(UserRestrictionsUtils in testDefaultEnabledUserRestrictions()
1921 UserRestrictionsUtils in testDefaultEnabledUserRestrictions()
1954 UserRestrictionsUtils in testDefaultEnabledUserRestrictions()
/frameworks/base/services/core/java/com/android/server/
DBluetoothManagerService.java72 import com.android.server.pm.UserRestrictionsUtils;
237 if (UserRestrictionsUtils.restrictionsChanged(prevRestrictions, newRestrictions,
245 && UserRestrictionsUtils.restrictionsChanged(prevRestrictions,
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
DDevicePolicyManagerService.java257 import com.android.server.pm.UserRestrictionsUtils;
1303 UserRestrictionsUtils.writeRestrictions( in writeToXml()
1504 userRestrictions = UserRestrictionsUtils.readRestrictions(parser); in readFromXml()
1763 UserRestrictionsUtils.dumpRestrictions(pw, prefix + " ", userRestrictions); in dump()
2375 deviceOwner, UserRestrictionsUtils.getDefaultEnabledForDeviceOwner()); in maybeSetDefaultDeviceOwnerUserRestrictionsLocked()
2392 UserRestrictionsUtils.getDefaultEnabledForManagedProfiles()); in maybeSetDefaultProfileOwnerUserRestrictions()
2584 ? UserRestrictionsUtils.canDeviceOwnerChange(key) in migrateUserRestrictionsForUser()
2585 : UserRestrictionsUtils.canProfileOwnerChange(key, user.getIdentifier()); in migrateUserRestrictionsForUser()
7834 UserRestrictionsUtils.getDefaultEnabledForDeviceOwner(); in setDeviceOwner()
8114 UserRestrictionsUtils.getDefaultEnabledForManagedProfiles()); in setProfileOwner()
[all …]
/frameworks/base/services/
Dart-profile11841 HSPLcom/android/server/pm/UserRestrictionsUtils;->applyUserRestriction(Landroid/content/Context;ILj…
11842 HSPLcom/android/server/pm/UserRestrictionsUtils;->applyUserRestrictions(Landroid/content/Context;IL…
11843 HSPLcom/android/server/pm/UserRestrictionsUtils;->areEqual(Landroid/os/Bundle;Landroid/os/Bundle;)Z
11844 HSPLcom/android/server/pm/UserRestrictionsUtils;->dumpRestrictions(Ljava/io/PrintWriter;Ljava/lang/…
11845 HSPLcom/android/server/pm/UserRestrictionsUtils;->isGlobal(ZLjava/lang/String;)Z
11846 HSPLcom/android/server/pm/UserRestrictionsUtils;->isSettingRestrictedForUser(Landroid/content/Conte…
11847 HSPLcom/android/server/pm/UserRestrictionsUtils;->isValidRestriction(Ljava/lang/String;)Z
11848 HSPLcom/android/server/pm/UserRestrictionsUtils;->merge(Landroid/os/Bundle;Landroid/os/Bundle;)V
11849 HSPLcom/android/server/pm/UserRestrictionsUtils;->mergeAll(Landroid/util/SparseArray;)Landroid/os/B…
11850 HSPLcom/android/server/pm/UserRestrictionsUtils;->newSetWithUniqueCheck([Ljava/lang/String;)Ljava/u…
[all …]
/frameworks/base/cmds/statsd/src/
Datoms.proto4792 // Allowed values are defined in UserRestrictionsUtils#USER_RESTRICTIONS.