Home
last modified time | relevance | path

Searched refs:activeDevices (Results 1 – 10 of 10) sorted by relevance

/packages/apps/Settings/src/com/android/settings/development/bluetooth/
DAbstractBluetoothPreferenceController.java105 List<BluetoothDevice> activeDevices = in getA2dpActiveDevice() local
107 return (activeDevices.size() > 0) ? activeDevices.get(0) : null; in getA2dpActiveDevice()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/hearingaid/
DHearingAidService.java556 ArrayList<BluetoothDevice> activeDevices = new ArrayList<>(); in getActiveDevices() local
557 activeDevices.add(null); in getActiveDevices()
558 activeDevices.add(null); in getActiveDevices()
563 return activeDevices; in getActiveDevices()
574 activeDevices.set(1, device); in getActiveDevices()
576 activeDevices.set(0, device); in getActiveDevices()
581 return activeDevices; in getActiveDevices()
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/hearingaid/
DHearingAidServiceBinderTest.java129 List<BluetoothDevice> activeDevices = new ArrayList<>(); in getActiveDevices() local
130 activeDevices.add(mTestDevice); in getActiveDevices()
131 when(mService.getActiveDevices()).thenReturn(activeDevices); in getActiveDevices()
/packages/apps/Settings/src/com/android/settings/sound/
DAudioSwitchPreferenceController.java330 List<BluetoothDevice> activeDevices = hearingAidProfile.getActiveDevices(); in findActiveHearingAidDevice() local
331 for (BluetoothDevice btDevice : activeDevices) { in findActiveHearingAidDevice()
349 List<BluetoothDevice> activeDevices = leAudioProfile.getActiveDevices(); in findActiveLeAudioDevice() local
350 for (BluetoothDevice leAudioDevice : activeDevices) { in findActiveLeAudioDevice()
DMediaOutputPreferenceController.java233 List<BluetoothDevice> activeDevices = hearingAidProfile.getActiveDevices(); in findActiveHearingAidDevice() local
234 for (BluetoothDevice btDevice : activeDevices) { in findActiveHearingAidDevice()
/packages/services/Telecomm/src/com/android/server/telecom/bluetooth/
DBluetoothRouteManager.java1091 int activeDevices = 0;
1103 activeDevices++;
1118 activeDevices++;
1123 activeDevices++;
1142 activeDevices++;
1151 if (activeDevices > 1) {
/packages/apps/Test/connectivity/PMC/src/com/android/pmc/
DA2dpReceiver.java516 List<BluetoothDevice> activeDevices = in getA2dpActiveDevice() local
518 return (activeDevices.size() > 0) ? activeDevices.get(0) : null; in getA2dpActiveDevice()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/btservice/
DAdapterService.java1359 List<BluetoothDevice> activeDevices = getActiveDevices(BluetoothProfile.A2DP); in switchBufferSizeCallback() local
1360 if (activeDevices.size() != 1) { in switchBufferSizeCallback()
1364 + activeDevices.size()); in switchBufferSizeCallback()
1374 switchBufferSizeIntent.putExtra(BluetoothDevice.EXTRA_DEVICE, activeDevices.get(0)); in switchBufferSizeCallback()
1384 List<BluetoothDevice> activeDevices = getActiveDevices(BluetoothProfile.A2DP); in switchCodecCallback() local
1385 if (activeDevices.size() != 1) { in switchCodecCallback()
1389 + activeDevices.size()); in switchCodecCallback()
1392 mA2dpService.switchCodecByBufferSize(activeDevices.get(0), isLowLatencyBufferSize); in switchCodecCallback()
3327 List<BluetoothDevice> activeDevices = new ArrayList<>(); in getActiveDevices() local
3336 activeDevices.add(device); in getActiveDevices()
[all …]
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/le_audio/
DLeAudioService.java2728 ArrayList<BluetoothDevice> activeDevices = new ArrayList<>(2); in getActiveDevices() local
2729 activeDevices.add(null); in getActiveDevices()
2730 activeDevices.add(null); in getActiveDevices()
2734 return activeDevices; in getActiveDevices()
2738 activeDevices.set(0, leadDevice); in getActiveDevices()
2747 activeDevices.set(i++, dev); in getActiveDevices()
2750 activeDevices.add(dev); in getActiveDevices()
2753 return activeDevices; in getActiveDevices()
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/le_audio/
DLeAudioServiceTest.java2541 List<BluetoothDevice> activeDevices = mService.getActiveDevices(); in testSendPreferredAudioProfileChangeToAudioFramework() local
2542 assertThat(activeDevices.get(0)).isNull(); in testSendPreferredAudioProfileChangeToAudioFramework()
2543 assertThat(activeDevices.get(1)).isNull(); in testSendPreferredAudioProfileChangeToAudioFramework()