diff options
| author | 2022-12-27 04:08:46 +0000 | |
|---|---|---|
| committer | 2022-12-28 14:57:04 +0000 | |
| commit | a5e953ee9034309995fa98c6fcfc9cbd3a0250b3 (patch) | |
| tree | fcc3d26a6f95b5829581deeeda95260a934cc894 | |
| parent | 786251a6a3ee3a0e1953d9ab4ecf2029966e647b (diff) | |
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
| -rw-r--r-- | services/core/java/com/android/server/am/BroadcastRecord.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/services/core/java/com/android/server/am/BroadcastRecord.java b/services/core/java/com/android/server/am/BroadcastRecord.java index 0fec082e0722..1d4d425590c1 100644 --- a/services/core/java/com/android/server/am/BroadcastRecord.java +++ b/services/core/java/com/android/server/am/BroadcastRecord.java @@ -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() { |