diff options
author | Michael Wright <michaelwr@google.com> | 2014-10-24 14:25:49 -0700 |
---|---|---|
committer | Michael Wright <michaelwr@google.com> | 2014-10-24 14:25:49 -0700 |
commit | f7a5017fa60d4cd3c802a45a7b04a4c8f34d969e (patch) | |
tree | 56b3617c2ff89e54272dccb80e15a569d0e5aaac /src/com | |
parent | 8d7fdc618a914d6c35f1033dafac5ab3cf0c930e (diff) | |
download | packages_apps_Settings-f7a5017fa60d4cd3c802a45a7b04a4c8f34d969e.tar.gz packages_apps_Settings-f7a5017fa60d4cd3c802a45a7b04a4c8f34d969e.tar.bz2 packages_apps_Settings-f7a5017fa60d4cd3c802a45a7b04a4c8f34d969e.zip |
Skip Misc/Overcounted battery stats in release builds.
Bug: 18090734
Change-Id: I24d8eea9fcb0d0b9e50d512325ed91ce70eb16ac
Diffstat (limited to 'src/com')
-rw-r--r-- | src/com/android/settings/fuelgauge/PowerUsageSummary.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/com/android/settings/fuelgauge/PowerUsageSummary.java b/src/com/android/settings/fuelgauge/PowerUsageSummary.java index 588751949..5ee4fa058 100644 --- a/src/com/android/settings/fuelgauge/PowerUsageSummary.java +++ b/src/com/android/settings/fuelgauge/PowerUsageSummary.java @@ -23,6 +23,7 @@ import android.content.Intent; import android.content.IntentFilter; import android.graphics.drawable.Drawable; import android.os.BatteryStats; +import android.os.Build; import android.os.Bundle; import android.os.Handler; import android.os.Message; @@ -287,6 +288,9 @@ public class PowerUsageSummary extends PreferenceFragment { if (percentOfTotal < 10) { continue; } + if ("user".equals(Build.TYPE)) { + continue; + } } if (sipper.drainType == BatterySipper.DrainType.UNACCOUNTED) { // Don't show over-counted unless it is at least 1/2 the size of @@ -297,6 +301,9 @@ public class PowerUsageSummary extends PreferenceFragment { if (percentOfTotal < 5) { continue; } + if ("user".equals(Build.TYPE)) { + continue; + } } final UserHandle userHandle = new UserHandle(UserHandle.getUserId(sipper.getUid())); final BatteryEntry entry = new BatteryEntry(getActivity(), mHandler, mUm, sipper); |