Home
last modified time | relevance | path

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

/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DUserRestrictionsUtilsTest.java76 assertTrue(UserRestrictionsUtils.canDeviceOwnerChange(UserManager.DISALLOW_ADD_USER)); in testCanDeviceOwnerChange()
89 UserManager.DISALLOW_ADD_USER, user)); in testCanProfileOwnerChange()
99 UserManager.DISALLOW_ADD_USER, user)); in testCanProfileOwnerChange()
116 newRestrictions(UserManager.DISALLOW_ADD_USER)); in testMoveRestriction()
133 newRestrictions(UserManager.ENSURE_VERIFY_APPS, UserManager.DISALLOW_ADD_USER), in testMoveRestriction()
DUserManagerTest.java660 mUserManager.setUserRestriction(UserManager.DISALLOW_ADD_USER, true, creatorHandle); in testCreateUser_disallowAddUser()
665 mUserManager.setUserRestriction(UserManager.DISALLOW_ADD_USER, false, in testCreateUser_disallowAddUser()
733 mUserManager.setUserRestriction(UserManager.DISALLOW_ADD_USER, true, primaryUserHandle); in testCreateProfileForUser_disallowAddUser()
739 mUserManager.setUserRestriction(UserManager.DISALLOW_ADD_USER, false, in testCreateProfileForUser_disallowAddUser()
/frameworks/base/services/tests/PackageManagerServiceTests/server/src/com/android/server/
DRestrictionsSetTest.java131 newRestrictions(UserManager.DISALLOW_ADD_USER, in testMergeAll_hasRestrictions()
136 UserManager.DISALLOW_CONFIG_DATE_TIME, UserManager.DISALLOW_ADD_USER, in testMergeAll_hasRestrictions()
145 newRestrictions(UserManager.DISALLOW_ADD_USER)); in testGetEnforcingUsers_hasEnforcingUser()
/frameworks/base/packages/SystemUI/src/com/android/systemui/user/legacyhelper/data/
DLegacyUserDataHelper.kt110 UserManager.DISALLOW_ADD_USER, in getEnforcedAdmin()
118 UserManager.DISALLOW_ADD_USER, in getEnforcedAdmin()
/frameworks/base/packages/SystemUI/src/com/android/systemui/user/domain/interactor/
DUserActionsUtil.kt113 return !manager.hasBaseUserRestriction(UserManager.DISALLOW_ADD_USER, UserHandle.SYSTEM) in systemCanCreateUsers()
/frameworks/base/core/java/com/android/internal/app/
DConfirmUserCreationActivity.java103 boolean cantCreateUser = mUserManager.hasUserRestriction(UserManager.DISALLOW_ADD_USER) in checkUserCreationRequirements()
/frameworks/base/services/core/java/com/android/server/pm/
DUserRestrictionsUtils.java103 UserManager.DISALLOW_ADD_USER,
175 UserManager.DISALLOW_ADD_USER,
293 UserManager.DISALLOW_ADD_USER,
DUserManagerService.java3932 String restriction = UserManager.DISALLOW_ADD_USER; in createUserInternal()
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
DDevicePolicyManagerTest.java1395 dpm.addUserRestriction(admin1, UserManager.DISALLOW_ADD_USER); in testClearDeviceOwner()
1396 when(getServices().userManager.hasUserRestriction(eq(UserManager.DISALLOW_ADD_USER), in testClearDeviceOwner()
1421 verify(getServices().userManager).setUserRestriction(eq(UserManager.DISALLOW_ADD_USER), in testClearDeviceOwner()
1988 dpm.addUserRestriction(admin1, UserManager.DISALLOW_ADD_USER); in testSetUserRestriction_asDo()
1991 MockUtils.checkUserRestrictions(UserManager.DISALLOW_ADD_USER), in testSetUserRestriction_asDo()
1998 MockUtils.checkUserRestrictions(UserManager.DISALLOW_ADD_USER), in testSetUserRestriction_asDo()
2006 UserManager.DISALLOW_ADD_USER, UserManager.DISALLOW_OUTGOING_CALLS), in testSetUserRestriction_asDo()
2011 UserManager.DISALLOW_ADD_USER, UserManager.DISALLOW_OUTGOING_CALLS), in testSetUserRestriction_asDo()
2015 dpm.clearUserRestriction(admin1, UserManager.DISALLOW_ADD_USER); in testSetUserRestriction_asDo()
2059 dpm.addUserRestriction(admin1, UserManager.DISALLOW_ADD_USER); in testSetUserRestriction_asDo()
[all …]
/frameworks/base/core/java/android/os/
DUserManager.java815 public static final String DISALLOW_ADD_USER = "no_add_user"; field in UserManager
1525 DISALLOW_ADD_USER,
5120 || !hasUserRestrictionForUser(DISALLOW_ADD_USER, mUserId); // New users can be added in isUserSwitcherEnabled()
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
DDevicePolicyManagerService.java3640 UserManager.DISALLOW_ADD_USER, false, parentUserHandle);
3645 if (mUserManager.hasUserRestriction(UserManager.DISALLOW_ADD_USER, userHandle)) {
3646 mUserManager.setUserRestriction(UserManager.DISALLOW_ADD_USER, false, userHandle);
14788 mUserManager.setUserRestriction(UserManager.DISALLOW_ADD_USER,
18252 if (!mUserManager.hasUserRestriction(UserManager.DISALLOW_ADD_USER, userHandle)) {
18254 UserManager.DISALLOW_ADD_USER, /* value= */ true, userHandle);
/frameworks/opt/setupwizard/tools/docs/
Dandroid-22.txt22386 field public static final java.lang.String DISALLOW_ADD_USER = "no_add_user";
/frameworks/base/core/api/
Dcurrent.txt32224 field public static final String DISALLOW_ADD_USER = "no_add_user";