| Name | Date | Size | #Lines | LOC | ||
|---|---|---|---|---|---|---|
| .. | - | - | ||||
| etc/ | 22-Oct-2025 | - | 180 | 171 | ||
| figures/ | 22-Oct-2025 | - | ||||
| frameworks/ | 22-Oct-2025 | - | 5,392 | 4,077 | ||
| interfaces/inner_api/ | 22-Oct-2025 | - | 2,332 | 1,181 | ||
| power_dialog/ | 22-Oct-2025 | - | 3,629 | 3,213 | ||
| sa_profile/ | 22-Oct-2025 | - | 33 | 30 | ||
| services/ | 22-Oct-2025 | - | 22,367 | 18,210 | ||
| test/ | 22-Oct-2025 | - | 39,805 | 27,890 | ||
| utils/ | 22-Oct-2025 | - | 4,884 | 3,734 | ||
| .clang-format | D | 22-Oct-2025 | 1.3 KiB | 38 | 36 | |
| .gitattributes | D | 22-Oct-2025 | 631 | 16 | 15 | |
| LICENSE | D | 22-Oct-2025 | 9.9 KiB | 177 | 150 | |
| OAT.xml | D | 22-Oct-2025 | 1.1 KiB | 27 | 11 | |
| README.md | D | 22-Oct-2025 | 2.2 KiB | 61 | 41 | |
| README_zh.md | D | 22-Oct-2025 | 2.1 KiB | 59 | 40 | |
| bundle.json | D | 22-Oct-2025 | 10.2 KiB | 238 | 237 | |
| powermanager.yaml | D | 22-Oct-2025 | 3.4 KiB | 80 | 58 | |
| powermanager_POWER_UE.yaml | D | 22-Oct-2025 | 1.1 KiB | 27 | 11 | |
| powermgr.gni | D | 22-Oct-2025 | 5.1 KiB | 156 | 129 | |
| publicity.xml | D | 22-Oct-2025 | 813 | 16 | 2 |
README.md
1# Power Manager<a name="EN-US_TOPIC_0000001115047353"></a> 2 3- [Introduction](#section11660541593) 4- [Directory Structure](#section19472752217) 5- [Repositories Involved](#section63151229062) 6 7## Introduction<a name="section11660541593"></a> 8 9The Power Manager module provides the following functions: 10 111. Rebooting the device 122. Managing running locks 133. Obtaining the power status 14 15**Figure 1** Architecture of the Power Manager module<a name="fig106301571239"></a> 16 17 18 19## Directory Structure<a name="section19472752217"></a> 20 21``` 22/base/powermgr/power_manager 23├── figures # Architecture 24├── frameworks # Framework layer 25│ ├── napi # NAPI layer 26│ └── native # Native layer 27├── interfaces # API layer 28│ └── inner_api # Internal APIs 29├── power_dialog # Power dialog 30├── sa_profile # SA profile 31└── services # Service layer 32│ ├── native # Native layer 33│ └── zidl # Zidl API layer 34├── test # Test cases 35│ ├── fuzztest # Fuzz test 36│ ├── unittest # Unit test 37│ ├── systemtest # System test 38│ └── utils # Test tools 39└── utils # Utilities 40``` 41 42 43 44## Repositories Involved<a name="section63151229062"></a> 45 46[Power Management Subsystem](https://gitee.com/openharmony/docs/blob/master/en/readme/power-management.md) 47 48**powermgr_power_manager** 49 50[powermgr_display_manager](https://gitee.com/openharmony/powermgr_display_manager) 51 52[powermgr_battery_manager](https://gitee.com/openharmony/powermgr_battery_manager) 53 54[powermgr_thermal_manager](https://gitee.com/openharmony/powermgr_thermal_manager) 55 56[powermgr_battery_statistics](https://gitee.com/openharmony/powermgr_battery_statistics) 57 58[powermgr_battery_lite](https://gitee.com/openharmony/powermgr_battery_lite) 59 60[powermgr_powermgr_lite](https://gitee.com/openharmony/powermgr_powermgr_lite) 61
README_zh.md
1# 电源管理服务组件<a name="ZH-CN_TOPIC_0000001115047353"></a> 2 3- [简介](#section11660541593) 4- [目录](#section19472752217) 5- [相关仓](#section63151229062) 6 7## 简介<a name="section11660541593"></a> 8 9电源管理服务组件提供如下功能: 10 111. 重启系统。 122. 管理休眠运行锁。 133. 系统电源状态查询。 14 15**图 1** 电源管理服务组件架构图<a name="fig106301571239"></a><br> 16 17 18## 目录<a name="section19472752217"></a> 19 20``` 21/base/powermgr/power_manager 22├── figures # 架构图 23├── frameworks # Framework层 24│ ├── napi # NAPI层 25│ └── native # Native层 26├── interfaces # 接口层 27│ └── inner_api # 内部接口 28├── sa_profile # SA 配置文件 29├── services # 服务层 30│ ├── native # Native 层 31│ └── zidl # Zidl 接口层 32├── test # 测试用例 33│ ├── fuzztest # Fuzz 测试 34│ ├── unittest # 单元测试 35│ ├── systemtest # 系统测试 36│ └── utils # 测试工具 37└── utils # 工具和通用层 38``` 39 40 41 42## 相关仓<a name="section63151229062"></a> 43 44[电源管理子系统](https://gitee.com/openharmony/docs/blob/master/zh-cn/readme/%E7%94%B5%E6%BA%90%E7%AE%A1%E7%90%86%E5%AD%90%E7%B3%BB%E7%BB%9F.md) 45 46**powermgr_power_manager** 47 48[powermgr_display_manager](https://gitee.com/openharmony/powermgr_display_manager) 49 50[powermgr_battery_manager](https://gitee.com/openharmony/powermgr_battery_manager) 51 52[powermgr_thermal_manager](https://gitee.com/openharmony/powermgr_thermal_manager) 53 54[powermgr_battery_statistics](https://gitee.com/openharmony/powermgr_battery_statistics) 55 56[powermgr_battery_lite](https://gitee.com/openharmony/powermgr_battery_lite) 57 58[powermgr_powermgr_lite](https://gitee.com/openharmony/powermgr_powermgr_lite) 59