/base/powermgr/battery_manager/test/unittest/src/ |
D | battery_notify_test.cpp | 43 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;
|
D | battery_srv_proxy_mock_test.cpp | 87 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…
|
D | battery_service_test.cpp | 293 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/ |
D | battery_info.h | 75 } BatteryHealthState; typedef 102 BatteryHealthState GetHealthStatus(void);
|
/base/powermgr/battery_lite/services/include/ |
D | ibattery.h | 42 BatteryHealthState healthStatus; 48 BatteryHealthState (*GetHealthStatus)();
|
D | battery_device.h | 50 BatteryHealthState (*GetHealthStatus)(void);
|
D | battery_manage_feature.h | 47 BatteryHealthState HealthStatusImpl(IUnknown *iUnknown);
|
/base/powermgr/battery_manager/interfaces/inner_api/native/include/ |
D | battery_info.h | 63 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;
|
D | ibattery_srv.h | 30 virtual BatteryHealthState GetHealthStatus() = 0;
|
D | battery_srv_client.h | 46 BatteryHealthState GetHealthStatus();
|
/base/powermgr/battery_manager/test/systemtest/src/ |
D | battery_sttest.cpp | 276 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/ |
D | battery_srv_proxy.cpp | 78 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/ |
D | battery_impl.h | 29 BatteryHealthState GetHealthStatusImpl(void);
|
/base/powermgr/battery_lite/frameworks/js/builtin/src/ |
D | battery_impl.c | 29 BatteryHealthState GetHealthStatusImpl(void) in GetHealthStatusImpl()
|
/base/powermgr/battery_lite/frameworks/native/include/ |
D | batterymgr_intf_define.h | 29 BatteryHealthState (*GetHealthStatusFunc)(IUnknown *iUnknown); \
|
/base/powermgr/battery_manager/frameworks/native/src/ |
D | battery_srv_client.cpp | 103 BatteryHealthState BatterySrvClient::GetHealthStatus() in GetHealthStatus() 105 BatteryHealthState healthStatus = BatteryHealthState::HEALTH_STATE_BUTT; in GetHealthStatus()
|
/base/powermgr/battery_lite/frameworks/native/src/mini/ |
D | battery_framework.c | 67 BatteryHealthState GetHealthStatus(void) in GetHealthStatus() 69 BatteryHealthState state = HEALTH_STATE_UNKNOWN; in GetHealthStatus()
|
/base/powermgr/battery_lite/services/src/ |
D | battery_manage_feature.c | 67 BatteryHealthState HealthStatusImpl(IUnknown *iUnknown) in HealthStatusImpl() 69 BatteryHealthState healthState = HEALTH_STATE_BUTT; in HealthStatusImpl()
|
/base/powermgr/battery_manager/services/zidl/include/ |
D | battery_srv_proxy.h | 41 virtual BatteryHealthState GetHealthStatus() override;
|
/base/powermgr/battery_manager/frameworks/native/test/unittest/src/ |
D | battery_client_test.cpp | 71 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/ |
D | battery_info.cpp | 214 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/ |
D | battery_framework.c | 79 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/ |
D | battery_benchmark_test.cpp | 84 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/ |
D | batterymgr_interfaces_test.cpp | 67 BatteryHealthState status = GetHealthStatus();
|
/base/powermgr/battery_manager/services/native/src/ |
D | battery_service.cpp | 198 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()
|