Home
last modified time | relevance | path

Searched refs:GetChargeState (Results 1 - 5 of 5) sorted by relevance

/base/powermgr/battery_manager/services/native/src/
H A Dbattery_notify.cpp191 want.SetParam(BatteryInfo::COMMON_EVENT_KEY_CHARGE_STATE, static_cast<int32_t>(info.GetChargeState())); in PublishChangedEvent()
383 if ((info.GetChargeState() != BatteryChargeState::CHARGE_STATE_ENABLE) && in PublishChargingEvent()
384 (info.GetChargeState() != BatteryChargeState::CHARGE_STATE_FULL)) { in PublishChargingEvent()
399 data.SetCode(static_cast<int32_t>(info.GetChargeState())); in PublishChargingEvent()
401 static_cast<uint32_t>(info.GetChargeState())); in PublishChargingEvent()
415 if ((info.GetChargeState() == BatteryChargeState::CHARGE_STATE_ENABLE) || in PublishDischargingEvent()
416 (info.GetChargeState() == BatteryChargeState::CHARGE_STATE_FULL)) { in PublishDischargingEvent()
431 data.SetCode(static_cast<int32_t>(info.GetChargeState())); in PublishDischargingEvent()
433 static_cast<uint32_t>(info.GetChargeState())); in PublishDischargingEvent()
H A Dbattery_service.cpp289 batteryInfo_.GetChargeState(), batteryInfo_.GetChargeCounter(), batteryInfo_.IsPresent(), in HandleBatteryInfo()
294 batteryLight_.UpdateColor(batteryInfo_.GetChargeState(), batteryInfo_.GetCapacity()); in HandleBatteryInfo()
296 CalculateRemainingChargeTime(batteryInfo_.GetCapacity(), batteryInfo_.GetChargeState()); in HandleBatteryInfo()
300 HandleCapacity(batteryInfo_.GetCapacity(), batteryInfo_.GetChargeState(), batteryInfo_.IsPresent()); in HandleBatteryInfo()
569 return batteryInfo_.GetChargeState(); in GetChargingStatus()
577 iBatteryInterface_->GetChargeState(chargeState); in GetChargingStatus()
/base/powermgr/thermal_manager/test/unittest/include/
H A Dthermal_action_report_test.h41 static std::string GetChargeState();
/base/powermgr/battery_manager/interfaces/inner_api/native/include/
H A Dbattery_info.h354 BatteryChargeState GetChargeState() const in GetChargeState() function in OHOS::PowerMgr::BatteryInfo
419 (chargeState_ == info.GetChargeState()) && in operator ==()
/base/powermgr/thermal_manager/test/unittest/src/
H A Dthermal_action_report_test.cpp216 std::string ThermalActionReportTest::GetChargeState() in GetChargeState() function in ThermalActionReportTest
241 state = GetChargeState(); in GetStateMap()

Completed in 5 milliseconds