Home
last modified time | relevance | path

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

/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/btservice/
DAudioRoutingManager.java293 List<BluetoothDevice> activeDevices = mActiveDevices.get(profile); in handleProfileDisconnected() local
294 if (activeDevices != null && activeDevices.contains(device)) { in handleProfileDisconnected()
295 activeDevices.remove(device); in handleProfileDisconnected()
296 if (activeDevices.isEmpty()) { in handleProfileDisconnected()
307 List<BluetoothDevice> activeDevices = mActiveDevices.get(profile); in handleProfileActiveDeviceChanged()
308 if (activeDevices != null && activeDevices.contains(device)) return; in handleProfileActiveDeviceChanged()
470 List<BluetoothDevice> activeDevices = mActiveDevices.get(profile); in activateDeviceProfile() local
471 if (activeDevices != null && activeDevices.contains(routingDevice.device)) { in activateDeviceProfile()
533 activeDevices = mActiveDevices.get(p); in activateDeviceProfile()
534 if (activeDevices == null || !activeDevices.contains(routingDevice.device)) { in activateDeviceProfile()
[all …]
DAdapterService.java1361 List<BluetoothDevice> activeDevices = getActiveDevices(BluetoothProfile.A2DP); in switchBufferSizeCallback() local
1362 if (activeDevices.size() != 1) { in switchBufferSizeCallback()
1366 + activeDevices.size()); in switchBufferSizeCallback()
1376 switchBufferSizeIntent.putExtra(BluetoothDevice.EXTRA_DEVICE, activeDevices.get(0)); in switchBufferSizeCallback()
1389 List<BluetoothDevice> activeDevices = getActiveDevices(BluetoothProfile.A2DP); in switchCodecCallback() local
1390 if (activeDevices.size() != 1) { in switchCodecCallback()
1394 + activeDevices.size()); in switchCodecCallback()
1397 mA2dpService.switchCodecByBufferSize(activeDevices.get(0), isLowLatencyBufferSize); in switchCodecCallback()
5194 List<BluetoothDevice> activeDevices = new ArrayList<>(); in getActiveDevices() local
5203 activeDevices.add(device); in getActiveDevices()
[all …]
/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/apps/Settings/src/com/android/settings/development/
DAbstractBluetoothA2dpPreferenceController.java221 List<BluetoothDevice> activeDevices = in getA2dpActiveDevice() local
223 return (activeDevices.size() > 0) ? activeDevices.get(0) : null; in getA2dpActiveDevice()
/packages/apps/Settings/src/com/android/settings/sound/
DAudioSwitchPreferenceController.java306 List<BluetoothDevice> activeDevices = hearingAidProfile.getActiveDevices(); in findActiveHearingAidDevice() local
307 for (BluetoothDevice btDevice : activeDevices) { in findActiveHearingAidDevice()
325 List<BluetoothDevice> activeDevices = leAudioProfile.getActiveDevices(); in findActiveLeAudioDevice() local
326 for (BluetoothDevice leAudioDevice : activeDevices) { in findActiveLeAudioDevice()
DMediaOutputPreferenceController.java224 List<BluetoothDevice> activeDevices = hearingAidProfile.getActiveDevices(); in findActiveHearingAidDevice() local
225 for (BluetoothDevice btDevice : activeDevices) { in findActiveHearingAidDevice()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/hearingaid/
DHearingAidService.java624 ArrayList<BluetoothDevice> activeDevices = new ArrayList<>(); in getActiveDevices() local
625 activeDevices.add(null); in getActiveDevices()
626 activeDevices.add(null); in getActiveDevices()
629 return activeDevices; in getActiveDevices()
638 activeDevices.set(1, device); in getActiveDevices()
640 activeDevices.set(0, device); in getActiveDevices()
645 return activeDevices; in getActiveDevices()
/packages/services/Telecomm/src/com/android/server/telecom/bluetooth/
DBluetoothRouteManager.java1089 int activeDevices = 0;
1101 activeDevices++;
1116 activeDevices++;
1121 activeDevices++;
1140 activeDevices++;
1149 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/le_audio/
DLeAudioService.java2289 ArrayList<BluetoothDevice> activeDevices = new ArrayList<>(2); in getActiveDevices() local
2290 activeDevices.add(null); in getActiveDevices()
2291 activeDevices.add(null); in getActiveDevices()
2295 return activeDevices; in getActiveDevices()
2299 activeDevices.set(0, leadDevice); in getActiveDevices()
2308 activeDevices.set(i++, dev); in getActiveDevices()
2311 activeDevices.add(dev); in getActiveDevices()
2314 return activeDevices; in getActiveDevices()
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/le_audio/
DLeAudioServiceTest.java2788 List<BluetoothDevice> activeDevices = mService.getActiveDevices(); in testSendPreferredAudioProfileChangeToAudioFramework() local
2789 assertThat(activeDevices.get(0)).isNull(); in testSendPreferredAudioProfileChangeToAudioFramework()
2790 assertThat(activeDevices.get(1)).isNull(); in testSendPreferredAudioProfileChangeToAudioFramework()