Searched refs:DISALLOW_ADD_USER (Results 1 – 17 of 17) sorted by relevance
93 assertTrue(UserRestrictionsUtils.canDeviceOwnerChange(UserManager.DISALLOW_ADD_USER)); in testCanDeviceOwnerChange()112 UserManager.DISALLOW_ADD_USER, in testCanProfileOwnerChange_mainUser()132 UserManager.DISALLOW_ADD_USER, in testCanProfileOwnerChange_notMainUser()222 newRestrictions(UserManager.DISALLOW_ADD_USER)); in testMoveRestriction()239 newRestrictions(UserManager.ENSURE_VERIFY_APPS, UserManager.DISALLOW_ADD_USER), in testMoveRestriction()
1160 mUserManager.setUserRestriction(UserManager.DISALLOW_ADD_USER, true, creatorHandle); in testCreateUser_disallowAddUser()1165 mUserManager.setUserRestriction(UserManager.DISALLOW_ADD_USER, false, in testCreateUser_disallowAddUser()1233 mUserManager.setUserRestriction(UserManager.DISALLOW_ADD_USER, true, mainUserHandle); in testCreateProfileForUser_disallowAddUser()1239 mUserManager.setUserRestriction(UserManager.DISALLOW_ADD_USER, false, in testCreateProfileForUser_disallowAddUser()
122 UserManager.DISALLOW_ADD_USER, in currentUserCanCreateUsers()124 ) && !manager.hasUserRestrictionForUser(UserManager.DISALLOW_ADD_USER, UserHandle.SYSTEM) in currentUserCanCreateUsers()
132 newRestrictions(UserManager.DISALLOW_ADD_USER, in testMergeAll_hasRestrictions()137 UserManager.DISALLOW_CONFIG_DATE_TIME, UserManager.DISALLOW_ADD_USER, in testMergeAll_hasRestrictions()147 newRestrictions(UserManager.DISALLOW_ADD_USER)); in testGetEnforcingUsers_hasEnforcingUser()
113 UserManager.DISALLOW_ADD_USER, in getEnforcedAdmin()121 UserManager.DISALLOW_ADD_USER, in getEnforcedAdmin()
63 DEFAULT_DEVICE_ADMIN_STRING_PROVIDER, UserManager.DISALLOW_ADD_USER); in setUp()
105 boolean cantCreateUser = mUserManager.hasUserRestriction(UserManager.DISALLOW_ADD_USER) in checkUserCreationRequirements()
103 UserManager.DISALLOW_ADD_USER,185 UserManager.DISALLOW_ADD_USER,330 UserManager.DISALLOW_ADD_USER,
2810 || !hasUserRestriction(UserManager.DISALLOW_ADD_USER, mUserId) // Can add new user in isUserSwitcherEnabled()5362 String restriction = UserManager.DISALLOW_ADD_USER;5959 && !hasUserRestriction(UserManager.DISALLOW_ADD_USER,
1394 dpm.addUserRestriction(admin1, UserManager.DISALLOW_ADD_USER); in testClearDeviceOwner()1395 when(getServices().userManager.hasUserRestriction(eq(UserManager.DISALLOW_ADD_USER), in testClearDeviceOwner()1420 verify(getServices().userManager).setUserRestriction(eq(UserManager.DISALLOW_ADD_USER), in testClearDeviceOwner()1989 dpm.addUserRestriction(admin1, UserManager.DISALLOW_ADD_USER); in testSetUserRestriction_asDo()1992 MockUtils.checkUserRestrictions(UserManager.DISALLOW_ADD_USER), in testSetUserRestriction_asDo()1999 MockUtils.checkUserRestrictions(UserManager.DISALLOW_ADD_USER), in testSetUserRestriction_asDo()2007 UserManager.DISALLOW_ADD_USER, UserManager.DISALLOW_OUTGOING_CALLS), in testSetUserRestriction_asDo()2012 UserManager.DISALLOW_ADD_USER, UserManager.DISALLOW_OUTGOING_CALLS), in testSetUserRestriction_asDo()2016 dpm.clearUserRestriction(admin1, UserManager.DISALLOW_ADD_USER); in testSetUserRestriction_asDo()2060 dpm.addUserRestriction(admin1, UserManager.DISALLOW_ADD_USER); in testSetUserRestriction_asDo()[all …]
1072 UserManager.DISALLOW_ADD_USER, in <lambda>()1174 UserManager.DISALLOW_ADD_USER, in <lambda>()
488 USER_RESTRICTION_FLAGS.put(UserManager.DISALLOW_ADD_USER, /* flags= */ 0); in USER_RESTRICTION_FLAGS.put() argument
4119 UserManager.DISALLOW_ADD_USER, false, parentUserHandle);4127 if (mUserManager.hasUserRestriction(UserManager.DISALLOW_ADD_USER, user)) {4128 mUserManager.setUserRestriction(UserManager.DISALLOW_ADD_USER,13692 UserManager.DISALLOW_ADD_USER, new String[]{MANAGE_DEVICE_POLICY_MODIFY_USERS});17877 mUserManager.setUserRestriction(UserManager.DISALLOW_ADD_USER,22096 if (!mUserManager.hasUserRestriction(UserManager.DISALLOW_ADD_USER, userHandle)) {22098 UserManager.DISALLOW_ADD_USER, /* value= */ true, userHandle);
988 public static final String DISALLOW_ADD_USER = "no_add_user"; field in UserManager2021 DISALLOW_ADD_USER,
AndroidManifest.xml META-INF/ META-INF/MANIFEST.MF NOTICES/ NOTICES/libcore ...
22386 field public static final java.lang.String DISALLOW_ADD_USER = "no_add_user";
34045 field public static final String DISALLOW_ADD_USER = "no_add_user";