OSDN Git Service

AudioService: fix updating of stream alias for A11y
authorJean-Michel Trivi <jmtrivi@google.com>
Sat, 15 Apr 2017 01:13:26 +0000 (18:13 -0700)
committerJean-Michel Trivi <jmtrivi@google.com>
Mon, 17 Apr 2017 23:31:35 +0000 (16:31 -0700)
commit170a0ee064580379b9810708615161af529323c1
treedc9bbab0e544c72a4e1d0bdf9d4b139040597ccc
parent57af565fb79c006522261fc211b078d2a5efd331
AudioService: fix updating of stream alias for A11y

VolumeStreamState.setAllIndexes():
  - don't do anything if the target and source VSS have the same
    stream type,
  - javadoc of (old+new) behavior.
When STREAM_ACCESSIBILITY becomes independent of any other stream,
  read the settings to restore the volumes previously set.

Test: see bug
Bug: 36286803
Change-Id: I2afcff3a93cc81f3958af252986ef1ac9c38899e
services/core/java/com/android/server/audio/AudioService.java