Home
last modified time | relevance | path

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

/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
H A DUserRestrictionsUtilsTest.java57 UserRestrictionsUtils.merge(a, b); in testMerge()
61 UserRestrictionsUtils.merge(a, null); in testMerge()
66 UserRestrictionsUtils.merge(a, a); in testMerge()
120 UserRestrictionsUtils.moveRestriction( in testMoveRestriction()
145 assertTrue(UserRestrictionsUtils.areEqual( in testAreEqual()
149 assertTrue(UserRestrictionsUtils.areEqual( in testAreEqual()
153 assertTrue(UserRestrictionsUtils.areEqual( in testAreEqual()
157 assertTrue(UserRestrictionsUtils.areEqual( in testAreEqual()
161 assertTrue(UserRestrictionsUtils.areEqual( in testAreEqual()
165 assertFalse(UserRestrictionsUtils.areEqual( in testAreEqual()
[all …]
H A DUserManagerServiceUserTypeTest.java126 assertTrue(UserRestrictionsUtils.areEqual(restrictions, type.getDefaultRestrictions())); in testUserTypeBuilder_createUserType()
326 assertTrue(UserRestrictionsUtils.areEqual(restrictions, aospType.getDefaultRestrictions())); in testUserTypeFactoryCustomize_profile()
367 assertTrue(UserRestrictionsUtils.areEqual( in testUserTypeFactoryCustomize_profile()
414 assertTrue(UserRestrictionsUtils.areEqual( in testUserTypeFactoryCustomize_full()
/aosp14/frameworks/base/services/core/java/com/android/server/pm/
H A DRestrictionsSet.java78 !UserRestrictionsUtils.areEqual(mUserRestrictions.get(userId), restrictions); in updateRestrictions()
100 if (UserRestrictionsUtils.contains(restrictions, restriction)) { in removeRestrictionsForAllUsers()
116 if (UserRestrictionsUtils.contains(from, restriction)) { in moveRestriction()
151 UserRestrictionsUtils.merge(result, mUserRestrictions.valueAt(i)); in mergeAll()
185 return UserRestrictionsUtils.nonNull(mUserRestrictions.get(userId)); in getRestrictionsNonNull()
214 UserRestrictionsUtils.writeRestrictions(serializer, mUserRestrictions.valueAt(i), in writeRestrictions()
237 Bundle restrictions = UserRestrictionsUtils.readRestrictions(parser); in readRestrictions()
251 UserRestrictionsUtils.dumpRestrictions(pw, prefix + " ", mUserRestrictions.valueAt(i)); in dumpRestrictions()
H A DUserTypeDetails.java322 UserRestrictionsUtils.merge(currentRestrictions, mDefaultRestrictions); in addDefaultRestrictionsTo()
362 if (UserRestrictionsUtils.isValidRestriction(userRestriction)) { in dump()
366 UserRestrictionsUtils.dumpRestrictions(pw, restrictionsPrefix, restrictions); in dump()
372 UserRestrictionsUtils.dumpRestrictions(pw, restrictionsPrefix, mDefaultRestrictions); in dump()
H A DUserManagerService.java2671 if (!UserRestrictionsUtils.isValidRestriction(key)) { in setUserRestrictionInner()
2735 UserRestrictionsUtils.merge(effective, global); in computeEffectiveUserRestrictionsLR()
2736 UserRestrictionsUtils.merge(effective, local); in computeEffectiveUserRestrictionsLR()
2889 if (!UserRestrictionsUtils.isValidRestriction(key)) { in setUserRestriction()
2979 UserRestrictionsUtils.applyUserRestrictions( in propagateUserRestrictionsLR()
4059 UserRestrictionsUtils.merge(newRestrictions, in upgradeProfileToTypeLU()
4361 UserRestrictionsUtils
6541 UserRestrictionsUtils.dumpRestrictions(
6720 UserRestrictionsUtils.dumpRestrictions(
6723 UserRestrictionsUtils.dumpRestrictions(
[all …]
H A DUserRestrictionsUtils.java67 public class UserRestrictionsUtils { class
70 private UserRestrictionsUtils() { in UserRestrictionsUtils() method in UserRestrictionsUtils
H A DUserTypeFactory.java439 final Bundle restrictions = UserRestrictionsUtils in customizeBuilders()
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
H A DMockUtils.java26 import com.android.server.pm.UserRestrictionsUtils;
126 return UserRestrictionsUtils.areEqual((Bundle) item, expected); in createUserRestrictionsBundleMatcher()
154 return UserRestrictionsUtils.areEqual(expected.getRestrictions(userId), in createUserRestrictionsSetMatcher()
H A DDevicePolicyManagerTest.java161 import com.android.server.pm.UserRestrictionsUtils;
7789 for (String restriction : UserRestrictionsUtils.USER_RESTRICTIONS) { in testSetUserRestriction_financeDo_invalidRestrictions_restrictionNotSet()
7790 if (!UserRestrictionsUtils.canFinancedDeviceOwnerChange(restriction)) { in testSetUserRestriction_financeDo_invalidRestrictions_restrictionNotSet()
7809 for (String restriction : UserRestrictionsUtils.USER_RESTRICTIONS) { in testSetUserRestriction_financeDo_validRestrictions_setsRestriction()
7810 if (UserRestrictionsUtils.canFinancedDeviceOwnerChange(restriction)) { in testSetUserRestriction_financeDo_validRestrictions_setsRestriction()
/aosp14/frameworks/base/services/core/java/com/android/server/oemlock/
H A DOemLockService.java42 import com.android.server.pm.UserRestrictionsUtils;
102 if (UserRestrictionsUtils.restrictionsChanged(prevRestrictions, newRestrictions,
/aosp14/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
H A DActiveAdmin.java57 import com.android.server.pm.UserRestrictionsUtils;
569 UserRestrictionsUtils.writeRestrictions( in writeToXml()
871 userRestrictions = UserRestrictionsUtils.readRestrictions(parser); in readFromXml()
1174 for (String deprecatedRestriction: UserRestrictionsUtils.DEPRECATED_USER_RESTRICTIONS) { in removeDeprecatedRestrictions()
1200 key -> UserRestrictionsUtils.isLocal(adminType, key)); in getLocalUserRestrictions()
1205 key -> UserRestrictionsUtils.isGlobal(adminType, key)); in getGlobalUserRestrictions()
1372 UserRestrictionsUtils.dumpRestrictions(pw, " ", userRestrictions); in dump()
H A DDevicePolicyManagerService.java502 import com.android.server.pm.UserRestrictionsUtils;
2665 UserRestrictionsUtils.getDefaultEnabledForManagedProfiles(); in maybeSetDefaultRestrictionsForAdminLocked()
13399 if (!UserRestrictionsUtils.isValidRestriction(key)) {
13424 if (!UserRestrictionsUtils.isValidRestriction(key)) {
13434 if (!UserRestrictionsUtils.isValidRestriction(key)) {
13465 if (!UserRestrictionsUtils.canDeviceOwnerChange(key)) {
13472 if (!UserRestrictionsUtils.canFinancedDeviceOwnerChange(key)) {
13481 && UserRestrictionsUtils.canProfileOwnerChange(
13508 && UserRestrictionsUtils.isGlobal(
13546 if (!UserRestrictionsUtils.isValidRestriction(key)) {
[all …]
/aosp14/frameworks/base/services/
H A Dart-profile7157 HSPLcom/android/server/pm/UserRestrictionsUtils;-><clinit>()V
7158 HSPLcom/android/server/pm/UserRestrictionsUtils;->areEqual(Landroid/os/Bundle;Landroid/os/Bundle;)Z…
7159 HSPLcom/android/server/pm/UserRestrictionsUtils;->isGlobal(ILjava/lang/String;)Z
7160 HSPLcom/android/server/pm/UserRestrictionsUtils;->isSettingRestrictedForUser(Landroid/content/Conte…
7161 HSPLcom/android/server/pm/UserRestrictionsUtils;->isValidRestriction(Ljava/lang/String;)Z+]Ljava/la…
7162 HSPLcom/android/server/pm/UserRestrictionsUtils;->merge(Landroid/os/Bundle;Landroid/os/Bundle;)V+]L…
7163 HSPLcom/android/server/pm/UserRestrictionsUtils;->newSetWithUniqueCheck([Ljava/lang/String;)Ljava/u…
7164 HSPLcom/android/server/pm/UserRestrictionsUtils;->readRestrictions(Lcom/android/modules/utils/Typed…
7165 HSPLcom/android/server/pm/UserRestrictionsUtils;->readRestrictions(Lcom/android/modules/utils/Typed…
7166 HPLcom/android/server/pm/UserRestrictionsUtils;->writeRestrictions(Lcom/android/modules/utils/Typed…
[all …]