Searched refs:getUserSwitchability (Results 1 – 14 of 14) sorted by relevance
284 doReturn(SWITCHABILITY_STATUS_OK).when(mUserManager).getUserSwitchability(); in withDisallowRemoveUser_ShouldDisableRemoveUser()309 doReturn(SWITCHABILITY_STATUS_OK).when(mUserManager).getUserSwitchability(); in withoutDisallowRemoveUser_ShouldNotDisableRemoveUser()336 doReturn(SWITCHABILITY_STATUS_OK).when(mUserManager).getUserSwitchability(); in updateUserList_canAddUserAndSwitchUser_shouldShowAddUser()352 doReturn(SWITCHABILITY_STATUS_OK).when(mUserManager).getUserSwitchability(); in updateUserList_canAddGuestAndSwitchUser_shouldShowAddGuest()367 .when(mUserManager).getUserSwitchability(); in updateUserList_cannotSwitchUser_shouldDisableAddUser()382 doReturn(SWITCHABILITY_STATUS_OK).when(mUserManager).getUserSwitchability(); in updateUserList_canNotAddMoreUsers_shouldDisableAddUserWithSummary()399 doReturn(SWITCHABILITY_STATUS_USER_IN_CALL).when(mUserManager).getUserSwitchability(); in updateUserList_cannotSwitchUser_shouldDisableAddGuest()614 doReturn(SWITCHABILITY_STATUS_OK).when(mUserManager).getUserSwitchability(); in updateUserList_uninitializedRestrictedUser_shouldAddUserPreference()639 .when(mUserManager).getUserSwitchability(); in updateUserList_uninitializedUserAndCanNotSwitchUser_shouldDisablePref()
116 when(mUserManager.getUserSwitchability(any())).thenReturn(SWITCHABILITY_STATUS_OK); in setUp()176 when(mUserManager.getUserSwitchability(any())) in logoutAllowed_managedDevice_switchDisallowed()191 when(mUserManager.getUserSwitchability(any())) in switchNotAllowed_returnsOnlyCurrentUser()
285 protected @UserManager.UserSwitchabilityResult int getUserSwitchability() { in getUserSwitchability() method in ShadowUserManager
180 if (mUserManager.getUserSwitchability() != UserManager.SWITCHABILITY_STATUS_OK) { in removeThisProfileAndSwitchToGuest()
144 if (mUserManager.getUserSwitchability(fgUserHandle) != SWITCHABILITY_STATUS_OK) { in createProfileRecords()
203 when(mMockedUserManager.getUserSwitchability()) in testSwitchDriver_IfUserSwitchIsNotAllowed()
271 return mUserManager.getUserSwitchability(fgUserHandle) != SWITCHABILITY_STATUS_OK; in isForegroundUserNotSwitchable()
451 return mUserManager.getUserSwitchability() == UserManager.SWITCHABILITY_STATUS_OK;
1349 return mUserManager.getUserSwitchability() == UserManager.SWITCHABILITY_STATUS_OK;
292 int userSwitchable = mUserManager.getUserSwitchability(); in switchDriver()
923 if (mUserManager.getUserSwitchability() != UserManager.SWITCHABILITY_STATUS_OK) { in switchUser()
158 if (mUserManager.getUserSwitchability(fgUserHandle) != SWITCHABILITY_STATUS_OK) { in createUserRecords()
390 when(um.getUserSwitchability()).thenReturn(result); in mockUmGetUserSwitchability()
153 if (mUserManager.getUserSwitchability(fgUserHandle) != SWITCHABILITY_STATUS_OK) { in getQCItem()