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

Skip to content
Commit 415af498 authored by jiabin's avatar jiabin
Browse files

Introduce notion of active devices.

The list of active devices is populated by the Engine.
The active devices are selected with the following rules:
1) If all of the preferred devices for media are available then they
   will all be used for the output.
2) If not, then the last connected removable device will be used.
3) If there are no removable devices then the default audio policy rule
   will be used.
In this CL, we only add a function to query active devices. In a future
CL we will use this list when opening an output.

Test: dumpsys
Bug: 160352965
Change-Id: I12f9ed24e1404264ad7055f3a7c73b444b33ee1a
parent b1c141b9
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment