Searched refs:DISALLOW_ADD_USER (Results 1 – 13 of 13) sorted by relevance
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/ |
D | UserRestrictionsUtilsTest.java | 76 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()
|
D | UserManagerTest.java | 660 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/ |
D | RestrictionsSetTest.java | 131 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/ |
D | LegacyUserDataHelper.kt | 110 UserManager.DISALLOW_ADD_USER, in getEnforcedAdmin() 118 UserManager.DISALLOW_ADD_USER, in getEnforcedAdmin()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/user/domain/interactor/ |
D | UserActionsUtil.kt | 113 return !manager.hasBaseUserRestriction(UserManager.DISALLOW_ADD_USER, UserHandle.SYSTEM) in systemCanCreateUsers()
|
/frameworks/base/core/java/com/android/internal/app/ |
D | ConfirmUserCreationActivity.java | 103 boolean cantCreateUser = mUserManager.hasUserRestriction(UserManager.DISALLOW_ADD_USER) in checkUserCreationRequirements()
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | UserRestrictionsUtils.java | 103 UserManager.DISALLOW_ADD_USER, 175 UserManager.DISALLOW_ADD_USER, 293 UserManager.DISALLOW_ADD_USER,
|
D | UserManagerService.java | 3932 String restriction = UserManager.DISALLOW_ADD_USER; in createUserInternal()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/ |
D | DevicePolicyManagerTest.java | 1395 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/ |
D | UserManager.java | 815 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/ |
D | DevicePolicyManagerService.java | 3640 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/ |
D | android-22.txt | 22386 field public static final java.lang.String DISALLOW_ADD_USER = "no_add_user";
|
/frameworks/base/core/api/ |
D | current.txt | 32224 field public static final String DISALLOW_ADD_USER = "no_add_user";
|