116fec5b258887bd0f7fb115526dbd88b95f10fd |
|
10-Jul-2017 |
jackqdyulei <jackqdyulei@google.com> |
Init BatteryUtils in constructor In this case we won't have the NPE. Bug: 63526637 Test: RunSettingsRoboTests Change-Id: I20375e535ba07deddacf74052f31476e0cb28e56
/packages/apps/Settings/src/com/android/settings/fuelgauge/anomaly/action/BackgroundCheckAction.java
|
bfc2b11b9357c4508756243f540760458611b3b8 |
|
29-Jun-2017 |
jackqdyulei <jackqdyulei@google.com> |
Update Anomaly detection framework This cl make it could have multiple actions for each anomaly type. This includes: 1. Add field "targetSdkVersion", "bgRestrictionEnabled" in Anomaly 2. Add new action which includes "force stop" and "background check" 3. Add "sdkVersion" and "bgRestrictionEnabled" method in BatteryUtils 4. Update BackgroundCheckAction to check sdkVersion first 5. Update serveral tests and add new test Bug: 63037765 Test: RunSettingsRoboTests Change-Id: Iea7a131ee57d501f7737ae4a3ba672d948d05cd8
/packages/apps/Settings/src/com/android/settings/fuelgauge/anomaly/action/BackgroundCheckAction.java
|
ac29684b148be0d8585c977e61841bd4daeceee7 |
|
22-Jun-2017 |
jackqdyulei <jackqdyulei@google.com> |
Add metric action log for anomaly action Change AnomalyAction to abstract class and log the action there. Bug: 37681923 Test: RunSettingsRoboTests Change-Id: Ied7a269d4a3f8fcb978165af6e17a9c9952fea49
/packages/apps/Settings/src/com/android/settings/fuelgauge/anomaly/action/BackgroundCheckAction.java
|
9453e89aca3508dd79cc44b70b5e63d1e1feef3a |
|
09-Jun-2017 |
jackqdyulei <jackqdyulei@google.com> |
Add action active check for anomaly action. This cl adds the action active check for the following actions: 1. ForceStopAction: check whether app is stopped 2. BackgroundActivityAction: check whether background activity is turned on If related action is not active, we won't report anomaly to users. Future cl will add active check for bluetooth anomaly. Bug: 62452014 Test: RunSettingsRoboTests Change-Id: Ib490227f4570accf8ca4840a99bf85a022c42a5b
/packages/apps/Settings/src/com/android/settings/fuelgauge/anomaly/action/BackgroundCheckAction.java
|
e379be82777db06e150db282c408e56ecc5e04e8 |
|
19-May-2017 |
jackqdyulei <jackqdyulei@google.com> |
Add background activity action Background activity action is designed for wakeup alarm anomaly. This cl also change the parameter in anomaly action interface from "packageName" to "anomaly" Bug: 36921529 Test: RunSettingsRoboTests Change-Id: Ibde69f351f81043641f228f0e74deaa2e230c08a
/packages/apps/Settings/src/com/android/settings/fuelgauge/anomaly/action/BackgroundCheckAction.java
|