audio: get rid of hardcoded translation stream <--> attributes
IMPORTANT NOTE: CL depends on another CL in frameworks/base https://partner-android-review.googlesource.com/c/platform/frameworks/base/+/1206275 AudioProductStrategies offers the possibility to dynamically translate attributes to stream types (and vice versa) within audio policy engine. Legacy engine has hard coded rules to maintain the translation service. This patch removes the hardcoded translation within the helper and replaces them by AudioProductStrategy APIs. Test: AudioPolicyTests: AudioProductStrategiesAllStreamsTest It loops on all stream types supported by strategy and ensures device selection matches. Hard coded stuff would prevent right device selection. Test: CTS: AudioTrackTest AudioRecordTest Test: audio smoke test on sailfish, walleye blueline Change-Id: I76589df5555136ed49dbacc7aac9b0b5e828bef2 Signed-off-by: François Gaffie <francois.gaffie@renault.com>
Loading
Please register or sign in to comment