summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Lesinski <adamlesinski@google.com>2015-07-14 16:51:53 -0700
committerAdam Lesinski <adamlesinski@google.com>2015-07-14 16:51:53 -0700
commitbdb0273455c45bf5534f0f3c5759ddcb8aca3bf0 (patch)
tree5031c6bc2400eeb649f1c3c9d1e4e739f6a372a9
parent58295e71d293c131508d280f1373d94716348b2e (diff)
downloadframeworks_base-bdb0273455c45bf5534f0f3c5759ddcb8aca3bf0.zip
frameworks_base-bdb0273455c45bf5534f0f3c5759ddcb8aca3bf0.tar.gz
frameworks_base-bdb0273455c45bf5534f0f3c5759ddcb8aca3bf0.tar.bz2
BatteryStats: Clear power use when removing a UID from uid_cputime kernel module
Bug:22461683 Change-Id: Iffb847268d2872bd2a843e28dc41fa22b1e36828
-rw-r--r--core/java/com/android/internal/os/KernelUidCpuTimeReader.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/java/com/android/internal/os/KernelUidCpuTimeReader.java b/core/java/com/android/internal/os/KernelUidCpuTimeReader.java
index 45cc8b2..46aba40 100644
--- a/core/java/com/android/internal/os/KernelUidCpuTimeReader.java
+++ b/core/java/com/android/internal/os/KernelUidCpuTimeReader.java
@@ -152,6 +152,7 @@ public class KernelUidCpuTimeReader {
if (index >= 0) {
mLastUserTimeUs.removeAt(index);
mLastSystemTimeUs.removeAt(index);
+ mLastPowerMaUs.removeAt(index);
}
try (FileWriter writer = new FileWriter(sRemoveUidProcFile)) {