Merge "Replace Screen system component time with device screen on time" into udc-dev
This commit is contained in:
@@ -1402,6 +1402,11 @@ public final class DataProcessor {
|
||||
currentEntry.mCachedUsageConsumePower,
|
||||
nextEntry.mCachedUsageConsumePower);
|
||||
}
|
||||
if (selectedBatteryEntry.isSystemEntry()
|
||||
&& 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
|
||||
&& backgroundUsageTimeInMs == 0
|
||||
|
Reference in New Issue
Block a user