Use AudioProductStrategies within AudioAttributes
AudioProductStrategies allows to avoid any hard coded operation in AOSP,
and the matching between the stream type and the attributes can also
be exposed by the XML audio policy engine configuration file.
This CL updates the AudioAttributes to make use of product strategies
to implement the legacy conversion between stream type and attributes.
It will continue fallbacking in hard coded mapping.
Bug: 124767636
Test: dumpsys media.audio_policy
Signed-off-by: François Gaffie <francois.gaffie@renault.com>
Change-Id: I143403a81e363ed064cb8b422e5ca53cb4b6e18b
1 file changed