Searched refs:getUserSwitchability (Results 1 – 9 of 9) sorted by relevance
212 doReturn(SWITCHABILITY_STATUS_OK).when(mUserManager).getUserSwitchability(); in withDisallowRemoveUser_ShouldDisableRemoveUser()237 doReturn(SWITCHABILITY_STATUS_OK).when(mUserManager).getUserSwitchability(); in withoutDisallowRemoveUser_ShouldNotDisableRemoveUser()263 doReturn(SWITCHABILITY_STATUS_OK).when(mUserManager).getUserSwitchability(); in updateUserList_canAddUserAndSwitchUser_shouldShowAddUser()278 doReturn(SWITCHABILITY_STATUS_OK).when(mUserManager).getUserSwitchability(); in updateUserList_canAddGuestAndSwitchUser_shouldShowAddGuest()294 .when(mUserManager).getUserSwitchability(); in updateUserList_cannotSwitchUser_shouldDisableAddUser()309 doReturn(SWITCHABILITY_STATUS_OK).when(mUserManager).getUserSwitchability(); in updateUserList_canNotAddMoreUsers_shouldDisableAddUserWithSummary()324 doReturn(SWITCHABILITY_STATUS_USER_IN_CALL).when(mUserManager).getUserSwitchability(); in updateUserList_cannotSwitchUser_shouldDisableAddGuest()501 doReturn(SWITCHABILITY_STATUS_OK).when(mUserManager).getUserSwitchability(); in updateUserList_uninitializedRestrictedUser_shouldAddUserPreference()526 .when(mUserManager).getUserSwitchability(); in updateUserList_uninitializedUserAndCanNotSwitchUser_shouldDisablePref()
195 protected @UserManager.UserSwitchabilityResult int getUserSwitchability() { in getUserSwitchability() method in ShadowUserManager
331 return mUserManager.getUserSwitchability() == UserManager.SWITCHABILITY_STATUS_OK;
1060 return mUserManager.getUserSwitchability() == UserManager.SWITCHABILITY_STATUS_OK;
171 if (mUserManager.getUserSwitchability() != UserManager.SWITCHABILITY_STATUS_OK) { in removeThisProfileAndSwitchToGuest()
144 if (mUserManager.getUserSwitchability(fgUserHandle) != SWITCHABILITY_STATUS_OK) { in createProfileRecords()
148 if (mUserManager.getUserSwitchability(fgUserHandle) != SWITCHABILITY_STATUS_OK) { in createUserRecords()
558 int userSwitchable = mUserManager.getUserSwitchability(); in switchDriver()991 if (mUserManager.getUserSwitchability() != UserManager.SWITCHABILITY_STATUS_OK) { in switchUser()
763 when(mMockedUserManager.getUserSwitchability()) in testSwitchDriver_IfUserSwitchIsNotAllowed()1103 .getUserSwitchability(); in testSwitchUser_noUserSwitchability()