Home
last modified time | relevance | path

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

/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/hearingaid/
DHearingAidServiceTest.java789 Assert.assertTrue(mService.getActiveDevices().contains(mRightDevice)); in testConnectionStateChangedActiveDevice()
790 Assert.assertFalse(mService.getActiveDevices().contains(mLeftDevice)); in testConnectionStateChangedActiveDevice()
794 Assert.assertTrue(mService.getActiveDevices().contains(mRightDevice)); in testConnectionStateChangedActiveDevice()
795 Assert.assertTrue(mService.getActiveDevices().contains(mLeftDevice)); in testConnectionStateChangedActiveDevice()
799 Assert.assertFalse(mService.getActiveDevices().contains(mRightDevice)); in testConnectionStateChangedActiveDevice()
800 Assert.assertTrue(mService.getActiveDevices().contains(mLeftDevice)); in testConnectionStateChangedActiveDevice()
804 Assert.assertFalse(mService.getActiveDevices().contains(mRightDevice)); in testConnectionStateChangedActiveDevice()
805 Assert.assertFalse(mService.getActiveDevices().contains(mLeftDevice)); in testConnectionStateChangedActiveDevice()
826 Assert.assertTrue(mService.getActiveDevices().contains(mRightDevice)); in testConnectionStateChangedAnotherActiveDevice()
827 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.java262 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/hearingaid/
DHearingAidService.java573 public List<BluetoothDevice> getActiveDevices() { in getActiveDevices() method in HearingAidService
920 public List<BluetoothDevice> getActiveDevices() { in getActiveDevices() method in HearingAidService.BluetoothHearingAidBinder
925 return service.getActiveDevices(); in getActiveDevices()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/sound/
DMediaOutputPreferenceController.java111 List<BluetoothDevice> activeDevices = hearingAidProfile.getActiveDevices(); in findActiveHearingAidDevice()
DAudioSwitchPreferenceController.java279 List<BluetoothDevice> activeDevices = hearingAidProfile.getActiveDevices(); in findActiveHearingAidDevice()
/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/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/media/
DMediaOutputIndicatorSlice.java166 final 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()