diff options
Diffstat (limited to 'power-libperfmgr/aidl/Power.h')
-rw-r--r-- | power-libperfmgr/aidl/Power.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/power-libperfmgr/aidl/Power.h b/power-libperfmgr/aidl/Power.h index 05b8780f..8b90cb48 100644 --- a/power-libperfmgr/aidl/Power.h +++ b/power-libperfmgr/aidl/Power.h @@ -23,6 +23,7 @@ #include <aidl/android/hardware/power/BnPower.h> #include <perfmgr/HintManager.h> +#include "disp-power/DisplayLowPower.h" #include "disp-power/InteractionHandler.h" namespace aidl { @@ -39,7 +40,7 @@ using ::android::perfmgr::HintManager; class Power : public ::aidl::android::hardware::power::BnPower { public: - Power(std::shared_ptr<HintManager> hm); + Power(std::shared_ptr<HintManager> hm, std::shared_ptr<DisplayLowPower> dlpw); ndk::ScopedAStatus setMode(Mode type, bool enabled) override; ndk::ScopedAStatus isModeSupported(Mode type, bool *_aidl_return) override; ndk::ScopedAStatus setBoost(Boost type, int32_t durationMs) override; @@ -48,6 +49,7 @@ class Power : public ::aidl::android::hardware::power::BnPower { private: std::shared_ptr<HintManager> mHintManager; + std::shared_ptr<DisplayLowPower> mDisplayLowPower; std::unique_ptr<InteractionHandler> mInteractionHandler; std::atomic<bool> mVRModeOn; std::atomic<bool> mSustainedPerfModeOn; |