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

Skip to content
Commit e2f34be1 authored by Jean-Michel Trivi's avatar Jean-Michel Trivi
Browse files

APM: uid-device affinity: fix for multiple concurrent apps

Audio mix rules that contain both a match and exclude for a uid
  or usage are ignored for routing evaluation. The implementation
  of the uid-device affinity caused uid matches and exclusions to
  be added to any mixes, causing previously valid mixes to be
  discarded in the routing logic.
The fix consists in implementing the uid-device affinity by only
  applying uid exclusions on mixes that:
  a/ are compatible with the concept (mixes of players that are
     render only),
  b/ do not route to the selected devices
  c/ do not have a uid match rule (such mixes are already exclusive
     to the uid to match)
  d/ do not already have a uid exclusion for the uid
Fix removeUidDeviceAffinities() that skipped the wrong mixes.

Bug: 124319394
Bug: 131180578
Test: atest AudioHostTest#testUidDeviceAffinity
Change-Id: I813c4cfb15956e56599740948775c32562266c21
parent 3350096b
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