Home
last modified time | relevance | path

Searched refs:canSwitchUsers (Results 1 – 4 of 4) sorted by relevance

/packages/apps/Settings/tests/robotests/src/com/android/settings/users/
DUserSettingsTest.java170 when(mUserManager.canSwitchUsers()).thenReturn(false); in updateUserList_cannotSwitchUser_shouldNotBeSelectableForGuest()
195 when(mUserManager.canSwitchUsers()).thenReturn(false); in updateUserList_cannotSwitchUser_shouldDisableAddUser()
243 doReturn(true).when(mUserManager).canSwitchUsers(); in withDisallowRemoveUser_ShouldDisableRemoveUser()
268 doReturn(true).when(mUserManager).canSwitchUsers(); in withoutDisallowRemoveUser_ShouldNotDisableRemoveUser()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/users/
DUserSettings.java334 final boolean canSwitchUsers = mUserManager.canSwitchUsers(); in onCreateOptionsMenu()
335 if (!mUserCaps.mIsAdmin && canSwitchUsers) { in onCreateOptionsMenu()
730 if (!mUserManager.canSwitchUsers()) { in removeThisUser()
863 pref.setSelectable(mUserManager.canSwitchUsers()); in updateUserList()
911 if (!mUserManager.canSwitchUsers()) { in updateUserList()
978 mAddUser.setEnabled(moreUsers && !mAddingUser && mUserManager.canSwitchUsers()); in updateAddUser()
/packages/apps/Settings/src/com/android/settings/users/
DUserSettings.java338 final boolean canSwitchUsers = mUserManager.canSwitchUsers(); in onCreateOptionsMenu()
339 if (!mUserCaps.mIsAdmin && canSwitchUsers) { in onCreateOptionsMenu()
734 if (!mUserManager.canSwitchUsers()) { in removeThisUser()
867 pref.setSelectable(mUserManager.canSwitchUsers()); in updateUserList()
915 if (!mUserManager.canSwitchUsers()) { in updateUserList()
982 mAddUser.setEnabled(moreUsers && !mAddingUser && mUserManager.canSwitchUsers()); in updateAddUser()
/packages/services/Car/tests/robotests/src/com/android/car/testutils/shadow/
DShadowUserManager.java106 public boolean canSwitchUsers() { in canSwitchUsers() method in ShadowUserManager