summaryrefslogtreecommitdiff
path: root/api/coverage/tools
diff options
context:
space:
mode:
author Matt Buckley <mattbuckley@google.com> 2024-11-17 01:58:16 +0000
committer Matt Buckley <mattbuckley@google.com> 2024-11-17 03:53:57 +0000
commit8739382f1576ac1951f5fd66e2976f6f6635ab62 (patch)
tree88124a54504c3f86eae6d405dc2348d4ec89539d /api/coverage/tools
parent5f17fc2be348ec4793c55a2b588d4137740ac592 (diff)
Add support for converting java hint sessions to native hint sessions
Add an API called "APerformanceHint_getSessionFromJava" for Java clients to access the native APerformanceHintSession objects that Java hint sessions wrap. This should will make the Java and Native APIs substantially more interoperable. This patch also makes the native code aware of when it is being used in Java, to allow it to have slightly different behavior, especially when it is being directly accessed through JNI. The main place where this mostly matters is in preventing clients from closing Java-owned sessions through the JNI, as that could cause weird behavior otherwise. Bug: 367803904 Test: atest HintManagerServiceTest Test: atest PerformanceHintNativeTestCases Flag: EXEMPT NDK API Change-Id: I126e8663fc2719d9b7c866cf56f9827c25c2a53c
Diffstat (limited to 'api/coverage/tools')
0 files changed, 0 insertions, 0 deletions