/base/powermgr/thermal_manager/services/native/src/thermal_observer/state_machine/ |
D | charger_state_collection.cpp | 106 case static_cast<int32_t>(BatteryChargeState::CHARGE_STATE_DISABLE): { in HandleChangerStatusCompleted() 110 case static_cast<int32_t>(BatteryChargeState::CHARGE_STATE_ENABLE): { in HandleChangerStatusCompleted() 114 case static_cast<int32_t>(BatteryChargeState::CHARGE_STATE_FULL): { in HandleChangerStatusCompleted() 118 case static_cast<int32_t>(BatteryChargeState::CHARGE_STATE_NONE): { in HandleChangerStatusCompleted() 122 case static_cast<int>(BatteryChargeState::CHARGE_STATE_BUTT): { in HandleChangerStatusCompleted() 139 BatteryChargeState chargeState = batterySrvClient.GetChargingStatus(); in DecideState() 140 if ((value == CHARGER_ON && chargeState == BatteryChargeState::CHARGE_STATE_ENABLE) || in DecideState() 141 (value == CHARGER_OFF && chargeState == BatteryChargeState::CHARGE_STATE_NONE)) { in DecideState()
|
/base/powermgr/battery_manager/test/unittest/src/ |
D | battery_light_test.cpp | 81 g_light.UpdateColor(BatteryChargeState::CHARGE_STATE_ENABLE, capacity); 83 EXPECT_TRUE(g_light.UpdateColor(BatteryChargeState::CHARGE_STATE_ENABLE, capacity)); 111 EXPECT_TRUE(g_light.UpdateColor(BatteryChargeState::CHARGE_STATE_ENABLE, 11)); 115 EXPECT_FALSE(g_light.UpdateColor(BatteryChargeState::CHARGE_STATE_NONE, 0)); 130 EXPECT_TRUE(g_light.UpdateColor(BatteryChargeState::CHARGE_STATE_ENABLE, 9)); 145 EXPECT_TRUE(g_light.UpdateColor(BatteryChargeState::CHARGE_STATE_ENABLE, 89)); 160 EXPECT_TRUE(g_light.UpdateColor(BatteryChargeState::CHARGE_STATE_ENABLE, 100)); 176 EXPECT_TRUE(g_light.UpdateColor(BatteryChargeState::CHARGE_STATE_ENABLE, 91)); 181 EXPECT_FALSE(g_light.UpdateColor(BatteryChargeState::CHARGE_STATE_ENABLE, -1));
|
D | battery_notify_test.cpp | 51 const BatteryChargeState chargeState = BatteryChargeState::CHARGE_STATE_NONE; in SetUp() 250 const BatteryChargeState chargeState = BatteryChargeState::CHARGE_STATE_ENABLE; 264 const BatteryChargeState chargeState = BatteryChargeState::CHARGE_STATE_DISABLE; 278 const BatteryChargeState chargeState = BatteryChargeState::CHARGE_STATE_FULL; 292 const BatteryChargeState chargeState = BatteryChargeState::CHARGE_STATE_BUTT; 321 const BatteryChargeState chargeState = BatteryChargeState::CHARGE_STATE_ENABLE;
|
D | battery_srv_proxy_mock_test.cpp | 74 BatteryChargeState chargeState = g_proxy->GetChargingStatus(); 75 EXPECT_TRUE(chargeState >= BatteryChargeState::CHARGE_STATE_NONE && 76 …chargeState <= BatteryChargeState::CHARGE_STATE_BUTT); // the enum value range of BatteryChargeSta…
|
D | battery_service_test.cpp | 308 BatteryChargeState chargeState = g_service->GetChargingStatus(); 310 …chargeState >= BatteryChargeState::CHARGE_STATE_NONE && chargeState <= BatteryChargeState::CHARGE_… 415 g_service->CalculateRemainingChargeTime(101, BatteryChargeState::CHARGE_STATE_DISABLE); 420 g_service->CalculateRemainingChargeTime(30, BatteryChargeState::CHARGE_STATE_ENABLE); 425 g_service->CalculateRemainingChargeTime(51, BatteryChargeState::CHARGE_STATE_ENABLE);
|
/base/powermgr/battery_lite/interfaces/kits/ |
D | battery_info.h | 44 } BatteryChargeState; typedef 101 BatteryChargeState GetChargingStatus(void);
|
/base/powermgr/battery_lite/services/include/ |
D | ibattery.h | 36 BatteryChargeState chargingStatus; 47 BatteryChargeState (*GetChargingStatus)();
|
D | battery_device.h | 49 BatteryChargeState (*GetChargingStatus)(void);
|
/base/powermgr/battery_manager/services/native/include/ |
D | battery_service.h | 62 BatteryChargeState GetChargingStatus() override; 88 void WakeupDevice(BatteryChargeState chargeState); 93 void CalculateRemainingChargeTime(int32_t capacity, BatteryChargeState chargeState); 94 void HandleCapacity(int32_t capacity, BatteryChargeState chargeState);
|
D | battery_light.h | 31 bool UpdateColor(BatteryChargeState chargeState, int32_t capacity);
|
/base/powermgr/battery_manager/test/systemtest/src/ |
D | battery_sttest.cpp | 106 EXPECT_TRUE(chargeState == OHOS::PowerMgr::BatteryChargeState::CHARGE_STATE_NONE); 116 EXPECT_TRUE(chargeState == OHOS::PowerMgr::BatteryChargeState::CHARGE_STATE_ENABLE || 117 chargeState == OHOS::PowerMgr::BatteryChargeState::CHARGE_STATE_FULL); 140 EXPECT_TRUE(chargeState == OHOS::PowerMgr::BatteryChargeState::CHARGE_STATE_ENABLE); 150 EXPECT_TRUE(chargeState == OHOS::PowerMgr::BatteryChargeState::CHARGE_STATE_ENABLE || 151 chargeState == OHOS::PowerMgr::BatteryChargeState::CHARGE_STATE_FULL); 174 EXPECT_TRUE(chargeState == OHOS::PowerMgr::BatteryChargeState::CHARGE_STATE_FULL); 184 EXPECT_TRUE(chargeState == OHOS::PowerMgr::BatteryChargeState::CHARGE_STATE_ENABLE || 185 chargeState == OHOS::PowerMgr::BatteryChargeState::CHARGE_STATE_FULL); 208 EXPECT_TRUE(chargeState == OHOS::PowerMgr::BatteryChargeState::CHARGE_STATE_DISABLE); [all …]
|
/base/powermgr/battery_manager/services/native/src/ |
D | battery_light.cpp | 88 bool BatteryLight::UpdateColor(BatteryChargeState chargeState, int32_t capacity) in UpdateColor() 90 if ((chargeState == BatteryChargeState::CHARGE_STATE_NONE) || in UpdateColor() 91 (chargeState == BatteryChargeState::CHARGE_STATE_BUTT)) { in UpdateColor()
|
D | battery_service.cpp | 194 batteryInfo_.SetChargeState(BatteryChargeState(event.chargeState)); in ConvertingEvent() 349 void BatteryService::HandleCapacity(int32_t capacity, BatteryChargeState chargeState) in HandleCapacity() 354 ((chargeState == BatteryChargeState::CHARGE_STATE_NONE) || in HandleCapacity() 355 (chargeState == BatteryChargeState::CHARGE_STATE_BUTT))) { in HandleCapacity() 391 BatteryChargeState BatteryService::GetChargingStatus() in GetChargingStatus() 398 V1_2::BatteryChargeState chargeState = V1_2::BatteryChargeState(0); in GetChargingStatus() 401 return BatteryChargeState(chargeState); in GetChargingStatus() 404 return BatteryChargeState(chargeState); in GetChargingStatus() 561 void BatteryService::CalculateRemainingChargeTime(int32_t capacity, BatteryChargeState chargeState) in CalculateRemainingChargeTime() 568 if (chargeState != BatteryChargeState::CHARGE_STATE_ENABLE) { in CalculateRemainingChargeTime() [all …]
|
/base/powermgr/battery_manager/interfaces/inner_api/native/include/ |
D | battery_info.h | 33 enum class BatteryChargeState : uint32_t { enum 269 void SetChargeState(const BatteryChargeState chargeState) in SetChargeState() 349 BatteryChargeState GetChargeState() const in GetChargeState() 452 BatteryChargeState chargeState_ = BatteryChargeState::CHARGE_STATE_BUTT;
|
D | ibattery_srv.h | 29 virtual BatteryChargeState GetChargingStatus() = 0;
|
D | battery_srv_client.h | 41 BatteryChargeState GetChargingStatus();
|
/base/powermgr/thermal_manager/test/unittest/src/ |
D | thermal_mock_action_test.cpp | 259 if (state == BatteryChargeState::CHARGE_STATE_ENABLE) { 261 } else if (state == BatteryChargeState::CHARGE_STATE_NONE) { 292 if (state == BatteryChargeState::CHARGE_STATE_ENABLE) { 294 } else if (state == BatteryChargeState::CHARGE_STATE_NONE) { 325 if (state == BatteryChargeState::CHARGE_STATE_ENABLE) { 327 } else if (state == BatteryChargeState::CHARGE_STATE_NONE) {
|
/base/powermgr/battery_manager/services/zidl/src/ |
D | battery_srv_proxy.cpp | 53 BatteryChargeState BatterySrvProxy::GetChargingStatus() in GetChargingStatus() 56 RETURN_IF_WITH_RET(remote == nullptr, BatteryChargeState::CHARGE_STATE_BUTT); in GetChargingStatus() 63 return BatteryChargeState::CHARGE_STATE_BUTT; in GetChargingStatus() 71 return BatteryChargeState::CHARGE_STATE_BUTT; in GetChargingStatus() 73 uint32_t chargingState = static_cast<uint32_t>(BatteryChargeState::CHARGE_STATE_BUTT); in GetChargingStatus() 74 READ_PARCEL_WITH_RET(reply, Uint32, chargingState, BatteryChargeState::CHARGE_STATE_BUTT); in GetChargingStatus() 75 return static_cast<BatteryChargeState>(chargingState); in GetChargingStatus()
|
/base/powermgr/battery_lite/frameworks/js/builtin/include/ |
D | battery_impl.h | 28 BatteryChargeState GetChargingStatusImpl(void);
|
/base/powermgr/battery_lite/frameworks/js/builtin/src/ |
D | battery_impl.c | 24 BatteryChargeState GetChargingStatusImpl(void) in GetChargingStatusImpl()
|
/base/powermgr/battery_manager/charger/src/ |
D | battery_led.cpp | 81 if ((chargeState == static_cast<int32_t>(BatteryChargeState::CHARGE_STATE_NONE)) || in UpdateColor() 82 … (chargeState == static_cast<int32_t>(BatteryChargeState::CHARGE_STATE_RESERVED)) || !available_) { in UpdateColor()
|
/base/powermgr/battery_lite/frameworks/native/include/ |
D | batterymgr_intf_define.h | 28 BatteryChargeState (*GetChargingStatusFunc)(IUnknown *iUnknown); \
|
/base/powermgr/battery_manager/frameworks/native/src/ |
D | battery_srv_client.cpp | 95 BatteryChargeState BatterySrvClient::GetChargingStatus() in GetChargingStatus() 97 BatteryChargeState chargingState = BatteryChargeState::CHARGE_STATE_BUTT; in GetChargingStatus()
|
/base/powermgr/battery_lite/services/src/ |
D | battery_manage_feature.c | 57 BatteryChargeState ChargingStatusImpl(IUnknown *iUnknown) in ChargingStatusImpl() 59 BatteryChargeState chargingstate = CHARGE_STATE_BUTT; in ChargingStatusImpl()
|
/base/powermgr/battery_lite/frameworks/native/src/mini/ |
D | battery_framework.c | 57 BatteryChargeState GetChargingStatus(void) in GetChargingStatus() 59 BatteryChargeState state = CHARGE_STATE_NONE; in GetChargingStatus()
|