summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/Program.java
diff options
context:
space:
mode:
authorJohn Muir <muirj@google.com>2018-02-16 14:29:14 -0800
committerJohn Muir <muirj@google.com>2018-02-19 00:11:51 +0000
commit8b8bdddae977793b384aeb1e93281e6ced581c49 (patch)
treee6834235fcbb3821815ffb7d9558b290704f2fd5 /rs/java/android/renderscript/Program.java
parentbf87fa1abadb4f91c129e33a713ccca4934d9bb6 (diff)
AudioService: Allow specification of the USB safe volume.
Previously the USB safe volume was hard coded to -37.0 (see explanation in AudioService.java). This volume is used to determine the volume index for a safe level. The USB index can be much lower than the similar volume index defined by config_safe_media_volume_index, even though both may meet the EN 60950 specification (according to the test engineer). Add a configuration property that allows the OEM to change the USB safe volume for their device. The new property's name is config_safe_media_volume_usb_mB. The safe volume is stored in millibel to avoid using floating point numbers in the configuration xml. Bug: 73351887 Test: Default safe volume remains at -37.0dB. Overlay can be used to modify the safe volume. Change-Id: I2a2ecfbc4277fddaf724f38aef7c531c71ee5c3b (cherry picked from commit b4b2da50c942151830643aff14d394597812cb29)
Diffstat (limited to 'rs/java/android/renderscript/Program.java')
0 files changed, 0 insertions, 0 deletions