summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorFabian Kozynski <kozynski@google.com>2020-08-06 16:33:17 -0400
committerFabian Kozynski <kozynski@google.com>2020-08-10 12:27:14 -0400
commit44fc7138bf8487908e979d25e220fd04c10aa38e (patch)
tree55085286b2c0979eb4130da6f3425e9fef410a24 /rs/java/android/renderscript/ProgramFragmentFixedFunction.java
parent0a3b7c6ad69364710c31eab9db1c76a7c164948c (diff)
Keep track of audio recordings that are silenced
Sometimes, an app will have an active App Op for recording, but it is silenced (for example, after a while being in background). This means they cannot get the recording audio stream. This change keeps track of that and prevents them from being considered as actively using AppOpsManager.OP_RECORD_AUDIO from SystemUI's perspective. It does two things: - If a particular UID has any of its AudioRecordingConfigurations as silenced, it will be marked as paused and an inactive update will be sent to listeners of AppOpsController. When the recording stops being silent, an active update will be sent. - When getting the list of active items, paused ones will be filtered out. Test: manual with recording app Test: atest AppOpsControllerTest Bug: 162552566 Change-Id: I72fbebf4b37b799907855d57e6c615c244b63999
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions