Merge "Add function getBatteryHistorySinceLastFullCharge, used to replace getBatteryHistory in BatteryHistoryLoader." into tm-qpr-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
51d087cd67
@@ -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.
|
||||||
*/
|
*/
|
||||||
|
@@ -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;
|
||||||
|
Reference in New Issue
Block a user