/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/hfp/ |
D | HeadsetServiceTest.java | 129 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 …]
|
D | HeadsetServiceAndStateMachineTest.java | 201 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()
|
D | HeadsetStateMachineTest.java | 106 doReturn(true).when(mNativeInterface).connectAudio(mTestDevice); in setUp()
|
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/ |
D | BluetoothRouteManagerTest.java | 89 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()
|
D | BluetoothDeviceManagerTest.java | 220 mBluetoothDeviceManager.connectAudio(device1.getAddress()); in testConnectDisconnectAudioHeadset() 232 mBluetoothDeviceManager.connectAudio(device2.getAddress()); in testConnectDisconnectAudioHearingAid() 234 verify(mHeadsetProxy, never()).connectAudio(); in testConnectDisconnectAudioHearingAid()
|
D | BluetoothRouteTransitionTests.java | 327 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/ |
D | BluetoothHeadsetProxy.java | 64 public boolean connectAudio() { in connectAudio() method in BluetoothHeadsetProxy 65 return mBluetoothHeadset.connectAudio(); in connectAudio()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/hfp/ |
D | HeadsetService.java | 569 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()
|
D | HeadsetNativeInterface.java | 285 public boolean connectAudio(BluetoothDevice device) { in connectAudio() method in HeadsetNativeInterface
|
D | HeadsetStateMachine.java | 1074 if (!mNativeInterface.connectAudio(mDevice)) { in processMessage()
|
/packages/services/Telecomm/src/com/android/server/telecom/bluetooth/ |
D | BluetoothDeviceManager.java | 270 public boolean connectAudio(String address) { in connectAudio() method in BluetoothDeviceManager 292 return mBluetoothHeadsetService.connectAudio(); in connectAudio()
|
D | BluetoothRouteManager.java | 658 if (!mDeviceManager.connectAudio(actualAddress)) { in connectBtAudio()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/hfpclient/ |
D | HeadsetClientService.java | 316 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
|
D | NativeInterface.java | 106 public boolean connectAudio(byte[] address) { in connectAudio() method in NativeInterface
|
D | HeadsetClientStateMachine.java | 1110 if (!mNativeInterface.connectAudio(getByteAddress(mCurrentDevice))) { in processMessage()
|
/packages/apps/Car/Dialer/src/com/android/car/dialer/telecom/ |
D | UiCallManager.java | 257 mBluetoothHeadsetClient.connectAudio(device); in setAudioRoute()
|
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/bluetooth/ |
D | BluetoothHeadsetFragment.java | 229 mHfpClientProfile.connectAudio(mPickedDevice); in connectSco()
|