Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0dcd0ac4 authored by Benjamin Schwartz's avatar Benjamin Schwartz Committed by Automerger Merge Worker
Browse files

power/stats: Add duration field to EnergyMeasurement am: 68511c75 am: 4c4c798e

Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1576528

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I4716c650f764a533b0b8b5ff982ebbbce5fc04af
parents 1e850169 4c4c798e
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -20,5 +20,6 @@ package android.hardware.power.stats;
parcelable EnergyMeasurement {
  int channelId;
  long timestampMs;
  long durationMs;
  long energyUWs;
}
+6 −2
Original line number Diff line number Diff line
@@ -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;
}
+1 −1
Original line number Diff line number Diff line
@@ -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.