Home
last modified time | relevance | path

Searched refs:mHearingAidService (Results 1 – 5 of 5) sorted by relevance

/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/hearingaid/
DHearingAidStateMachineTest.java60 @Mock private HearingAidService mHearingAidService; field in HearingAidStateMachineTest
78 mHearingAidService, in setUp()
106 doReturn(allow).when(mHearingAidService).okToConnect(any(BluetoothDevice.class)); in allowConnection()
122 verify(mHearingAidService, after(TIMEOUT_MS).never()) in testIncomingPriorityReject()
144 verify(mHearingAidService, timeout(TIMEOUT_MS).times(1)) in testIncomingPriorityAccept()
165 verify(mHearingAidService, timeout(TIMEOUT_MS).times(2)) in testIncomingPriorityAccept()
183 when(mHearingAidService.isConnectedPeerDevices(mTestDevice)).thenReturn(true); in testOutgoingTimeout()
190 verify(mHearingAidService, timeout(TIMEOUT_MS).times(1)) in testOutgoingTimeout()
203 verify(mHearingAidService, timeout(HearingAidStateMachine.sConnectTimeoutMs * 2).times(2)) in testOutgoingTimeout()
226 when(mHearingAidService.isConnectedPeerDevices(mTestDevice)).thenReturn(true); in testIncomingTimeout()
[all …]
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/btservice/
DAudioRoutingManagerTest.java106 @Mock private HearingAidService mHearingAidService; field in AudioRoutingManagerTest
130 when(mServiceFactory.getHearingAidService()).thenReturn(mHearingAidService); in setUp()
154 when(mHearingAidService.setActiveDevice(any())).thenReturn(true); in setUp()
161 when(mHearingAidService.getHiSyncId(mHearingAidDevice)).thenReturn(HEARING_AID_HISYNC_ID); in setUp()
162 when(mHearingAidService.getConnectedPeerDevices(HEARING_AID_HISYNC_ID)) in setUp()
529 when(mHearingAidService.getHiSyncId(mSecondaryAudioDevice)) in twoHearingAidDevicesConnected_WithTheSameHiSyncId()
531 when(mHearingAidService.getConnectedPeerDevices(HEARING_AID_HISYNC_ID)) in twoHearingAidDevicesConnected_WithTheSameHiSyncId()
537 verify(mHearingAidService).setActiveDevice(mHearingAidDevice); in twoHearingAidDevicesConnected_WithTheSameHiSyncId()
538 verify(mHearingAidService).setActiveDevice(mSecondaryAudioDevice); in twoHearingAidDevicesConnected_WithTheSameHiSyncId()
566 verify(mHearingAidService).removeActiveDevice(false); in hearingAidAndA2dpHeadsetConnected_setA2dpHeadsetActive()
[all …]
DActiveDeviceManagerTest.java111 @Mock private HearingAidService mHearingAidService; field in ActiveDeviceManagerTest
133 when(mServiceFactory.getHearingAidService()).thenReturn(mHearingAidService); in setUp()
158 when(mHearingAidService.setActiveDevice(any())).thenReturn(true); in setUp()
170 when(mHearingAidService.getHiSyncId(mHearingAidDevice)).thenReturn(mHearingAidHiSyncId); in setUp()
171 when(mHearingAidService.getConnectedPeerDevices(mHearingAidHiSyncId)) in setUp()
598 when(mHearingAidService.getHiSyncId(mSecondaryAudioDevice)).thenReturn(mHearingAidHiSyncId); in twoHearingAidDevicesConnected_WithTheSameHiSyncId()
599 when(mHearingAidService.getConnectedPeerDevices(mHearingAidHiSyncId)) in twoHearingAidDevicesConnected_WithTheSameHiSyncId()
604 verify(mHearingAidService, timeout(TIMEOUT_MS)).setActiveDevice(mHearingAidDevice); in twoHearingAidDevicesConnected_WithTheSameHiSyncId()
605 verify(mHearingAidService, never()).setActiveDevice(mSecondaryAudioDevice); in twoHearingAidDevicesConnected_WithTheSameHiSyncId()
637 when(mHearingAidService.removeActiveDevice(anyBoolean())).thenReturn(true); in hearingAidActive_setA2dpActiveExplicitly()
[all …]
DPhonePolicyTest.java89 @Mock private HearingAidService mHearingAidService; field in PhonePolicyTest
111 doReturn(mHearingAidService).when(mServiceFactory).getHearingAidService(); in setUp()
660 when(mHearingAidService.getConnectionPolicy(any(BluetoothDevice.class))) in testLateConnectOfLeAudioEnabled_AshaAndLeAudioBud()
706 verify(mHearingAidService, times(1)) in testLateConnectOfLeAudioEnabled_AshaAndLeAudioBud()
736 verify(mHearingAidService, times(1)) in testLateConnectOfLeAudioEnabled_AshaAndLeAudioBud()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/btservice/
DAdapterService.java309 private HearingAidService mHearingAidService; field in AdapterService
1809 if (mHearingAidService != null in isAllProfilesUnknown()
1810 && mHearingAidService.getConnectionPolicy(device) in isAllProfilesUnknown()
1918 if (mHearingAidService != null in connectEnabledProfiles()
1920 && mHearingAidService.getConnectionPolicy(device) in connectEnabledProfiles()
1923 mHearingAidService.connect(device); in connectEnabledProfiles()
1992 mHearingAidService = HearingAidService.getHearingAidService(); in initProfileServices()
5135 if (mHearingAidService != null in setActiveDevice()
5137 || mHearingAidService.getConnectionPolicy(device) in setActiveDevice()
5141 mHearingAidService.removeActiveDevice(false); in setActiveDevice()
[all …]