mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 11:36:00 +00:00
Add GPU enabled ADPF to V5 of power hal.
Adds the ability for V5 ADPF clients to clue the power hal in as to how much of the work duration is attributable to the CPU vs how much of the work duration is attributable to the GPU. Bug: b/284324521 Test: atest VtsHalPowerTargetTest Change-Id: Ie64ba146c9a416ced6336971b6136561a525042c
This commit is contained in:
committed by
Peiyong Lin
parent
1beaf588e1
commit
1890f2d9fb
@@ -36,4 +36,7 @@ package android.hardware.power;
|
||||
parcelable WorkDuration {
|
||||
long timeStampNanos;
|
||||
long durationNanos;
|
||||
long workPeriodStartTimestampNanos;
|
||||
long cpuDurationNanos;
|
||||
long gpuDurationNanos;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user