Home
last modified time | relevance | path

Searched refs:DISALLOW_ADD_USER (Results 1 – 14 of 14) 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.java1091 dpm.addUserRestriction(admin1, UserManager.DISALLOW_ADD_USER); in testClearDeviceOwner()
1092 when(getServices().userManager.hasUserRestriction(eq(UserManager.DISALLOW_ADD_USER), in testClearDeviceOwner()
1118 verify(getServices().userManager).setUserRestriction(eq(UserManager.DISALLOW_ADD_USER), in testClearDeviceOwner()
1667 dpm.addUserRestriction(admin1, UserManager.DISALLOW_ADD_USER); in testSetUserRestriction_asDo()
1670 MockUtils.checkUserRestrictions(UserManager.DISALLOW_ADD_USER), in testSetUserRestriction_asDo()
1678 UserManager.DISALLOW_ADD_USER), in testSetUserRestriction_asDo()
1684 UserManager.DISALLOW_ADD_USER, UserManager.DISALLOW_OUTGOING_CALLS), in testSetUserRestriction_asDo()
1689 UserManager.DISALLOW_ADD_USER, UserManager.DISALLOW_OUTGOING_CALLS), in testSetUserRestriction_asDo()
1693 dpm.clearUserRestriction(admin1, UserManager.DISALLOW_ADD_USER); in testSetUserRestriction_asDo()
1735 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.java118 || (guestEnabled && !mUserManager.hasUserRestriction(UserManager.DISALLOW_ADD_USER)) in isMultiUserEnabled()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DUserSwitcherController.java241 UserManager.DISALLOW_ADD_USER, UserHandle.SYSTEM); in refreshUsers()
700 UserManager.DISALLOW_ADD_USER, ActivityManager.getCurrentUser()); in checkIfAddUserDisallowedByAdminOnly()
702 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.java2754 : UserManager.DISALLOW_ADD_USER; in createUserInternal()
/frameworks/base/core/java/android/os/
DUserManager.java524 public static final String DISALLOW_ADD_USER = "no_add_user"; field in UserManager
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
DDevicePolicyManagerService.java4049 if (mUserManager.hasUserRestriction(UserManager.DISALLOW_ADD_USER, userHandle)) { in clearDeviceOwnerUserRestrictionLocked()
4050 mUserManager.setUserRestriction(UserManager.DISALLOW_ADD_USER, false, userHandle); in clearDeviceOwnerUserRestrictionLocked()
/frameworks/opt/setupwizard/tools/docs/
Dandroid-22.txt22386 field public static final java.lang.String DISALLOW_ADD_USER = "no_add_user";
/frameworks/base/non-updatable-api/
Dcurrent.txt35596 field public static final String DISALLOW_ADD_USER = "no_add_user";
/frameworks/base/api/
Dcurrent.txt35740 field public static final String DISALLOW_ADD_USER = "no_add_user";