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

Commit 5d69da49 authored by Matt Buckley's avatar Matt Buckley
Browse files

Update performance_hint to follow NDK API guidance

This patch updates the performance_hint NDK in response to API guidance,
and updates the tests accordingly.

Additionally, this patch updates the documentation and ergonomics of a
few related methods to better accomodate these changes, and to downgrade
going over the graphics pipeline limit from a breakage to a very severe
warning.

Flag: EXEMPT NDK
Test: atest
cts/tests/tests/os/src/android/os/cts/PerformanceHintManagerTest.java
Test: atest PerformanceHintNativeTestCases
Test: atest HintManagerServiceTest
Bug: 380299912
Bug: 381269529
Bug: 384511707
Bug: 384738612

Change-Id: Ie885112368bec7cfa9dc527de2bf1fef3475594d
parent 07b0a37a
Loading
Loading
Loading
Loading
+204 −111

File changed.

Preview size limit exceeded, changes collapsed.

+4 −2
Original line number Diff line number Diff line
@@ -125,8 +125,10 @@ APerformanceHintSession* APerformanceHint_createSessionInternal(APerformanceHint
/**
 * Creates a session using ASessionCreationConfig
 */
APerformanceHintSession* APerformanceHint_createSessionUsingConfigInternal(
        APerformanceHintManager* manager, ASessionCreationConfig* sessionCreationConfig,
int APerformanceHint_createSessionUsingConfigInternal(
        APerformanceHintManager* manager,
        ASessionCreationConfig* config,
        APerformanceHintSession** sessionOut,
        SessionTag tag);

/**