Lines Matching refs:res

410   ssize_t res = TEMP_FAILURE_RETRY(writev(adb_connection_socket_, iovs, kIovSize));  in SendDdmPacket()  local
411 if (static_cast<size_t>(res) != (kDdmPacketHeaderSize + data.size())) { in SendDdmPacket()
417 res, data.size() + kDdmPacketHeaderSize); in SendDdmPacket()
465 int res = TEMP_FAILURE_RETRY(sendmsg(local_agent_control_sock_, &msg, MSG_EOR)); in SendAgentFds() local
466 if (res < 0) { in SendAgentFds()
554 int res = TEMP_FAILURE_RETRY(poll(pollfds, 4, -1)); in RunPollLoop() local
555 if (res < 0) { in RunPollLoop()
568 res = TEMP_FAILURE_RETRY(recv(local_agent_control_sock_, buf, sizeof(buf) - 1, 0)); in RunPollLoop()
569 if (res < 0) { in RunPollLoop()
573 buf[res + 1] = '\0'; in RunPollLoop()
657 uint32_t res; in ReadUint32AndAdvance() local
658 memcpy(&res, *in, sizeof(uint32_t)); in ReadUint32AndAdvance()
660 return ntohl(res); in ReadUint32AndAdvance()
676 ssize_t res = TEMP_FAILURE_RETRY(recv(adb_connection_socket_.get(), in HandleDataWithoutAgent() local
682 if (res <= 0) { in HandleDataWithoutAgent()
684 if (res < 0) { in HandleDataWithoutAgent()
689 } else if (res < static_cast<int>(kPacketHeaderLen)) { in HandleDataWithoutAgent()
690 LOG(ERROR) << "Unable to peek into adb socket. Loading agent to handle this. Only read " << res; in HandleDataWithoutAgent()
706 res = TEMP_FAILURE_RETRY(ioctl(adb_connection_socket_.get(), FIONREAD, &avail)); in HandleDataWithoutAgent()
707 if (res < 0) { in HandleDataWithoutAgent()
721 res = TEMP_FAILURE_RETRY(recv(adb_connection_socket_.get(), full_pkt.data(), full_len, 0)); in HandleDataWithoutAgent()
722 if (res < 0) { in HandleDataWithoutAgent()
767 int res = TEMP_FAILURE_RETRY(ioctl(adb_connection_socket_.get(), FIONREAD, &avail)); in PerformHandshake() local
768 if (res < 0 || avail < sizeof(kJdwpHandshake)) { in PerformHandshake()
769 if (res < 0) { in PerformHandshake()
778 res = TEMP_FAILURE_RETRY(recv(adb_connection_socket_.get(), in PerformHandshake()
782 if (res < static_cast<int>(sizeof(kJdwpHandshake)) || in PerformHandshake()
784 if (res < 0) { in PerformHandshake()
792 res = TEMP_FAILURE_RETRY(send(adb_connection_socket_.get(), in PerformHandshake()
796 if (res < static_cast<int>(sizeof(kJdwpHandshake))) { in PerformHandshake()
825 bool res = true; in ValidateJdwpOptions() local
830 res = false; in ValidateJdwpOptions()
836 res = false; in ValidateJdwpOptions()
839 return res; in ValidateJdwpOptions()