Home
last modified time | relevance | path

Searched refs:BatteryHealthState (Results 1 – 25 of 32) sorted by relevance

12

/base/powermgr/battery_manager/test/unittest/src/
Dbattery_notify_test.cpp43 const BatteryHealthState healthState = BatteryHealthState::HEALTH_STATE_UNKNOWN; in SetUp()
96 const BatteryHealthState healthState = BatteryHealthState::HEALTH_STATE_GOOD;
110 const BatteryHealthState healthState = BatteryHealthState::HEALTH_STATE_OVERHEAT;
124 const BatteryHealthState healthState = BatteryHealthState::HEALTH_STATE_OVERVOLTAGE;
138 const BatteryHealthState healthState = BatteryHealthState::HEALTH_STATE_COLD;
152 const BatteryHealthState healthState = BatteryHealthState::HEALTH_STATE_DEAD;
166 const BatteryHealthState healthState = BatteryHealthState::HEALTH_STATE_BUTT;
Dbattery_srv_proxy_mock_test.cpp87 BatteryHealthState healthState = g_proxy->GetHealthStatus();
88 EXPECT_TRUE(healthState >= BatteryHealthState::HEALTH_STATE_UNKNOWN &&
89 …healthState <= BatteryHealthState::HEALTH_STATE_BUTT); // the enum value range of BatteryHealthSta…
Dbattery_service_test.cpp293 BatteryHealthState healthState = g_service->GetHealthStatus();
294 EXPECT_TRUE(healthState >= BatteryHealthState::HEALTH_STATE_UNKNOWN &&
295 healthState <= BatteryHealthState::HEALTH_STATE_BUTT);
/base/powermgr/battery_lite/interfaces/kits/
Dbattery_info.h75 } BatteryHealthState; typedef
102 BatteryHealthState GetHealthStatus(void);
/base/powermgr/battery_lite/services/include/
Dibattery.h42 BatteryHealthState healthStatus;
48 BatteryHealthState (*GetHealthStatus)();
Dbattery_device.h50 BatteryHealthState (*GetHealthStatus)(void);
Dbattery_manage_feature.h47 BatteryHealthState HealthStatusImpl(IUnknown *iUnknown);
/base/powermgr/battery_manager/interfaces/inner_api/native/include/
Dbattery_info.h63 enum class BatteryHealthState : uint32_t { enum
249 void SetHealthState(const BatteryHealthState healthState) in SetHealthState()
329 BatteryHealthState GetHealthState() const in GetHealthState()
450 BatteryHealthState healthState_ = BatteryHealthState::HEALTH_STATE_BUTT;
Dibattery_srv.h30 virtual BatteryHealthState GetHealthStatus() = 0;
Dbattery_srv_client.h46 BatteryHealthState GetHealthStatus();
/base/powermgr/battery_manager/test/systemtest/src/
Dbattery_sttest.cpp276 EXPECT_TRUE(healthState == OHOS::PowerMgr::BatteryHealthState::HEALTH_STATE_GOOD);
286 EXPECT_TRUE(healthState == OHOS::PowerMgr::BatteryHealthState::HEALTH_STATE_GOOD);
309 EXPECT_TRUE(healthState == OHOS::PowerMgr::BatteryHealthState::HEALTH_STATE_COLD);
319 EXPECT_TRUE(healthState == OHOS::PowerMgr::BatteryHealthState::HEALTH_STATE_GOOD);
342 EXPECT_TRUE(healthState == OHOS::PowerMgr::BatteryHealthState::HEALTH_STATE_OVERHEAT);
352 EXPECT_TRUE(healthState == OHOS::PowerMgr::BatteryHealthState::HEALTH_STATE_GOOD);
375 EXPECT_TRUE(healthState == OHOS::PowerMgr::BatteryHealthState::HEALTH_STATE_OVERVOLTAGE);
385 EXPECT_TRUE(healthState == OHOS::PowerMgr::BatteryHealthState::HEALTH_STATE_GOOD);
408 EXPECT_TRUE(healthState == OHOS::PowerMgr::BatteryHealthState::HEALTH_STATE_DEAD);
418 EXPECT_TRUE(healthState == OHOS::PowerMgr::BatteryHealthState::HEALTH_STATE_GOOD);
[all …]
/base/powermgr/battery_manager/services/zidl/src/
Dbattery_srv_proxy.cpp78 BatteryHealthState BatterySrvProxy::GetHealthStatus() in GetHealthStatus()
81 RETURN_IF_WITH_RET(remote == nullptr, BatteryHealthState::HEALTH_STATE_BUTT); in GetHealthStatus()
88 return BatteryHealthState::HEALTH_STATE_BUTT; in GetHealthStatus()
96 return BatteryHealthState::HEALTH_STATE_BUTT; in GetHealthStatus()
98 uint32_t healthStatus = static_cast<uint32_t>(BatteryHealthState::HEALTH_STATE_BUTT); in GetHealthStatus()
99 READ_PARCEL_WITH_RET(reply, Uint32, healthStatus, BatteryHealthState::HEALTH_STATE_BUTT); in GetHealthStatus()
100 return static_cast<BatteryHealthState>(healthStatus); in GetHealthStatus()
/base/powermgr/battery_lite/frameworks/js/builtin/include/
Dbattery_impl.h29 BatteryHealthState GetHealthStatusImpl(void);
/base/powermgr/battery_lite/frameworks/js/builtin/src/
Dbattery_impl.c29 BatteryHealthState GetHealthStatusImpl(void) in GetHealthStatusImpl()
/base/powermgr/battery_lite/frameworks/native/include/
Dbatterymgr_intf_define.h29 BatteryHealthState (*GetHealthStatusFunc)(IUnknown *iUnknown); \
/base/powermgr/battery_manager/frameworks/native/src/
Dbattery_srv_client.cpp103 BatteryHealthState BatterySrvClient::GetHealthStatus() in GetHealthStatus()
105 BatteryHealthState healthStatus = BatteryHealthState::HEALTH_STATE_BUTT; in GetHealthStatus()
/base/powermgr/battery_lite/frameworks/native/src/mini/
Dbattery_framework.c67 BatteryHealthState GetHealthStatus(void) in GetHealthStatus()
69 BatteryHealthState state = HEALTH_STATE_UNKNOWN; in GetHealthStatus()
/base/powermgr/battery_lite/services/src/
Dbattery_manage_feature.c67 BatteryHealthState HealthStatusImpl(IUnknown *iUnknown) in HealthStatusImpl()
69 BatteryHealthState healthState = HEALTH_STATE_BUTT; in HealthStatusImpl()
/base/powermgr/battery_manager/services/zidl/include/
Dbattery_srv_proxy.h41 virtual BatteryHealthState GetHealthStatus() override;
/base/powermgr/battery_manager/frameworks/native/test/unittest/src/
Dbattery_client_test.cpp71 g_info.SetHealthState(BatteryHealthState::HEALTH_STATE_GOOD); in SetUp()
171 ASSERT_TRUE(healthState == OHOS::PowerMgr::BatteryHealthState::HEALTH_STATE_COLD);
181 ASSERT_TRUE(healthState == OHOS::PowerMgr::BatteryHealthState::HEALTH_STATE_GOOD);
613 info1.SetHealthState(BatteryHealthState::HEALTH_STATE_GOOD);
629 info2.SetHealthState(BatteryHealthState::HEALTH_STATE_GOOD);
679 info2.SetHealthState(BatteryHealthState::HEALTH_STATE_GOOD);
680 info1.SetHealthState(BatteryHealthState::HEALTH_STATE_DEAD);
/base/powermgr/battery_manager/frameworks/napi/
Dbattery_info.cpp214 napi_create_int32(env, (int32_t)BatteryHealthState::HEALTH_STATE_UNKNOWN, &unknown); in CreateEnumHealthState()
215 napi_create_int32(env, (int32_t)BatteryHealthState::HEALTH_STATE_GOOD, &good); in CreateEnumHealthState()
216 napi_create_int32(env, (int32_t)BatteryHealthState::HEALTH_STATE_OVERHEAT, &overheat); in CreateEnumHealthState()
217 napi_create_int32(env, (int32_t)BatteryHealthState::HEALTH_STATE_OVERVOLTAGE, &overvoltage); in CreateEnumHealthState()
218 napi_create_int32(env, (int32_t)BatteryHealthState::HEALTH_STATE_COLD, &cold); in CreateEnumHealthState()
219 napi_create_int32(env, (int32_t)BatteryHealthState::HEALTH_STATE_DEAD, &dead); in CreateEnumHealthState()
/base/powermgr/battery_lite/frameworks/native/src/small/
Dbattery_framework.c79 static BatteryHealthState GetHealthStatusProxy(IUnknown *iUnknown) in GetHealthStatusProxy()
264 BatteryHealthState GetHealthStatus(void) in GetHealthStatus()
266 BatteryHealthState state = HEALTH_STATE_UNKNOWN; in GetHealthStatus()
/base/powermgr/battery_manager/test/benchmarktest/
Dbattery_benchmark_test.cpp84 ASSERT_TRUE(healthStatus >= BatteryHealthState::HEALTH_STATE_UNKNOWN && in BENCHMARK_F()
85 healthStatus < BatteryHealthState::HEALTH_STATE_BUTT); in BENCHMARK_F()
/base/powermgr/battery_lite/test/Interface_test/test/unittest/src/
Dbatterymgr_interfaces_test.cpp67 BatteryHealthState status = GetHealthStatus();
/base/powermgr/battery_manager/services/native/src/
Dbattery_service.cpp198 batteryInfo_.SetHealthState(BatteryHealthState(event.healthState)); in ConvertingEvent()
407 BatteryHealthState BatteryService::GetHealthStatus() in GetHealthStatus()
411 V1_2::BatteryHealthState healthState = V1_2::BatteryHealthState(0); in GetHealthStatus()
414 return BatteryHealthState(healthState); in GetHealthStatus()
418 return BatteryHealthState(healthState); in GetHealthStatus()

12