• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
9Battery Manager provides the following functionalities:
10
111.  Obtaining battery information
122.  Obtaining the battery charging status and the remaining battery power
133.  Power off charging
14
15**Figure  1**  Battery manager subsystem architecture<a name="fig106301571239"></a>
16![](figures/power-management-subsystem-architecture.png "power-management-subsystem-architecture")
17
18## Directory Structure<a name="section19472752217"></a>
19
20```
21base/powermgr/battery_manager
22├── figures                  	# Architecture figures
23├── frameworks                  # FrameWork Layer
24│   ├── dialog                  # Dialog
25│   ├── js                  	# NAPI code
26│   └── native                  # Native code
27├── interfaces                  # APIs
28│   ├── innerkits               # Internal APIs
29│   └── kits                    # External APIs
30├── sa_profile                  # SA profile
31├── services                    # Services
32│   ├── native                  # Native services
33│   └── zidl                    # Zidl APIs
34├── test                        # Test code
35│   ├── fuzztest                # Fuzz test
36│   └── systemtest              # System test
37└── utils                       # Utilities and common code
38```
39
40## Repositories Involved<a name="section63151229062"></a>
41
42[Power management subsystem](https://gitee.com/openharmony/docs/blob/master/en/readme/power-management.md)
43
44[powermgr_power_manager](https://gitee.com/openharmony/powermgr_power_manager)
45
46[powermgr_display_manager](https://gitee.com/openharmony/powermgr_display_manager)
47
48**powermgr_battery_manager**
49
50[powermgr_thermal_manager](https://gitee.com/openharmony/powermgr_thermal_manager)
51
52[powermgr_battery_statistics](https://gitee.com/openharmony/powermgr_battery_statistics)
53
54[powermgr_battery_lite](https://gitee.com/openharmony/powermgr_battery_lite)
55
56[powermgr_powermgr_lite](https://gitee.com/openharmony/powermgr_powermgr_lite)
57