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

Skip to content
Commit e524c7fd authored by Ping Tsai's avatar Ping Tsai Committed by Eric Laurent
Browse files

audiopolicy: fix pick input profile issue

The exact match profile consider not only the config but also the flags
The compatibilityScore is used to determine the level of match between configurations and flags. It has the following possible values:

- NO_MATCH: Both config and flags are not compatible.
- PARTIAL_MATCH: Both config and flags are partially matched.
- PARTIAL_MATCH_WITH_CONFIG: Partial match with flags(e.g. fast flags) and exact match with config.
- PARTIAL_MATCH_WITH_FLAG: Partial match with config and exact match with flags.
- EXACT_MATCH: Both config and flags are exactly matched.

Bug: 390278647
Test: atest audiopolicy_tests
Flag: EXEMPT bug fix
(cherry picked from https://partner-android-review.googlesource.com/q/commit:9b8b7736b89a9f57280f791118b6d70bf8f3b83d)
Merged-In: Ifaf1ce2fabd468b8859fe818f14d69bd702bf74e
Change-Id: Ifaf1ce2fabd468b8859fe818f14d69bd702bf74e
parent 523b6910
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment