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

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

AudioService: use AudioSystem adapter for more methods

Use AudioSystem adapter class in AudioService for:
 setPhoneState
 setAllowedCapturePolicy
 isStreamActive
 isStreamActiveRemotely
 setForceUse
 getForceUse
 registerPolicyMixes
 removeUidDeviceAffinities
 setUidDeviceAffinities
 removeUserIdDeviceAffinities
 setUserIdDeviceAffinities
 getDevicesForStream
 getDevicesForAttributes
Remove some unnecessarily nested ifs.

Bug: 162448412
Test: atest AudioServiceHostTest#testPreferredDeviceRouting
Test: atest AudioServiceHostTest#testDevicesForAttributes
Change-Id: Ifea4e29fd6971dfd921b1c87daba795a6a135199
parent 8438eec2
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