Remove PowerUsageFeatureProvider.isAnomalyDetectionEnabled

Instead, this decision is being handled via AnomalyDetectionPolicy.

Change-Id: I5b1831c78e31e3be984dda07bcea9f0b0a25d52f
Fixes: 62871629
Test: robotests
This commit is contained in:
Andrew Sapperstein
2017-06-23 14:32:22 -07:00
parent ed66c5fcdf
commit 466a3f6faa
5 changed files with 20 additions and 28 deletions

View File

@@ -62,11 +62,6 @@ public interface PowerUsageFeatureProvider {
*/
boolean isPowerAccountingToggleEnabled();
/**
* Check whether the anomaly detection is enabled
*/
boolean isAnomalyDetectionEnabled();
/**
* Returns an improved prediction for battery time remaining.
*/
@@ -87,12 +82,6 @@ public interface PowerUsageFeatureProvider {
*/
long getTimeRemainingEstimate(Cursor cursor);
/**
* Check whether a specific anomaly detector is enabled
*/
//TODO(b/62096650): remove this method and use AnomalyDetectionPolicy instead
boolean isAnomalyDetectorEnabled(@Anomaly.AnomalyType int type);
/**
* Checks whether debugging should be enabled for battery estimates.
* @return