Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0cc86227 authored by Jakub Pawlowski's avatar Jakub Pawlowski Committed by Automerger Merge Worker
Browse files

Merge "Introduce LE Audio state machine and service test cases" am: 411a1a9a...

Merge "Introduce LE Audio state machine and service test cases" am: 411a1a9a am: ca28c07c am: b7770c26

Original change: https://android-review.googlesource.com/c/platform/packages/apps/Bluetooth/+/1531778

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Iae027a53dd54ddf578e17bc45c178a2cf88ebe73
parents fe2408da b7770c26
Loading
Loading
Loading
Loading
+16 −0
Original line number Diff line number Diff line
@@ -344,6 +344,22 @@ public class LeAudioService extends ProfileService {
        }
    }

    /**
     * Get the list of devices that have state machines.
     *
     * @return the list of devices that have state machines
     */
    @VisibleForTesting
    List<BluetoothDevice> getDevices() {
        List<BluetoothDevice> devices = new ArrayList<>();
        synchronized (mStateMachines) {
            for (LeAudioStateMachine sm : mStateMachines.values()) {
                devices.add(sm.getDevice());
            }
            return devices;
        }
    }

    /**
     * Get the current connection state of the profile
     *