OSDN Git Service

Update the mechanism to upload new anomaly config
authorLei Yu <jackqdyulei@google.com>
Thu, 15 Mar 2018 22:55:07 +0000 (15:55 -0700)
committerLei Yu <jackqdyulei@google.com>
Fri, 16 Mar 2018 18:24:14 +0000 (11:24 -0700)
commit9a80d6ebb8f166dae4a7dbef0f601efd9377a35c
tree15b14371a519a5c2789f91a63fda677b903d2429
parent34bfe742496ab3c4f8c5f6338184873c396ec019
Update the mechanism to upload new anomaly config

1. Move the config update to jobscheduler, so config is checked and
updated every day.
2. Before the update, always delete the old config.
3. Move uploadIntent method to BatteryTipUtils.

Bug: 74997752
Fixes: 74564143
Test: RunSettingsRoboTests

Change-Id: If88759595d57a562b25542082f895fe8f207acdb
AndroidManifest.xml
res/values/ids.xml
src/com/android/settings/fuelgauge/batterytip/AnomalyCleanupJobService.java
src/com/android/settings/fuelgauge/batterytip/AnomalyConfigJobService.java [new file with mode: 0644]
src/com/android/settings/fuelgauge/batterytip/AnomalyConfigReceiver.java
src/com/android/settings/fuelgauge/batterytip/BatteryTipUtils.java
tests/robotests/src/com/android/settings/fuelgauge/batterytip/AnomalyConfigJobServiceTest.java [new file with mode: 0644]