Searched refs:activeDevices (Results 1 – 11 of 11) sorted by relevance
293 List<BluetoothDevice> activeDevices = mActiveDevices.get(profile); in handleProfileDisconnected() local294 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() local471 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 …]
1361 List<BluetoothDevice> activeDevices = getActiveDevices(BluetoothProfile.A2DP); in switchBufferSizeCallback() local1362 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() local1390 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() local5203 activeDevices.add(device); in getActiveDevices()[all …]
105 List<BluetoothDevice> activeDevices = in getA2dpActiveDevice() local107 return (activeDevices.size() > 0) ? activeDevices.get(0) : null; in getA2dpActiveDevice()
221 List<BluetoothDevice> activeDevices = in getA2dpActiveDevice() local223 return (activeDevices.size() > 0) ? activeDevices.get(0) : null; in getA2dpActiveDevice()
306 List<BluetoothDevice> activeDevices = hearingAidProfile.getActiveDevices(); in findActiveHearingAidDevice() local307 for (BluetoothDevice btDevice : activeDevices) { in findActiveHearingAidDevice()325 List<BluetoothDevice> activeDevices = leAudioProfile.getActiveDevices(); in findActiveLeAudioDevice() local326 for (BluetoothDevice leAudioDevice : activeDevices) { in findActiveLeAudioDevice()
224 List<BluetoothDevice> activeDevices = hearingAidProfile.getActiveDevices(); in findActiveHearingAidDevice() local225 for (BluetoothDevice btDevice : activeDevices) { in findActiveHearingAidDevice()
624 ArrayList<BluetoothDevice> activeDevices = new ArrayList<>(); in getActiveDevices() local625 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()
1089 int activeDevices = 0;1101 activeDevices++;1116 activeDevices++;1121 activeDevices++;1140 activeDevices++;1149 if (activeDevices > 1) {
516 List<BluetoothDevice> activeDevices = in getA2dpActiveDevice() local518 return (activeDevices.size() > 0) ? activeDevices.get(0) : null; in getA2dpActiveDevice()
2289 ArrayList<BluetoothDevice> activeDevices = new ArrayList<>(2); in getActiveDevices() local2290 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()
2788 List<BluetoothDevice> activeDevices = mService.getActiveDevices(); in testSendPreferredAudioProfileChangeToAudioFramework() local2789 assertThat(activeDevices.get(0)).isNull(); in testSendPreferredAudioProfileChangeToAudioFramework()2790 assertThat(activeDevices.get(1)).isNull(); in testSendPreferredAudioProfileChangeToAudioFramework()