diff options
author | Jean-Michel Trivi <jmtrivi@google.com> | 2016-10-19 11:52:08 -0700 |
---|---|---|
committer | Jean-Michel Trivi <jmtrivi@google.com> | 2016-11-14 09:36:11 -0800 |
commit | 8e48c6939bd81dcbc596f0a4b11bfaea73aed00b (patch) | |
tree | 7ec4235bb7923813509178af65e2cfd71ca9e1c5 /rs/java/android/renderscript/ProgramFragmentFixedFunction.java | |
parent | 7519e166983e48988957e67679ef79b9661a2b34 (diff) |
Refactor SoundPool for appOps handling through PlayerBase
Modified the signature of the abstract volume methods so
it is clear at the subclass level whether the volume
command is for a mute or a volume control.
Changed the implementations in the subclasses
accordingly.
Removed appOps handling inside SoundPool and made it
inherit from PlayerBase.
Moved handling of the camera sound restriction from
SoundPool to PlayerBase.
Added support in SoundPool native implementation for
muting, as each player has its own volume.
Test: play a long file with SoundPool and enter DnD mode
Bug: 30955183
Bug: 28249605
Change-Id: I0fcd7480f9a455c06aa4f7092486f5c65bc9d7db
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions