Home
last modified time | relevance | path

Searched refs:totalEnergy (Results 1 – 9 of 9) sorted by relevance

/base/powermgr/battery_manager/frameworks/native/src/
Dbattery_srv_client.cpp169 int32_t totalEnergy = INVALID_BATT_INT_VALUE; in GetTotalEnergy() local
170 RETURN_IF_WITH_RET(Connect() != ERR_OK, totalEnergy); in GetTotalEnergy()
171 totalEnergy = proxy_->GetTotalEnergy(); in GetTotalEnergy()
172 return totalEnergy; in GetTotalEnergy()
/base/powermgr/battery_manager/interfaces/kits/js/
D@ohos.batteryInfo.d.ts91 const totalEnergy: number; constant
/base/powermgr/battery_manager/services/native/test/unittest/src/
Dbattery_srv_proxy_mock_test.cpp137 int32_t totalEnergy = g_proxy->GetTotalEnergy(); variable
138 EXPECT_TRUE(totalEnergy == INVALID_BATT_INT_VALUE);
Dbattery_notify_test.cpp55 const int32_t totalEnergy = 50; in SetUp() local
56 g_batteryInfo->SetTotalEnergy(totalEnergy); in SetUp()
/base/powermgr/battery_manager/services/native/src/
Dbattery_dump.cpp92 int32_t totalEnergy = service->GetTotalEnergy(); in GetBatteryInfo() local
93 dprintf(fd, "totalEnergy: %d \n", totalEnergy); in GetBatteryInfo()
Dbattery_service.cpp195 batteryInfo_.SetTotalEnergy(event.totalEnergy); in ConvertingEvent()
513 int32_t totalEnergy = -1; in GetTotalEnergy() local
520 BATTERY_HILOGD(FEATURE_BATT_INFO, "GetTotalEnergy totalEnergy: %{public}d", totalEnergy); in GetTotalEnergy()
521 return totalEnergy; in GetTotalEnergy()
523 iBatteryInterface_->GetTotalEnergy(totalEnergy); in GetTotalEnergy()
524 return totalEnergy; in GetTotalEnergy()
/base/powermgr/battery_manager/interfaces/innerkits/native/include/
Dbattery_info.h245 void SetTotalEnergy(const int32_t totalEnergy) in SetTotalEnergy() argument
247 totalEnergy_ = totalEnergy; in SetTotalEnergy()
/base/powermgr/battery_manager/services/zidl/src/
Dbattery_srv_proxy.cpp287 int32_t totalEnergy = INVALID_BATT_INT_VALUE; in GetTotalEnergy() local
288 READ_PARCEL_WITH_RET(reply, Int32, totalEnergy, INVALID_BATT_INT_VALUE); in GetTotalEnergy()
289 return totalEnergy; in GetTotalEnergy()
/base/powermgr/battery_manager/frameworks/js/napi/
Dbattery_info.cpp160 int32_t totalEnergy = (int32_t)g_battClient.GetTotalEnergy(); in GetTotalEnergy() local
162 NAPI_CALL(env, napi_create_int32(env, totalEnergy, &napiValue)); in GetTotalEnergy()
164 BATTERY_HILOGD(FEATURE_BATT_INFO, "totalEnergy %{public}d", totalEnergy); in GetTotalEnergy()