Searched refs:remainEnergy (Results 1 – 9 of 9) sorted by relevance
/base/powermgr/battery_manager/test/unittest/src/ |
D | battery_info_test.cpp | 49 const int32_t remainEnergy = 100; variable 50 g_infoTest->SetRemainEnergy(remainEnergy); 51 EXPECT_EQ(g_infoTest->GetRemainEnergy(), remainEnergy);
|
D | battery_srv_proxy_mock_test.cpp | 173 int32_t remainEnergy = g_proxy->GetRemainEnergy(); variable 174 EXPECT_TRUE(remainEnergy == INVALID_BATT_INT_VALUE);
|
D | battery_notify_test.cpp | 59 const int32_t remainEnergy = 30; in SetUp() local 60 g_batteryInfo->SetRemainEnergy(remainEnergy); in SetUp()
|
/base/powermgr/battery_manager/frameworks/native/src/ |
D | battery_srv_client.cpp | 161 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/ |
D | battery_dump.cpp | 87 int32_t remainEnergy = service->GetRemainEnergy(); in GetBatteryInfo() local 88 dprintf(fd, "remainingEnergy: %d \n", remainEnergy); in GetBatteryInfo()
|
D | battery_service.cpp | 202 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/ |
D | battery_info.h | 294 void SetRemainEnergy(const int32_t remainEnergy) in SetRemainEnergy() argument 296 remainEnergy_ = remainEnergy; in SetRemainEnergy()
|
/base/powermgr/battery_manager/services/zidl/src/ |
D | battery_srv_proxy.cpp | 374 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/ |
D | battery_info.cpp | 140 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()
|