Skip to content
Commit e6d280d6 authored by François Gaffie's avatar François Gaffie Committed by Hongwei Wang
Browse files

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: default avatarFrançois Gaffie <francois.gaffie@renault.com>
Change-Id: I143403a81e363ed064cb8b422e5ca53cb4b6e18b
parent b4264999
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