Go to file
openharmony_ci 5b83bc7f17
!613 [Bug]: 修正charger中Power键值错误bug
Merge pull request !613 from caiwei/code
2024-09-29 07:05:26 +00:00
.gitee build: add code owner 2023-07-21 15:15:33 +08:00
charger fix: Correct the bug of incorrect Power key value in charger 2024-09-27 16:40:57 +08:00
figures Update readme 2022-01-11 18:23:52 -08:00
frameworks !589 feat: add capi for battery info 2024-09-02 11:34:28 +00:00
interfaces fix: add pac cfi config 2024-09-05 16:42:34 +08:00
sa_profile feat: add powermgr 2024-04-06 18:27:10 +08:00
services !607 fix: add IsNativePermissionGranted permission check 2024-09-26 03:05:59 +00:00
test fix: add macro for user dump 2024-09-25 10:18:42 +08:00
utils fix: modify Macro Names 2024-05-15 14:25:04 +08:00
.clang-format style: add .clang-format 2022-08-30 14:19:25 +08:00
.gitattributes update OpenHarmony 2.0 Canary 2021-06-02 02:19:06 +08:00
batterymgr.gni Merge branch 'master' of gitee.com:openharmony/powermgr_battery_manager into master 2024-09-10 06:33:05 +00:00
batterymgr.yaml fix: fix the name format of hisysevent 2023-03-18 17:41:06 +08:00
bundle.json fix: add macro for user dump 2024-09-25 10:18:42 +08:00
LICENSE modify code style 2021-10-20 15:13:26 +08:00
OAT.xml feat: charger animator based on arkui 2023-12-27 17:15:41 +08:00
README_zh.md docs: update the contents of readme 2023-02-10 10:14:08 +08:00
README.md docs: update readme 2023-03-09 14:21:38 +08:00

Battery Manager

Introduction

The Battery Manager module provides the following functions:

  1. Obtaining battery information
  2. Obtaining the battery charging status and the battery state of charge (SoC)
  3. 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

Power Management Subsystem

powermgr_power_manager

powermgr_display_manager

powermgr_battery_manager

powermgr_thermal_manager

powermgr_battery_statistics

powermgr_battery_lite

powermgr_powermgr_lite