Provide foreground_service usage time in BatteryDiffEntry.
- Fetch foreground service info through new api from UidBatteryConsumer. - Record fgs & bg usage time separately, combine them till ui display. Bug: 315255868 Test: make RunSettingsRoboTests ROBOTEST_FILTER="com.android.settings.fuelgauge.*" Change-Id: Ic19844db7908a6ae6522c7a72972f44f94dcfca4
This commit is contained in:
@@ -148,7 +148,8 @@ public class AdvancedPowerUsageDetail extends DashboardFragment
|
||||
launchArgs.mShowTimeInformation = showTimeInformation;
|
||||
if (launchArgs.mShowTimeInformation) {
|
||||
launchArgs.mForegroundTimeMs = diffEntry.mForegroundUsageTimeInMs;
|
||||
launchArgs.mBackgroundTimeMs = diffEntry.mBackgroundUsageTimeInMs;
|
||||
launchArgs.mBackgroundTimeMs =
|
||||
diffEntry.mBackgroundUsageTimeInMs + diffEntry.mForegroundServiceUsageTimeInMs;
|
||||
launchArgs.mScreenOnTimeMs = diffEntry.mScreenOnTimeInMs;
|
||||
launchArgs.mAnomalyHintPrefKey = anomalyHintPrefKey;
|
||||
launchArgs.mAnomalyHintText = anomalyHintText;
|
||||
|
Reference in New Issue
Block a user