Home
last modified time | relevance | path

Searched refs:setActiveDevice (Results 1 – 25 of 30) 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()
442 verify(mNativeInterface).setActiveDevice(activeDevice); in testVirtualCall_normalStartStop()
480 Assert.assertTrue(mHeadsetServiceBinder.setActiveDevice(activeDevice, in testVirtualCall_preemptedByTelecomCall()
482 verify(mNativeInterface).setActiveDevice(activeDevice); in testVirtualCall_preemptedByTelecomCall()
523 Assert.assertTrue(mHeadsetServiceBinder.setActiveDevice(activeDevice, in testVirtualCall_rejectedWhenThereIsTelecomCall()
525 verify(mNativeInterface).setActiveDevice(activeDevice); in testVirtualCall_rejectedWhenThereIsTelecomCall()
554 Assert.assertTrue(mHeadsetServiceBinder.setActiveDevice(activeDevice, in testDialingOutCall_NormalDialingOut()
556 verify(mNativeInterface).setActiveDevice(activeDevice); in testDialingOutCall_NormalDialingOut()
636 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()
777 Assert.assertTrue(mHeadsetService.setActiveDevice(mCurrentDevice)); in testPhoneStateChange_oneDeviceSaveState()
843 Assert.assertTrue(mHeadsetService.setActiveDevice(mCurrentDevice)); in testPhoneStateChange_multipleDevicesSaveState()
883 Assert.assertTrue(mHeadsetService.setActiveDevice(mCurrentDevice)); in testSetSilenceMode()
893 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()
/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.java181 verify(mHearingAidProfile).setActiveDevice(mLeftBluetoothHapDevice); in setActiveBluetoothDevice_btDeviceWithHisyncId_shouldSetBtDeviceActive()
182 verify(mHeadsetProfile, never()).setActiveDevice(mLeftBluetoothHapDevice); in setActiveBluetoothDevice_btDeviceWithHisyncId_shouldSetBtDeviceActive()
195 verify(mHeadsetProfile).setActiveDevice(mBluetoothDevice); in setActiveBluetoothDevice_btDeviceWithoutHisyncId_shouldSetBtDeviceActive()
196 verify(mHearingAidProfile, never()).setActiveDevice(mBluetoothDevice); in setActiveBluetoothDevice_btDeviceWithoutHisyncId_shouldSetBtDeviceActive()
210 verify(mHeadsetProfile).setActiveDevice(null); in setActiveBluetoothDevice_setNull_shouldSetNullToBothProfiles()
211 verify(mHearingAidProfile).setActiveDevice(null); in setActiveBluetoothDevice_setNull_shouldSetNullToBothProfiles()
224 verify(mHeadsetProfile, times(0)).setActiveDevice(any(BluetoothDevice.class)); in setActiveBluetoothDevice_inNormalMode_shouldNotSetActiveDeviceToHeadsetProfile()
/packages/apps/Bluetooth/src/com/android/bluetooth/avrcpcontroller/
DAvrcpControllerService.java151 setActiveDevice(null); in start()
157 setActiveDevice(null); in stop()
189 private boolean setActiveDevice(BluetoothDevice device) { in setActiveDevice() method in AvrcpControllerService
203 if (a2dpSinkService.setActiveDevice(device)) { in setActiveDevice()
288 setActiveDevice(device); in playItem()
329 setActiveDevice(device); in getContents()
471 setActiveDevice(device); in onConnectionStateChanged()
476 setActiveDevice(null); in onConnectionStateChanged()
838 setActiveDevice(null); in removeStateMachine()
/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/hfp/
DHeadsetService.java715 public boolean setActiveDevice(BluetoothDevice device, AttributionSource source) { in setActiveDevice() method in HeadsetService.BluetoothHeadsetBinder
721 return service.setActiveDevice(device); in setActiveDevice()
807 setActiveDevice(null); in connect()
1001 if (!Objects.equals(device, mActiveDevice) && !setActiveDevice(device)) { in startVoiceRecognition()
1142 setActiveDevice(null); in setSilenceMode()
1145 setActiveDevice(device); in setSilenceMode()
1167 public boolean setActiveDevice(BluetoothDevice device) { in setActiveDevice() method in HeadsetService
1202 if (!mNativeInterface.setActiveDevice(device)) { in setActiveDevice()
1213 mNativeInterface.setActiveDevice(previousActiveDevice); in setActiveDevice()
1222 mNativeInterface.setActiveDevice(previousActiveDevice); in setActiveDevice()
[all …]
DBluetoothHeadsetProxy.java68 public boolean setActiveDevice(BluetoothDevice device) { in setActiveDevice() method in BluetoothHeadsetProxy
69 return mBluetoothHeadset.setActiveDevice(device); in setActiveDevice()
DHeadsetSystemInterface.java166 mHeadsetService.setActiveDevice(device); in answerCall()
/packages/apps/Bluetooth/src/com/android/bluetooth/le_audio/
DLeAudioService.java388 public boolean setActiveDevice(BluetoothDevice device) { in setActiveDevice() method in LeAudioService
452 setActiveDevice(null); in messageFromNative()
458 setActiveDevice(streaming_device); in messageFromNative()
586 setActiveDevice(null); in connectionStateChanged()
788 public boolean setActiveDevice(BluetoothDevice device, AttributionSource source) { in setActiveDevice() method in LeAudioService.BluetoothLeAudioBinder
794 return service.setActiveDevice(device); in setActiveDevice()
/packages/apps/Bluetooth/src/com/android/bluetooth/a2dp/
DA2dpService.java167 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
565 if (!mA2dpNativeInterface.setActiveDevice(device)) { in setActiveDevice()
1173 setActiveDevice(device); in connectionStateChanged()
1177 setActiveDevice(null); in connectionStateChanged()
1315 public boolean setActiveDevice(BluetoothDevice device, AttributionSource source) { in setActiveDevice() method in A2dpService.BluetoothA2dpBinder
1321 return service.setActiveDevice(device); in setActiveDevice()
DA2dpNativeInterface.java128 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.java55 public boolean setActiveDevice(BluetoothDevice device) { in setActiveDevice() method in BluetoothHeadsetProxy
56 return mBluetoothHeadset.setActiveDevice(device); in setActiveDevice()
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/avrcpcontroller/
DAvrcpControllerStateMachineTest.java140 setActiveDevice(mTestDevice); in setUp()
181 private void setActiveDevice(BluetoothDevice device) { in setActiveDevice() method in AvrcpControllerStateMachineTest
1172 setActiveDevice(null); in testIsActive_deviceInactive()
1186 setActiveDevice(null); in testBecomeActive()
1203 setActiveDevice(mTestDevice); in testBecomeActive()
1246 setActiveDevice(null); in testBecomeInactive()
1263 setActiveDevice(null); in testTrackChangeWhileNotActiveDevice()
1289 setActiveDevice(null); in testPlaybackWhileNotActiveDevice()
1315 setActiveDevice(null); in testPlayPositionChangeWhileNotActiveDevice()
1343 setActiveDevice(null); in testNowPlayingListChangeWhileNotActiveDevice()
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/a2dp/
DA2dpServiceTest.java239 doReturn(true).when(mA2dpNativeInterface).setActiveDevice(any(BluetoothDevice.class)); in testStopA2dpService()
241 Assert.assertTrue(mA2dpService.setActiveDevice(mTestDevice)); in testStopA2dpService()
242 verify(mA2dpNativeInterface).setActiveDevice(mTestDevice); in testStopA2dpService()
250 verify(mA2dpNativeInterface).setActiveDevice(null); in testStopA2dpService()
756 doReturn(true).when(mA2dpNativeInterface).setActiveDevice(any(BluetoothDevice.class)); in testSetSilenceMode()
761 Assert.assertTrue(mA2dpService.setActiveDevice(mTestDevice)); in testSetSilenceMode()
773 Assert.assertTrue(mA2dpService.setActiveDevice(mTestDevice)); in testSetSilenceMode()
1030 doReturn(true).when(mA2dpNativeInterface).setActiveDevice(any(BluetoothDevice.class)); in testUpdateOptionalCodecsSupportCase()
/packages/apps/Bluetooth/src/com/android/bluetooth/hearingaid/
DHearingAidService.java553 public boolean setActiveDevice(BluetoothDevice device) { in setActiveDevice() method in HearingAidService
816 setActiveDevice(device); in connectionStateChanged()
821 setActiveDevice(null); in connectionStateChanged()
927 public boolean setActiveDevice(BluetoothDevice device, AttributionSource source) { in setActiveDevice() method in HearingAidService.BluetoothHearingAidBinder
933 return service.setActiveDevice(device); in setActiveDevice()
/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/
DActiveDeviceManager.java434 if (!a2dpService.setActiveDevice(device)) { in setA2dpActiveDevice()
449 if (!headsetService.setActiveDevice(device)) { in setHfpActiveDevice()
463 if (!hearingAidService.setActiveDevice(device)) { in setHearingAidActiveDevice()
DAdapterService.java1724 return service.setActiveDevice(null, profiles); in removeActiveDevice()
1728 public boolean setActiveDevice(BluetoothDevice device, @ActiveDeviceUse int profiles, in setActiveDevice() method in AdapterService.AdapterServiceBinder
1737 return service.setActiveDevice(device, profiles); in setActiveDevice()
2809 public boolean setActiveDevice(BluetoothDevice device, @ActiveDeviceUse int profiles) { in setActiveDevice() method in AdapterService
2836 mA2dpService.setActiveDevice(device); in setActiveDevice()
2843 mHearingAidService.setActiveDevice(device); in setActiveDevice()
2850 mHeadsetService.setActiveDevice(device); in setActiveDevice()
/packages/apps/Bluetooth/src/com/android/bluetooth/avrcp/
DAvrcpNativeInterface.java210 void setActiveDevice(String bdaddr) { in setActiveDevice() method in AvrcpNativeInterface
214 mAvrcpService.setActiveDevice(device); in setActiveDevice()
DAvrcpTargetService.java297 service.setActiveDevice(device); in setA2dpActiveDevice()
454 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()
810 static void setActiveDevice(const RawAddress& address) { in setActiveDevice() function

12