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

Directory Structure
base/powermgr/battery_manager
├── hdi # HDI code
│ ├── api # HDI APIs
│ └── client # HDI client
│ └── service # HDI service
├── interfaces # APIs
│ ├── innerkits # Internal APIs
│ └── kits # External APIs
├── sa_profile # SA profile
└── services # Services
│ ├── native # Native services
│ └── zidl # zidl APIs
└── utils # Utilities and common code
Repositories Involved
Power management subsystem
powermgr_battery_manager
powermgr_power_manager
powermgr_display_manager
Description
Languages
C++
99.5%
C
0.5%