commit | a690473348c6182fa2f0ef1ef1ba75fec7d7d688 | [log] [tgz] |
---|---|---|
author | Jean-Michel Trivi <jmtrivi@google.com> | Sat Feb 04 16:35:25 2017 -0800 |
committer | Jean-Michel Trivi <jmtrivi@google.com> | Sat Feb 04 16:35:25 2017 -0800 |
tree | ba758ee9a3f481f999ba57a7b5fba297c4a2d922 | |
parent | ddb80216b9d536be0f2af287f44a41872aa1d809 [diff] |
API for app to know what to set in Activity.setVolumeControlStream() Stream types are deprecated to describe an audio playback use case. But they are used for volume control. This API helps the developer go from an AudioAttributes instance used for playback, to a stream type used to describe which volume stream type should be used when the user presses on the volume keys. Test: see AudioAttributes cts test Bug 21267880 Change-Id: I2b9da5b282e8ed2342c61c14a7f59b874d0ce979