Home
last modified time | relevance | path

Searched refs:avail (Results 1 – 2 of 2) sorted by relevance

/art/adbconnection/
Dadbconnection.cc688 uint32_t avail = -1; in HandleDataWithoutAgent() local
689 res = TEMP_FAILURE_RETRY(ioctl(adb_connection_socket_.get(), FIONREAD, &avail)); in HandleDataWithoutAgent()
694 } else if (avail < full_len) { in HandleDataWithoutAgent()
696 << "Expected " << full_len << " bytes but only " << avail << " are readable. " in HandleDataWithoutAgent()
749 uint32_t avail = -1; in PerformHandshake() local
750 int res = TEMP_FAILURE_RETRY(ioctl(adb_connection_socket_.get(), FIONREAD, &avail)); in PerformHandshake()
751 if (res < 0 || avail < sizeof(kJdwpHandshake)) { in PerformHandshake()
/art/dt_fd_forward/
Ddt_fd_forward.cc175 int avail; in ReadUpToMax() local
176 int res = TEMP_FAILURE_RETRY(ioctl(read_fd_, FIONREAD, &avail)); in ReadUpToMax()
181 size_t to_read = std::min(static_cast<size_t>(avail), ndata); in ReadUpToMax()