0fa413e314a2057738b185b127b907b761a4424c |
|
23-Feb-2018 |
jackqdyulei <jackqdyulei@google.com> |
Fix the AnomalyCleanUpJobService 1. Invoke it in BOOT_COMPLETED 2. Set it periodic 3. Change the anomaly history from 3 days to 30 days Bug: 72385333 Test: RunSettingsRoboTests Change-Id: Ib59a85f3dffd6c094ff400a75bec44d4c65bce44
/packages/apps/Settings/src/com/android/settings/fuelgauge/batterytip/AnomalyDetectionReceiver.java
|
3ee28c810d29e21a2d5d1ce76e5f2e9aede4f727 |
|
21-Feb-2018 |
jackqdyulei <jackqdyulei@google.com> |
Add auto restriction for excessive background If it is excessive bg anomaly and auto restriction is on, then restrict the anomaly in receiver and store it in database. Also in this cl we move the anomaly logic to a JobService, so all works are done in a background thread and won't interfere the main thread. Bug: 72385333 Test: RunSettingsRoboTests && Will add auto restriction test once robo framework is updated(b/73172999) Change-Id: Id0ec5fb449ce26bf19a292bcbe63838d621cfd8e
/packages/apps/Settings/src/com/android/settings/fuelgauge/batterytip/AnomalyDetectionReceiver.java
|
338ae2fd71ffb289ef5b4660e18292e895ef8571 |
|
16-Feb-2018 |
jackqdyulei <jackqdyulei@google.com> |
Add JobService to delete obsolete anomaly data Bug: 72385333 Test: RunSettingsRoboTests Change-Id: I73e16b9785fe0e832acc9e4256c8f9fd1333721e
/packages/apps/Settings/src/com/android/settings/fuelgauge/batterytip/AnomalyDetectionReceiver.java
|
10b7c0c39d3d586b37dee5ea56f809041b3caf1f |
|
02-Feb-2018 |
jackqdyulei <jackqdyulei@google.com> |
Add code to handle anomaly config update Store a local version number in Settings. If new version comes, upload config to StatsManager. Bug: 72385333 Test: Will add robo test once robo framework is updated(b/73172999) Change-Id: I03f5ee6f6e013746397d39b8d2b52ce587825b11
/packages/apps/Settings/src/com/android/settings/fuelgauge/batterytip/AnomalyDetectionReceiver.java
|
821adcea1ef8987f484a05689aadc3feea6e3123 |
|
30-Jan-2018 |
jackqdyulei <jackqdyulei@google.com> |
Add AnomalyDetectionReceiver This BroadcastReceiver is triggered when anomaly happens. Inside it we need to extract anomaly info and store it in the database. Bug: 72385333 Test: Will add robo test once robo framework is updated(b/73172999) Change-Id: Ib36af377fa2dff8026e7f0fcbec9575366e39cf9
/packages/apps/Settings/src/com/android/settings/fuelgauge/batterytip/AnomalyDetectionReceiver.java
|