Lines Matching refs:bytes_read
144 ssize_t bytes_read = TEMP_FAILURE_RETRY(read(fd, buffer, sizeof(buffer))); in zipFilesToFd() local
145 if (bytes_read == 0) { in zipFilesToFd()
148 if (bytes_read == -1) { in zipFilesToFd()
157 error = writer->WriteBytes(buffer, bytes_read); in zipFilesToFd()
178 ssize_t bytes_read = TEMP_FAILURE_RETRY(read(fd_in, buffer, buffer_len)); in copyTo() local
179 if (bytes_read == 0) { in copyTo()
182 if (bytes_read == -1) { in copyTo()
192 if (!android::base::WriteFully(fd_out, buffer, bytes_read)) { in copyTo()
196 return bytes_read; in copyTo()
248 ssize_t bytes_read = copyTo(s, progress_socket, buffer, sizeof(buffer)); in doBugreport() local
249 if (bytes_read == 0) { in doBugreport()
252 if (bytes_read == -1) { in doBugreport()
257 for (int i = 0; i < bytes_read; i++) { in doBugreport()
266 *out_bytes_written += bytes_read; in doBugreport()