summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramFragmentFixedFunction.java
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-08-29 08:37:00 -0700
commit0d88062840241e8d00b18e4fb1a640b73359c270 (patch)
tree044d09e747646e4182e92b0e8df9142bed9877e4 /rs/java/android/renderscript/ProgramFragmentFixedFunction.java
parentcdb568ac040653f55ea88228b02e7a90072d95b3 (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
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions