Searched refs:mHearingAidProfile (Results 1 – 6 of 6) sorted by relevance
101 private HearingAidProfile mHearingAidProfile; field in HandsFreeProfileOutputPreferenceControllerTest146 when(mLocalBluetoothProfileManager.getHearingAidProfile()).thenReturn(mHearingAidProfile); in setUp()204 when(mHearingAidProfile.getHiSyncId(mLeftBluetoothHapDevice)).thenReturn(HISYNCID1); in setActiveBluetoothDevice_btDeviceWithHisyncId_shouldSetBtDeviceActive()208 verify(mHearingAidProfile).setActiveDevice(mLeftBluetoothHapDevice); in setActiveBluetoothDevice_btDeviceWithHisyncId_shouldSetBtDeviceActive()223 verify(mHearingAidProfile, never()).setActiveDevice(mBluetoothDevice); in setActiveBluetoothDevice_btDeviceWithoutHisyncId_shouldSetBtDeviceActive()238 verify(mHearingAidProfile).setActiveDevice(null); in setActiveBluetoothDevice_setNull_shouldSetNullToBothProfiles()362 when(mHearingAidProfile.getConnectedDevices()).thenReturn(mProfileConnectedDevices); in updateState_oneHapBtDeviceAreAvailable_shouldSetActivatedDeviceName()363 when(mHearingAidProfile.getActiveDevices()).thenReturn(mHearingAidActiveDevices); in updateState_oneHapBtDeviceAreAvailable_shouldSetActivatedDeviceName()364 when(mHearingAidProfile.getHiSyncId(mLeftBluetoothHapDevice)).thenReturn(HISYNCID1); in updateState_oneHapBtDeviceAreAvailable_shouldSetActivatedDeviceName()387 when(mHearingAidProfile.getConnectedDevices()).thenReturn(mProfileConnectedDevices); in updateState_moreThanOneHapBtDevicesAreAvailable_shouldSetActivatedDeviceName()[all …]
111 private HearingAidProfile mHearingAidProfile; field in AudioOutputSwitchPreferenceControllerTest158 when(mLocalBluetoothProfileManager.getHearingAidProfile()).thenReturn(mHearingAidProfile); in setUp()334 when(mHearingAidProfile.getActiveDevices()).thenReturn(mHearingAidActiveDevices); in findActiveHearingAidDevice_leftActiveDevice_returnLeftDeviceAsActiveHapDevice()352 when(mHearingAidProfile.getActiveDevices()).thenReturn(mHearingAidActiveDevices); in findActiveHearingAidDevice_rightActiveDevice_returnRightDeviceAsActiveHapDevice()370 when(mHearingAidProfile.getActiveDevices()).thenReturn(mHearingAidActiveDevices); in findActiveHearingAidDevice_twoActiveDevice_returnActiveDeviceInConnectedDevices()386 when(mHearingAidProfile.getActiveDevices()).thenReturn(mHearingAidActiveDevices); in findActiveHearingAidDevice_noActiveDevice_returnNull()401 when(mHearingAidProfile.getConnectedDevices()).thenReturn(mProfileConnectedDevices); in getConnectedHearingAidDevices_deviceHisyncIdIsDifferent_shouldAddBothToList()402 when(mHearingAidProfile.getHiSyncId(mLeftBluetoothHapDevice)).thenReturn(HISYNCID1); in getConnectedHearingAidDevices_deviceHisyncIdIsDifferent_shouldAddBothToList()403 when(mHearingAidProfile.getHiSyncId(mRightBluetoothHapDevice)).thenReturn(HISYNCID2); in getConnectedHearingAidDevices_deviceHisyncIdIsDifferent_shouldAddBothToList()421 when(mHearingAidProfile.getConnectedDevices()).thenReturn(mProfileConnectedDevices); in getConnectedHearingAidDevices_deviceHisyncIdIsSame_shouldAddOneToList()[all …]
125 private HearingAidProfile mHearingAidProfile; field in MediaOutputPreferenceControllerTest200 when(mLocalBluetoothProfileManager.getHearingAidProfile()).thenReturn(mHearingAidProfile); in setUp()319 when(mHearingAidProfile.getConnectedDevices()).thenReturn(mHearingAidActiveDevices); in updateState_withActiveHADevice_setActivatedDeviceName()320 when(mHearingAidProfile.getActiveDevices()).thenReturn(mHearingAidActiveDevices); in updateState_withActiveHADevice_setActivatedDeviceName()513 when(mHearingAidProfile.getActiveDevices()).thenReturn(mHearingAidActiveDevices); in findActiveDevice_allProfilesWithActiveDevice_returnHADevice()527 when(mHearingAidProfile.getActiveDevices()).thenReturn(mHearingAidActiveDevices); in findActiveDevice_a2dpDeviceAndLeAudioDeviceActive_returnLeAudioDevice()541 when(mHearingAidProfile.getActiveDevices()).thenReturn(mHearingAidActiveDevices); in findActiveDevice_onlyLeAudioDeviceActive_returnLeAudioDevice()
72 private HearingAidProfile mHearingAidProfile; field in HearingAidHelperTest91 when(mLocalBluetoothProfileManager.getHearingAidProfile()).thenReturn(mHearingAidProfile); in setUp()122 when(mHearingAidProfile.isProfileReady()).thenReturn(true); in isAllHearingAidRelatedProfilesReady_allReady_returnTrue()130 when(mHearingAidProfile.isProfileReady()).thenReturn(false); in isAllHearingAidRelatedProfilesReady_notFullReady_returnFalse()141 when(mHearingAidProfile.getConnectedDevices()).thenReturn(new ArrayList<>( in getConnectedHearingAidDeviceList_oneDeviceAdded_getOneDevice()152 when(mHearingAidProfile.getConnectedDevices()).thenReturn(new ArrayList<>( in getConnectedHearingAidDeviceList_oneSubDeviceAdded_getZeroDevice()165 when(mHearingAidProfile.getConnectedDevices()).thenReturn(new ArrayList<>( in getConnectedHearingAidDevice_getExpectedCachedBluetoothDevice()
107 private HearingAidProfile mHearingAidProfile; field in AccessibilityHearingAidPreferenceControllerTest133 when(mHearingAidProfile.getConnectedDevices()).thenReturn(generateHearingAidDeviceList()); in getSummary_connectedAshaHearingAidRightSide_connectedRightSideSummary()151 when(mHearingAidProfile.getConnectedDevices()).thenReturn(generateHearingAidDeviceList()); in getSummary_connectedAshaHearingAidBothSide_connectedBothSideSummary()234 when(mHearingAidProfile.getConnectedDevices()).thenReturn( in getSummary_connectedMultipleHearingAids_connectedMultipleDevicesSummary()263 when(mHearingAidProfile.getConnectedDevices()).thenReturn(generateHearingAidDeviceList()); in onServiceConnected_onHearingAidProfileConnected_updateSummary()301 when(mLocalBluetoothProfileManager.getHearingAidProfile()).thenReturn(mHearingAidProfile); in setupEnvironment()303 when(mHearingAidProfile.isProfileReady()).thenReturn(true); in setupEnvironment()
79 @Mock private HearingAidProfile mHearingAidProfile; field in BluetoothDetailsSpatialAudioControllerTest100 .thenReturn(List.of(mA2dpProfile, mLeAudioProfile, mHearingAidProfile)); in setUp()104 when(mHearingAidProfile.getProfileId()).thenReturn(BluetoothProfile.HEARING_AID); in setUp()299 when(mHearingAidProfile.isEnabled(mBluetoothDevice)).thenReturn(false); in refresh_leAudioProfileEnabledForHeadset_useLeAudioHeadsetAttributes()315 when(mHearingAidProfile.isEnabled(mBluetoothDevice)).thenReturn(false); in refresh_leAudioProfileEnabledForSpeaker_useLeAudioSpeakerAttributes()331 when(mHearingAidProfile.isEnabled(mBluetoothDevice)).thenReturn(true); in refresh_hearingAidProfileEnabled_useHearingAidAttributes()