Home
last modified time | relevance | path

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

/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
DDevicePolicyManagerServiceMigrationTest.java86 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()
DDevicePolicyManagerTest.java1095 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 …]
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DUserRestrictionsUtilsTest.java91 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()
DUserManagerTest.java310 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()
/frameworks/base/core/java/com/android/internal/app/
DConfirmUserCreationActivity.java99 boolean cantCreateUser = mUserManager.hasUserRestriction(UserManager.DISALLOW_ADD_USER) in checkUserCreationRequirements()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DMultiUserSwitch.java117 || (guestEnabled && !mUserManager.hasUserRestriction(UserManager.DISALLOW_ADD_USER)) in isMultiUserEnabled()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DUserSwitcherController.java240 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()
/frameworks/base/services/core/java/com/android/server/pm/
DUserRestrictionsUtils.java98 UserManager.DISALLOW_ADD_USER,
157 UserManager.DISALLOW_ADD_USER,
DUserManagerService.java2670 : UserManager.DISALLOW_ADD_USER; in createUserInternal()
/frameworks/base/core/java/android/os/
DUserManager.java523 public static final String DISALLOW_ADD_USER = "no_add_user"; field in UserManager
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
DDevicePolicyManagerService.java4041 if (mUserManager.hasUserRestriction(UserManager.DISALLOW_ADD_USER, userHandle)) { in clearDeviceOwnerUserRestrictionLocked()
4042 mUserManager.setUserRestriction(UserManager.DISALLOW_ADD_USER, false, userHandle); in clearDeviceOwnerUserRestrictionLocked()
/frameworks/base/tools/aapt2/integration-tests/CommandTests/
Dandroid-28.jarMETA-INF/ META-INF/MANIFEST.MF javax/ javax/net/ javax/ ...