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.java1504 UserRestrictionsUtils.sortToGlobalAndLocal(restrictions, isDeviceOwner, in setDevicePolicyUserRestrictionsInner()
1559 !UserRestrictionsUtils.areEqual(restrictionsArray.get(userId), restrictions); in updateRestrictionsIfNeededLR()
1561 if (!UserRestrictionsUtils.isEmpty(restrictions)) { in updateRestrictionsIfNeededLR()
1573 UserRestrictionsUtils.nonNull(mBaseUserRestrictions.get(userId)); in computeEffectiveUserRestrictionsLR()
1574 final Bundle global = UserRestrictionsUtils.mergeAll(mDevicePolicyGlobalUserRestrictions); in computeEffectiveUserRestrictionsLR()
1577 if (UserRestrictionsUtils.isEmpty(global) && UserRestrictionsUtils.isEmpty(local)) { in computeEffectiveUserRestrictionsLR()
1581 final Bundle effective = UserRestrictionsUtils.clone(baseRestrictions); in computeEffectiveUserRestrictionsLR()
1582 UserRestrictionsUtils.merge(effective, global); in computeEffectiveUserRestrictionsLR()
1583 UserRestrictionsUtils.merge(effective, local); in computeEffectiveUserRestrictionsLR()
1610 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/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;
1642 final String[] defaultRestrictions = UserRestrictionsUtils in testSetUserRestriction_asDo()
1910 String[] defaultRestrictions = UserRestrictionsUtils in testDefaultEnabledUserRestrictions()
1946 assertFalse(UserRestrictionsUtils in testDefaultEnabledUserRestrictions()
1948 UserRestrictionsUtils in testDefaultEnabledUserRestrictions()
1981 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.java74 import com.android.server.pm.UserRestrictionsUtils;
250 if (UserRestrictionsUtils.restrictionsChanged(prevRestrictions, newRestrictions,
258 && UserRestrictionsUtils.restrictionsChanged(prevRestrictions,
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
DDevicePolicyManagerService.java260 import com.android.server.pm.UserRestrictionsUtils;
1307 UserRestrictionsUtils.writeRestrictions( in writeToXml()
1508 userRestrictions = UserRestrictionsUtils.readRestrictions(parser); in readFromXml()
1767 UserRestrictionsUtils.dumpRestrictions(pw, prefix + " ", userRestrictions); in dump()
2383 deviceOwner, UserRestrictionsUtils.getDefaultEnabledForDeviceOwner()); in maybeSetDefaultDeviceOwnerUserRestrictionsLocked()
2400 UserRestrictionsUtils.getDefaultEnabledForManagedProfiles()); in maybeSetDefaultProfileOwnerUserRestrictions()
2592 ? UserRestrictionsUtils.canDeviceOwnerChange(key) in migrateUserRestrictionsForUser()
2593 : UserRestrictionsUtils.canProfileOwnerChange(key, user.getIdentifier()); in migrateUserRestrictionsForUser()
7850 UserRestrictionsUtils.getDefaultEnabledForDeviceOwner(); in setDeviceOwner()
8122 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.proto5371 // Allowed values are defined in UserRestrictionsUtils#USER_RESTRICTIONS.