Lines Matching defs:powerUevent
173 std::string powerUevent;
174 if (!MatchPowerUevent(msg, powerUevent)) {
177 BATTERY_HILOGD(FEATURE_BATT_INFO, "PowerUevent msg:%{public}s", powerUevent.c_str());
178 UpdateBatteryInfo(service, powerUevent);
181 void BatteryThread::UpdateBatteryInfo(void* service, const std::string& powerUevent)
205 event.uevent = powerUevent;
221 bool BatteryThread::MatchPowerUevent(const char* msg, std::string& powerUevent)
225 powerUevent = POWER_SUPPLY;
228 if (CheckPowerUevent(msg, powerUevent)) {
237 bool BatteryThread::CheckPowerUevent(const char* msg, std::string& powerUevent)
245 powerUevent = msg;
246 powerUevent += "$" + uevent.second;