Home
last modified time | relevance | path

Searched refs:mHearingAidDevice (Results 1 – 3 of 3) sorted by relevance

/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/btservice/
DActiveDeviceManagerTest.java86 private BluetoothDevice mHearingAidDevice; field in ActiveDeviceManagerTest
144 mHearingAidDevice = TestUtils.getTestDevice(mAdapter, 3); in setUp()
169 connectedHearingAidDevices.add(mHearingAidDevice); in setUp()
170 when(mHearingAidService.getHiSyncId(mHearingAidDevice)).thenReturn(mHearingAidHiSyncId); in setUp()
596 connectedHearingAidDevices.add(mHearingAidDevice); in twoHearingAidDevicesConnected_WithTheSameHiSyncId()
602 hearingAidConnected(mHearingAidDevice); in twoHearingAidDevicesConnected_WithTheSameHiSyncId()
604 verify(mHearingAidService, timeout(TIMEOUT_MS)).setActiveDevice(mHearingAidDevice); in twoHearingAidDevicesConnected_WithTheSameHiSyncId()
617 hearingAidActiveDeviceChanged(mHearingAidDevice); in hearingAidActive_clearA2dpAndHeadsetActive()
625 hearingAidActiveDeviceChanged(mHearingAidDevice); in hearingAidActive_dontSetA2dpAndHeadsetActive()
639 hearingAidActiveDeviceChanged(mHearingAidDevice); in hearingAidActive_setA2dpActiveExplicitly()
[all …]
DAudioRoutingManagerTest.java81 private BluetoothDevice mHearingAidDevice; field in AudioRoutingManagerTest
141 mHearingAidDevice = TestUtils.getTestDevice(mAdapter, 3); in setUp()
160 connectedHearingAidDevices.add(mHearingAidDevice); in setUp()
161 when(mHearingAidService.getHiSyncId(mHearingAidDevice)).thenReturn(HEARING_AID_HISYNC_ID); in setUp()
527 connectedHearingAidDevices.add(mHearingAidDevice); in twoHearingAidDevicesConnected_WithTheSameHiSyncId()
534 hearingAidConnected(mHearingAidDevice); in twoHearingAidDevicesConnected_WithTheSameHiSyncId()
537 verify(mHearingAidService).setActiveDevice(mHearingAidDevice); in twoHearingAidDevicesConnected_WithTheSameHiSyncId()
540 .containsExactly(mHearingAidDevice, mSecondaryAudioDevice); in twoHearingAidDevicesConnected_WithTheSameHiSyncId()
552 hearingAidConnected(mHearingAidDevice); in hearingAidActive_clearA2dpAndHeadsetActive()
561 switchHearingAidActiveDevice(mHearingAidDevice); in hearingAidAndA2dpHeadsetConnected_setA2dpHeadsetActive()
[all …]
/packages/services/Telecomm/src/com/android/server/telecom/bluetooth/
DBluetoothDeviceManager.java295 private String mHearingAidDevice; field in BluetoothDeviceManager
619 if (mHearingAidDevice != null) { in clearHearingAidCommunicationDevice()
620 mBluetoothRouteManager.onAudioLost(mHearingAidDevice); in clearHearingAidCommunicationDevice()
621 mHearingAidDevice = null; in clearHearingAidCommunicationDevice()
727 mHearingAidDevice = hearingAid.getAddress(); in setHearingAidCommunicationDevice()