summaryrefslogtreecommitdiff
path: root/docs/html/sdk/api_diff/11/changes
diff options
context:
space:
mode:
authorJean-Michel Trivi <jmtrivi@google.com>2020-08-21 15:44:55 -0700
committerJean-Michel Trivi <jmtrivi@google.com>2020-09-08 23:41:14 +0000
commit44caf0ed75697e8b33346bece6e1b022403abe99 (patch)
tree8d7942c83cd90438843c96ad6a5fa912a9089299 /docs/html/sdk/api_diff/11/changes
parent71f959be7ea231dbcbc012990734259fe289a0ee (diff)
AudioService: check calls to AudioSystem.initStreamVolume
AudioSystem.initStreamVolume initializes the min and max stream volume indices. The return value was never checked to ensure success of the call. An unchecked failure could leave min/max values at -1 in native AudioPolicyManager, which could lead to no valid volume to be set, and thus no audio would be heard as a result. The fix consists in ensuring we retry initializing the stream volumes whenever an error is detected when calling the initialization method, or after checking whether the min/max values are valid after initialization. Bug: 161950968 Test: adb shell dumpsys audio, check lifecycle section Change-Id: I3714c0db2a9657a88488635f7d6c78e682f326aa Merged-In: I3714c0db2a9657a88488635f7d6c78e682f326aa
Diffstat (limited to 'docs/html/sdk/api_diff/11/changes')
0 files changed, 0 insertions, 0 deletions