• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1{
2    "name": "@ohos/battery_statistics",
3    "version": "3.1",
4    "description": "耗电统计服务,包括硬件耗电统计和软件耗电统计。",
5    "homePage": "https://gitee.com/openharmony",
6    "license": "Apache License 2.0",
7    "repository": "https://gitee.com/openharmony/powermgr_battery_statistics",
8    "domain": "os",
9    "publishAs": "code-segment",
10    "scripts": {},
11    "segment": {
12        "destPath": "base/powermgr/battery_statistics"
13    },
14    "component": {
15        "name": "battery_statistics_native",
16        "subsystem": "powermgr",
17        "syscap": [ "SystemCapability.PowerManager.BatteryStatistics" ],
18        "features": [],
19        "adapted_system_type": [ "standard" ],
20        "rom": "1024KB",
21        "ram": "2048KB",
22        "hisysevent_config": [
23            "//base/powermgr/battery_statistics/batterystats.yaml"
24        ],
25        "deps": {
26            "components": [
27                "ability_base",
28                "appexecfwk",
29                "appexecfwk_standard",
30                "battery_manager",
31                "ces_standard",
32                "hisysevent_native",
33                "hiviewdfx_hilog_native",
34                "ipc",
35                "napi",
36                "os_account_standard",
37                "safwk",
38                "samgr_standard"
39            ],
40            "third_party": [
41                "googletest",
42                "jsoncpp"
43            ]
44        },
45        "build": {
46            "sub_component": [
47                "//base/powermgr/battery_statistics/etc/init:batterystats.rc",
48                "//base/powermgr/battery_statistics/frameworks/js/napi:batterystatistics",
49                "//base/powermgr/battery_statistics/interfaces/innerkits:batterystats_client",
50                "//base/powermgr/battery_statistics/sa_profile:batterystats_sa_profile",
51                "//base/powermgr/battery_statistics/services:batterystats_service",
52                "//base/powermgr/battery_statistics/services/profile:power_average.json",
53                "//base/powermgr/battery_statistics/utils:batterystat_dump"
54            ],
55            "inner_kits": [
56                {
57                    "name": "//base/powermgr/battery_statistics/interfaces/innerkits:batterystats_client",
58                    "header": {
59                      "header_files": [
60                        "battery_stats_client.h",
61                        "battery_stats_info.h",
62                        "ibattery_stats.h"
63                      ],
64                      "header_base": "//base/powermgr/battery_statistics/interfaces/innerkits/include"
65                    }
66                }
67            ],
68            "test": [
69                "//base/powermgr/battery_statistics/services/native/test/:batterystats_test",
70                "//base/powermgr/battery_statistics/test/:systemtest"
71            ]
72        }
73    }
74}