From ef640cdfb29caf9d0abf4aba020afbc3eb3e0443 Mon Sep 17 00:00:00 2001 From: Dianne Hackborn Date: Tue, 25 Mar 2014 14:41:05 -0700 Subject: Don't allow -1 uids for wake locks. Change-Id: Ia1b412a166f69247be3b047138349e7b4031bd7d --- core/java/com/android/internal/os/BatteryStatsImpl.java | 2 ++ 1 file changed, 2 insertions(+) (limited to 'core') diff --git a/core/java/com/android/internal/os/BatteryStatsImpl.java b/core/java/com/android/internal/os/BatteryStatsImpl.java index 39636fe..4c11fa9 100644 --- a/core/java/com/android/internal/os/BatteryStatsImpl.java +++ b/core/java/com/android/internal/os/BatteryStatsImpl.java @@ -574,6 +574,7 @@ public final class BatteryStatsImpl extends BatteryStats { mUptime = in.readLong(); mPastUptime = in.readLong(); mUptimeStart = in.readLong(); + mRealtime = in.readLong(); mPastRealtime = in.readLong(); mRealtimeStart = in.readLong(); mUnpluggedUptime = in.readLong(); @@ -586,6 +587,7 @@ public final class BatteryStatsImpl extends BatteryStats { out.writeLong(mUptime); out.writeLong(runningUptime); out.writeLong(mUptimeStart); + out.writeLong(mRealtime); out.writeLong(runningRealtime); out.writeLong(mRealtimeStart); out.writeLong(mUnpluggedUptime); -- cgit v1.1