/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/btservice/ |
D | ActiveDeviceManagerTest.java | 84 when(mA2dpService.setActiveDevice(any())).thenReturn(true); in setUp() 85 when(mHeadsetService.setActiveDevice(any())).thenReturn(true); in setUp() 86 when(mHearingAidService.setActiveDevice(any())).thenReturn(true); in setUp() 118 verify(mA2dpService, timeout(TIMEOUT_MS)).setActiveDevice(mA2dpDevice); in onlyA2dpConnected_setA2dpActive() 127 verify(mA2dpService, timeout(TIMEOUT_MS)).setActiveDevice(mA2dpDevice); in secondA2dpConnected_setSecondA2dpActive() 130 verify(mA2dpService, timeout(TIMEOUT_MS)).setActiveDevice(mA2dpHeadsetDevice); in secondA2dpConnected_setSecondA2dpActive() 139 verify(mA2dpService, timeout(TIMEOUT_MS)).setActiveDevice(mA2dpDevice); in lastA2dpDisconnected_clearA2dpActive() 142 verify(mA2dpService, timeout(TIMEOUT_MS)).setActiveDevice(isNull()); in lastA2dpDisconnected_clearA2dpActive() 151 verify(mA2dpService, timeout(TIMEOUT_MS)).setActiveDevice(mA2dpDevice); in a2dpActiveDeviceSelected_setActive() 154 verify(mA2dpService, timeout(TIMEOUT_MS)).setActiveDevice(mA2dpHeadsetDevice); in a2dpActiveDeviceSelected_setActive() [all …]
|
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/hfp/ |
D | HeadsetServiceAndStateMachineTest.java | 204 doReturn(true).when(mNativeInterface).setActiveDevice(any(BluetoothDevice.class)); in setUp() 440 Assert.assertTrue(mHeadsetServiceBinder.setActiveDevice(activeDevice)); in testVirtualCall_normalStartStop() 441 verify(mNativeInterface).setActiveDevice(activeDevice); in testVirtualCall_normalStartStop() 476 Assert.assertTrue(mHeadsetServiceBinder.setActiveDevice(activeDevice)); in testVirtualCall_preemptedByTelecomCall() 477 verify(mNativeInterface).setActiveDevice(activeDevice); in testVirtualCall_preemptedByTelecomCall() 516 Assert.assertTrue(mHeadsetServiceBinder.setActiveDevice(activeDevice)); in testVirtualCall_rejectedWhenThereIsTelecomCall() 517 verify(mNativeInterface).setActiveDevice(activeDevice); in testVirtualCall_rejectedWhenThereIsTelecomCall() 544 Assert.assertTrue(mHeadsetServiceBinder.setActiveDevice(activeDevice)); in testDialingOutCall_NormalDialingOut() 545 verify(mNativeInterface).setActiveDevice(activeDevice); in testDialingOutCall_NormalDialingOut() 623 Assert.assertTrue(mHeadsetServiceBinder.setActiveDevice(activeDevice)); in testDialingOutCall_DialingOutPreemptVirtualCall() [all …]
|
D | HeadsetServiceTest.java | 132 doReturn(true).when(mNativeInterface).setActiveDevice(any(BluetoothDevice.class)); in setUp() 420 Assert.assertTrue(mHeadsetService.setActiveDevice(mCurrentDevice)); in testConnectAudio_withOneDevice() 490 Assert.assertTrue(mHeadsetService.setActiveDevice(mCurrentDevice)); in testConnectAudio_withMultipleDevices() 568 Assert.assertTrue(mHeadsetService.setActiveDevice(firstDevice)); in testConnectAudio_connectTwoAudioChannelsShouldFail() 643 Assert.assertTrue(mHeadsetService.setActiveDevice(firstDevice)); in testConnectAudio_firstConnectedAudioDevice() 855 Assert.assertTrue(mHeadsetService.setActiveDevice(mCurrentDevice)); in testSetSilenceMode() 865 Assert.assertTrue(mHeadsetService.setActiveDevice(mCurrentDevice)); in testSetSilenceMode()
|
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/ |
D | BluetoothDeviceManagerTest.java | 219 …when(mAdapterProxy.setActiveDevice(nullable(BluetoothDevice.class), eq(BluetoothAdapter.ACTIVE_DEV… in testConnectDisconnectAudioHeadset() 221 verify(mAdapterProxy).setActiveDevice(device1, BluetoothAdapter.ACTIVE_DEVICE_PHONE_CALL); in testConnectDisconnectAudioHeadset() 222 …verify(mAdapterProxy, never()).setActiveDevice(nullable(BluetoothDevice.class), eq(BluetoothAdapte… in testConnectDisconnectAudioHeadset() 233 verify(mAdapterProxy).setActiveDevice(device2, BluetoothAdapter.ACTIVE_DEVICE_ALL); in testConnectDisconnectAudioHearingAid() 235 …verify(mAdapterProxy, never()).setActiveDevice(nullable(BluetoothDevice.class), eq(BluetoothAdapte… in testConnectDisconnectAudioHearingAid() 240 verify(mAdapterProxy).setActiveDevice(null, BluetoothAdapter.ACTIVE_DEVICE_ALL); in testConnectDisconnectAudioHearingAid()
|
D | BluetoothRouteTransitionTests.java | 145 public BluetoothRouteTestParametersBuilder setActiveDevice(BluetoothDevice device) { in setActiveDevice() method in BluetoothRouteTransitionTests.BluetoothRouteTestParametersBuilder 403 .setActiveDevice(DEVICE1) in generateTestCases() 486 .setActiveDevice(DEVICE2) in generateTestCases() 644 .setActiveDevice(DEVICE2) in generateTestCases()
|
D | BluetoothRouteManagerTest.java | 222 when(mHeadsetProxy.setActiveDevice(nullable(BluetoothDevice.class))).thenReturn(true); in resetMocks()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/sound/ |
D | HandsFreeProfileOutputPreferenceController.java | 172 hfpProfile.setActiveDevice(null); in setActiveBluetoothDevice() 173 hapProfile.setActiveDevice(null); in setActiveBluetoothDevice() 176 hapProfile.setActiveDevice(device); in setActiveBluetoothDevice() 178 hfpProfile.setActiveDevice(device); in setActiveBluetoothDevice()
|
/packages/apps/Settings/src/com/android/settings/sound/ |
D | HandsFreeProfileOutputPreferenceController.java | 172 hfpProfile.setActiveDevice(null); in setActiveBluetoothDevice() 173 hapProfile.setActiveDevice(null); in setActiveBluetoothDevice() 176 hapProfile.setActiveDevice(device); in setActiveBluetoothDevice() 178 hfpProfile.setActiveDevice(device); in setActiveBluetoothDevice()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/sound/ |
D | HandsFreeProfileOutputPreferenceControllerTest.java | 180 verify(mHearingAidProfile).setActiveDevice(mLeftBluetoothHapDevice); in setActiveBluetoothDevice_btDeviceWithHisyncId_shouldSetBtDeviceActive() 181 verify(mHeadsetProfile, never()).setActiveDevice(mLeftBluetoothHapDevice); in setActiveBluetoothDevice_btDeviceWithHisyncId_shouldSetBtDeviceActive() 194 verify(mHeadsetProfile).setActiveDevice(mBluetoothDevice); in setActiveBluetoothDevice_btDeviceWithoutHisyncId_shouldSetBtDeviceActive() 195 verify(mHearingAidProfile, never()).setActiveDevice(mBluetoothDevice); in setActiveBluetoothDevice_btDeviceWithoutHisyncId_shouldSetBtDeviceActive() 209 verify(mHeadsetProfile).setActiveDevice(null); in setActiveBluetoothDevice_setNull_shouldSetNullToBothProfiles() 210 verify(mHearingAidProfile).setActiveDevice(null); in setActiveBluetoothDevice_setNull_shouldSetNullToBothProfiles() 223 verify(mHeadsetProfile, times(0)).setActiveDevice(any(BluetoothDevice.class)); in setActiveBluetoothDevice_inNormalMode_shouldNotSetActiveDeviceToHeadsetProfile()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/hfp/ |
D | HeadsetService.java | 666 public boolean setActiveDevice(BluetoothDevice device) { in setActiveDevice() method in HeadsetService.BluetoothHeadsetBinder 671 return service.setActiveDevice(device); in setActiveDevice() 757 setActiveDevice(null); in connect() 946 if (!Objects.equals(device, mActiveDevice) && !setActiveDevice(device)) { in startVoiceRecognition() 1093 setActiveDevice(null); in setSilenceMode() 1096 setActiveDevice(device); in setSilenceMode() 1117 public boolean setActiveDevice(BluetoothDevice device) { in setActiveDevice() method in HeadsetService 1153 if (!mNativeInterface.setActiveDevice(device)) { in setActiveDevice() 1164 mNativeInterface.setActiveDevice(previousActiveDevice); in setActiveDevice() 1173 mNativeInterface.setActiveDevice(previousActiveDevice); in setActiveDevice() [all …]
|
D | HeadsetSystemInterface.java | 199 mHeadsetService.setActiveDevice(device); in answerCall()
|
D | HeadsetNativeInterface.java | 455 public boolean setActiveDevice(BluetoothDevice device) { in setActiveDevice() method in HeadsetNativeInterface
|
D | HeadsetStateMachine.java | 1235 mHeadsetService.setActiveDevice(mDevice); in enter() 1916 if (!mHeadsetService.setActiveDevice(mDevice)) { in processKeyPressed()
|
/packages/services/Telecomm/src/com/android/server/telecom/bluetooth/ |
D | BluetoothDeviceManager.java | 252 mBluetoothAdapterProxy.setActiveDevice(null, in disconnectAudio() 276 return mBluetoothAdapterProxy.setActiveDevice( in connectAudio() 285 boolean success = mBluetoothAdapterProxy.setActiveDevice(device, in connectAudio() 313 mBluetoothAdapterProxy.setActiveDevice( in restoreHearingAidDevice()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/a2dp/ |
D | A2dpService.java | 162 setActiveDevice(null); in start() 475 if (!mA2dpNativeInterface.setActiveDevice(null)) { in removeActiveDevice() 499 setActiveDevice(device); in setSilenceMode() 514 public boolean setActiveDevice(BluetoothDevice device) { in setActiveDevice() method in A2dpService 573 if (!mA2dpNativeInterface.setActiveDevice(device)) { in setActiveDevice() 1153 setActiveDevice(device); in connectionStateChanged() 1157 setActiveDevice(null); in connectionStateChanged() 1266 public boolean setActiveDevice(BluetoothDevice device) { in setActiveDevice() method in A2dpService.BluetoothA2dpBinder 1271 return service.setActiveDevice(device); in setActiveDevice()
|
D | A2dpNativeInterface.java | 127 public boolean setActiveDevice(BluetoothDevice device) { in setActiveDevice() method in A2dpNativeInterface
|
/packages/services/Telecomm/src/com/android/server/telecom/ |
D | BluetoothAdapterProxy.java | 42 public boolean setActiveDevice(BluetoothDevice device, int profiles) { in setActiveDevice() method in BluetoothAdapterProxy 47 return mBluetoothAdapter.setActiveDevice(device, profiles); in setActiveDevice()
|
D | BluetoothHeadsetProxy.java | 68 public boolean setActiveDevice(BluetoothDevice device) { in setActiveDevice() method in BluetoothHeadsetProxy 69 return mBluetoothHeadset.setActiveDevice(device); in setActiveDevice()
|
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/a2dp/ |
D | A2dpServiceTest.java | 238 doReturn(true).when(mA2dpNativeInterface).setActiveDevice(any(BluetoothDevice.class)); in testStopA2dpService() 240 Assert.assertTrue(mA2dpService.setActiveDevice(mTestDevice)); in testStopA2dpService() 241 verify(mA2dpNativeInterface).setActiveDevice(mTestDevice); in testStopA2dpService() 249 verify(mA2dpNativeInterface).setActiveDevice(null); in testStopA2dpService() 755 doReturn(true).when(mA2dpNativeInterface).setActiveDevice(any(BluetoothDevice.class)); in testSetSilenceMode() 760 Assert.assertTrue(mA2dpService.setActiveDevice(mTestDevice)); in testSetSilenceMode() 772 Assert.assertTrue(mA2dpService.setActiveDevice(mTestDevice)); in testSetSilenceMode() 1029 doReturn(true).when(mA2dpNativeInterface).setActiveDevice(any(BluetoothDevice.class)); in testUpdateOptionalCodecsSupportCase()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/hearingaid/ |
D | HearingAidService.java | 544 public boolean setActiveDevice(BluetoothDevice device) { in setActiveDevice() method in HearingAidService 807 setActiveDevice(device); in connectionStateChanged() 812 setActiveDevice(null); in connectionStateChanged() 916 public boolean setActiveDevice(BluetoothDevice device) { in setActiveDevice() method in HearingAidService.BluetoothHearingAidBinder 921 return service.setActiveDevice(device); in setActiveDevice()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/ |
D | ActiveDeviceManager.java | 431 if (!a2dpService.setActiveDevice(device)) { in setA2dpActiveDevice() 445 if (!headsetService.setActiveDevice(device)) { in setHfpActiveDevice() 459 if (!hearingAidService.setActiveDevice(device)) { in setHearingAidActiveDevice()
|
D | AdapterService.java | 1511 return service.setActiveDevice(null, profiles); in removeActiveDevice() 1515 public boolean setActiveDevice(BluetoothDevice device, @ActiveDeviceUse int profiles) { in setActiveDevice() method in AdapterService.AdapterServiceBinder 1525 return service.setActiveDevice(device, profiles); in setActiveDevice() 2341 public boolean setActiveDevice(BluetoothDevice device, @ActiveDeviceUse int profiles) { in setActiveDevice() method in AdapterService 2368 mA2dpService.setActiveDevice(device); in setActiveDevice() 2375 mHearingAidService.setActiveDevice(device); in setActiveDevice() 2382 mHeadsetService.setActiveDevice(device); in setActiveDevice()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/avrcp/ |
D | AvrcpNativeInterface.java | 190 void setActiveDevice(String bdaddr) { in setActiveDevice() method in AvrcpNativeInterface 194 mAvrcpService.setActiveDevice(device); in setActiveDevice()
|
D | AvrcpTargetService.java | 252 service.setActiveDevice(device); in setA2dpActiveDevice() 380 void setActiveDevice(BluetoothDevice device) { in setActiveDevice() method in AvrcpTargetService
|
/packages/apps/Bluetooth/jni/ |
D | com_android_bluetooth_avrcp_target.cpp | 56 static void setActiveDevice(const RawAddress& address); 130 setActiveDevice(address); in SetActiveDevice() 737 static void setActiveDevice(const RawAddress& address) { in setActiveDevice() function
|