Skip to content
Commit df1ea223 authored by Francois Gaffie's avatar Francois Gaffie Committed by Eric Laurent
Browse files

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: default avatarFrancois Gaffie <francois.gaffie@renault.com>
Change-Id: I4c3191e6189f206c482a3e35080383924cfa8f83
parent 9b60ca5d
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