Home
last modified time | relevance | path

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

/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DUserRestrictionsUtilsTest.java65 Bundle out = UserRestrictionsUtils.nonNull(null); in testNonNull()
70 assertSame(in, UserRestrictionsUtils.nonNull(in)); in testNonNull()
78 UserRestrictionsUtils.merge(a, b); in testMerge()
82 UserRestrictionsUtils.merge(a, null); in testMerge()
86 assertThrows(IllegalArgumentException.class, () -> UserRestrictionsUtils.merge(a, a)); in testMerge()
91 assertFalse(UserRestrictionsUtils.canDeviceOwnerChange(UserManager.DISALLOW_RECORD_AUDIO)); in testCanDeviceOwnerChange()
92 assertFalse(UserRestrictionsUtils.canDeviceOwnerChange(UserManager.DISALLOW_WALLPAPER)); in testCanDeviceOwnerChange()
93 assertTrue(UserRestrictionsUtils.canDeviceOwnerChange(UserManager.DISALLOW_ADD_USER)); in testCanDeviceOwnerChange()
94 assertTrue(UserRestrictionsUtils.canDeviceOwnerChange(UserManager.DISALLOW_USER_SWITCH)); in testCanDeviceOwnerChange()
99 assertFalse(UserRestrictionsUtils.canProfileOwnerChange( in testCanProfileOwnerChange_mainUser()
[all …]
DUserManagerServiceUserTypeTest.java137 assertTrue(UserRestrictionsUtils.areEqual(restrictions, type.getDefaultRestrictions())); in testUserTypeBuilder_createUserType()
367 assertTrue(UserRestrictionsUtils.areEqual(restrictions, aospType.getDefaultRestrictions())); in testUserTypeFactoryCustomize_profile()
422 assertTrue(UserRestrictionsUtils.areEqual( in testUserTypeFactoryCustomize_profile()
481 assertTrue(UserRestrictionsUtils.areEqual( in testUserTypeFactoryCustomize_full()
/frameworks/base/services/core/java/com/android/server/pm/
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()
DUserTypeDetails.java357 UserRestrictionsUtils.merge(currentRestrictions, mDefaultRestrictions); in addDefaultRestrictionsTo()
396 if (UserRestrictionsUtils.isValidRestriction(userRestriction)) { in dump()
400 UserRestrictionsUtils.dumpRestrictions(pw, restrictionsPrefix, restrictions); in dump()
406 UserRestrictionsUtils.dumpRestrictions(pw, restrictionsPrefix, mDefaultRestrictions); in dump()
DUserManagerService.java3239 if (!UserRestrictionsUtils.isValidRestriction(key)) { in setUserRestrictionInner()
3303 UserRestrictionsUtils.merge(effective, global); in computeEffectiveUserRestrictionsLR()
3304 UserRestrictionsUtils.merge(effective, local); in computeEffectiveUserRestrictionsLR()
3341 if (!UserRestrictionsUtils.isValidRestriction(restrictionKey)) { in hasUserRestrictionOnAnyUser()
3361 return UserRestrictionsUtils.isSettingRestrictedForUser(mContext, setting, userId, in isSettingRestrictedForUser()
3447 if (!UserRestrictionsUtils.isValidRestriction(restrictionKey)) { in hasBaseUserRestriction()
3459 if (!UserRestrictionsUtils.isValidRestriction(key)) { in setUserRestriction()
3490 final Bundle prevAppliedRestrictions = UserRestrictionsUtils.nonNull( in updateUserRestrictionsInternalLR()
3539 if (UserRestrictionsUtils.areEqual(newRestrictions, prevRestrictions)) { in propagateUserRestrictionsLR()
3549 UserRestrictionsUtils.applyUserRestrictions( in propagateUserRestrictionsLR()
[all …]
DUserRestrictionsUtils.java67 public class UserRestrictionsUtils { class
70 private UserRestrictionsUtils() { in UserRestrictionsUtils() method in UserRestrictionsUtils
DUserTypeFactory.java568 final Bundle restrictions = UserRestrictionsUtils in customizeBuilders()
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
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()
DDevicePolicyManagerTest.java159 import com.android.server.pm.UserRestrictionsUtils;
7806 for (String restriction : UserRestrictionsUtils.USER_RESTRICTIONS) { in testSetUserRestriction_financeDo_invalidRestrictions_restrictionNotSet()
7807 if (!UserRestrictionsUtils.canFinancedDeviceOwnerChange(restriction)) { in testSetUserRestriction_financeDo_invalidRestrictions_restrictionNotSet()
7826 for (String restriction : UserRestrictionsUtils.USER_RESTRICTIONS) { in testSetUserRestriction_financeDo_validRestrictions_setsRestriction()
7827 if (UserRestrictionsUtils.canFinancedDeviceOwnerChange(restriction)) { in testSetUserRestriction_financeDo_validRestrictions_setsRestriction()
/frameworks/base/services/core/java/com/android/server/oemlock/
DOemLockService.java42 import com.android.server.pm.UserRestrictionsUtils;
102 if (UserRestrictionsUtils.restrictionsChanged(prevRestrictions, newRestrictions,
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
DActiveAdmin.java58 import com.android.server.pm.UserRestrictionsUtils;
570 UserRestrictionsUtils.writeRestrictions( in writeToXml()
872 userRestrictions = UserRestrictionsUtils.readRestrictions(parser); in readFromXml()
1175 for (String deprecatedRestriction: UserRestrictionsUtils.DEPRECATED_USER_RESTRICTIONS) { in removeDeprecatedRestrictions()
1201 key -> UserRestrictionsUtils.isLocal(adminType, key)); in getLocalUserRestrictions()
1206 key -> UserRestrictionsUtils.isGlobal(adminType, key)); in getGlobalUserRestrictions()
1315 UserRestrictionsUtils.dumpRestrictions(pw, " ", userRestrictions); in dump()
DDevicePolicyManagerService.java529 import com.android.server.pm.UserRestrictionsUtils;
1321 if (UserRestrictionsUtils.restrictionsChanged(prevRestrictions, newRestrictions, in resetCrossProfileIntentFiltersIfNeeded()
2594 if (UserRestrictionsUtils.canParentOfProfileOwnerOfOrganizationOwnedDeviceChange( in moveDoUserRestrictionsToCopeParent()
2685 UserRestrictionsUtils.getDefaultEnabledForManagedProfiles(); in maybeSetDefaultRestrictionsForAdminLocked()
13441 if (!UserRestrictionsUtils.isValidRestriction(key)) {
13466 if (!UserRestrictionsUtils.isValidRestriction(key)) {
13490 if (!UserRestrictionsUtils.canDeviceOwnerChange(key)) {
13497 if (!UserRestrictionsUtils.canFinancedDeviceOwnerChange(key)) {
13506 && UserRestrictionsUtils.canProfileOwnerChange(
13512 && UserRestrictionsUtils
[all …]
/frameworks/base/services/
Dart-wear-profile974 Lcom/android/server/pm/UserRestrictionsUtils;
20080 HSPLcom/android/server/pm/UserRestrictionsUtils;-><clinit>()V
20081 PLcom/android/server/pm/UserRestrictionsUtils;->applyUserRestrictions(Landroid/content/Context;ILan…
20082 HSPLcom/android/server/pm/UserRestrictionsUtils;->areEqual(Landroid/os/Bundle;Landroid/os/Bundle;)Z
20083 HPLcom/android/server/pm/UserRestrictionsUtils;->isSettingRestrictedForUser(Landroid/content/Contex…
20084 HPLcom/android/server/pm/UserRestrictionsUtils;->isValidRestriction(Ljava/lang/String;)Z
20085 HSPLcom/android/server/pm/UserRestrictionsUtils;->merge(Landroid/os/Bundle;Landroid/os/Bundle;)V
20086 HSPLcom/android/server/pm/UserRestrictionsUtils;->newSetWithUniqueCheck([Ljava/lang/String;)Ljava/u…
20087 PLcom/android/server/pm/UserRestrictionsUtils;->nonNull(Landroid/os/Bundle;)Landroid/os/Bundle;
20088 HSPLcom/android/server/pm/UserRestrictionsUtils;->readRestrictions(Lcom/android/modules/utils/Typed…
[all …]
Dart-profile2720 HSPLcom/android/server/pm/UserRestrictionsUtils;->areEqual(Landroid/os/Bundle;Landroid/os/Bundle;)Z…
2721 HSPLcom/android/server/pm/UserRestrictionsUtils;->isSettingRestrictedForUser(Landroid/content/Conte…
2722 HSPLcom/android/server/pm/UserRestrictionsUtils;->isValidRestriction(Ljava/lang/String;)Z+]Landroid…
/frameworks/proto_logging/stats/
Datoms.proto9355 // Allowed values are defined in UserRestrictionsUtils#USER_RESTRICTIONS.