8dba5a03a12fee683782f01eede32a28ab752541 |
|
21-Jul-2017 |
jackqdyulei <jackqdyulei@google.com> |
Add anomaly detection method to AnomalyUtils So we could reuse it in different loaders. Bug: 63900914 Test: robotests still pass Change-Id: I038085f53b9d0a05b8c4849c7544567434885821
/packages/apps/Settings/src/com/android/settings/fuelgauge/anomaly/AnomalyLoader.java
|
edfebbaa4f3ffa98c99e1e41b054853ccbff06c7 |
|
18-Jul-2017 |
jackqdyulei <jackqdyulei@google.com> |
Add log for anomaly. This cl adds all the info that need to be logged to Anomaly and add a dump method for log. Bug: 63776178 Test: RunSettingsRoboTests Change-Id: If762bfca725fee07944ffa23998332c81335a37f
/packages/apps/Settings/src/com/android/settings/fuelgauge/anomaly/AnomalyLoader.java
|
ec8e127ed3a616a7ca223a5bc6d9c4bbc036cd90 |
|
15-Jun-2017 |
jackqdyulei <jackqdyulei@google.com> |
Add anomaly detector for unoptimized bt scanning This cl detects bt anomaly by using BluetoothUnoptimizedScanBackgroundTimer. It will report anomaly if total duration is longer than threshold. Future cl will hook up the threshold to server side. Bug: 36921532 Test: RunSettingsRoboTests Change-Id: I5d6a42b2d2c4fec94387ca59ba8e6a2f3346d047
/packages/apps/Settings/src/com/android/settings/fuelgauge/anomaly/AnomalyLoader.java
|
c3694e425e72b88d929251898b9a41005e3ec02c |
|
03-Jun-2017 |
jackqdyulei <jackqdyulei@google.com> |
Add debug data in AnomalyLoader Bug: 62299540 Test: RunSettingsRoboTests Change-Id: Id20db9fc0da8e090385caa982f2fb5a6fa0b2f38 (cherry picked from commit 5753e6d97ed50ee6130530140766607bc4bfa6b8)
/packages/apps/Settings/src/com/android/settings/fuelgauge/anomaly/AnomalyLoader.java
|
e3e8bd6317059cf610832445ad307734bb65a87c |
|
25-May-2017 |
jackqdyulei <jackqdyulei@google.com> |
Refactor anomaly detection This cl refactor it so: 1. AnomayLoader could create its own BatteryStatsHelper if needed. 2. AnomalyDetector could detect the anomaly with a target package name 3. Remove FeatureProvider in AnomalyLoader and use AnomalyDetectionPolicy instead With this cl, we could add anomaly detection to battery usage page more easily. Bug: 36924669 Test: RunSettingsRoboTests Change-Id: I1ee09701de8b5c8855f44e447813760285794c89
/packages/apps/Settings/src/com/android/settings/fuelgauge/anomaly/AnomalyLoader.java
|
0dce3c076410e7a14b236a8bbd74083c01325e92 |
|
04-May-2017 |
jackqdyulei <jackqdyulei@google.com> |
Add framework for anomaly detection flags This cl adds isAnomalyDetectorEnabled(type), which decides whether to turn on specific check with that type. Added method is used in AnomalyLoader. Bug: 36924669 Test: RunSettingsRoboTests Change-Id: I71c6acb1c58c24453a1936c5c36f59fe4e86cfd4
/packages/apps/Settings/src/com/android/settings/fuelgauge/anomaly/AnomalyLoader.java
|
4aa3358c4c38e345dc8c464b7bc299d545b22b82 |
|
26-Apr-2017 |
jackqdyulei <jackqdyulei@google.com> |
Add wakelock anomaly detector This cl detects whether apps hold wakelock for long time. For now we use the following attribute: 1. Longest total duration time among all the wakelocks for one app. Following cl will: 1. Get threshold from server side. 2. Add more attributes to make the detection more robust. Bug: 36925184 Test: RunSettingsRoboTests Change-Id: I1946faf69c363f6aa823d0005d6e03bc9082c085
/packages/apps/Settings/src/com/android/settings/fuelgauge/anomaly/AnomalyLoader.java
|
df6dd14799e7116bef9231acd1f5d21bdd0e99cd |
|
25-Apr-2017 |
jackqdyulei <jackqdyulei@google.com> |
Framework for the anomaly detection. This cl adds the following components for anomaly dection: 1. AnomalyLoader: run all the anomaly checks in the background 2. Anomaly: Data class to represent what anomaly it is 3. Detector: Different kinds of anomaly detector with common interface 4. Action: Suggestions when facing anomaly(Force stop, uninstall) 5. AnomalyDialogFragment: show the confirm dialog for action 6. AnomalyPreferenceController: handle update and click for anomalyPreference, since it will be used in multiple fragments. 7. AnomalyUtils: utility class for anomaly This cl also adds skeleton for the wakelock check and action. Following cls will add real implementation about it. Bug: 36924669 Test: RunSettingsRoboTests Change-Id: I89fc4b6963757869b93791b4275ca53c04ab9604
/packages/apps/Settings/src/com/android/settings/fuelgauge/anomaly/AnomalyLoader.java
|