Home
last modified time | relevance | path

Searched refs:connectAudio (Results 1 – 17 of 17) sorted by relevance

/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/hfp/
DHeadsetServiceTest.java129 doReturn(true).when(mNativeInterface).connectAudio(any(BluetoothDevice.class)); in setUp()
422 Assert.assertTrue(mHeadsetService.connectAudio(mCurrentDevice)); in testConnectAudio_withOneDevice()
428 Assert.assertTrue(mHeadsetService.connectAudio(mCurrentDevice)); in testConnectAudio_withOneDevice()
489 Assert.assertFalse(mHeadsetService.connectAudio(mCurrentDevice)); in testConnectAudio_withMultipleDevices()
492 Assert.assertTrue(mHeadsetService.connectAudio(mCurrentDevice)); in testConnectAudio_withMultipleDevices()
499 Assert.assertTrue(mHeadsetService.connectAudio(mCurrentDevice)); in testConnectAudio_withMultipleDevices()
570 Assert.assertTrue(mHeadsetService.connectAudio(firstDevice)); in testConnectAudio_connectTwoAudioChannelsShouldFail()
577 Assert.assertTrue(mHeadsetService.connectAudio(firstDevice)); in testConnectAudio_connectTwoAudioChannelsShouldFail()
579 Assert.assertFalse(mHeadsetService.connectAudio(secondDevice)); in testConnectAudio_connectTwoAudioChannelsShouldFail()
586 Assert.assertFalse(mHeadsetService.connectAudio(secondDevice)); in testConnectAudio_connectTwoAudioChannelsShouldFail()
[all …]
DHeadsetServiceAndStateMachineTest.java201 doReturn(true).when(mNativeInterface).connectAudio(any(BluetoothDevice.class)); in setUp()
946 verify(mNativeInterface, timeout(ASYNC_CALL_TIMEOUT_MILLIS)).connectAudio(deviceA); in testVoiceRecognition_MultiHfInitiatedSwitchActiveDeviceSuccess()
1000 verify(mNativeInterface, timeout(ASYNC_CALL_TIMEOUT_MILLIS)).connectAudio(deviceA); in testVoiceRecognition_MultiHfInitiatedSwitchActiveDeviceReplyWrongHfSuccess()
1076 verify(mNativeInterface, timeout(ASYNC_CALL_TIMEOUT_MILLIS)).connectAudio(deviceA); in testVoiceRecognition_MultiAgInitiatedDeviceNotActive()
1125 verify(mNativeInterface, timeout(ASYNC_CALL_TIMEOUT_MILLIS)).connectAudio(device); in startVoiceRecognitionFromHf()
1143 verify(mNativeInterface, timeout(ASYNC_CALL_TIMEOUT_MILLIS)).connectAudio(device); in startVoiceRecognitionFromAg()
DHeadsetStateMachineTest.java106 doReturn(true).when(mNativeInterface).connectAudio(mTestDevice); in setUp()
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DBluetoothRouteManagerTest.java89 when(mHeadsetProxy.connectAudio()).thenReturn(false); in testConnectHfpRetryWhileNotConnected()
146 when(mHeadsetProxy.connectAudio()).thenReturn(false); in testConnectHfpRetryWhileConnectedToAnotherDevice()
221 when(mHeadsetProxy.connectAudio()).thenReturn(true); in resetMocks()
230 verify(mDeviceManager, times(numTimes)).connectAudio(device.getAddress()); in verifyConnectionAttempt()
DBluetoothDeviceManagerTest.java220 mBluetoothDeviceManager.connectAudio(device1.getAddress()); in testConnectDisconnectAudioHeadset()
232 mBluetoothDeviceManager.connectAudio(device2.getAddress()); in testConnectDisconnectAudioHearingAid()
234 verify(mHeadsetProxy, never()).connectAudio(); in testConnectDisconnectAudioHearingAid()
DBluetoothRouteTransitionTests.java327 verify(mDeviceManager, never()).connectAudio(nullable(String.class)); in testTransitions()
330 verify(mDeviceManager).connectAudio(mParams.expectedConnectionDevice.getAddress()); in testTransitions()
334 verify(mDeviceManager, never()).connectAudio(nullable(String.class)); in testTransitions()
363 when(mDeviceManager.connectAudio(nullable(String.class))).thenReturn(true); in setupStateMachine()
/packages/services/Telecomm/src/com/android/server/telecom/
DBluetoothHeadsetProxy.java64 public boolean connectAudio() { in connectAudio() method in BluetoothHeadsetProxy
65 return mBluetoothHeadset.connectAudio(); in connectAudio()
/packages/apps/Bluetooth/src/com/android/bluetooth/hfp/
DHeadsetService.java569 public boolean connectAudio() { in connectAudio() method in HeadsetService.BluetoothHeadsetBinder
574 return service.connectAudio(); in connectAudio()
1163 if (!connectAudio(mActiveDevice)) { in setActiveDevice()
1188 boolean connectAudio() { in connectAudio() method in HeadsetService
1196 return connectAudio(device); in connectAudio()
1200 boolean connectAudio(BluetoothDevice device) { in connectAudio() method in HeadsetService
1724 if (!connectAudio(mActiveDevice)) { in onAudioStateChangedFromStateMachine()
DHeadsetNativeInterface.java285 public boolean connectAudio(BluetoothDevice device) { in connectAudio() method in HeadsetNativeInterface
DHeadsetStateMachine.java1074 if (!mNativeInterface.connectAudio(mDevice)) { in processMessage()
/packages/services/Telecomm/src/com/android/server/telecom/bluetooth/
DBluetoothDeviceManager.java270 public boolean connectAudio(String address) { in connectAudio() method in BluetoothDeviceManager
292 return mBluetoothHeadsetService.connectAudio(); in connectAudio()
DBluetoothRouteManager.java658 if (!mDeviceManager.connectAudio(actualAddress)) { in connectBtAudio()
/packages/apps/Bluetooth/src/com/android/bluetooth/hfpclient/
DHeadsetClientService.java316 public boolean connectAudio(BluetoothDevice device) { in connectAudio() method in HeadsetClientService.BluetoothHeadsetClientBinder
321 return service.connectAudio(device); in connectAudio()
652 boolean connectAudio(BluetoothDevice device) { in connectAudio() method in HeadsetClientService
DNativeInterface.java106 public boolean connectAudio(byte[] address) { in connectAudio() method in NativeInterface
DHeadsetClientStateMachine.java1110 if (!mNativeInterface.connectAudio(getByteAddress(mCurrentDevice))) { in processMessage()
/packages/apps/Car/Dialer/src/com/android/car/dialer/telecom/
DUiCallManager.java257 mBluetoothHeadsetClient.connectAudio(device); in setAudioRoute()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/bluetooth/
DBluetoothHeadsetFragment.java229 mHfpClientProfile.connectAudio(mPickedDevice); in connectSco()