Lines Matching refs:BatteryThread
41 BatteryThread::~BatteryThread()
50 void BatteryThread::InitCallback(const sptr<IBatteryCallback>& callback)
55 int32_t BatteryThread::OpenUeventSocket()
86 int32_t BatteryThread::RegisterCallback(int32_t fd, EventType et)
104 void BatteryThread::UpdateEpollInterval(const int32_t chargeState)
114 int32_t BatteryThread::InitUevent()
127 callbacks_.insert(std::make_pair(ueventFd_, &BatteryThread::UeventCallback));
136 int32_t BatteryThread::Init([[maybe_unused]] void* service)
155 int32_t BatteryThread::UpdateWaitInterval()
160 void BatteryThread::UeventCallback(void* service)
181 void BatteryThread::UpdateBatteryInfo(void* service, const std::string& powerUevent)
221 bool BatteryThread::MatchPowerUevent(const char* msg, std::string& powerUevent)
237 bool BatteryThread::CheckPowerUevent(const char* msg, std::string& powerUevent)
254 void BatteryThread::LoopingThreadEntry(void* arg)
280 auto* func = const_cast<BatteryThread*>(this);
287 void BatteryThread::StartThread(void* service)
293 void BatteryThread::Run(void* service)