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

Commit f7b49138 authored by Matt Buckley's avatar Matt Buckley
Browse files

Use "SessionHint" enum in ndk API

Change NDK to use "SessionHint" enum consistently across definitions.

Bug: 266596626
Test: manual
Change-Id: I6ad095655b2dc05daf95cb5e7f506b3725915596
parent 68773e6b
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -17,6 +17,8 @@
#ifndef ANDROID_PRIVATE_NATIVE_PERFORMANCE_HINT_PRIVATE_H
#define ANDROID_PRIVATE_NATIVE_PERFORMANCE_HINT_PRIVATE_H

#include <stdint.h>

__BEGIN_DECLS

/**
@@ -27,7 +29,7 @@ void APerformanceHint_setIHintManagerForTesting(void* iManager);
/**
 * Hints for the session used to signal upcoming changes in the mode or workload.
 */
enum SessionHint {
enum SessionHint: int32_t {
    /**
     * This hint indicates a sudden increase in CPU workload intensity. It means
     * that this hint session needs extra CPU resources immediately to meet the
@@ -61,7 +63,7 @@ enum SessionHint {
 * @return 0 on success
 *         EPIPE if communication with the system service has failed.
 */
int APerformanceHint_sendHint(void* session, int hint);
int APerformanceHint_sendHint(void* session, SessionHint hint);

/**
 * Return the list of thread ids, this API should only be used for testing only.