Avoid dump BatteryReattributeDatabaseHist if the feature is disabled
Fix: 346706894 Fix: 350798552 Test: atest SettingsRoboTests:com.android.settings.fuelgauge.batteryusage Flag: EXEMPT bug fix Change-Id: I1670e2769bc71fe91a752efeea18074d53c5a017
This commit is contained in:
@@ -166,6 +166,9 @@ public interface PowerUsageFeatureProvider {
|
||||
/** Whether the device is under the battery defender mode */
|
||||
boolean isBatteryDefend(BatteryInfo info);
|
||||
|
||||
/** Whether the battery usage reattribute is eabled or not. */
|
||||
boolean isBatteryUsageReattributeEnabled();
|
||||
|
||||
/** Collect and process battery reattribute data if needed. */
|
||||
boolean processBatteryReattributeData(
|
||||
@NonNull Context context,
|
||||
|
||||
Reference in New Issue
Block a user