Home
last modified time | relevance | path

Searched refs:getActiveDevices (Results 1 – 13 of 13) sorted by relevance

/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/hearingaid/
DHearingAidServiceTest.java778 Assert.assertTrue(mService.getActiveDevices().contains(mRightDevice)); in testConnectionStateChangedActiveDevice()
779 Assert.assertFalse(mService.getActiveDevices().contains(mLeftDevice)); in testConnectionStateChangedActiveDevice()
783 Assert.assertTrue(mService.getActiveDevices().contains(mRightDevice)); in testConnectionStateChangedActiveDevice()
784 Assert.assertTrue(mService.getActiveDevices().contains(mLeftDevice)); in testConnectionStateChangedActiveDevice()
788 Assert.assertFalse(mService.getActiveDevices().contains(mRightDevice)); in testConnectionStateChangedActiveDevice()
789 Assert.assertTrue(mService.getActiveDevices().contains(mLeftDevice)); in testConnectionStateChangedActiveDevice()
793 Assert.assertFalse(mService.getActiveDevices().contains(mRightDevice)); in testConnectionStateChangedActiveDevice()
794 Assert.assertFalse(mService.getActiveDevices().contains(mLeftDevice)); in testConnectionStateChangedActiveDevice()
814 Assert.assertTrue(mService.getActiveDevices().contains(mRightDevice)); in testConnectionStateChangedAnotherActiveDevice()
815 Assert.assertFalse(mService.getActiveDevices().contains(mLeftDevice)); in testConnectionStateChangedAnotherActiveDevice()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/sound/
DHandsFreeProfileOutputPreferenceControllerTest.java339 when(mHearingAidProfile.getActiveDevices()).thenReturn(mHearingAidActiveDevices); in updateState_oneHapBtDeviceAreAvailable_shouldSetActivatedDeviceName()
365 when(mHearingAidProfile.getActiveDevices()).thenReturn(mHearingAidActiveDevices); in updateState_moreThanOneHapBtDevicesAreAvailable_shouldSetActivatedDeviceName()
397 when(mHearingAidProfile.getActiveDevices()).thenReturn(mHearingAidActiveDevices); in updateState_hapBtDeviceWithSameId_shouldSetActivatedDeviceName()
431 when(mHearingAidProfile.getActiveDevices()).thenReturn(mHearingAidActiveDevices); in updateState_hapBtDeviceWithSameIdButDifferentOrder_shouldSetActivatedDeviceName()
463 when(mHearingAidProfile.getActiveDevices()).thenReturn(mHearingAidActiveDevices); in updateState_hapBtDeviceWithDifferentId_shouldSetActivatedDeviceName()
DAudioOutputSwitchPreferenceControllerTest.java263 when(mHearingAidProfile.getActiveDevices()).thenReturn(mHearingAidActiveDevices); in findActiveHearingAidDevice_leftActiveDevice_returnLeftDeviceAsActiveHapDevice()
281 when(mHearingAidProfile.getActiveDevices()).thenReturn(mHearingAidActiveDevices); in findActiveHearingAidDevice_rightActiveDevice_returnRightDeviceAsActiveHapDevice()
299 when(mHearingAidProfile.getActiveDevices()).thenReturn(mHearingAidActiveDevices); in findActiveHearingAidDevice_twoActiveDevice_returnActiveDeviceInConnectedDevices()
315 when(mHearingAidProfile.getActiveDevices()).thenReturn(mHearingAidActiveDevices); in findActiveHearingAidDevice_noActiveDevice_returnNull()
DMediaOutputPreferenceControllerTest.java263 when(mHearingAidProfile.getActiveDevices()).thenReturn(mHearingAidActiveDevices); in updateState_withActiveHADevice_setActivatedDeviceName()
/packages/services/Telecomm/src/com/android/server/telecom/bluetooth/
DBluetoothDeviceManager.java164 for (BluetoothDevice device : mBluetoothHearingAidService.getActiveDevices()) { in getUniqueConnectedDevices()
250 for (BluetoothDevice device : mBluetoothHearingAidService.getActiveDevices()) { in disconnectAudio()
303 for (BluetoothDevice device : mBluetoothHearingAidService.getActiveDevices()) { in cacheHearingAidDevice()
DBluetoothRouteManager.java725 for (BluetoothDevice device : bluetoothHearingAid.getActiveDevices()) {
/packages/apps/Bluetooth/src/com/android/bluetooth/le_audio/
DLeAudioService.java401 List<BluetoothDevice> getActiveDevices() { in getActiveDevices() method in LeAudioService
798 public List<BluetoothDevice> getActiveDevices(AttributionSource source) { in getActiveDevices() method in LeAudioService.BluetoothLeAudioBinder
803 return service.getActiveDevices(); in getActiveDevices()
/packages/apps/Bluetooth/src/com/android/bluetooth/hearingaid/
DHearingAidService.java586 public List<BluetoothDevice> getActiveDevices() { in getActiveDevices() method in HearingAidService
937 public List<BluetoothDevice> getActiveDevices(AttributionSource source) { in getActiveDevices() method in HearingAidService.BluetoothHearingAidBinder
942 return service.getActiveDevices(); in getActiveDevices()
/packages/apps/Settings/src/com/android/settings/sound/
DMediaOutputPreferenceController.java123 List<BluetoothDevice> activeDevices = hearingAidProfile.getActiveDevices(); in findActiveHearingAidDevice()
DAudioSwitchPreferenceController.java250 List<BluetoothDevice> activeDevices = hearingAidProfile.getActiveDevices(); in findActiveHearingAidDevice()
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DBluetoothRouteManagerTest.java195 when(mBluetoothHearingAid.getActiveDevices()) in setupConnectedDevices()
DBluetoothDeviceManagerTest.java237 when(mBluetoothHearingAid.getActiveDevices()).thenReturn(Arrays.asList(device2, null)); in testConnectDisconnectAudioHearingAid()
DBluetoothRouteTransitionTests.java290 when(mBluetoothHearingAid.getActiveDevices()).thenReturn(Arrays.asList(null, null)); in testTransitions()