/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/hfp/ |
D | HeadsetServiceTest.java | 130 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 …]
|
D | HeadsetServiceAndStateMachineTest.java | 202 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()
|
D | HeadsetStateMachineTest.java | 102 doReturn(true).when(mNativeInterface).connectAudio(mTestDevice); in setUp()
|
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/ |
D | BluetoothRouteManagerTest.java | 82 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()
|
D | BluetoothDeviceManagerTest.java | 198 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()
|
D | BluetoothRouteTransitionTests.java | 320 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/ |
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 | 542 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()
|
D | HeadsetNativeInterface.java | 285 public boolean connectAudio(BluetoothDevice device) { in connectAudio() method in HeadsetNativeInterface
|
D | HeadsetStateMachine.java | 1070 if (!mNativeInterface.connectAudio(mDevice)) { in processMessage()
|
/packages/services/Telecomm/src/com/android/server/telecom/bluetooth/ |
D | BluetoothDeviceManager.java | 254 public boolean connectAudio(String address) { in connectAudio() method in BluetoothDeviceManager 274 return mBluetoothHeadsetService.connectAudio(); in connectAudio()
|
D | BluetoothRouteManager.java | 648 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() 595 boolean connectAudio(BluetoothDevice device) { in connectAudio() method in HeadsetClientService
|
/packages/apps/Car/Dialer/src/com/android/car/dialer/telecom/ |
D | UiCallManager.java | 260 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()
|