Home
last modified time | relevance | path

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

/base/powermgr/battery_manager/test/unittest/src/
Dbattery_info_test.cpp49 const int32_t remainEnergy = 100; variable
50 g_infoTest->SetRemainEnergy(remainEnergy);
51 EXPECT_EQ(g_infoTest->GetRemainEnergy(), remainEnergy);
Dbattery_srv_proxy_mock_test.cpp173 int32_t remainEnergy = g_proxy->GetRemainEnergy(); variable
174 EXPECT_TRUE(remainEnergy == INVALID_BATT_INT_VALUE);
Dbattery_notify_test.cpp59 const int32_t remainEnergy = 30; in SetUp() local
60 g_batteryInfo->SetRemainEnergy(remainEnergy); in SetUp()
/base/powermgr/battery_manager/frameworks/native/src/
Dbattery_srv_client.cpp161 int32_t remainEnergy = INVALID_BATT_INT_VALUE; in GetRemainEnergy() local
162 RETURN_IF_WITH_RET(Connect() != ERR_OK, remainEnergy); in GetRemainEnergy()
163 remainEnergy = proxy_->GetRemainEnergy(); in GetRemainEnergy()
164 return remainEnergy; in GetRemainEnergy()
/base/powermgr/battery_manager/services/native/src/
Dbattery_dump.cpp87 int32_t remainEnergy = service->GetRemainEnergy(); in GetBatteryInfo() local
88 dprintf(fd, "remainingEnergy: %d \n", remainEnergy); in GetBatteryInfo()
Dbattery_service.cpp202 batteryInfo_.SetRemainEnergy(event.remainEnergy); in ConvertingEvent()
534 int32_t remainEnergy = INVALID_BATT_INT_VALUE; in GetRemainEnergy() local
536 BATTERY_HILOGD(FEATURE_BATT_INFO, "GetRemainEnergy remainEnergy: %{public}d", remainEnergy); in GetRemainEnergy()
537 return remainEnergy; in GetRemainEnergy()
544 iBatteryInterface_->GetRemainEnergy(remainEnergy); in GetRemainEnergy()
545 return remainEnergy; in GetRemainEnergy()
/base/powermgr/battery_manager/interfaces/inner_api/native/include/
Dbattery_info.h294 void SetRemainEnergy(const int32_t remainEnergy) in SetRemainEnergy() argument
296 remainEnergy_ = remainEnergy; in SetRemainEnergy()
/base/powermgr/battery_manager/services/zidl/src/
Dbattery_srv_proxy.cpp374 int32_t remainEnergy = INVALID_BATT_INT_VALUE; in GetRemainEnergy() local
375 READ_PARCEL_WITH_RET(reply, Int32, remainEnergy, INVALID_BATT_INT_VALUE); in GetRemainEnergy()
376 return remainEnergy; in GetRemainEnergy()
/base/powermgr/battery_manager/frameworks/napi/
Dbattery_info.cpp140 int32_t remainEnergy = g_battClient.GetRemainEnergy(); in GetBatteryRemainEnergy() local
142 NAPI_CALL(env, napi_create_int32(env, remainEnergy, &napiValue)); in GetBatteryRemainEnergy()
144 BATTERY_HILOGD(FEATURE_BATT_INFO, "remainEnergy %{public}d", remainEnergy); in GetBatteryRemainEnergy()