summaryrefslogtreecommitdiff
path: root/opengl/java
diff options
context:
space:
mode:
author Jan Sebechlebsky <jsebechlebsky@google.com> 2023-03-22 14:05:34 +0100
committer Jan Sebechlebsky <jsebechlebsky@google.com> 2023-03-22 14:09:27 +0100
commit4e850d1cff074d06abe721cdc922f299015b37ea (patch)
tree35f28875f8fb36b2b00cfc60d465959de3c5834c /opengl/java
parent709879dc897ae5f121a14043470ae3d14b045b81 (diff)
Fix flaky failures when re-registering AudioPolicy.
The failures were caused by mix address being out of sync with registered mix address because the mix ids were advanced during unregistration of the mix and access to the mix config config was not properly synchronized. This cl: * Moves resetting the mix ids (mConfig.reset call) to synchronized section. * Changes mix counter behavior so it's incremented only during registration (and not unregistration) and fixes the comment. * Makes mStatusListener, mIsFocusPolicy and mIsTestFocusPolicy final since they never change since construction. * Removes unnecessary synchronization when accessing mStatusListener callback. Bug: 247788804 Test: atest AudioHostTest --iterations 15 Change-Id: I1544329654cec5c13ec5e20a983d8d318ab3549d
Diffstat (limited to 'opengl/java')
0 files changed, 0 insertions, 0 deletions