Hide running time information for "Android System" entry
Hide the running time information for "Android System" entry, since this entry will combine multiple system components together. It will provide incorrect running time information. The getRealUid() method maps many UIDs to Process.SYSTEM_UID(1000), which results in combining all of those UIDs into one "Android System" entry. This is the expected behavior. Bug: 220717612 Test: make RunSettingsRoboTests -j56 ROBOTEST_FILTER="com.android.settings.fuelgauge" Change-Id: I0aece0f1e86c36e55a2b5a966b4da9fdea14c748
This commit is contained in:
@@ -424,6 +424,9 @@ public class BatteryAppListPreferenceController extends AbstractPreferenceContro
|
|||||||
|
|
||||||
@VisibleForTesting
|
@VisibleForTesting
|
||||||
void setUsageSummary(Preference preference, BatteryEntry entry) {
|
void setUsageSummary(Preference preference, BatteryEntry entry) {
|
||||||
|
if (entry.getUid() == Process.SYSTEM_UID) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
// Only show summary when usage time is longer than one minute
|
// Only show summary when usage time is longer than one minute
|
||||||
final long usageTimeMs = entry.getTimeInForegroundMs();
|
final long usageTimeMs = entry.getTimeInForegroundMs();
|
||||||
if (shouldShowSummary(entry) && usageTimeMs >= DateUtils.MINUTE_IN_MILLIS) {
|
if (shouldShowSummary(entry) && usageTimeMs >= DateUtils.MINUTE_IN_MILLIS) {
|
||||||
|
Reference in New Issue
Block a user