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

@@ -18,6 +18,7 @@ package com.android.settings.fuelgauge;
import static com.android.settings.Utils.SYSTEMUI_PACKAGE_NAME;
import android.annotation.Nullable;
import android.content.Context;
import android.content.Intent;
import android.content.pm.PackageManager;
@@ -179,7 +180,8 @@ public class PowerUsageFeatureProviderImpl implements PowerUsageFeatureProvider
}
@Override
public PowerAnomalyEventList detectSettingsAnomaly(
@Nullable
public PowerAnomalyEventList detectPowerAnomaly(
Context context, double displayDrain, DetectRequestSourceType detectRequestSourceType) {
return null;
}