mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-02 06:22:53 +00:00
Merge "power/stats: Add duration field to EnergyMeasurement"
This commit is contained in:
committed by
Android (Google) Code Review
commit
60f4e1cd26
@@ -20,5 +20,6 @@ package android.hardware.power.stats;
|
||||
parcelable EnergyMeasurement {
|
||||
int channelId;
|
||||
long timestampMs;
|
||||
long durationMs;
|
||||
long energyUWs;
|
||||
}
|
||||
|
||||
@@ -23,11 +23,15 @@ parcelable EnergyMeasurement {
|
||||
*/
|
||||
int channelId;
|
||||
/**
|
||||
* Time since boot in milliseconds
|
||||
* Approximate time of data capture in millseconds since boot
|
||||
*/
|
||||
long timestampMs;
|
||||
/**
|
||||
* Accumulated energy since boot in microwatt-seconds (uWs)
|
||||
* Duration in milliseconds that energy has been accumulated
|
||||
*/
|
||||
long durationMs;
|
||||
/**
|
||||
* Accumulated energy in microwatt-seconds (uWs)
|
||||
*/
|
||||
long energyUWs;
|
||||
}
|
||||
|
||||
@@ -96,7 +96,7 @@ interface IPowerStats {
|
||||
ChannelInfo[] getEnergyMeterInfo();
|
||||
|
||||
/**
|
||||
* Reports accumulated energy since boot for each specified channel.
|
||||
* Reports accumulated energy for each specified channel.
|
||||
*
|
||||
* @param channelIds IDs of channels for which data is requested.
|
||||
* Passing an empty list will return energy measurements for all available channels.
|
||||
|
||||
Reference in New Issue
Block a user