Merge "Add method to check whether to enable anomaly detection"
This commit is contained in:
committed by
Android (Google) Code Review
commit
1e583e5d03
@@ -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();
|
||||
}
|
||||
|
@@ -84,4 +84,9 @@ public class PowerUsageFeatureProviderImpl implements PowerUsageFeatureProvider
|
||||
public boolean isPowerAccountingToggleEnabled() {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isAnomalyDetectionEnabled() {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user