Searched refs:DISALLOW_ADD_USER (Results 1 – 12 of 12) sorted by relevance
86 UserManager.DISALLOW_ADD_USER, in testMigration()92 UserManager.DISALLOW_ADD_USER, in testMigration()101 UserManager.DISALLOW_ADD_USER, in testMigration()159 UserManager.DISALLOW_ADD_USER, in testMigration()169 UserManager.DISALLOW_ADD_USER, in testMigration()180 UserManager.DISALLOW_ADD_USER, in testMigration()215 UserManager.DISALLOW_ADD_USER, in testMigration2_profileOwnerOnUser0()266 UserManager.DISALLOW_ADD_USER, in testMigration2_profileOwnerOnUser0()
1095 dpm.addUserRestriction(admin1, UserManager.DISALLOW_ADD_USER); in testClearDeviceOwner()1096 when(getServices().userManager.hasUserRestriction(eq(UserManager.DISALLOW_ADD_USER), in testClearDeviceOwner()1122 verify(getServices().userManager).setUserRestriction(eq(UserManager.DISALLOW_ADD_USER), in testClearDeviceOwner()1640 dpm.addUserRestriction(admin1, UserManager.DISALLOW_ADD_USER); in testSetUserRestriction_asDo()1643 MockUtils.checkUserRestrictions(UserManager.DISALLOW_ADD_USER), in testSetUserRestriction_asDo()1651 UserManager.DISALLOW_ADD_USER), in testSetUserRestriction_asDo()1657 UserManager.DISALLOW_ADD_USER, UserManager.DISALLOW_OUTGOING_CALLS), in testSetUserRestriction_asDo()1662 UserManager.DISALLOW_ADD_USER, UserManager.DISALLOW_OUTGOING_CALLS), in testSetUserRestriction_asDo()1666 dpm.clearUserRestriction(admin1, UserManager.DISALLOW_ADD_USER); in testSetUserRestriction_asDo()1708 dpm.addUserRestriction(admin1, UserManager.DISALLOW_ADD_USER); in testSetUserRestriction_asDo()[all …]
91 assertTrue(UserRestrictionsUtils.canDeviceOwnerChange(UserManager.DISALLOW_ADD_USER)); in testCanDeviceOwnerChange()104 UserManager.DISALLOW_ADD_USER, user)); in testCanProfileOwnerChange()114 UserManager.DISALLOW_ADD_USER, user)); in testCanProfileOwnerChange()243 globalRestrictions.put(1, newRestrictions(UserManager.DISALLOW_ADD_USER)); in testMoveRestriction()261 newRestrictions(UserManager.ENSURE_VERIFY_APPS, UserManager.DISALLOW_ADD_USER), in testMoveRestriction()
310 mUserManager.setUserRestriction(UserManager.DISALLOW_ADD_USER, true, primaryUserHandle); in testCreateUser_disallowAddUser()315 mUserManager.setUserRestriction(UserManager.DISALLOW_ADD_USER, false, in testCreateUser_disallowAddUser()359 mUserManager.setUserRestriction(UserManager.DISALLOW_ADD_USER, true, primaryUserHandle); in testCreateProfileForUser_disallowAddUser()365 mUserManager.setUserRestriction(UserManager.DISALLOW_ADD_USER, false, in testCreateProfileForUser_disallowAddUser()
99 boolean cantCreateUser = mUserManager.hasUserRestriction(UserManager.DISALLOW_ADD_USER) in checkUserCreationRequirements()
117 || (guestEnabled && !mUserManager.hasUserRestriction(UserManager.DISALLOW_ADD_USER)) in isMultiUserEnabled()
240 UserManager.DISALLOW_ADD_USER, UserHandle.SYSTEM); in refreshUsers()697 UserManager.DISALLOW_ADD_USER, ActivityManager.getCurrentUser()); in checkIfAddUserDisallowedByAdminOnly()699 UserManager.DISALLOW_ADD_USER, ActivityManager.getCurrentUser())) { in checkIfAddUserDisallowedByAdminOnly()
98 UserManager.DISALLOW_ADD_USER,157 UserManager.DISALLOW_ADD_USER,
2670 : UserManager.DISALLOW_ADD_USER; in createUserInternal()
523 public static final String DISALLOW_ADD_USER = "no_add_user"; field in UserManager
4041 if (mUserManager.hasUserRestriction(UserManager.DISALLOW_ADD_USER, userHandle)) { in clearDeviceOwnerUserRestrictionLocked()4042 mUserManager.setUserRestriction(UserManager.DISALLOW_ADD_USER, false, userHandle); in clearDeviceOwnerUserRestrictionLocked()
META-INF/ META-INF/MANIFEST.MF javax/ javax/net/ javax/ ...