Home
last modified time | relevance | path

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

/base/powermgr/battery_manager/services/native/src/
Dbattery_notify.cpp138 ….SetParam(BatteryInfo::COMMON_EVENT_KEY_CHARGE_STATE, static_cast<int32_t>(info.GetChargeState())); in PublishChangedEvent()
298 if (info.GetChargeState() != BatteryChargeState::CHARGE_STATE_ENABLE) { in PublishChargingEvent()
313 data.SetCode(static_cast<int32_t>(info.GetChargeState())); in PublishChargingEvent()
315 static_cast<uint32_t>(info.GetChargeState())); in PublishChargingEvent()
329 if (info.GetChargeState() == BatteryChargeState::CHARGE_STATE_ENABLE) { in PublishDischargingEvent()
344 data.SetCode(static_cast<int32_t>(info.GetChargeState())); in PublishDischargingEvent()
346 static_cast<uint32_t>(info.GetChargeState())); in PublishDischargingEvent()
Dbattery_service.cpp217 …ryInfo_.GetPluggedMaxCurrent(), batteryInfo_.GetPluggedMaxVoltage(), batteryInfo_.GetChargeState(), in HandleBatteryInfo()
222 batteryLight_.UpdateColor(batteryInfo_.GetChargeState(), batteryInfo_.GetCapacity()); in HandleBatteryInfo()
224 CalculateRemainingChargeTime(batteryInfo_.GetCapacity(), batteryInfo_.GetChargeState()); in HandleBatteryInfo()
228 HandleCapacity(batteryInfo_.GetCapacity(), batteryInfo_.GetChargeState()); in HandleBatteryInfo()
395 return batteryInfo_.GetChargeState(); in GetChargingStatus()
403 iBatteryInterface_->GetChargeState(chargeState); in GetChargingStatus()
/base/powermgr/thermal_manager/test/unittest/include/
Dthermal_action_report_test.h41 static std::string GetChargeState();
/base/powermgr/battery_manager/interfaces/inner_api/native/include/
Dbattery_info.h349 BatteryChargeState GetChargeState() const in GetChargeState() function
409 (chargeState_ == info.GetChargeState()) &&
/base/powermgr/thermal_manager/test/unittest/src/
Dthermal_action_report_test.cpp206 std::string ThermalActionReportTest::GetChargeState() in GetChargeState() function in ThermalActionReportTest
229 state = GetChargeState(); in GetStateMap()