summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramVertexFixedFunction.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-07 20:27:04 +0000
commita059a46dba5127a1467d81481d910eec24d47243 (patch)
tree902fd6a03ac41346cd0ea425762a8c505e6772b5 /rs/java/android/renderscript/ProgramVertexFixedFunction.java
parentdae1a663883c5fa074d4cab8a84b8a20147dbd4a (diff)
[DO NOT MERGE] 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/ProgramVertexFixedFunction.java')
0 files changed, 0 insertions, 0 deletions