${ROOT_DIR}/open_source/openharmony/drivers/peripheral/display/interfaces/include
${ROOT_DIR}/open_source/openharmony/drivers/peripheral/cywee/
+ ${ROOT_DIR}/open_source/openharmony/drivers/peripheral/utils/
${ROOT_DIR}/open_source/openharmony/foundation/distributedschedule/samgr_lite/interfaces/kits/samgr
${CMAKE_CURRENT_SOURCE_DIR}/nativeui/main/include/dial
#include <thread>\r
#include "battery_hal.h"\r
#include "string"\r
+#include "custom_utils.h"\r
+\r
+extern "C"\r
+{\r
+ void uapi_exit_power_saving_mode(void);\r
+ void uapi_enter_power_saving_mode(void);\r
+}\r
+\r
namespace OHOS\r
{\r
static SaveBatView *g_pSaveBatView{nullptr};\r
}\r
SaveBatView::SaveBatView()\r
{\r
+ /*开启省电模式*/\r
+ uapi_enter_power_saving_mode();\r
g_pSaveBatView = this;\r
}\r
\r
SaveBatView::~SaveBatView()\r
{\r
+ /*关闭省电模式*/\r
+ uapi_exit_power_saving_mode();\r
DeInit();\r
g_pSaveBatView = nullptr;\r
}\r