Home
last modified time | relevance | path

Searched refs:voltage (Results 1 – 25 of 25) sorted by relevance

/base/powermgr/battery_lite/test/Interface_test/test/unittest/src/
Dbatterymgr_interfaces_test.cpp93 int32_t voltage = GetBatVoltage(); variable
94 EXPECT_EQ ((voltage >= 0 && voltage <= 100), 1)
95 << "GetBatVoltage ret = " << voltage << endl;
/base/powermgr/battery_lite/services/src/
Dbattery_manage_feature.c89 int32_t voltage = BATT_INT_VALUE; in VoltageImpl() local
92 return voltage; in VoltageImpl()
94 voltage = g_batteryDevice->GetVoltage(); in VoltageImpl()
95 return voltage; in VoltageImpl()
/base/powermgr/battery_manager/services/native/test/unittest/src/
Dbattery_service_test.cpp88 auto voltage = g_service->GetVoltage(); variable
89 ASSERT_TRUE(voltage == 4654321);
92 auto voltage = g_service->GetVoltage(); variable
93 BATTERY_HILOGI(LABEL_TEST, "BatteryService004::voltage=%{public}d", voltage);
94 GTEST_LOG_(INFO) << "BatteryService004 executing, voltage=" << voltage;
95 ASSERT_TRUE(voltage >= 0);
Dbattery_srv_proxy_mock_test.cpp222 int32_t voltage = g_proxy->GetVoltage(); variable
223 EXPECT_TRUE(voltage == INVALID_BATT_INT_VALUE);
Dbattery_notify_test.cpp39 const int32_t voltage = 1; in SetUp() local
40 g_batteryInfo->SetVoltage(voltage); in SetUp()
/base/powermgr/thermal_manager/application/protector/src/action/
Dvoltage_action.cpp51 int32_t VoltageAction::BatteryVoltageActionRequest(uint32_t voltage) in BatteryVoltageActionRequest() argument
57 std::string voltageStr = std::to_string(voltage); in BatteryVoltageActionRequest()
/base/powermgr/battery_manager/frameworks/native/src/
Dbattery_srv_client.cpp121 int32_t voltage = INVALID_BATT_INT_VALUE; in GetVoltage() local
122 RETURN_IF_WITH_RET(Connect() != ERR_OK, voltage); in GetVoltage()
123 voltage = proxy_->GetVoltage(); in GetVoltage()
124 return voltage; in GetVoltage()
/base/powermgr/thermal_manager/application/protector/include/action/
Dvoltage_action.h29 int32_t BatteryVoltageActionRequest(uint32_t voltage);
/base/powermgr/battery_manager/frameworks/native/test/unittest/src/
Dbattery_client_test.cpp197 auto voltage = BatterySrvClient.GetVoltage(); variable
198 BATTERY_HILOGI(LABEL_TEST, "BatteryClientTest::voltage=%{public}d", voltage);
199 GTEST_LOG_(INFO) << "BatteryClient::BatteryClient005 executing, voltage=" << voltage;
200 ASSERT_TRUE(voltage == 4654321);
204 auto voltage = BatterySrvClient.GetVoltage(); variable
205 BATTERY_HILOGI(LABEL_TEST, "BatteryClientTest::voltage=%{public}d", voltage);
206 GTEST_LOG_(INFO) << "BatteryClient::BatteryClient005 executing, voltage=" << voltage;
207 ASSERT_TRUE(voltage >= 0);
/base/powermgr/battery_manager/frameworks/js/napi/
Dbattery_info.cpp81 int32_t voltage = g_battClient.GetVoltage(); in GetVoltage() local
83 NAPI_CALL(env, napi_create_int32(env, voltage, &napiValue)); in GetVoltage()
85 BATTERY_HILOGD(FEATURE_BATT_INFO, "voltage %{public}d", voltage); in GetVoltage()
375 napi_value voltage = nullptr; in CreateEventBatteryChangedKey() local
385 napi_create_string_utf8(env, BatteryInfo::COMMON_EVENT_KEY_VOLTAGE, NAPI_AUTO_LENGTH, &voltage); in CreateEventBatteryChangedKey()
396 DECLARE_NAPI_STATIC_PROPERTY("EXTRA_VOLTAGE", voltage), in CreateEventBatteryChangedKey()
415 napi_value voltage = nullptr; in CreateEventBatteryChangedCode() local
428 napi_create_int32(env, (int32_t)BatteryInfo::COMMON_EVENT_CODE_VOLTAGE, &voltage); in CreateEventBatteryChangedCode()
442 DECLARE_NAPI_STATIC_PROPERTY("EXTRA_VOLTAGE", voltage), in CreateEventBatteryChangedCode()
/base/powermgr/battery_lite/frameworks/js/builtin/src/
Dbattery_module.cpp112 int32_t voltage = 0; in GetVoltage() local
117 voltage = GetBatVoltageImpl(); in GetVoltage()
119 JSI::SetNumberProperty(result, "voltage", voltage); in GetVoltage()
/base/powermgr/battery_manager/interfaces/kits/js/
D@ohos.batteryInfo.d.ts54 const voltage: number; constant
/base/powermgr/thermal_manager/services/native/include/thermal_action/action/
Daction_voltage.h35 int32_t SetVoltage(int32_t voltage);
/base/powermgr/battery_manager/services/native/src/
Dbattery_dump.cpp82 int32_t voltage = service->GetVoltage(); in GetBatteryInfo() local
83 dprintf(fd, "voltage: %d \n", voltage); in GetBatteryInfo()
Dbattery_service.cpp187 batteryInfo_.SetVoltage(event.voltage); in ConvertingEvent()
465 int voltage; in GetVoltage() local
471 iBatteryInterface_->GetVoltage(voltage); in GetVoltage()
472 return voltage; in GetVoltage()
/base/powermgr/thermal_manager/services/native/src/thermal_action/action/
Daction_voltage.cpp106 int32_t ActionVoltage::SetVoltage(int32_t voltage) in SetVoltage() argument
117 chargingLimit.value = voltage; in SetVoltage()
/base/powermgr/battery_manager/test/systemtest/src/
Dbattery_sttest.cpp526 auto voltage = BatterySrvClient.GetVoltage(); variable
527 GTEST_LOG_(INFO) << "BatteryST015 executing, voltage=" << voltage;
529 ASSERT_TRUE(voltage == 4654321);
533 auto voltage = BatterySrvClient.GetVoltage(); variable
534 BATTERY_HILOGD(LABEL_TEST, "BatteryST015::voltage=%{public}d", voltage);
535 GTEST_LOG_(INFO) << "BatteryST015 executing, voltage=" << voltage;
536 ASSERT_TRUE(voltage >= 0);
/base/powermgr/battery_lite/interfaces/kits/js/
D@system.battery.d.ts105 voltage: number; property
/base/powermgr/battery_lite/test/
Dbattery_test.js55 console.log('success get battery Voltage:' + data.voltage);
/base/powermgr/battery_manager/interfaces/innerkits/native/include/
Dbattery_info.h205 void SetVoltage(const int32_t voltage) in SetVoltage() argument
207 voltage_ = voltage; in SetVoltage()
/base/powermgr/battery_manager/services/zidl/src/
Dbattery_srv_proxy.cpp142 int32_t voltage = INVALID_BATT_INT_VALUE; in GetVoltage() local
143 READ_PARCEL_WITH_RET(reply, Int32, voltage, INVALID_BATT_INT_VALUE); in GetVoltage()
144 return voltage; in GetVoltage()
/base/powermgr/battery_lite/
DREADME.md77 …4214445"><a name="p1869014214445"></a><a name="p1869014214445"></a>Obtains the battery voltage.</p>
/base/hiviewdfx/hiview/utility/smart_parser/test/resource/SmartParserTest005/
Ddmesg-ramoops-0343 <6>[ 3864.928710s] [pid:2964,cpu0,kworker/u12:5,8][I/charging_core] battery voltage is 4402 mv, vin…
400 <6>[ 3865.239349s] [pid:1726,cpu0,kworker/0:2,5][coul_core]get battery id voltage is 4063 mv
412 <6>[ 3865.244018s] [pid:3236,cpu4,udevd,7][coul_core]get battery id voltage is 4060 mv
415 <6>[ 3865.246490s] [pid:3236,cpu3,udevd,0][coul_core]get battery id voltage is 4062 mv
963 <6>[ 3895.653259s] [pid:2964,cpu1,kworker/u12:5,8][I/charging_core] battery voltage is 4402 mv, vin…
1006 <6>[ 3895.959411s] [pid:262,cpu1,kworker/1:1,1][coul_core]get battery id voltage is 4063 mv
1022 <6>[ 3895.964996s] [pid:3241,cpu3,udevd,7][coul_core]get battery id voltage is 4061 mv
1024 <6>[ 3895.967285s] [pid:3241,cpu3,udevd,9][coul_core]get battery id voltage is 4064 mv
/base/update/updater/test/unittest/test_data/applypatch/
DTestGZipModeImagePatch.old.gz
/base/hiviewdfx/hiview/utility/smart_parser/test/resource/SmartParserTest004/
Ddmesg-ramoops-01134 …[ 56.556945s] [pid:289,cpu0,kworker/u12:2,4][D/charging_core] vdpm_type is set by battery voltage
1136 <6>[ 56.556976s] [pid:289,cpu0,kworker/u12:2,6][I/charging_core] battery voltage is 4432 mv, vind…
1179 <6>[ 56.864440s] [pid:15,cpu0,kworker/0:1,9][coul_core]get battery id voltage is 4061 mv
1185 <6>[ 56.869293s] [pid:2418,cpu5,udevd,5][coul_core]get battery id voltage is 4060 mv
1187 <6>[ 56.871246s] [pid:2418,cpu5,udevd,7][coul_core]get battery id voltage is 4059 mv