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

Skip to content
Commit 58d4be5a authored by François Gaffie's avatar François Gaffie Committed by Eric Laurent
Browse files

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: default avatarFrançois Gaffie <francois.gaffie@renault.com>
parent 6054a776
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