summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramVertexFixedFunction.java
diff options
context:
space:
mode:
authorJean-Michel Trivi <jmtrivi@google.com>2021-07-01 16:02:31 -0700
committerJean-Michel Trivi <jmtrivi@google.com>2021-07-01 16:02:31 -0700
commit07bd4300e3b528278c7bdfb030499071ec26cffc (patch)
tree3855e2acc000aca56fe1a4a5c63271f8e41e2540 /rs/java/android/renderscript/ProgramVertexFixedFunction.java
parent37e2de8f644ed17ce5379c44be466795e8340684 (diff)
AudioService: fix capture policy restoration
Fix ConcurrentModificationException thrown during capture policy restoration. The code was retrieving the list of mappings from uid to capture policies (ALLOW_CAPTURE_*) to send them to AudioSystem. In case of failure, the capture policy was reset and thus modified the mapping list. Because the iteration happened on the same list it was trying to modify, an exception was thrown. The fix consists in iterating over a copy of the list of mappings instead of the actual list, a private field in the PlaybackMonitor class. Bug: 192496758 Test: atest AudioPlaybackCaptureTest, AudioPlaybackConfigurationTest Change-Id: I80afc28e5ddd8d389803306a7fa6da8f6fec3987
Diffstat (limited to 'rs/java/android/renderscript/ProgramVertexFixedFunction.java')
0 files changed, 0 insertions, 0 deletions