#ifndef __ANDROID_POWERHAL_HELPER_H__ #define __ANDROID_POWERHAL_HELPER_H__ #include #if ((defined MTK_SF_HINT_DISPLAY_INFO) || (defined MTK_SF_HINT_LOW_POWER)) #define LIB_FULL_NAME "libpowerhalwrap.so" typedef int (*enableMultiDisplayMode)(int32_t, int32_t); typedef int (*FuncEnableSFLowPowerMode)(int32_t); namespace android { class PowerHalWrapper { public: PowerHalWrapper(); ~PowerHalWrapper(); void hintMultiDisplay(const int& enable, const int& fps); static PowerHalWrapper& getInstance(); void hintSFLowPower(int enable); private: void *mSoHandle; int (*mEnableMultiDisplayMode)(int32_t, int32_t); FuncEnableSFLowPowerMode mFuncEnableSFLowPowerMode = nullptr; }; } // namespace android #endif // MTK_SF_HINT_DISPLAY_INFO or MTK_SF_HINT_LOW_POWER #endif // __ANDROID_POWERHAL_HELPER_H__