summaryrefslogtreecommitdiff
path: root/libs/androidfw/StringPool.cpp
diff options
context:
space:
mode:
author Sudheer Shanka <sudheersai@google.com> 2022-12-20 13:26:58 -0800
committer Sudheer Shanka <sudheersai@google.com> 2022-12-22 17:20:02 -0800
commit684287d4b732a2dd381e445cbd37434a76163cb0 (patch)
tree751fb160ab834b273f03cb080ac6a7ee934aa350 /libs/androidfw/StringPool.cpp
parent09183fb1684d1afdcbfb14c9775f39fd4feda888 (diff)
Don't replace any broadcasts that already have been processed.
We do in-place replacement of broadcasts when enqueueing broadcasts sent with FLAG_RECEIVER_REPLACE_PENDING and this could cause an inversion in the broadcast queues if we replace a broadcast record which is already delivered to some of the receivers. This is because we will end up replacing the receivers which are still waiting and the rest will be enqueued at the end of the broadcast queue which changes the ordering in which these receivers should be receiving the broadcast. Bug: 261822892 Test: atest services/tests/mockingservicestests/src/com/android/server/am/BroadcastQueueTest.java Test: atest services/tests/mockingservicestests/src/com/android/server/am/BroadcastQueueModernImplTest.java Change-Id: I4c8b013a07e3b61ace32f4379cc644dbf5347371
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions