docs: update readme

Signed-off-by: qiuxiangdong <qiuxiangdong3@huawei.com>
Change-Id: Ie7cd019baf81599e6de8c16b933ec03fd95dd1cf
This commit is contained in:
qiuxiangdong
2023-03-09 14:21:38 +08:00
parent 913e5f63fd
commit ac038534ca
+24 -21
View File
@@ -1,4 +1,4 @@
# battery\_manager<a name="EN-US_TOPIC_0000001124094823"></a>
# Battery Manager<a name="EN-US_TOPIC_0000001124094823"></a>
- [Introduction](#section11660541593)
- [Directory Structure](#section19472752217)
@@ -6,40 +6,43 @@
## Introduction<a name="section11660541593"></a>
Battery Manager provides the following functionalities:
The Battery Manager module provides the following functions:
1. Obtaining battery information
2. Obtaining the battery charging status and the remaining battery power
2. Obtaining the battery charging status and the battery state of charge (SoC)
3. Power off charging
**Figure 1** Battery manager subsystem architecture<a name="fig106301571239"></a>
![](figures/power-management-subsystem-architecture.png "power-management-subsystem-architecture")
**Figure 1** Architecture of the Battery Manager module<a name="fig106301571239"></a>
![](figures/power-management-subsystem-architecture.png "Architecture of the power management subsystem")
## Directory Structure<a name="section19472752217"></a>
```
base/powermgr/battery_manager
├── figures # Architecture figures
├── frameworks # FrameWork Layer
   ├── dialog # Dialog
   ├── js # NAPI code
│   └── native # Native code
── interfaces # APIs
│   ├── innerkits # Internal APIs
│   └── kits # External APIs
├── figures # Architecture
├── frameworks # Framework layer
├── napi # NAPI layer
└── native # Native layer
├── interfaces # API layer
│ └── inner_api # Internal APIs
├── sa_profile # SA profile
── services # Services
  ── native # Native services
   └── zidl # Zidl APIs
├── test # Test code
   ├── fuzztest # Fuzz test
   └── systemtest # System test
└── utils # Utilities and common code
── services # Service layer
── native # Native layer
└── zidl # Zidl API layer
├── test # Test cases
├── fuzztest # Fuzz test
├── unittest # Unit test
│ ├── systemtest # System test
│ └── utils # Test tools
└── utils # Utilities
```
## Repositories Involved<a name="section63151229062"></a>
[Power management subsystem](https://gitee.com/openharmony/docs/blob/master/en/readme/power-management.md)
[Power Management Subsystem](https://gitee.com/openharmony/docs/blob/master/en/readme/power-management.md)
[powermgr_power_manager](https://gitee.com/openharmony/powermgr_power_manager)