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:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user