Home
last modified time | relevance | path

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

/art/adbconnection/
Dadbconnection.cc727 uint32_t avail = -1; in HandleDataWithoutAgent() local
728 res = TEMP_FAILURE_RETRY(ioctl(adb_connection_socket_.get(), FIONREAD, &avail)); in HandleDataWithoutAgent()
733 } else if (avail < full_len) { in HandleDataWithoutAgent()
735 << "Expected " << full_len << " bytes but only " << avail << " are readable. " in HandleDataWithoutAgent()
788 uint32_t avail = -1; in PerformHandshake() local
789 int res = TEMP_FAILURE_RETRY(ioctl(adb_connection_socket_.get(), FIONREAD, &avail)); in PerformHandshake()
790 if (res < 0 || avail < sizeof(kJdwpHandshake)) { in PerformHandshake()
/art/dt_fd_forward/
Ddt_fd_forward.cc164 int avail; in ReadUpToMax() local
165 int res = TEMP_FAILURE_RETRY(ioctl(read_fd_, FIONREAD, &avail)); in ReadUpToMax()
170 size_t to_read = std::min(static_cast<size_t>(avail), ndata); in ReadUpToMax()