Searched refs:canSwitchUsers (Results 1 – 4 of 4) sorted by relevance
170 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()
334 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()
338 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()
106 public boolean canSwitchUsers() { in canSwitchUsers() method in ShadowUserManager