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:
@@ -24,6 +24,7 @@ import android.net.Uri;
|
||||
import android.os.Process;
|
||||
import com.android.internal.os.BatterySipper;
|
||||
import com.android.internal.util.ArrayUtils;
|
||||
import com.android.settings.fuelgauge.anomaly.Anomaly;
|
||||
|
||||
public class PowerUsageFeatureProviderImpl implements PowerUsageFeatureProvider {
|
||||
|
||||
@@ -111,4 +112,9 @@ public class PowerUsageFeatureProviderImpl implements PowerUsageFeatureProvider
|
||||
public long getTimeRemainingEstimate(Cursor cursor) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isAnomalyDetectorEnabled(@Anomaly.AnomalyType int type) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user