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
This commit is contained in:
jackqdyulei
2017-05-03 15:15:41 -07:00
parent 910f69c62a
commit 0dce3c0764
7 changed files with 143 additions and 5 deletions

View File

@@ -45,6 +45,9 @@ public class Anomaly implements Parcelable {
int FORCE_STOP = 0;
}
@AnomalyType
public static final int[] ANOMALY_TYPE_LIST = {AnomalyType.WAKE_LOCK};
/**
* Type of this this anomaly
*/