Home
last modified time | relevance | path

Searched refs:mHeadsetClientService (Results 1 – 2 of 2) sorted by relevance

/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/hfpclient/
DHeadsetClientStateMachineTest.java59 private HeadsetClientService mHeadsetClientService; field in HeadsetClientStateMachineTest
81 when(mHeadsetClientService.getAudioManager()).thenReturn( in setUp()
83 when(mHeadsetClientService.getResources()).thenReturn(mMockHfpResources); in setUp()
97 new HeadsetClientStateMachine(mHeadsetClientService, mHandlerThread.getLooper(), in setUp()
130 when(mHeadsetClientService.getConnectionPolicy(any(BluetoothDevice.class))).thenReturn( in testIncomingPriorityReject()
140 verify(mHeadsetClientService, timeout(STANDARD_WAIT_MILLIS)).sendBroadcast(MockitoHamcrest in testIncomingPriorityReject()
160 when(mHeadsetClientService.getConnectionPolicy(any(BluetoothDevice.class))).thenReturn( in testIncomingPriorityAccept()
171 verify(mHeadsetClientService, timeout(STANDARD_WAIT_MILLIS)).sendBroadcast(intentArgument1 in testIncomingPriorityAccept()
190 verify(mHeadsetClientService, timeout(STANDARD_WAIT_MILLIS).times(2)).sendBroadcast( in testIncomingPriorityAccept()
206 when(mHeadsetClientService.getConnectionPolicy(any(BluetoothDevice.class))).thenReturn( in testIncomingTimeout()
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/
DAdapterService.java233 private HeadsetClientService mHeadsetClientService; field in AdapterService
905 if (mHeadsetClientService != null && mHeadsetClientService.getConnectionPolicy(device) in isAnyProfileEnabled()
962 if (mHeadsetClientService != null && isSupported(localDeviceUuids, remoteDeviceUuids, in connectEnabledProfiles()
964 && mHeadsetClientService.getConnectionPolicy(device) in connectEnabledProfiles()
967 mHeadsetClientService.connect(device); in connectEnabledProfiles()
1029 mHeadsetClientService = HeadsetClientService.getHeadsetClientService(); in initProfileServices()
2430 if (mHeadsetClientService != null && isSupported(localDeviceUuids, remoteDeviceUuids, in connectAllEnabledProfiles()
2433 mHeadsetClientService.setConnectionPolicy(device, in connectAllEnabledProfiles()
2505 if (mHeadsetClientService != null && mHeadsetClientService.getConnectionState(device) in disconnectAllEnabledProfiles()
2508 mHeadsetClientService.disconnect(device); in disconnectAllEnabledProfiles()