Home
last modified time | relevance | path

Searched refs:battery (Results 1 – 22 of 22) sorted by relevance

/base/powermgr/battery_lite/test/
Dbattery_test.js16 var battery = require("@system.battery"); variable
17 battery.BatterySOC({
26 battery.ChargingStatus({
35 battery.HealthStatus({
44 battery.PluggedType({
53 battery.Voltage({
62 battery.Technology({
71 battery.Temperature({
/base/powermgr/battery_lite/services/src/
Dbattery_device.c127 void UpdateBatInfoImpl(BatInfo *battery) in UpdateBatInfoImpl() argument
129 if (battery == NULL) { in UpdateBatInfoImpl()
132 if (strcpy_s(battery->BatTechnology, BATTECHNOLOGY_LEN, battInfo.BatTechnology) != EOK) { in UpdateBatInfoImpl()
135 battery->batSoc = battInfo.batSoc; in UpdateBatInfoImpl()
136 battery->batVoltage = battInfo.batVoltage; in UpdateBatInfoImpl()
137 battery->BatTemp = battInfo.BatTemp; in UpdateBatInfoImpl()
138 battery->batCapacity = battInfo.batCapacity; in UpdateBatInfoImpl()
139 battery->chargingStatus = battInfo.chargingStatus; in UpdateBatInfoImpl()
140 battery->pluggedType = battInfo.pluggedType; in UpdateBatInfoImpl()
141 battery->healthStatus = battInfo.healthStatus; in UpdateBatInfoImpl()
Dbattery_manage_service.c54 void UpdateBatteryMsg(BatInfo* battery) in UpdateBatteryMsg() argument
60 g_batteryDevice->UpdateBatInfo(battery); in UpdateBatteryMsg()
/base/powermgr/battery_lite/
DREADME.md13 The lite battery manager provides the following functionalities:
15 1. Obtaining battery information
16 2. Obtaining the battery charging status and the battery state of charge \(SoC\)
17 3. Monitoring the battery state of health \(SoH\)
18 4. Controlling the battery charging indicator
20 **Figure 1** Lite battery manager architecture<a name="fig106301571239"></a>
45 The following table lists the JavaScript APIs provided by the lite battery manager.
57 …7153115"><a name="p105741337153115"></a><a name="p105741337153115"></a>Obtains the battery SoC.</p>
62 …me="p1619618397312"></a><a name="p1619618397312"></a>Obtains the current battery charging status.<…
67 …p113972183214"><a name="p113972183214"></a><a name="p113972183214"></a>Obtains the battery SoH.</p>
[all …]
/base/web/webview/test/fuzztest/ohos_adapter/battery_adapter/stoplisten_fuzzer/
Dstoplisten_fuzzer.cpp31 BatteryMgrClientAdapterImpl battery; in DoSomethingInterestingWithMyAPI() local
32 battery.StopListen(); in DoSomethingInterestingWithMyAPI()
/base/web/webview/test/fuzztest/ohos_adapter/battery_adapter/batterymgrclient_fuzzer/
Dbatterymgrclient_fuzzer.cpp31 BatteryMgrClientAdapterImpl battery; in DoSomethingInterestingWithMyAPI() local
32 battery.RequestBatteryInfo(); in DoSomethingInterestingWithMyAPI()
/base/web/webview/test/unittest/battery_mgr_adapter_impl/
Dbattery_mgr_adapter_test.cpp173 std::unique_ptr<WebBatteryInfo> battery = g_batterImpl->RequestBatteryInfo(); variable
174 if (battery == nullptr) {
179 battery = g_batterImpl->RequestBatteryInfo();
180 if (battery == nullptr) {
185 battery = g_batterImpl->RequestBatteryInfo();
186 if (battery == nullptr) {
/base/web/webview/test/fuzztest/ohos_adapter/battery_adapter/batteryevent_fuzzer/
Dbatteryevent_fuzzer.cpp31 BatteryMgrClientAdapterImpl battery; in DoSomethingInterestingWithMyAPI() local
34 battery.RegBatteryEvent(std::move(eventCallback)); in DoSomethingInterestingWithMyAPI()
/base/security/selinux_adapter/sepolicy/ohos_policy/powermgr/battery_manager/system/
Dsh.te26 …#avc: denied { read } for pid=2037 comm="hdi_unittest_ba" name="battery" dev="mmcblk0p11" ino=9…
33 … open } for pid=3040 comm="test_batterycli" path="/data/service/el0/battery/battery/capacity" dev…
35 …ioctl } for pid=2063 comm="test_batterycli" path="/data/service/el0/battery/battery/capacity" dev…
38 …ioctl } for pid=3040 comm="test_batterycli" path="/data/service/el0/battery/battery/capacity" dev…
/base/powermgr/battery_manager/
DREADME.md11 1. Obtaining battery information
12 2. Obtaining the battery charging status and the battery state of charge (SoC)
/base/powermgr/battery_manager/services/native/profile/
DBUILD.gn16 ## Install battery_config.json to /system/etc/battery/battery_config.json
19 relative_install_dir = "battery"
/base/powermgr/battery_lite/interfaces/kits/js/
D@system.battery.d.ts169 export default class battery { class
/base/powermgr/thermal_manager/
DREADME_zh.md54 <item tag="temperature_query_enum" value="soc,battery,shell,ambient"/>
62 <sensor_cluster name="warm_safe" sensor="battery,pa">
DREADME.md55 <item tag="temperature_query_enum" value="soc,battery,shell,ambient"/>
63 <sensor_cluster name="warm_safe" sensor="battery,pa">
/base/powermgr/battery_statistics/
DREADME.md9 The battery statistics module provides the following functions:
14 **Figure 1** Architecture of the battery statistics module<a name="fig106301571239"></a>
/base/powermgr/battery_manager/frameworks/
DBUILD.gn18 "napi:battery",
/base/web/webview/test/unittest/ohos_adapter_helper/
Dohos_adapter_helper_test.cpp104 std::unique_ptr<BatteryMgrClientAdapter> battery = helper.CreateBatteryClientAdapter(); variable
105 EXPECT_NE(battery, nullptr);
/base/powermgr/powermgr_lite/interfaces/kits/battery/js/builtin/
DBUILD.gn32 "//base/powermgr/powermgr_lite/interfaces/kits/battery/js/builtin/include",
/base/powermgr/battery_manager/frameworks/napi/
DBUILD.gn51 ohos_shared_library("battery") {
/base/hiviewdfx/hiview/utility/smart_parser/test/resource/SmartParserTest008/
Dlast_kmsg775 …240][PLUGIN][INFO][init_context.c:184]Exec cmd 'mkdir /data/service/el0/battery 0751 power_host p…
/base/hiviewdfx/hiview/utility/smart_parser/test/resource/SmartParserTest004/
Dlast_kmsg775 …240][PLUGIN][INFO][init_context.c:184]Exec cmd 'mkdir /data/service/el0/battery 0751 power_host p…
/base/hiviewdfx/hiview/utility/smart_parser/test/resource/SmartParserTest005/
Dlast_kmsg775 …240][PLUGIN][INFO][init_context.c:184]Exec cmd 'mkdir /data/service/el0/battery 0751 power_host p…