Home
last modified time | relevance | path

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

/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/task/
DDisallowAddUserTaskTest.java85 verify(mockUserManager).setUserRestriction(UserManager.DISALLOW_ADD_USER, true, in testMaybeDisallowAddUsers_normalSystem()
100 when(mockUserManager.hasUserRestriction(UserManager.DISALLOW_ADD_USER, in testMaybeDisallowAddUsers_normalSystem_restrictionAlreadySetupForOneUser()
126 verify(mockUserManager).setUserRestriction(UserManager.DISALLOW_ADD_USER, true, in testMaybeDisallowAddUsers_splitUserSystem_meatUserDeviceOwner()
128 verify(mockUserManager).setUserRestriction(UserManager.DISALLOW_ADD_USER, true, in testMaybeDisallowAddUsers_splitUserSystem_meatUserDeviceOwner()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/task/
DDisallowAddUserTask.java72 if (!mUserManager.hasUserRestriction(UserManager.DISALLOW_ADD_USER, userHandle)) { in run()
73 mUserManager.setUserRestriction(UserManager.DISALLOW_ADD_USER, true, userHandle); in run()
/packages/apps/Settings/src/com/android/settings/users/
DUserCapabilities.java72 UserManager.DISALLOW_ADD_USER, UserHandle.myUserId()); in updateAddUserCapabilities()
74 context, UserManager.DISALLOW_ADD_USER, UserHandle.myUserId()); in updateAddUserCapabilities()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/users/
DUserCapabilities.java72 UserManager.DISALLOW_ADD_USER, UserHandle.myUserId()); in updateAddUserCapabilities()
74 context, UserManager.DISALLOW_ADD_USER, UserHandle.myUserId()); in updateAddUserCapabilities()
/packages/services/Car/user/car-user-lib/src/android/car/userlib/
DCarUserManagerHelper.java80 UserManager.DISALLOW_ADD_USER,
628 return !foregroundUserHasUserRestriction(UserManager.DISALLOW_ADD_USER); in canForegroundUserAddUsers()
719 return !isCurrentProcessUserHasRestriction(UserManager.DISALLOW_ADD_USER); in canCurrentProcessAddUsers()
/packages/services/Car/tests/carservice_unit_test/src/android/car/userlib/
DCarUserManagerHelperTest.java222 .hasUserRestriction(UserManager.DISALLOW_ADD_USER); in testCurrentProcessCanAddUsers()
226 .hasUserRestriction(UserManager.DISALLOW_ADD_USER); in testCurrentProcessCanAddUsers()
640 testInfo, UserManager.DISALLOW_ADD_USER, /* enable= */ true); in testSetUserRestriction()
642 UserManager.DISALLOW_ADD_USER, true, UserHandle.of(userId)); in testSetUserRestriction()
/packages/apps/Car/Settings/src/com/android/car/settings/users/
DPermissionsPreferenceController.java70 PERMISSIONS_LIST.add(new UserPermission(UserManager.DISALLOW_ADD_USER, in PERMISSIONS_LIST.add() argument
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/users/
DUsersFragment.java44 UserManager.DISALLOW_ADD_USER,
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/users/
DPermissionsPreferenceControllerTest.java53 private static final String TEST_RESTRICTION = UserManager.DISALLOW_ADD_USER;