Fix CTS AudioAttributesTest#testGetVolumeControlStreamVsLegacyStream
Volume group definition and stream control aliases definition
may not match on a platform using volume groups to control volumes.
This CL prevents from using hard coded alias table in order to rely
only on volume groups definition.
Also, UiSounds are used to allow volume change on stream previously
affected by Dnd. Waiting for better configurability, this CL
allows non aliased config to fallback on phone configuration to define
stream (and so groups) allowed to be volume adjusted while Dnd.
This CL provides a quick default index implementation based on properties
for music, call, alarm and system. Other streams would use music default
index (may be rescaled if out of range), as per volume group default
implementation.
BUG: 178032665
Test: cts/AudioManagerTest
Signed-off-by: Francois Gaffie <francois.gaffie@renault.com>
Change-Id: I4c3191e6189f206c482a3e35080383924cfa8f83
Loading
Please register or sign in to comment