Home
last modified time | relevance | path

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

12

/aosp12/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/hearingaid/
H A 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()
789 Assert.assertTrue(mService.getActiveDevices().contains(mLeftDevice)); 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()
819 Assert.assertTrue(mService.getActiveDevices().contains(mRightDevice)); in testConnectionStateChangedAnotherActiveDevice()
820 Assert.assertTrue(mService.getActiveDevices().contains(mLeftDevice)); in testConnectionStateChangedAnotherActiveDevice()
[all …]
/aosp12/packages/services/Telecomm/src/com/android/server/telecom/bluetooth/
H A 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()
H A DBluetoothRouteManager.java725 for (BluetoothDevice device : bluetoothHearingAid.getActiveDevices()) {
/aosp12/packages/apps/Settings/tests/robotests/src/com/android/settings/sound/
H A 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()
H A 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()
H A DMediaOutputPreferenceControllerTest.java263 when(mHearingAidProfile.getActiveDevices()).thenReturn(mHearingAidActiveDevices); in updateState_withActiveHADevice_setActivatedDeviceName()
/aosp12/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/
H A DHearingAidProfile.java175 public List<BluetoothDevice> getActiveDevices() { in getActiveDevices() method in HearingAidProfile
177 return mService.getActiveDevices(); in getActiveDevices()
H A DCachedBluetoothDevice.java701 mIsActiveDeviceHearingAid = hearingAidProfile.getActiveDevices().contains(mDevice); in fetchActiveDevices()
/aosp12/system/bt/binder/android/bluetooth/
H A DIBluetoothLeAudio.aidl43 List<BluetoothDevice> getActiveDevices(in AttributionSource attributionSource); in getActiveDevices() method
H A DIBluetoothHearingAid.aidl42 List<BluetoothDevice> getActiveDevices(in AttributionSource attributionSource); in getActiveDevices() method
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/
H A DCastTile.java157 List<CastDevice> activeDevices = getActiveDevices(); in handleClick()
178 List<CastDevice> activeDevices = getActiveDevices(); in willPopDetail()
182 private List<CastDevice> getActiveDevices() { in getActiveDevices() method in CastTile
/aosp12/frameworks/base/core/java/android/bluetooth/
H A DBluetoothLeAudio.java338 public List<BluetoothDevice> getActiveDevices() { in getActiveDevices() method in BluetoothLeAudio
344 service.getActiveDevices(mAttributionSource), mAttributionSource); in getActiveDevices()
H A DBluetoothHearingAid.java362 public @NonNull List<BluetoothDevice> getActiveDevices() { in getActiveDevices() method in BluetoothHearingAid
368 service.getActiveDevices(mAttributionSource), mAttributionSource); in getActiveDevices()
/aosp12/packages/apps/Bluetooth/src/com/android/bluetooth/le_audio/
H A 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()
/aosp12/packages/apps/Settings/src/com/android/settings/sound/
H A DMediaOutputPreferenceController.java123 List<BluetoothDevice> activeDevices = hearingAidProfile.getActiveDevices(); in findActiveHearingAidDevice()
H A DAudioSwitchPreferenceController.java250 List<BluetoothDevice> activeDevices = hearingAidProfile.getActiveDevices(); in findActiveHearingAidDevice()
/aosp12/packages/apps/Bluetooth/src/com/android/bluetooth/hearingaid/
H A 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()
/aosp12/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/media/
H A DLocalMediaManagerTest.java583 when(mHapProfile.getActiveDevices()).thenReturn(new ArrayList<>()); in onDeviceListAdded_haveDisconnectedDevice_addDisconnectedDevice()
746 when(mHapProfile.getActiveDevices()).thenReturn(new ArrayList<>()); in updateCurrentConnectedDevice_bluetoothDeviceIsActive_returnBluetoothDevice()
774 when(mHapProfile.getActiveDevices()).thenReturn(new ArrayList<>()); in updateCurrentConnectedDevice_phoneDeviceIsActive_returnPhoneDevice()
/aosp12/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
H A DBluetoothRouteManagerTest.java195 when(mBluetoothHearingAid.getActiveDevices()) in setupConnectedDevices()
H A DBluetoothDeviceManagerTest.java237 when(mBluetoothHearingAid.getActiveDevices()).thenReturn(Arrays.asList(device2, null)); in testConnectDisconnectAudioHearingAid()
H A DBluetoothRouteTransitionTests.java290 when(mBluetoothHearingAid.getActiveDevices()).thenReturn(Arrays.asList(null, null)); in testTransitions()
/aosp12/frameworks/base/packages/SettingsLib/src/com/android/settingslib/media/
H A DLocalMediaManager.java452 hearingAidProfile.getActiveDevices().contains(device.getDevice()); in isActiveDevice()
/aosp12/frameworks/base/services/core/java/com/android/server/media/
H A DBluetoothRouteProvider.java411 activeDevices = mHearingAidProfile.getActiveDevices(); in onServiceConnected()
/aosp12/frameworks/base/boot/hiddenapi/
H A Dhiddenapi-max-target-o.txt11730 Landroid/bluetooth/IBluetoothHearingAid$Stub$Proxy;->getActiveDevices()Ljava/util/List;
11765 Landroid/bluetooth/IBluetoothHearingAid;->getActiveDevices()Ljava/util/List;
/aosp12/frameworks/base/boot/
H A Dboot-image-profile.txt3512 HSPLandroid/bluetooth/BluetoothHearingAid;->getActiveDevices()Ljava/util/List;+]Landroid/bluetooth/…

12