Add getBatteryHistory method to query data from SettingsIntelligence
Bug: 184807417 Test: make SettingsRoboTests Test: make SettingsGoogleRoboTests Change-Id: Idd640f8f8b07311fafc76f7b61c96c453ae7b604
This commit is contained in:
@@ -23,6 +23,9 @@ import android.util.SparseIntArray;
|
||||
import com.android.internal.os.BatterySipper;
|
||||
import com.android.settingslib.fuelgauge.Estimate;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* Feature Provider used in power usage
|
||||
*/
|
||||
@@ -126,7 +129,12 @@ public interface PowerUsageFeatureProvider {
|
||||
boolean isSmartBatterySupported();
|
||||
|
||||
/**
|
||||
* Checks whether we should enable chart graph design or not
|
||||
* Checks whether we should enable chart graph design or not.
|
||||
*/
|
||||
boolean isChartGraphEnabled(Context context);
|
||||
|
||||
/**
|
||||
* Returns battery history data with corresponding timestamp key.
|
||||
*/
|
||||
Map<Long, List<BatteryHistEntry>> getBatteryHistory(Context context);
|
||||
}
|
||||
|
Reference in New Issue
Block a user