Provide the flexibility to add more tip detector

Bug: 309054332
Test: robotests
Change-Id: I650141072b6de6c4dcdbbb853fb9997295d6e929
This commit is contained in:
Yi-Ling Chuang
2023-11-07 17:13:40 +08:00
parent 9718ae0aa9
commit ac8925518a
4 changed files with 31 additions and 13 deletions

View File

@@ -18,6 +18,10 @@ package com.android.settings.fuelgauge;
import android.content.Context;
import com.android.settings.fuelgauge.batterytip.tips.BatteryTip;
import java.util.List;
/** Feature provider for battery settings usage. */
public interface BatterySettingsFeatureProvider {
@@ -29,4 +33,7 @@ public interface BatterySettingsFeatureProvider {
/** Check whether the battery information page is enabled in the About phone page */
boolean isBatteryInfoEnabled(Context context);
/** A way to add more battery tip detectors. */
void addBatteryTipDetector(Context context, List<BatteryTip> tips);
}