README.md
1# Battery Statistics<a name="EN-US_TOPIC_0000001115047353"></a>
2
3- [Introduction](#section11660541593)
4- [Directory Structure](#section19472752217)
5- [Repositories Involved](#section63151229062)
6
7## Introduction<a name="section11660541593"></a>
8
9The battery statistics module provides the following functions:
10
111. Software power consumption statistics: collects statistics on power consumption of each application or software. The power consumption is measured by Uid. Software power consumption includes but is not limited to the following items: CPU power consumption, running lock power consumption, mobile wireless power consumption, Wi-Fi power consumption, GPS power consumption, sensor power consumption, camera power consumption, flashlight power consumption, etc.
122. Hardware power consumption statistics: collects statistics on power consumption of the hardware. Power consumption beyond software power consumption belongs to hardware power consumption. It includes but is not limited to the following items: user power consumption, call power consumption, screen power consumption, Wi-Fi power consumption, and Bluetooth power consumption.
13
14**Figure 1** Architecture of the battery statistics module<a name="fig106301571239"></a>
15![](figures/power-management-subsystem-architecture.png "Architecture of the battery statistics module")
16
17## Directory Structure<a name="section19472752217"></a>
18
19```
20/base/powermgr/battery_statistics
21├── etc # etc profile
22├── figures # Architecture figures
23├── frameworks # FrameWork Layer
24│ ├── js # NAPI code
25│ └── native # Native code
26├── interfaces # APIs
27│ ├── innerkits # Internal APIs
28│ └── kits # External APIs
29├── sa_profile # SA profile
30├── services # Services
31│ ├── native # Native services
32│ ├── profile # Average Power Consumption Profile
33│ └── zidl # zidl APIs
34├── test # Test code
35└── utils # Utilities and common code
36```
37
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](https://gitee.com/openharmony/powermgr_battery_manager)
49
50[powermgr_thermal_manager](https://gitee.com/openharmony/powermgr_thermal_manager)
51
52**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