Home
last modified time | relevance | path

Searched refs:PowerSupplyProvider (Results 1 – 6 of 6) sorted by relevance

/base/powermgr/battery_manager/charger/src/
Dpower_supply_provider.cpp48 PowerSupplyProvider::PowerSupplyProvider() in PowerSupplyProvider() function in OHOS::PowerMgr::PowerSupplyProvider
54 inline int32_t PowerSupplyProvider::ParseInt(const char* str) in ParseInt()
59 inline void PowerSupplyProvider::Trim(char* str) in Trim()
68 int32_t PowerSupplyProvider::ChargeStateEnumConverter(const char* str) in ChargeStateEnumConverter()
88 void PowerSupplyProvider::FormatPath( in FormatPath()
104 void PowerSupplyProvider::FormatSysfsPaths() in FormatSysfsPaths()
115 int32_t PowerSupplyProvider::ReadSysfsFile(const char* path, char* buf, size_t size) const in ReadSysfsFile()
131 int32_t PowerSupplyProvider::ReadBatterySysfsToBuff(const char* path, char* buf, size_t size) const in ReadBatterySysfsToBuff()
142 void PowerSupplyProvider::CreateFile(const std::string& path, const std::string& content) in CreateFile()
157 void PowerSupplyProvider::InitBatteryPath() in InitBatteryPath()
[all …]
Dcharger_thread.cpp212 (chargeState_ == PowerSupplyProvider::CHARGE_STATE_DISABLE || in HandleCapacity()
213 chargeState_ == PowerSupplyProvider::CHARGE_STATE_NONE)) { in HandleCapacity()
222 if ((chargeState == PowerSupplyProvider::CHARGE_STATE_NONE) || in UpdateAnimation()
223 (chargeState == PowerSupplyProvider::CHARGE_STATE_RESERVED)) { in UpdateAnimation()
229 if (chargeState == PowerSupplyProvider::CHARGE_STATE_ENABLE) { // Charging state in UpdateAnimation()
234 } else if (chargeState == PowerSupplyProvider::CHARGE_STATE_DISABLE) { // Not charging state in UpdateAnimation()
242 } else if (chargeState == PowerSupplyProvider::CHARGE_STATE_ENABLE || in UpdateAnimation()
243 chargeState == PowerSupplyProvider::CHARGE_STATE_FULL) { // Charging state in UpdateAnimation()
267 if ((chargeState_ == PowerSupplyProvider::CHARGE_STATE_NONE) || in HandleChargingState()
268 (chargeState_ == PowerSupplyProvider::CHARGE_STATE_RESERVED)) { in HandleChargingState()
[all …]
Dbattery_thread.cpp88 if ((chargeState != PowerSupplyProvider::CHARGE_STATE_NONE) && in UpdateEpollInterval()
89 (chargeState != PowerSupplyProvider::CHARGE_STATE_RESERVED)) { in UpdateEpollInterval()
116 provider_ = std::make_unique<PowerSupplyProvider>(); in Init()
/base/powermgr/battery_manager/charger/include/
Dpower_supply_provider.h29 class PowerSupplyProvider {
40 PowerSupplyProvider();
41 virtual ~PowerSupplyProvider() = default;
Dcharger_thread.h69 std::unique_ptr<PowerSupplyProvider> provider_ = nullptr;
79 int32_t chargeState_ = PowerSupplyProvider::BatteryChargeState::CHARGE_STATE_RESERVED;
Dbattery_thread.h60 std::unique_ptr<PowerSupplyProvider> provider_ = nullptr;