diff options
| author | 2024-01-23 16:54:59 +0000 | |
|---|---|---|
| committer | 2024-01-23 16:54:59 +0000 | |
| commit | ee5cc4f8676e5efdb0dccf5db8222e2edd9f5b66 (patch) | |
| tree | f9dd99920265b9b1969331319512b0d6d417d5e1 | |
| parent | cfb03038c3bd9900fdaf9181e100551996b77fdf (diff) | |
| parent | 81cc093bba28844e59e9aac98b43dee1c845fa3d (diff) | |
Merge "Provide error handling for nullptr in the ADPF NDK" into main
| -rw-r--r-- | include/android/performance_hint.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/include/android/performance_hint.h b/include/android/performance_hint.h index 30200c7e79..08d339b176 100644 --- a/include/android/performance_hint.h +++ b/include/android/performance_hint.h @@ -240,7 +240,7 @@ int APerformanceHint_setPreferPowerEfficiency( * the actual GPU duration is not measured. * * @return 0 on success. - * EINVAL if session is nullptr or any duration is an invalid number. + * EINVAL if any duration is an invalid number. * EPIPE if communication with the system service has failed. */ int APerformanceHint_reportActualWorkDuration2( @@ -269,7 +269,7 @@ void AWorkDuration_release(AWorkDuration* _Nonnull aWorkDuration) * * @param aWorkDuration The {@link AWorkDuration} created by calling {@link AWorkDuration_create()} * @param workPeriodStartTimestampNanos The work period start timestamp in nanoseconds based on - * CLOCK_MONOTONIC about when the work starts, the timestamp must be positive. + * CLOCK_MONOTONIC about when the work starts. This timestamp must be greater than zero. */ void AWorkDuration_setWorkPeriodStartTimestampNanos(AWorkDuration* _Nonnull aWorkDuration, int64_t workPeriodStartTimestampNanos) __INTRODUCED_IN(__ANDROID_API_V__); @@ -278,8 +278,8 @@ void AWorkDuration_setWorkPeriodStartTimestampNanos(AWorkDuration* _Nonnull aWor * Sets the actual total work duration in nanoseconds. * * @param aWorkDuration The {@link AWorkDuration} created by calling {@link AWorkDuration_create()} - * @param actualTotalDurationNanos The actual total work duration in nanoseconds, the number must be - * positive. + * @param actualTotalDurationNanos The actual total work duration in nanoseconds. This number must + * be greater than zero. */ void AWorkDuration_setActualTotalDurationNanos(AWorkDuration* _Nonnull aWorkDuration, int64_t actualTotalDurationNanos) __INTRODUCED_IN(__ANDROID_API_V__); @@ -288,8 +288,8 @@ void AWorkDuration_setActualTotalDurationNanos(AWorkDuration* _Nonnull aWorkDura * Sets the actual CPU work duration in nanoseconds. * * @param aWorkDuration The {@link AWorkDuration} created by calling {@link AWorkDuration_create()} - * @param actualCpuDurationNanos The actual CPU work duration in nanoseconds, the number must be - * positive. + * @param actualCpuDurationNanos The actual CPU work duration in nanoseconds. This number must be + * greater than zero. */ void AWorkDuration_setActualCpuDurationNanos(AWorkDuration* _Nonnull aWorkDuration, int64_t actualCpuDurationNanos) __INTRODUCED_IN(__ANDROID_API_V__); |