Lines Matching refs:bytes_read
143 ssize_t bytes_read = TEMP_FAILURE_RETRY(read(fd, buffer, sizeof(buffer))); in zipFilesToFd() local
144 if (bytes_read == 0) { in zipFilesToFd()
147 if (bytes_read == -1) { in zipFilesToFd()
156 error = writer->WriteBytes(buffer, bytes_read); in zipFilesToFd()
177 ssize_t bytes_read = TEMP_FAILURE_RETRY(read(fd_in, buffer, buffer_len)); in copyTo() local
178 if (bytes_read == 0) { in copyTo()
181 if (bytes_read == -1) { in copyTo()
191 if (!android::base::WriteFully(fd_out, buffer, bytes_read)) { in copyTo()
195 return bytes_read; in copyTo()
247 ssize_t bytes_read = copyTo(s, progress_socket, buffer, sizeof(buffer)); in doBugreport() local
248 if (bytes_read == 0) { in doBugreport()
251 if (bytes_read == -1) { in doBugreport()
256 for (int i = 0; i < bytes_read; i++) { in doBugreport()
265 *out_bytes_written += bytes_read; in doBugreport()