diff options
author | 2024-11-16 19:26:34 -0800 | |
---|---|---|
committer | 2024-11-18 16:33:51 -0800 | |
commit | 8f997cbe9f33e7a2ae52d69ba7f17b83d297c665 (patch) | |
tree | 25907f5d95bbd4058c594a2bd65f943d30cd381a /services/powermanager/PowerHalController.cpp | |
parent | fa8eb01f88bfc8ef61ba863d95c31605f563a721 (diff) |
Refactor initial support check to use SupportInfo
This change makes the intial support check when
APerformanceHintManager starts pass the SupportInfo
object instead of just relying on the preferred rate
Bug: 367803904
Test: atest PerformanceHintNativeTestCases
Test: atest HintManagerServiceTest
Flag: EXEMPT refactor
Change-Id: Iba93310c58896a2b1d02c6156b4e67eaa766af5b
Diffstat (limited to 'services/powermanager/PowerHalController.cpp')
-rw-r--r-- | services/powermanager/PowerHalController.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/services/powermanager/PowerHalController.cpp b/services/powermanager/PowerHalController.cpp index 40fd097491..0ba1909a44 100644 --- a/services/powermanager/PowerHalController.cpp +++ b/services/powermanager/PowerHalController.cpp @@ -168,6 +168,11 @@ HalResult<void> PowerHalController::closeSessionChannel(int tgid, int uid) { "closeSessionChannel")); } +HalResult<aidl::android::hardware::power::SupportInfo> PowerHalController::getSupportInfo() { + std::shared_ptr<HalWrapper> handle = initHal(); + return CACHE_SUPPORT(6, processHalResult(handle->getSupportInfo(), "getSupportInfo")); +} + } // namespace power } // namespace android |