diff options
author | 2024-06-17 18:51:25 +0000 | |
---|---|---|
committer | 2024-06-17 18:51:25 +0000 | |
commit | 579f0c2a2ee68484fa59cf51ea974b5cd0d0a931 (patch) | |
tree | 61954eed45f3e97ac0fbc30849f3cdc4e7d34a58 /include/powermanager/PowerHalController.h | |
parent | 1a75b0fd4896fb82f014940a65b0e97c6f7cd21c (diff) | |
parent | fd63570c39c1c327fe015148467401dfb351a965 (diff) |
Merge "Merge Android 14 QPR3 to AOSP main" into main
Diffstat (limited to 'include/powermanager/PowerHalController.h')
-rw-r--r-- | include/powermanager/PowerHalController.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/include/powermanager/PowerHalController.h b/include/powermanager/PowerHalController.h index 9e426d3ea3..c50bc4a188 100644 --- a/include/powermanager/PowerHalController.h +++ b/include/powermanager/PowerHalController.h @@ -62,7 +62,15 @@ public: virtual HalResult<std::shared_ptr<aidl::android::hardware::power::IPowerHintSession>> createHintSession(int32_t tgid, int32_t uid, const std::vector<int32_t>& threadIds, int64_t durationNanos) override; + virtual HalResult<std::shared_ptr<aidl::android::hardware::power::IPowerHintSession>> + createHintSessionWithConfig(int32_t tgid, int32_t uid, const std::vector<int32_t>& threadIds, + int64_t durationNanos, + aidl::android::hardware::power::SessionTag tag, + aidl::android::hardware::power::SessionConfig* config) override; virtual HalResult<int64_t> getHintSessionPreferredRate() override; + virtual HalResult<aidl::android::hardware::power::ChannelConfig> getSessionChannel( + int tgid, int uid) override; + virtual HalResult<void> closeSessionChannel(int tgid, int uid) override; private: std::mutex mConnectedHalMutex; @@ -75,7 +83,7 @@ private: std::shared_ptr<HalWrapper> initHal(); template <typename T> - HalResult<T> processHalResult(HalResult<T> result, const char* functionName); + HalResult<T> processHalResult(HalResult<T>&& result, const char* functionName); }; // ------------------------------------------------------------------------------------------------- |