summaryrefslogtreecommitdiff
path: root/libs/androidfw/StringPool.cpp
diff options
context:
space:
mode:
author Jernej Virag <jernej@google.com> 2024-07-25 17:52:25 +0200
committer Jernej Virag <jernej@google.com> 2024-07-25 17:55:28 +0200
commit91478b22c2bcd1d617325a37e10a24726c5e430b (patch)
treec598b726e03c54a44cca4899269b5b668fa641f4 /libs/androidfw/StringPool.cpp
parentb4eca62f4fdb10bb8fe342bc8f8fc54f20b2bc90 (diff)
Use thread/iteration safe collection for proximity listeners
CopyOnWrite datastructures essentially do what the existing code did: they ensure that iteration operates on an immutable copy of the list and never throw ConcurrentModificationException. They're also more efficient because they do copy only on add, not each iteration. Bug: 354293532 Test: atest ProximitySensorImplDualTest ProximitySensorImplSingleTest Flag: EXEMPT inplace refactor Change-Id: If687969a7ef81e33e8f41b28a751ca60fd90349f
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions