Add framework for anomaly detection flags
This cl adds isAnomalyDetectorEnabled(type), which decides whether to turn on specific check with that type. Added method is used in AnomalyLoader. Bug: 36924669 Test: RunSettingsRoboTests Change-Id: I71c6acb1c58c24453a1936c5c36f59fe4e86cfd4
This commit is contained in:
@@ -21,6 +21,7 @@ import android.content.Intent;
|
||||
import android.database.Cursor;
|
||||
import android.net.Uri;
|
||||
import com.android.internal.os.BatterySipper;
|
||||
import com.android.settings.fuelgauge.anomaly.Anomaly;
|
||||
|
||||
/**
|
||||
* Feature Provider used in power usage
|
||||
@@ -85,4 +86,9 @@ public interface PowerUsageFeatureProvider {
|
||||
* Returns the the estimate in the cursor as a long or -1 if the cursor is null
|
||||
*/
|
||||
long getTimeRemainingEstimate(Cursor cursor);
|
||||
|
||||
/**
|
||||
* Check whether a specific anomaly detector is enabled
|
||||
*/
|
||||
boolean isAnomalyDetectorEnabled(@Anomaly.AnomalyType int type);
|
||||
}
|
||||
|
Reference in New Issue
Block a user