OSDN Git Service

Turn off some anomaly detectors by default
authorjackqdyulei <jackqdyulei@google.com>
Wed, 19 Jul 2017 17:46:21 +0000 (10:46 -0700)
committerjackqdyulei <jackqdyulei@google.com>
Fri, 28 Jul 2017 16:39:32 +0000 (09:39 -0700)
commit5a3be2874e77082967d3ac6e78f4c0f0e1ead97e
tree6a750dab39674ab7d4a5021902e24dfcfc38e59a
parent70f0013e43ada7a49b1e7d328f078d5b2ad3cdc8
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
src/com/android/settings/fuelgauge/anomaly/AnomalyDetectionPolicy.java
tests/robotests/src/com/android/settings/fuelgauge/anomaly/AnomalyDetectionPolicyTest.java