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

Commit 75a35786 authored by Peiyong Lin's avatar Peiyong Lin Committed by Android (Google) Code Review
Browse files

Merge "Add GPU enabled ADPF to V5 of power hal." into main

parents b0b0f425 1890f2d9
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -36,4 +36,7 @@ package android.hardware.power;
parcelable WorkDuration {
  long timeStampNanos;
  long durationNanos;
  long workPeriodStartTimestampNanos;
  long cpuDurationNanos;
  long gpuDurationNanos;
}
+23 −1
Original line number Diff line number Diff line
@@ -23,8 +23,30 @@ parcelable WorkDuration {
     * sample was measured.
     */
    long timeStampNanos;

    /**
     * Work duration in nanoseconds.
     * Total work duration in nanoseconds.
     */
    long durationNanos;

    /**
     * Timestamp in nanoseconds based on CLOCK_MONOTONIC when the work starts.
     * The work period start timestamp could be zero if the call is from
     * the legacy SDK/NDK reportActualWorkDuration API.
     */
    long workPeriodStartTimestampNanos;

    /**
     * CPU work duration in nanoseconds.
     * The CPU work duration could be the same as the total work duration if
     * the call is from the legacy SDK/NDK reportActualWorkDuration API.
     */
    long cpuDurationNanos;

    /**
     * GPU work duration in nanoseconds.
     * The GPU work duration could be zero if the call is from the legacy
     * SDK/NDK reportActualWorkDuration API.
     */
    long gpuDurationNanos;
}