• Home
Name Date Size #Lines LOC

..--

charger/07-Sep-2024-4,5843,608

figures/07-Sep-2024-

frameworks/07-Sep-2024-2,4861,859

interfaces/inner_api/07-Sep-2024-786443

sa_profile/07-Sep-2024-3229

services/07-Sep-2024-3,2272,628

test/07-Sep-2024-8,2025,337

utils/07-Sep-2024-345227

.clang-formatD07-Sep-20241.3 KiB3836

.gitattributesD07-Sep-2024631 1615

LICENSED07-Sep-20249.9 KiB177150

OAT.xmlD07-Sep-20241.1 KiB2711

README.mdD07-Sep-20242.2 KiB6040

README_zh.mdD07-Sep-20242.1 KiB5940

batterymgr.gniD07-Sep-20242.1 KiB6052

batterymgr.yamlD07-Sep-20241.4 KiB3116

bundle.jsonD07-Sep-20243.6 KiB104103

README.md

1# Battery Manager<a name="EN-US_TOPIC_0000001124094823"></a>
2
3-   [Introduction](#section11660541593)
4-   [Directory Structure](#section19472752217)
5-   [Repositories Involved](#section63151229062)
6
7## Introduction<a name="section11660541593"></a>
8
9The Battery Manager module provides the following functions:
10
111.  Obtaining battery information
122.  Obtaining the battery charging status and the battery state of charge (SoC)
133.  Power off charging
14
15**Figure 1** Architecture of the Battery Manager module<a name="fig106301571239"></a>
16
17![](figures/power-management-subsystem-architecture.png "Architecture of the power management subsystem")
18
19## Directory Structure<a name="section19472752217"></a>
20
21```
22base/powermgr/battery_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├── sa_profile                  # SA profile
30└── services                    # Service layer
31│   └── native                  # Native layer
32│   └── zidl                    # Zidl API layer
33├── test                        # Test cases
34│   ├── fuzztest                # Fuzz test
35│   ├── unittest                # Unit test
36│   ├── systemtest              # System test
37│   └── utils                   # Test tools
38└── utils                       # Utilities
39```
40
41
42
43## Repositories Involved<a name="section63151229062"></a>
44
45[Power Management Subsystem](https://gitee.com/openharmony/docs/blob/master/en/readme/power-management.md)
46
47[powermgr_power_manager](https://gitee.com/openharmony/powermgr_power_manager)
48
49[powermgr_display_manager](https://gitee.com/openharmony/powermgr_display_manager)
50
51**powermgr_battery_manager**
52
53[powermgr_thermal_manager](https://gitee.com/openharmony/powermgr_thermal_manager)
54
55[powermgr_battery_statistics](https://gitee.com/openharmony/powermgr_battery_statistics)
56
57[powermgr_battery_lite](https://gitee.com/openharmony/powermgr_battery_lite)
58
59[powermgr_powermgr_lite](https://gitee.com/openharmony/powermgr_powermgr_lite)
60

README_zh.md

1# 电池服务组件<a name="ZH-CN_TOPIC_0000001124094823"></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![](figures/power-management-subsystem-architecture.png "电源管理子系统架构图")
17
18## 目录<a name="section19472752217"></a>
19
20```
21base/powermgr/battery_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](https://gitee.com/openharmony/powermgr_power_manager)
47
48[powermgr_display_manager](https://gitee.com/openharmony/powermgr_display_manager)
49
50**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