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

Commit a5e953ee authored by Sudheer Shanka's avatar Sudheer Shanka
Browse files

Remove the one receiver limit for a broadcast to be considered "urgent".

The goal of this "urgent" concept is to make sure certain broadcasts
such as those sent with FLAG_RECEIVER_FOREGROUND are not blocked behind
normal broadcasts and the current API contract for FLAG_RECEIVER_FOREGROUND
doesn't specify any limit on no. of receivers.

Bug: 263803618
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: I5b6b851aa5b735f0290b8fc4870468c8627b3aba
parent 786251a6
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -655,8 +655,7 @@ final class BroadcastRecord extends Binder {
        // TODO: migrate alarm-prioritization flag to BroadcastConstants
        return (isForeground()
                || interactive
                || alarm)
                && receivers.size() == 1;
                || alarm);
    }

    @NonNull String getHostingRecordTriggerType() {