Update database clear & job refresh mechanism for time zone change intent

- Clear database and reset periodic job
- Take a snapshot of current battery usage stats

Bug: 336423923
Test: atest SettingsRoboTests:com.android.settings.fuelgauge.batteryusage
Change-Id: I4aade9db950b508e2190605371f246904f131da3
This commit is contained in:
mxyyiyi
2024-05-08 17:34:22 +08:00
parent 798340fafd
commit d3ce90347b
5 changed files with 51 additions and 0 deletions

View File

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