diff options
| author | 2013-05-09 23:47:21 +0000 | |
|---|---|---|
| committer | 2013-05-09 23:47:22 +0000 | |
| commit | 83d6df27d40aed18a7dc42c9320f83656cc81ea0 (patch) | |
| tree | 1e436ed04cc12238854133feaf67a0de2cb12580 | |
| parent | b2f6842d5528345e02a91218fbe58c3e0ca8bafb (diff) | |
| parent | af17baa27196e785989e99b0ecbe7f1c98a1f0cb (diff) | |
Merge "Help on issue #8863955: Google Services keeping phone awake..." into jb-mr2-dev
| -rw-r--r-- | core/java/com/android/internal/os/BatteryStatsImpl.java | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/core/java/com/android/internal/os/BatteryStatsImpl.java b/core/java/com/android/internal/os/BatteryStatsImpl.java index 04b9884113fc..a2e8d497b438 100644 --- a/core/java/com/android/internal/os/BatteryStatsImpl.java +++ b/core/java/com/android/internal/os/BatteryStatsImpl.java @@ -94,11 +94,7 @@ public final class BatteryStatsImpl extends BatteryStats { // The maximum number of names wakelocks we will keep track of // per uid; once the limit is reached, we batch the remaining wakelocks // in to one common name. - private static final int MAX_WAKELOCKS_PER_UID = 30; - - // The system process gets more. It is special. Oh so special. - // With, you know, special needs. Like this. - private static final int MAX_WAKELOCKS_PER_UID_IN_SYSTEM = 50; + private static final int MAX_WAKELOCKS_PER_UID = 50; private static final String BATCHED_WAKELOCK_NAME = "*overflow*"; @@ -4136,8 +4132,7 @@ public final class BatteryStatsImpl extends BatteryStats { Wakelock wl = mWakelockStats.get(name); if (wl == null) { final int N = mWakelockStats.size(); - if (N > MAX_WAKELOCKS_PER_UID && (mUid != Process.SYSTEM_UID - || N > MAX_WAKELOCKS_PER_UID_IN_SYSTEM)) { + if (N > MAX_WAKELOCKS_PER_UID) { name = BATCHED_WAKELOCK_NAME; wl = mWakelockStats.get(name); } |