Home
last modified time | relevance | path

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

/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/hfp/
DHeadsetServiceTest.java130 doReturn(true).when(mNativeInterface).connectAudio(any(BluetoothDevice.class)); in setUp()
431 Assert.assertTrue(mHeadsetService.connectAudio(mCurrentDevice)); in testConnectAudio_withOneDevice()
437 Assert.assertTrue(mHeadsetService.connectAudio(mCurrentDevice)); in testConnectAudio_withOneDevice()
498 Assert.assertFalse(mHeadsetService.connectAudio(mCurrentDevice)); in testConnectAudio_withMultipleDevices()
501 Assert.assertTrue(mHeadsetService.connectAudio(mCurrentDevice)); in testConnectAudio_withMultipleDevices()
508 Assert.assertTrue(mHeadsetService.connectAudio(mCurrentDevice)); in testConnectAudio_withMultipleDevices()
579 Assert.assertTrue(mHeadsetService.connectAudio(firstDevice)); in testConnectAudio_connectTwoAudioChannelsShouldFail()
586 Assert.assertTrue(mHeadsetService.connectAudio(firstDevice)); in testConnectAudio_connectTwoAudioChannelsShouldFail()
588 Assert.assertFalse(mHeadsetService.connectAudio(secondDevice)); in testConnectAudio_connectTwoAudioChannelsShouldFail()
595 Assert.assertFalse(mHeadsetService.connectAudio(secondDevice)); in testConnectAudio_connectTwoAudioChannelsShouldFail()
[all …]
DHeadsetServiceAndStateMachineTest.java202 doReturn(true).when(mNativeInterface).connectAudio(any(BluetoothDevice.class)); in setUp()
947 verify(mNativeInterface, timeout(ASYNC_CALL_TIMEOUT_MILLIS)).connectAudio(deviceA); in testVoiceRecognition_MultiHfInitiatedSwitchActiveDeviceSuccess()
1001 verify(mNativeInterface, timeout(ASYNC_CALL_TIMEOUT_MILLIS)).connectAudio(deviceA); in testVoiceRecognition_MultiHfInitiatedSwitchActiveDeviceReplyWrongHfSuccess()
1077 verify(mNativeInterface, timeout(ASYNC_CALL_TIMEOUT_MILLIS)).connectAudio(deviceA); in testVoiceRecognition_MultiAgInitiatedDeviceNotActive()
1126 verify(mNativeInterface, timeout(ASYNC_CALL_TIMEOUT_MILLIS)).connectAudio(device); in startVoiceRecognitionFromHf()
1144 verify(mNativeInterface, timeout(ASYNC_CALL_TIMEOUT_MILLIS)).connectAudio(device); in startVoiceRecognitionFromAg()
DHeadsetStateMachineTest.java102 doReturn(true).when(mNativeInterface).connectAudio(mTestDevice); in setUp()
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DBluetoothRouteManagerTest.java82 when(mHeadsetProxy.connectAudio()).thenReturn(false); in testConnectHfpRetryWhileNotConnected()
139 when(mHeadsetProxy.connectAudio()).thenReturn(false); in testConnectHfpRetryWhileConnectedToAnotherDevice()
214 when(mHeadsetProxy.connectAudio()).thenReturn(true); in resetMocks()
223 verify(mDeviceManager, times(numTimes)).connectAudio(device.getAddress()); in verifyConnectionAttempt()
DBluetoothDeviceManagerTest.java198 mBluetoothDeviceManager.connectAudio(device1.getAddress()); in testConnectDisconnectAudioHeadset()
200 verify(mHeadsetProxy).connectAudio(); in testConnectDisconnectAudioHeadset()
212 mBluetoothDeviceManager.connectAudio(device2.getAddress()); in testConnectDisconnectAudioHearingAid()
214 verify(mHeadsetProxy, never()).connectAudio(); in testConnectDisconnectAudioHearingAid()
DBluetoothRouteTransitionTests.java320 verify(mDeviceManager, never()).connectAudio(nullable(String.class)); in testTransitions()
323 verify(mDeviceManager).connectAudio(mParams.expectedConnectionDevice.getAddress()); in testTransitions()
327 verify(mDeviceManager, never()).connectAudio(nullable(String.class)); in testTransitions()
354 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.java542 public boolean connectAudio() { in connectAudio() method in HeadsetService.BluetoothHeadsetBinder
547 return service.connectAudio(); in connectAudio()
1100 if (!connectAudio(mActiveDevice)) { in setActiveDevice()
1125 boolean connectAudio() { in connectAudio() method in HeadsetService
1133 return connectAudio(device); in connectAudio()
1137 boolean connectAudio(BluetoothDevice device) { in connectAudio() method in HeadsetService
1674 if (!connectAudio(mActiveDevice)) { in onAudioStateChangedFromStateMachine()
DHeadsetNativeInterface.java285 public boolean connectAudio(BluetoothDevice device) { in connectAudio() method in HeadsetNativeInterface
DHeadsetStateMachine.java1070 if (!mNativeInterface.connectAudio(mDevice)) { in processMessage()
/packages/services/Telecomm/src/com/android/server/telecom/bluetooth/
DBluetoothDeviceManager.java254 public boolean connectAudio(String address) { in connectAudio() method in BluetoothDeviceManager
274 return mBluetoothHeadsetService.connectAudio(); in connectAudio()
DBluetoothRouteManager.java648 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()
595 boolean connectAudio(BluetoothDevice device) { in connectAudio() method in HeadsetClientService
/packages/apps/Car/Dialer/src/com/android/car/dialer/telecom/
DUiCallManager.java260 mBluetoothHeadsetClient.connectAudio(device); in setAudioRoute()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/bluetooth/
DBluetoothHeadsetFragment.java229 mHfpClientProfile.connectAudio(mPickedDevice); in connectSco()