Lines Matching refs:message
216 const std::vector<uint8_t>& message) { in WriteEvent() argument
219 LOGD("Writing %zu bytes", message.size()); in WriteEvent()
220 LOGD_BUF(message.data(), message.size()); in WriteEvent()
221 int ret = write(sensor_fd_, message.data(), message.size()); in WriteEvent()
223 LOGE("Couldn't write %zu bytes to device file: %s", message.size(), in WriteEvent()
226 } else if (ret != (int) message.size()) { in WriteEvent()
227 LOGW("Write returned %d, expected %zu", ret, message.size()); in WriteEvent()
238 std::vector<uint8_t>& message, int timeout_ms) { in ReadEvent() argument
270 result = ReadEventFromFd(read_fd, message); in ReadEvent()
362 int fd, std::vector<uint8_t>& message) { in ReadEventFromFd() argument
367 message.resize(message.capacity()); in ReadEventFromFd()
370 int ret = read(fd, message.data(), message.capacity()); in ReadEventFromFd()
381 message.resize(ret); in ReadEventFromFd()
382 LOGD_VEC(message); in ReadEventFromFd()