Home
last modified time | relevance | path

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

/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DUserRestrictionsUtilsTest.java93 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()
DUserManagerTest.java1160 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()
/frameworks/base/packages/SystemUI/src/com/android/systemui/user/domain/interactor/
DUserActionsUtil.kt122 UserManager.DISALLOW_ADD_USER, in currentUserCanCreateUsers()
124 ) && !manager.hasUserRestrictionForUser(UserManager.DISALLOW_ADD_USER, UserHandle.SYSTEM) in currentUserCanCreateUsers()
/frameworks/base/services/tests/PackageManagerServiceTests/server/src/com/android/server/pm/
DRestrictionsSetTest.java132 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()
/frameworks/base/packages/SystemUI/src/com/android/systemui/user/legacyhelper/data/
DLegacyUserDataHelper.kt113 UserManager.DISALLOW_ADD_USER, in getEnforcedAdmin()
121 UserManager.DISALLOW_ADD_USER, in getEnforcedAdmin()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/enterprise/
DSupervisedDeviceActionDisabledByAdminControllerTest.java63 DEFAULT_DEVICE_ADMIN_STRING_PROVIDER, UserManager.DISALLOW_ADD_USER); in setUp()
/frameworks/base/core/java/com/android/internal/app/
DConfirmUserCreationActivity.java105 boolean cantCreateUser = mUserManager.hasUserRestriction(UserManager.DISALLOW_ADD_USER) in checkUserCreationRequirements()
/frameworks/base/services/core/java/com/android/server/pm/
DUserRestrictionsUtils.java103 UserManager.DISALLOW_ADD_USER,
185 UserManager.DISALLOW_ADD_USER,
330 UserManager.DISALLOW_ADD_USER,
DUserManagerService.java2810 || !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,
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
DDevicePolicyManagerTest.java1394 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 …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/user/domain/interactor/
DUserSwitcherInteractorTest.kt1072 UserManager.DISALLOW_ADD_USER, in <lambda>()
1174 UserManager.DISALLOW_ADD_USER, in <lambda>()
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
DPolicyDefinition.java488 USER_RESTRICTION_FLAGS.put(UserManager.DISALLOW_ADD_USER, /* flags= */ 0); in USER_RESTRICTION_FLAGS.put() argument
DDevicePolicyManagerService.java4119 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);
/frameworks/base/core/java/android/os/
DUserManager.java988 public static final String DISALLOW_ADD_USER = "no_add_user"; field in UserManager
2021 DISALLOW_ADD_USER,
/frameworks/base/tools/aapt2/integration-tests/CommandTests/
Dandroid-33.jarAndroidManifest.xml META-INF/ META-INF/MANIFEST.MF NOTICES/ NOTICES/libcore ...
/frameworks/opt/setupwizard/tools/docs/
Dandroid-22.txt22386 field public static final java.lang.String DISALLOW_ADD_USER = "no_add_user";
/frameworks/base/core/api/
Dcurrent.txt34045 field public static final String DISALLOW_ADD_USER = "no_add_user";