diff options
| author | 2023-04-05 11:10:31 -0700 | |
|---|---|---|
| committer | 2023-04-05 17:32:23 -0700 | |
| commit | 7e6ce392cf8bbc963ccf05341ad92df680ebe203 (patch) | |
| tree | c5564a80e940685ddf4a820988ff9f4f8202c17d /opengl/java | |
| parent | 0126a4048dcb412478e363240678598f1891f667 (diff) | |
Promote an app to RECEIVER only when handling a broadcast.
AMS.isReceivingBroadcastLocked() uses
getPreferredSchedulingGroupLocked() to check if a process is
handling a broadcast and which scheduling group the process
should belong to. With the current implementation, even if
an app is not handling a broadcast, it will be promoted to
the RECEIVER state as long as it has some broadcasts waiting
for it, which is not necessary and prevents some broadcast
delays that we added for cached processes from being effective.
Bug: 268082390
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: I6e1df941b6e9715add1727fc5cfe0234c5a5a7f6
Diffstat (limited to 'opengl/java')
0 files changed, 0 insertions, 0 deletions