Home
last modified time | relevance | path

Searched refs:setActiveDevice (Results 1 – 25 of 26) sorted by relevance

12

/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/btservice/
DActiveDeviceManagerTest.java84 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/
DHeadsetServiceAndStateMachineTest.java204 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 …]
DHeadsetServiceTest.java132 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/
DBluetoothDeviceManagerTest.java219 …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()
DBluetoothRouteTransitionTests.java145 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()
DBluetoothRouteManagerTest.java222 when(mHeadsetProxy.setActiveDevice(nullable(BluetoothDevice.class))).thenReturn(true); in resetMocks()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/sound/
DHandsFreeProfileOutputPreferenceController.java172 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/
DHandsFreeProfileOutputPreferenceController.java172 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/
DHandsFreeProfileOutputPreferenceControllerTest.java180 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/
DHeadsetService.java666 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 …]
DHeadsetSystemInterface.java199 mHeadsetService.setActiveDevice(device); in answerCall()
DHeadsetNativeInterface.java455 public boolean setActiveDevice(BluetoothDevice device) { in setActiveDevice() method in HeadsetNativeInterface
DHeadsetStateMachine.java1235 mHeadsetService.setActiveDevice(mDevice); in enter()
1916 if (!mHeadsetService.setActiveDevice(mDevice)) { in processKeyPressed()
/packages/services/Telecomm/src/com/android/server/telecom/bluetooth/
DBluetoothDeviceManager.java252 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/
DA2dpService.java162 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()
DA2dpNativeInterface.java127 public boolean setActiveDevice(BluetoothDevice device) { in setActiveDevice() method in A2dpNativeInterface
/packages/services/Telecomm/src/com/android/server/telecom/
DBluetoothAdapterProxy.java42 public boolean setActiveDevice(BluetoothDevice device, int profiles) { in setActiveDevice() method in BluetoothAdapterProxy
47 return mBluetoothAdapter.setActiveDevice(device, profiles); in setActiveDevice()
DBluetoothHeadsetProxy.java68 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/
DA2dpServiceTest.java238 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/
DHearingAidService.java544 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/
DActiveDeviceManager.java431 if (!a2dpService.setActiveDevice(device)) { in setA2dpActiveDevice()
445 if (!headsetService.setActiveDevice(device)) { in setHfpActiveDevice()
459 if (!hearingAidService.setActiveDevice(device)) { in setHearingAidActiveDevice()
DAdapterService.java1511 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/
DAvrcpNativeInterface.java190 void setActiveDevice(String bdaddr) { in setActiveDevice() method in AvrcpNativeInterface
194 mAvrcpService.setActiveDevice(device); in setActiveDevice()
DAvrcpTargetService.java252 service.setActiveDevice(device); in setA2dpActiveDevice()
380 void setActiveDevice(BluetoothDevice device) { in setActiveDevice() method in AvrcpTargetService
/packages/apps/Bluetooth/jni/
Dcom_android_bluetooth_avrcp_target.cpp56 static void setActiveDevice(const RawAddress& address);
130 setActiveDevice(address); in SetActiveDevice()
737 static void setActiveDevice(const RawAddress& address) { in setActiveDevice() function

12