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

Commit 2b440636 authored by Sudheer Shanka's avatar Sudheer Shanka
Browse files

Slightly stagger the timing of broadcast dispatches.

Bug: 328998537
Test: atest services/tests/mockingservicestests/src/com/android/server/am/BroadcastQueueModernImplTest.java
Change-Id: Ifd9e25fe5ac0a4d4c66cec44cb49a5dd72b2c314
parent 61fb1054
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -1412,6 +1412,9 @@ public final class BroadcastQueueModernImplTest extends BaseBroadcastQueueTest {
        final BroadcastRecord userPresentRecord2 = makeBroadcastRecord(userPresent);

        mImpl.enqueueBroadcastLocked(userPresentRecord1);
        // Wait for a few ms before sending another broadcast to allow comparing the
        // enqueue timestamps of these broadcasts.
        SystemClock.sleep(5);
        mImpl.enqueueBroadcastLocked(userPresentRecord2);

        final BroadcastProcessQueue queue = mImpl.getProcessQueue(PACKAGE_GREEN,