Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 13b8910d authored by Sudheer Shanka's avatar Sudheer Shanka
Browse files

Preserve enqueue time of replaced broadcast records.

When a broadcast is sent with FLAG_RECEIVER_REPLACE_PENDING,
we perform in-place swap with older broadcasts but we don't
update the enqueue times and this could result in other
processes getting prioritized even though they have broadcasts
that have been enqueued at a later time.

Bug: 263803500
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: Ie4524a6b05d66be0725650be888f45d2903e1daa
parent 09183fb1
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment