• Home
Name Date Size #Lines LOC

..--

figures/12-May-2024-

frameworks/12-May-2024-2,2891,808

interfaces/12-May-2024-1,050509

sa_profile/12-May-2024-4629

services/12-May-2024-15,33711,499

test/12-May-2024-4,7263,343

utils/12-May-2024-924634

.gitattributesD12-May-2024631 1615

LICENSED12-May-20249.9 KiB177150

OAT.xmlD12-May-2024982 2610

README.mdD12-May-20242.1 KiB5639

README_zh.mdD12-May-20242.1 KiB5839

bundle.jsonD12-May-20243 KiB8282

powermgr.gniD12-May-20241.1 KiB3322

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
9Power Manager provides the following functionalities:
10
111.  Rebooting the device
122.  Managing running locks
133.  Obtaining the power status
14
15**Figure  1**  Power manager service architecture<a name="fig106301571239"></a>
16![](figures/power-management-subsystem-architecture.png "power-management-subsystem-architecture")
17
18## Directory Structure<a name="section19472752217"></a>
19
20```
21/base/powermgr/power_manager
22├── figures                  	# Architecture figures
23├── frameworks                  # FrameWork Layer
24│   ├── dialog                  # Dialog resource
25│   ├── include                 # Include file
26│   ├── napi                  	# NAPI
27│   └── native                  # Native code
28├── interfaces                  # APIs
29│   ├── innerkits               # Internal APIs
30│   └── kits                    # External APIs
31├── sa_profile                  # SA profile
32├── services                    # Services
33│   ├── native                  # Native services
34│   └── zidl                    # zidl APIs
35├── test                        # Test code
36└── utils                       # Utilities and common code
37```
38
39## Repositories Involved<a name="section63151229062"></a>
40
41[Power management subsystem](https://gitee.com/openharmony/docs/blob/master/en/readme/power-management.md)
42
43**powermgr_power_manager**
44
45[powermgr_display_manager](https://gitee.com/openharmony/powermgr_display_manager)
46
47[powermgr_battery_manager](https://gitee.com/openharmony/powermgr_battery_manager)
48
49[powermgr_thermal_manager](https://gitee.com/openharmony/powermgr_thermal_manager)
50
51[powermgr_battery_statistics](https://gitee.com/openharmony/powermgr_battery_statistics)
52
53[powermgr_battery_lite](https://gitee.com/openharmony/powermgr_battery_lite)
54
55[powermgr_powermgr_lite](https://gitee.com/openharmony/powermgr_powermgr_lite)
56

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>
16![](figures/power-management-subsystem-architecture.png "电源管理子系统架构图")
17
18## 目录<a name="section19472752217"></a>
19
20```
21/base/powermgr/power_manager
22├── figures                  	# 架构图
23├── frameworks                  # FrameWork层
24│   ├── dialog                  # Dialog 资源文件
25│   ├── include                 # 头文件
26│   ├── napi                  	# NAPI
27│   └── native                  # Native层
28├── interfaces                  # 接口层
29│   ├── innerkits               # 内部接口
30│   └── kits                    # 外置接口
31├── sa_profile                  # SA 配置文件
32├── services                    # 服务层
33│   ├── native                  # Native 层
34│   └── zidl                    # zidl 接口层
35├── test                        # 测试用例
36└── utils                       # 工具和通用层
37```
38
39
40
41## 相关仓<a name="section63151229062"></a>
42
43[电源管理子系统](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)
44
45**powermgr_power_manager**
46
47[powermgr_display_manager](https://gitee.com/openharmony/powermgr_display_manager)
48
49[powermgr_battery_manager](https://gitee.com/openharmony/powermgr_battery_manager)
50
51[powermgr_thermal_manager](https://gitee.com/openharmony/powermgr_thermal_manager)
52
53[powermgr_battery_statistics](https://gitee.com/openharmony/powermgr_battery_statistics)
54
55[powermgr_battery_lite](https://gitee.com/openharmony/powermgr_battery_lite)
56
57[powermgr_powermgr_lite](https://gitee.com/openharmony/powermgr_powermgr_lite)
58