Searched refs:healthState (Results 1 – 10 of 10) sorted by relevance
/base/powermgr/battery_manager/test/systemtest/src/ |
D | battery_sttest.cpp | 279 auto healthState = BatterySrvClient.GetHealthStatus(); variable 280 … GTEST_LOG_(INFO) << "BatteryST007 executing, healthState=" << static_cast<int32_t>(healthState); 282 ASSERT_TRUE(healthState == OHOS::PowerMgr::BatteryHealthState::HEALTH_STATE_GOOD); 287 auto healthState = BatterySrvClient.GetHealthStatus(); variable 289 static_cast<int32_t>(healthState)); 291 << static_cast<int32_t>(healthState); 292 ASSERT_TRUE(healthState == OHOS::PowerMgr::BatteryHealthState::HEALTH_STATE_GOOD); 311 auto healthState = BatterySrvClient.GetHealthStatus(); variable 312 … GTEST_LOG_(INFO) << "BatteryST008 executing, healthState=" << static_cast<int32_t>(healthState); 314 ASSERT_TRUE(healthState == OHOS::PowerMgr::BatteryHealthState::HEALTH_STATE_COLD); [all …]
|
/base/powermgr/battery_manager/services/native/test/unittest/src/ |
D | battery_notify_test.cpp | 43 const BatteryHealthState healthState = BatteryHealthState::HEALTH_STATE_UNKNOWN; in SetUp() local 44 g_batteryInfo->SetHealthState(healthState); in SetUp() 96 const BatteryHealthState healthState = BatteryHealthState::HEALTH_STATE_GOOD; variable 97 g_batteryInfo->SetHealthState(healthState); 110 const BatteryHealthState healthState = BatteryHealthState::HEALTH_STATE_OVERHEAT; variable 111 g_batteryInfo->SetHealthState(healthState); 124 const BatteryHealthState healthState = BatteryHealthState::HEALTH_STATE_OVERVOLTAGE; variable 125 g_batteryInfo->SetHealthState(healthState); 138 const BatteryHealthState healthState = BatteryHealthState::HEALTH_STATE_COLD; variable 139 g_batteryInfo->SetHealthState(healthState); [all …]
|
D | battery_srv_proxy_mock_test.cpp | 87 BatteryHealthState healthState = g_proxy->GetHealthStatus(); variable 88 EXPECT_TRUE(healthState >= BatteryHealthState::HEALTH_STATE_UNKNOWN && 89 …healthState <= BatteryHealthState::HEALTH_STATE_BUTT); // the enum value range of BatteryHealthSta…
|
D | battery_service_test.cpp | 274 BatteryHealthState healthState = g_service->GetHealthStatus(); variable 275 EXPECT_TRUE(healthState >= BatteryHealthState::HEALTH_STATE_UNKNOWN && 276 healthState <= BatteryHealthState::HEALTH_STATE_BUTT);
|
/base/powermgr/battery_lite/services/src/ |
D | battery_manage_feature.c | 69 BatteryHealthState healthState = HEALTH_STATE_BUTT; in HealthStatusImpl() local 72 return healthState; in HealthStatusImpl() 74 healthState = g_batteryDevice->GetHealthStatus(); in HealthStatusImpl() 75 return healthState; in HealthStatusImpl()
|
/base/powermgr/battery_manager/frameworks/native/test/unittest/src/ |
D | battery_client_test.cpp | 138 auto healthState = BatterySrvClient.GetHealthStatus(); variable 140 static_cast<int32_t>(healthState)); 142 << static_cast<int32_t>(healthState); 143 ASSERT_TRUE(healthState == OHOS::PowerMgr::BatteryHealthState::HEALTH_STATE_COLD); 148 auto healthState = BatterySrvClient.GetHealthStatus(); variable 150 static_cast<int32_t>(healthState)); 152 << static_cast<int32_t>(healthState); 153 ASSERT_TRUE(healthState == OHOS::PowerMgr::BatteryHealthState::HEALTH_STATE_GOOD);
|
/base/powermgr/battery_manager/services/native/src/ |
D | battery_dump.cpp | 78 BatteryHealthState healthState = service->GetHealthStatus(); in GetBatteryInfo() local 79 dprintf(fd, "healthState: %u \n", healthState); in GetBatteryInfo()
|
D | battery_service.cpp | 189 batteryInfo_.SetHealthState(BatteryHealthState(event.healthState)); in ConvertingEvent() 439 V1_1::BatteryHealthState healthState = V1_1::BatteryHealthState(0); in GetHealthStatus() local 443 return BatteryHealthState(healthState); in GetHealthStatus() 446 iBatteryInterface_->GetHealthState(healthState); in GetHealthStatus() 447 return BatteryHealthState(healthState); in GetHealthStatus()
|
/base/powermgr/battery_manager/frameworks/js/napi/ |
D | battery_info.cpp | 373 napi_value healthState = nullptr; in CreateEventBatteryChangedKey() local 383 …reate_string_utf8(env, BatteryInfo::COMMON_EVENT_KEY_HEALTH_STATE, NAPI_AUTO_LENGTH, &healthState); in CreateEventBatteryChangedKey() 394 DECLARE_NAPI_STATIC_PROPERTY("EXTRA_HEALTH_STATE", healthState), in CreateEventBatteryChangedKey() 417 napi_value healthState = nullptr; in CreateEventBatteryChangedCode() local 430 napi_create_int32(env, (int32_t)BatteryInfo::COMMON_EVENT_CODE_HEALTH_STATE, &healthState); in CreateEventBatteryChangedCode() 444 DECLARE_NAPI_STATIC_PROPERTY("EXTRA_HEALTH_STATE", healthState), in CreateEventBatteryChangedCode()
|
/base/powermgr/battery_manager/interfaces/innerkits/native/include/ |
D | battery_info.h | 215 void SetHealthState(const BatteryHealthState healthState) in SetHealthState() argument 217 healthState_ = healthState; in SetHealthState()
|