Notify NPMS when uid becomes active or idle.
We used to notify for these events but this got regressed in ag/1829603. Bug: 35523062 Test: manual Change-Id: I05e1517384f1436ee07094cdc6c3a339941f75ff
This commit is contained in:
@@ -4235,7 +4235,8 @@ public class ActivityManagerService extends IActivityManager.Stub
|
||||
final int registeredCallbackCount = mUidObservers.getRegisteredCallbackCount();
|
||||
for (int i = 0; i < N; ++i) {
|
||||
final UidRecord.ChangeItem item = mActiveUidChanges[i];
|
||||
if (item.change == UidRecord.CHANGE_PROCSTATE) {
|
||||
if (item.change != UidRecord.CHANGE_GONE
|
||||
&& item.change != UidRecord.CHANGE_GONE_IDLE) {
|
||||
mUidStateWithSeqObserver.onUidStateChangedWithSeq(
|
||||
item.uid, item.processState, item.procStateSeq);
|
||||
if (VALIDATE_UID_STATES && registeredCallbackCount == 0) {
|
||||
|
||||
Reference in New Issue
Block a user