Lines Matching defs:msg
140 char msg[UEVENT_MSG_LEN + UEVENT_RESERVED_SIZE] = { 0 };
142 ssize_t len = recv(ueventFd_, msg, UEVENT_MSG_LEN, 0);
144 BATTERY_HILOGI(FEATURE_CHARGING, "recv return msg is invalid, len: %{public}zd", len);
148 // msg separator
149 msg[len] = '\0';
150 msg[len + 1] = '\0';
151 if (!IsPowerSupplyEvent(msg)) {
159 bool BatteryThread::IsPowerSupplyEvent(const char* msg)
161 while (*msg) {
162 if (!strcmp(msg, POWER_SUPPLY.c_str())) {
165 while (*msg++) {} // move to next