Update detectSettingsAnomaly API to detectPowerAnomaly(1/2)

Since the detectSettingsAnomaly method does not only detect settings but
also other power related anomalies. Change the method name to
detectPowerAnomaly to make it more reflects what it really does.

Bug: 320404576
Test: make SettingsGoogleRoboTests
Change-Id: I4b5bec3aba81cd0dc6fef2c976eae3d64da3ede5
This commit is contained in:
Shun Lung Chen
2024-03-14 02:20:58 +00:00
parent dd5b4d3d31
commit 265fe257c2
4 changed files with 9 additions and 5 deletions

View File

@@ -137,7 +137,7 @@ public final class BatteryUsageDataLoader {
.isEmpty()))) {
FeatureFactory.getFeatureFactory()
.getPowerUsageFeatureProvider()
.detectSettingsAnomaly(
.detectPowerAnomaly(
context,
/* displayDrain= */ 0,
DetectRequestSourceType.TYPE_DATA_LOADER);