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

Commit 26f8f5c8 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 oc-dr1-dev

am: 5a800cf0

Change-Id: I4b2e2dc81baea8078b0bca1db357e234bda27bf7
parents 89f58e15 5a800cf0
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -3597,7 +3597,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);
    }