Merge "Add function getBatteryHistorySinceLastFullCharge, used to replace getBatteryHistory in BatteryHistoryLoader." into tm-qpr-dev

This commit is contained in:
TreeHugger Robot
2022-07-12 16:47:13 +00:00
committed by Android (Google) Code Review
2 changed files with 11 additions and 0 deletions

View File

@@ -149,6 +149,11 @@ public interface PowerUsageFeatureProvider {
*/ */
Map<Long, Map<String, BatteryHistEntry>> getBatteryHistory(Context context); Map<Long, Map<String, BatteryHistEntry>> getBatteryHistory(Context context);
/**
* Returns battery history data since last full charge with corresponding timestamp key.
*/
Map<Long, Map<String, BatteryHistEntry>> getBatteryHistorySinceLastFullCharge(Context context);
/** /**
* Returns {@link Uri} to monitor battery history data is update. * Returns {@link Uri} to monitor battery history data is update.
*/ */

View File

@@ -165,6 +165,12 @@ public class PowerUsageFeatureProviderImpl implements PowerUsageFeatureProvider
return null; return null;
} }
@Override
public Map<Long, Map<String, BatteryHistEntry>> getBatteryHistorySinceLastFullCharge(
Context context) {
return null;
}
@Override @Override
public Uri getBatteryHistoryUri() { public Uri getBatteryHistoryUri() {
return null; return null;