Add method to check whether to enable anomaly detection
Bug: 37709022 Test: RunSettingsGoogleRoboTests Change-Id: Ie95b8899f0201d392ba06e4747a0d926d7474d68
This commit is contained in:
@@ -57,4 +57,9 @@ public interface PowerUsageFeatureProvider {
|
|||||||
* Check whether the toggle for power accounting is enabled
|
* Check whether the toggle for power accounting is enabled
|
||||||
*/
|
*/
|
||||||
boolean isPowerAccountingToggleEnabled();
|
boolean isPowerAccountingToggleEnabled();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Check whether the anomaly detection is enabled
|
||||||
|
*/
|
||||||
|
boolean isAnomalyDetectionEnabled();
|
||||||
}
|
}
|
||||||
|
@@ -84,4 +84,9 @@ public class PowerUsageFeatureProviderImpl implements PowerUsageFeatureProvider
|
|||||||
public boolean isPowerAccountingToggleEnabled() {
|
public boolean isPowerAccountingToggleEnabled() {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean isAnomalyDetectionEnabled() {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user