Home
last modified time | relevance | path

Searched refs:mHearingAidProfile (Results 1 – 6 of 6) sorted by relevance

/packages/apps/Settings/tests/robotests/src/com/android/settings/sound/
DHandsFreeProfileOutputPreferenceControllerTest.java101 private HearingAidProfile mHearingAidProfile; field in HandsFreeProfileOutputPreferenceControllerTest
146 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 …]
DAudioOutputSwitchPreferenceControllerTest.java111 private HearingAidProfile mHearingAidProfile; field in AudioOutputSwitchPreferenceControllerTest
158 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 …]
DMediaOutputPreferenceControllerTest.java125 private HearingAidProfile mHearingAidProfile; field in MediaOutputPreferenceControllerTest
200 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()
/packages/apps/Settings/tests/robotests/src/com/android/settings/accessibility/
DHearingAidHelperTest.java72 private HearingAidProfile mHearingAidProfile; field in HearingAidHelperTest
91 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()
DAccessibilityHearingAidPreferenceControllerTest.java107 private HearingAidProfile mHearingAidProfile; field in AccessibilityHearingAidPreferenceControllerTest
133 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()
/packages/apps/Settings/tests/robotests/src/com/android/settings/bluetooth/
DBluetoothDetailsSpatialAudioControllerTest.java79 @Mock private HearingAidProfile mHearingAidProfile; field in BluetoothDetailsSpatialAudioControllerTest
100 .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()