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 <neobuddy89@gmail.com>
This commit is contained in:
minaripenguin
2024-02-04 20:23:42 +08:00
committed by Joey
parent 46a9894013
commit 7efe5c0c63

View File

@@ -1430,18 +1430,6 @@ public final class DataProcessor {
currentEntry.mCachedUsageConsumePower, currentEntry.mCachedUsageConsumePower,
nextEntry.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 // Forces refine the cumulative value since it may introduce deviation error since we
// will apply the interpolation arithmetic. // will apply the interpolation arithmetic.
final float totalUsageTimeInMs = final float totalUsageTimeInMs =