Add AOSP smart battery entries

- Revert "Cleanup smart battery entries (1/3)" patch only instead whole topic, updated part of codes to resolve the conflicts

This reverts commit 742e506d13.

Reason for revert: b/315401539

Bug: 315401539

Change-Id: I75a4e4f75b624c90aae18288c77214c0238e43eb
This commit is contained in:
Wesley Wang
2024-02-06 10:16:35 +00:00
parent ac869a57ad
commit ffcce1e7cf
7 changed files with 244 additions and 2 deletions

View File

@@ -98,6 +98,12 @@ public interface PowerUsageFeatureProvider {
/** Checks whether we should show usage information by slots or not */
boolean isChartGraphSlotsEnabled(Context context);
/** Checks whether adaptive charging feature is supported in this device */
boolean isAdaptiveChargingSupported();
/** Checks whether battery manager feature is supported in this device */
boolean isBatteryManagerSupported();
/** Returns {@code true} if current defender mode is extra defend */
boolean isExtraDefend();