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

Commit d7683005 authored by Amith Yamasani's avatar Amith Yamasani Committed by android-build-merger
Browse files

Merge "Ignore isolated uid's process state in BatteryStats tracking" into...

Merge "Ignore isolated uid's process state in BatteryStats tracking" into oc-dr1-dev am: 5a800cf0 am: 26f8f5c8
am: 7d00772c

Change-Id: Ib23376b9f072522167c02ea009a0284ab5eabccb
parents 1fb409cb 7d00772c
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -3652,7 +3652,12 @@ public class BatteryStatsImpl extends BatteryStats {
    }

    public void noteUidProcessStateLocked(int uid, int state) {
        uid = mapUid(uid);
        int parentUid = mapUid(uid);
        if (uid != parentUid) {
            // Isolated UIDs process state is already rolled up into parent, so no need to track
            // Otherwise the parent's process state will get downgraded incorrectly
            return;
        }
        getUidStatsLocked(uid).updateUidProcessStateLocked(state);
    }