Skip Misc/Overcounted battery stats in release builds. automerge: f7a5017
automerge: 95f29a1
* commit '95f29a1930244b9978a55073326c9fb071c2615f':
Skip Misc/Overcounted battery stats in release builds.
This commit is contained in:
@@ -23,6 +23,7 @@ import android.content.Intent;
|
|||||||
import android.content.IntentFilter;
|
import android.content.IntentFilter;
|
||||||
import android.graphics.drawable.Drawable;
|
import android.graphics.drawable.Drawable;
|
||||||
import android.os.BatteryStats;
|
import android.os.BatteryStats;
|
||||||
|
import android.os.Build;
|
||||||
import android.os.Bundle;
|
import android.os.Bundle;
|
||||||
import android.os.Handler;
|
import android.os.Handler;
|
||||||
import android.os.Message;
|
import android.os.Message;
|
||||||
@@ -287,6 +288,9 @@ public class PowerUsageSummary extends PreferenceFragment {
|
|||||||
if (percentOfTotal < 10) {
|
if (percentOfTotal < 10) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
if ("user".equals(Build.TYPE)) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (sipper.drainType == BatterySipper.DrainType.UNACCOUNTED) {
|
if (sipper.drainType == BatterySipper.DrainType.UNACCOUNTED) {
|
||||||
// Don't show over-counted unless it is at least 1/2 the size of
|
// 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) {
|
if (percentOfTotal < 5) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
if ("user".equals(Build.TYPE)) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
final UserHandle userHandle = new UserHandle(UserHandle.getUserId(sipper.getUid()));
|
final UserHandle userHandle = new UserHandle(UserHandle.getUserId(sipper.getUid()));
|
||||||
final BatteryEntry entry = new BatteryEntry(getActivity(), mHandler, mUm, sipper);
|
final BatteryEntry entry = new BatteryEntry(getActivity(), mHandler, mUm, sipper);
|
||||||
|
Reference in New Issue
Block a user