Home
last modified time | relevance | path

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

/base/powermgr/battery_manager/frameworks/native/test/unittest/src/
Dbattery_client_test.cpp176 auto voltage = BatterySrvClient.GetVoltage(); variable
177 BATTERY_HILOGI(LABEL_TEST, "BatteryClientTest::voltage=%{public}d", voltage);
178 GTEST_LOG_(INFO) << "BatteryClient::BatteryClient005 executing, voltage=" << voltage;
179 ASSERT_TRUE(voltage == 4654321);
181 auto voltage = BatterySrvClient.GetVoltage(); variable
182 BATTERY_HILOGI(LABEL_TEST, "BatteryClientTest::voltage=%{public}d", voltage);
183 GTEST_LOG_(INFO) << "BatteryClient::BatteryClient005 executing, voltage=" << voltage;
184 ASSERT_TRUE(voltage >= 0);
/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_manager/services/native/test/unittest/src/
Dbattery_service_test.cpp157 int32_t voltage = -1; variable
161 voltage = g_service->GetVoltage();
162 ASSERT_TRUE(voltage == 4123456);
164 voltage = g_service->GetVoltage();
165 ASSERT_TRUE(voltage > 0);
167 BATTERY_HILOGI(LABEL_TEST, "BatteryServiceTest::voltage=%{public}d", voltage);
168 GTEST_LOG_(INFO) << "BatteryService::BatteryService005 executing, voltage=" << voltage;
/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/thermal_manager/application/protector/src/action/
Dvoltage_action.cpp46 int32_t VoltageAction::BatteryVoltageActionRequest(uint32_t voltage) in BatteryVoltageActionRequest() argument
52 std::string voltageStr = std::to_string(voltage); in BatteryVoltageActionRequest()
/base/powermgr/battery_manager/frameworks/js/test/
Dbattery_unit.test.js43 var voltage = batteryInfo.voltage;
44 console.info('voltage = ' + voltage);
45 expect(voltage >= 0).assertEqual('1')
/base/powermgr/battery_manager/frameworks/native/src/
Dbattery_srv_client.cpp116 int32_t voltage = INVALID_BATT_INT_VALUE; in GetVoltage() local
117 RETURN_IF_WITH_RET(Connect() != ERR_OK, voltage); in GetVoltage()
118 voltage = proxy_->GetVoltage(); in GetVoltage()
119 return voltage; in GetVoltage()
/base/powermgr/battery_manager/services/native/src/
Dbattery_dump.cpp70 int32_t voltage = service->GetVoltage(); in GetBatteryInfo() local
71 dprintf(fd, "voltage: %d \n", voltage); in GetBatteryInfo()
Dbattery_service.cpp162 "technology=%{public}s", event.capacity, event.voltage, in HandleBatteryCallbackEvent()
168 batteryInfo.SetVoltage(event.voltage); in HandleBatteryCallbackEvent()
404 int voltage; in GetVoltage() local
409 ibatteryInterface->GetVoltage(voltage); in GetVoltage()
410 return voltage; in GetVoltage()
/base/powermgr/thermal_manager/application/protector/include/action/
Dvoltage_action.h28 int32_t BatteryVoltageActionRequest(uint32_t voltage);
/base/powermgr/battery_manager/interfaces/kits/js/
D@ohos.batteryInfo.d.ts54 const voltage: number; constant
/base/powermgr/battery_manager/interfaces/innerkits/native/include/
Dbattery_info.h188 void SetVoltage(const int32_t voltage) in SetVoltage() argument
190 voltage_ = voltage; in SetVoltage()
/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/services/native/test/unittest/include/
Dbattery_subscriber_test.h64 int voltage = data.GetWant().GetIntParam(KEY_VOLTAGE, defaultVoltage); in OnReceiveEvent() local
65 BATTERY_HILOGD(LABEL_TEST, "SubscriberTest voltage = %{public}d", voltage); in OnReceiveEvent()
/base/powermgr/battery_manager/services/zidl/src/
Dbattery_srv_proxy.cpp138 int32_t voltage = INVALID_BATT_INT_VALUE; in GetVoltage() local
139 READ_PARCEL_WITH_RET(reply, Int32, voltage, INVALID_BATT_INT_VALUE); in GetVoltage()
140 return voltage; in GetVoltage()
/base/powermgr/battery_lite/interfaces/kits/js/
D@system.battery.d.ts105 voltage: number; property
/base/powermgr/battery_lite/test/
Dbattery_test.js40 console.log('success get battery Voltage:' + data.voltage);
/base/powermgr/thermal_manager/
DREADME_zh.md161 <voltage>5</voltage>
DREADME.md161 <voltage>5</voltage>
/base/powermgr/battery_manager/frameworks/js/napi/
Dbattery_info.cpp79 int32_t voltage = g_battClient.GetVoltage(); in GetVoltage() local
81 NAPI_CALL(env, napi_create_int32(env, voltage, &napiValue)); in GetVoltage()
83 BATTERY_HILOGD(FEATURE_BATT_INFO, "voltage %{public}d", voltage); in GetVoltage()
/base/powermgr/battery_manager/test/systemtest/src/
Dbattery_sttest.cpp308 auto voltage = g_service->GetVoltage(); variable
309 HDF_LOGD("%{public}s: enter. BatteryST002::voltage=%{public}d.", __func__, voltage);
311 ASSERT_TRUE(voltage == 4123456);
1242 auto voltage = BatterySrvClient.GetVoltage(); variable
1243 GTEST_LOG_(INFO) << "BatteryST056 executing, voltage=" << voltage;
1245 ASSERT_TRUE(voltage == 4654321);
/base/powermgr/battery_lite/
DREADME.md76 …4214445"><a name="p1869014214445"></a><a name="p1869014214445"></a>Obtains the battery voltage.</p>
/base/update/updater/test/unittest/test_data/applypatch/
DTestGZipModeImagePatch.old.gz