summaryrefslogtreecommitdiffstats
path: root/src/com
diff options
context:
space:
mode:
authorMichael Wright <michaelwr@google.com>2014-10-24 14:25:49 -0700
committerMichael Wright <michaelwr@google.com>2014-10-24 14:25:49 -0700
commitf7a5017fa60d4cd3c802a45a7b04a4c8f34d969e (patch)
tree56b3617c2ff89e54272dccb80e15a569d0e5aaac /src/com
parent8d7fdc618a914d6c35f1033dafac5ab3cf0c930e (diff)
downloadpackages_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.java7
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);