/base/powermgr/battery_lite/test/ |
D | battery_test.js | 16 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/ |
D | battery_device.c | 127 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()
|
D | battery_manage_service.c | 54 void UpdateBatteryMsg(BatInfo* battery) in UpdateBatteryMsg() argument 60 g_batteryDevice->UpdateBatInfo(battery); in UpdateBatteryMsg()
|
/base/powermgr/battery_lite/ |
D | README.md | 13 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/ |
D | stoplisten_fuzzer.cpp | 31 BatteryMgrClientAdapterImpl battery; in DoSomethingInterestingWithMyAPI() local 32 battery.StopListen(); in DoSomethingInterestingWithMyAPI()
|
/base/web/webview/test/fuzztest/ohos_adapter/battery_adapter/batterymgrclient_fuzzer/ |
D | batterymgrclient_fuzzer.cpp | 31 BatteryMgrClientAdapterImpl battery; in DoSomethingInterestingWithMyAPI() local 32 battery.RequestBatteryInfo(); in DoSomethingInterestingWithMyAPI()
|
/base/web/webview/test/unittest/battery_mgr_adapter_impl/ |
D | battery_mgr_adapter_test.cpp | 173 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/ |
D | batteryevent_fuzzer.cpp | 31 BatteryMgrClientAdapterImpl battery; in DoSomethingInterestingWithMyAPI() local 34 battery.RegBatteryEvent(std::move(eventCallback)); in DoSomethingInterestingWithMyAPI()
|
/base/security/selinux_adapter/sepolicy/ohos_policy/powermgr/battery_manager/system/ |
D | sh.te | 26 …#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/ |
D | README.md | 11 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/ |
D | BUILD.gn | 16 ## 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.ts | 169 export default class battery { class
|
/base/powermgr/thermal_manager/ |
D | README_zh.md | 54 <item tag="temperature_query_enum" value="soc,battery,shell,ambient"/> 62 <sensor_cluster name="warm_safe" sensor="battery,pa">
|
D | README.md | 55 <item tag="temperature_query_enum" value="soc,battery,shell,ambient"/> 63 <sensor_cluster name="warm_safe" sensor="battery,pa">
|
/base/powermgr/battery_statistics/ |
D | README.md | 9 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/ |
D | BUILD.gn | 18 "napi:battery",
|
/base/web/webview/test/unittest/ohos_adapter_helper/ |
D | ohos_adapter_helper_test.cpp | 104 std::unique_ptr<BatteryMgrClientAdapter> battery = helper.CreateBatteryClientAdapter(); variable 105 EXPECT_NE(battery, nullptr);
|
/base/powermgr/powermgr_lite/interfaces/kits/battery/js/builtin/ |
D | BUILD.gn | 32 "//base/powermgr/powermgr_lite/interfaces/kits/battery/js/builtin/include",
|
/base/powermgr/battery_manager/frameworks/napi/ |
D | BUILD.gn | 51 ohos_shared_library("battery") {
|
/base/hiviewdfx/hiview/utility/smart_parser/test/resource/SmartParserTest008/ |
D | last_kmsg | 775 …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/ |
D | last_kmsg | 775 …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/ |
D | last_kmsg | 775 …240][PLUGIN][INFO][init_context.c:184]Exec cmd 'mkdir /data/service/el0/battery 0751 power_host p…
|