mirror of
https://github.com/openharmony/powermgr_battery_manager.git
synced 2026-07-01 06:42:05 -04:00
5ce52d1daf2b6266db2fa66c09fbe2bb71adf281
battery_manager
Introduction
Battery Manager provides the following functionalities:
- Obtaining battery information
- Obtaining the battery charging status and the remaining battery power
- Power off charging
Figure 1 Battery manager subsystem architecture

Directory Structure
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
├── 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
Repositories Involved
powermgr_battery_manager
Description
Languages
C++
99.5%
C
0.5%