Searched refs:PowerSupplyProvider (Results 1 – 6 of 6) sorted by relevance
48 PowerSupplyProvider::PowerSupplyProvider() in PowerSupplyProvider() function in OHOS::PowerMgr::PowerSupplyProvider54 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 …]
212 (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 …]
88 if ((chargeState != PowerSupplyProvider::CHARGE_STATE_NONE) && in UpdateEpollInterval()89 (chargeState != PowerSupplyProvider::CHARGE_STATE_RESERVED)) { in UpdateEpollInterval()116 provider_ = std::make_unique<PowerSupplyProvider>(); in Init()
29 class PowerSupplyProvider {40 PowerSupplyProvider();41 virtual ~PowerSupplyProvider() = default;
69 std::unique_ptr<PowerSupplyProvider> provider_ = nullptr;79 int32_t chargeState_ = PowerSupplyProvider::BatteryChargeState::CHARGE_STATE_RESERVED;
60 std::unique_ptr<PowerSupplyProvider> provider_ = nullptr;