Add ADPF FMQ implementation for PerformanceHintManager
This patch adds an implementation for ADPF FMQ to the
PerformanceHintManager, along with tests and updates to the
HintManagerService to better handle FMQ configs without additional
event flags.
Flag: android.os.adpf_use_fmq_channel_fixed
Test: atest PerformanceHintNativeTestCases
Bug: 315894228
Change-Id: I172ce62c593b01d860b23b0bcbfa943d10322e18
diff --git a/include/private/performance_hint_private.h b/include/private/performance_hint_private.h
index 8c356d0..e5eee34 100644
--- a/include/private/performance_hint_private.h
+++ b/include/private/performance_hint_private.h
@@ -108,6 +108,10 @@
const int32_t* threadIds, size_t size,
int64_t initialTargetWorkDurationNanos, SessionTag tag);
+/**
+ * Forces FMQ to be enabled or disabled, for testing only.
+ */
+void APerformanceHint_setUseFMQForTesting(bool enabled);
__END_DECLS