Merge "Add method to check whether to enable anomaly detection"

This commit is contained in:
TreeHugger Robot
2017-04-28 18:37:37 +00:00
committed by Android (Google) Code Review
2 changed files with 10 additions and 0 deletions

View File

@@ -57,4 +57,9 @@ public interface PowerUsageFeatureProvider {
* Check whether the toggle for power accounting is enabled
*/
boolean isPowerAccountingToggleEnabled();
/**
* Check whether the anomaly detection is enabled
*/
boolean isAnomalyDetectionEnabled();
}

View File

@@ -84,4 +84,9 @@ public class PowerUsageFeatureProviderImpl implements PowerUsageFeatureProvider
public boolean isPowerAccountingToggleEnabled() {
return false;
}
@Override
public boolean isAnomalyDetectionEnabled() {
return false;
}
}