From 7efe5c0c6384e85c5261ff33b8d9a7a66d2765d2 Mon Sep 17 00:00:00 2001 From: minaripenguin Date: Sun, 4 Feb 2024 20:23:42 +0800 Subject: [PATCH] DataProcessor: Do not skip and replace screen on component with screen on time test: confirmed the screen on component does not show empty stat/s Change-Id: Ie4fa4cf77ea06d699317c2b6fedbd5005d04ab6f Signed-off-by: Pranav Vashi --- .../fuelgauge/batteryusage/DataProcessor.java | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/com/android/settings/fuelgauge/batteryusage/DataProcessor.java b/src/com/android/settings/fuelgauge/batteryusage/DataProcessor.java index fb7a9dbb65f..f3a9039e0bf 100644 --- a/src/com/android/settings/fuelgauge/batteryusage/DataProcessor.java +++ b/src/com/android/settings/fuelgauge/batteryusage/DataProcessor.java @@ -1430,18 +1430,6 @@ public final class DataProcessor { currentEntry.mCachedUsageConsumePower, nextEntry.mCachedUsageConsumePower); } - if (isSystemConsumer(selectedBatteryEntry.mConsumerType) - && selectedBatteryEntry.mDrainType == BatteryConsumer.POWER_COMPONENT_SCREEN) { - // Replace Screen system component time with screen on time. - foregroundUsageTimeInMs = slotScreenOnTime; - } - // Excludes entry since we don't have enough data to calculate. - if (foregroundUsageTimeInMs == 0 - && foregroundServiceUsageTimeInMs == 0 - && backgroundUsageTimeInMs == 0 - && consumePower == 0) { - continue; - } // Forces refine the cumulative value since it may introduce deviation error since we // will apply the interpolation arithmetic. final float totalUsageTimeInMs =