Turn off some anomaly detectors by default
1. Wakeup alarm detector Because we cannot distinguish it between foreground and background 2. Bluetooth unoptimized scanning detector There is a bug in framework that may undercount the scanning time Bug: 63390581 Bug: 63964363 Test: RunSettingsRoboTests Change-Id: Ia762f580462823e8eddccbeb12dec3876b0ef47a
This commit is contained in:
@@ -122,9 +122,9 @@ public class AnomalyDetectionPolicy {
|
||||
anomalyDetectionEnabled = mParserWrapper.getBoolean(KEY_ANOMALY_DETECTION_ENABLED, true);
|
||||
wakeLockDetectionEnabled = mParserWrapper.getBoolean(KEY_WAKELOCK_DETECTION_ENABLED, true);
|
||||
wakeupAlarmDetectionEnabled = mParserWrapper.getBoolean(KEY_WAKEUP_ALARM_DETECTION_ENABLED,
|
||||
true);
|
||||
false);
|
||||
bluetoothScanDetectionEnabled = mParserWrapper.getBoolean(
|
||||
KEY_BLUETOOTH_SCAN_DETECTION_ENABLED, true);
|
||||
KEY_BLUETOOTH_SCAN_DETECTION_ENABLED, false);
|
||||
wakeLockThreshold = mParserWrapper.getLong(KEY_WAKELOCK_THRESHOLD,
|
||||
DateUtils.HOUR_IN_MILLIS);
|
||||
wakeupAlarmThreshold = mParserWrapper.getLong(KEY_WAKEUP_ALARM_THRESHOLD, 60);
|
||||
|
||||
Reference in New Issue
Block a user