Update battery usage data clear mechanism while time change.

- Accept time updated in the last job schedule range:
  [ max (last-full-charge / last-even-hours) , next-even-hours ]

Bug: 308714066
Fix: 308714066
Test: manual
Change-Id: Id92fffddb7666d63fce66fee696a27d957c8b537
This commit is contained in:
mxyyiyi
2023-11-02 16:28:01 +08:00
parent 855307c73e
commit ad23b53942
4 changed files with 36 additions and 5 deletions

View File

@@ -43,6 +43,7 @@ message BatteryUsageHistoricalLogEntry {
RECHECK_JOB = 3;
FETCH_USAGE_DATA = 4;
INSERT_USAGE_DATA = 5;
TIME_UPDATED = 6;
}
optional int64 timestamp = 1;