Home
last modified time | relevance | path

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

/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/hearingaid/
DHearingAidStateMachineTest.java58 @Mock private HearingAidService mHearingAidService; field in HearingAidStateMachineTest
79 mHearingAidStateMachine = new HearingAidStateMachine(mTestDevice, mHearingAidService, in setUp()
112 doReturn(allow).when(mHearingAidService).okToConnect(any(BluetoothDevice.class)); in allowConnection()
130 verify(mHearingAidService, after(TIMEOUT_MS).never()).sendBroadcast(any(Intent.class), in testIncomingPriorityReject()
153 verify(mHearingAidService, timeout(TIMEOUT_MS).times(1)).sendBroadcast( in testIncomingPriorityAccept()
172 verify(mHearingAidService, timeout(TIMEOUT_MS).times(2)).sendBroadcast( in testIncomingPriorityAccept()
189 when(mHearingAidService.isConnectedPeerDevices(mTestDevice)).thenReturn(true); in testOutgoingTimeout()
196 verify(mHearingAidService, timeout(TIMEOUT_MS).times(1)).sendBroadcast( in testOutgoingTimeout()
208 verify(mHearingAidService, timeout(HearingAidStateMachine.sConnectTimeoutMs * 2).times( in testOutgoingTimeout()
229 when(mHearingAidService.isConnectedPeerDevices(mTestDevice)).thenReturn(true); in testIncomingTimeout()
[all …]
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/btservice/
DActiveDeviceManagerTest.java66 @Mock private HearingAidService mHearingAidService; field in ActiveDeviceManagerTest
83 when(mServiceFactory.getHearingAidService()).thenReturn(mHearingAidService); in setUp()
86 when(mHearingAidService.setActiveDevice(any())).thenReturn(true); in setUp()
265 verify(mHearingAidService).setActiveDevice(isNull()); in hearingAidActive_setA2dpActiveExplicitly()
286 verify(mHearingAidService).setActiveDevice(isNull()); in hearingAidActive_setHeadsetActiveExplicitly()
306 verify(mHearingAidService, timeout(TIMEOUT_MS)).setActiveDevice(isNull()); in wiredAudioDeviceConnected_setAllActiveDevicesNull()
/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/
DAdapterService.java241 private HearingAidService mHearingAidService; field in AdapterService
925 if (mHearingAidService != null && mHearingAidService.getConnectionPolicy(device) in isAnyProfileEnabled()
995 if (mHearingAidService != null && isSupported(localDeviceUuids, remoteDeviceUuids, in connectEnabledProfiles()
997 && mHearingAidService.getConnectionPolicy(device) in connectEnabledProfiles()
1000 mHearingAidService.connect(device); in connectEnabledProfiles()
1037 mHearingAidService = HearingAidService.getHearingAidService(); in initProfileServices()
2371 if (mHearingAidService != null && (device == null in setActiveDevice()
2372 || mHearingAidService.getConnectionPolicy(device) in setActiveDevice()
2375 mHearingAidService.setActiveDevice(device); in setActiveDevice()
2463 if (mHearingAidService != null && isSupported(localDeviceUuids, remoteDeviceUuids, in connectAllEnabledProfiles()
[all …]