Home
last modified time | relevance | path

Searched refs:DISALLOW_ADD_USER (Results 1 – 11 of 11) 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/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/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/apps/Car/Settings/src/com/android/car/settings/users/
DUserGridRecyclerView.java19 import static android.os.UserManager.DISALLOW_ADD_USER;
170 if (!mUserManager.hasUserRestriction(DISALLOW_ADD_USER, fgUserHandle)) { in createUserRecords()
DPermissionsPreferenceController.java70 PERMISSIONS_LIST.add(new UserPermission(UserManager.DISALLOW_ADD_USER, in PERMISSIONS_LIST.add() argument
DUsersListFragment.java227 return !mUserManager.hasUserRestriction(UserManager.DISALLOW_ADD_USER); in canCurrentProcessAddUsers()
/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.java51 private static final String TEST_RESTRICTION = UserManager.DISALLOW_ADD_USER;
DUsersListFragmentTest.java164 testUser.getUserHandle(), UserManager.DISALLOW_ADD_USER, disallowAddUser); in createUsersListFragment()
/packages/services/Car/user/car-user-lib/src/android/car/userlib/
DCarUserManagerHelper.java76 UserManager.DISALLOW_ADD_USER,