mirror of
https://gitee.com/openharmony/powermgr_battery_manager
synced 2024-12-27 16:55:57 +00:00
16e5880bb7
Signed-off-by: caiwei <wei.cai@archermind.com> |
||
---|---|---|
.gitee | ||
charger | ||
figures | ||
frameworks | ||
interfaces | ||
sa_profile | ||
services | ||
test | ||
utils | ||
.clang-format | ||
.gitattributes | ||
batterymgr.gni | ||
batterymgr.yaml | ||
bundle.json | ||
LICENSE | ||
OAT.xml | ||
README_zh.md | ||
README.md |
Battery Manager
Introduction
The Battery Manager module provides the following functions:
- Obtaining battery information
- Obtaining the battery charging status and the battery state of charge (SoC)
- Power off charging
Figure 1 Architecture of the Battery Manager module
Directory Structure
base/powermgr/battery_manager
├── figures # Architecture
├── frameworks # Framework layer
│ ├── napi # NAPI layer
│ └── native # Native layer
├── interfaces # API layer
│ └── inner_api # Internal APIs
├── sa_profile # SA profile
└── 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
powermgr_battery_manager