Home
last modified time | relevance | path

Searched refs:bytes_read (Results 1 – 11 of 11) sorted by relevance

/frameworks/native/cmds/bugreport/
Dbugreport.cpp67 ssize_t bytes_read = TEMP_FAILURE_RETRY(read(s, buffer, sizeof(buffer))); in main() local
68 if (bytes_read == 0) { in main()
70 } else if (bytes_read == -1) { in main()
79 ssize_t bytes_to_send = bytes_read; in main()
83 buffer + bytes_read - bytes_to_send, in main()
87 bytes_read, bytes_to_send, strerror(errno)); in main()
/frameworks/ex/framesequence/jni/
DStream.cpp61 size_t bytes_read = 0; in read() local
64 bytes_read = min(size, peek_remaining); in read()
65 memcpy(buffer, mPeekBuffer + mPeekOffset, bytes_read); in read()
66 mPeekOffset += bytes_read; in read()
73 size -= bytes_read; in read()
74 buffer = ((char*) buffer) + bytes_read; in read()
77 bytes_read += doRead(buffer, size); in read()
79 return bytes_read; in read()
/frameworks/native/cmds/bugreportz/
Dbugreportz.cpp49 ssize_t bytes_read = TEMP_FAILURE_RETRY(read(s, buffer, sizeof(buffer))); in bugreportz() local
50 if (bytes_read == 0) { in bugreportz()
52 } else if (bytes_read == -1) { in bugreportz()
62 for (int i = 0; i < bytes_read; i++) { in bugreportz()
/frameworks/native/cmds/dumpstate/
DDumpstateInternal.cpp165 ssize_t bytes_read = TEMP_FAILURE_RETRY(read(fd, buffer, sizeof(buffer))); in DumpFileFromFdToFd() local
166 if (bytes_read > 0) { in DumpFileFromFdToFd()
167 android::base::WriteFully(out_fd, buffer, bytes_read); in DumpFileFromFdToFd()
168 newline = (buffer[bytes_read - 1] == '\n'); in DumpFileFromFdToFd()
170 if (bytes_read == -1) { in DumpFileFromFdToFd()
Ddumpstate.cpp722 ssize_t bytes_read = TEMP_FAILURE_RETRY(read(fd, buffer.data(), buffer.size())); in AddZipEntryFromFd() local
723 if (bytes_read == 0) { in AddZipEntryFromFd()
725 } else if (bytes_read == -1) { in AddZipEntryFromFd()
729 err = zip_writer_->WriteBytes(buffer.data(), bytes_read); in AddZipEntryFromFd()
1454 ssize_t bytes_read = TEMP_FAILURE_RETRY(read(fd.get(), buffer.data(), buffer.size())); in SHA256_file_hash() local
1455 if (bytes_read == 0) { in SHA256_file_hash()
1457 } else if (bytes_read == -1) { in SHA256_file_hash()
1462 SHA256_Update(&ctx, buffer.data(), bytes_read); in SHA256_file_hash()
Dutils.cpp605 ssize_t bytes_read = TEMP_FAILURE_RETRY(read(fd, buffer, sizeof(buffer))); in read_file_as_long() local
606 if (bytes_read == -1) { in read_file_as_long()
610 if (bytes_read == 0) { in read_file_as_long()
/frameworks/base/tools/aapt2/compile/
DPngChunkFilter.cpp85 const size_t bytes_read = window_end_ - window_start_; in ConsumeWindow() local
87 *len = bytes_read; in ConsumeWindow()
DPngCrunch.cpp101 const size_t bytes_read = std::min(in_len, len); in ReadDataFromStream() local
102 memcpy(buffer, in_buffer, bytes_read); in ReadDataFromStream()
103 if (bytes_read != in_len) { in ReadDataFromStream()
104 in->BackUp(in_len - bytes_read); in ReadDataFromStream()
/frameworks/av/media/libstagefright/xmlparser/
DMediaCodecsXmlParser.cpp192 int bytes_read = ::fread(buff, 1, BUFF_SIZE, file); in parseXMLFile() local
193 if (bytes_read < 0) { in parseXMLFile()
199 XML_Status status = ::XML_ParseBuffer(parser, bytes_read, bytes_read == 0); in parseXMLFile()
206 if (bytes_read == 0) { in parseXMLFile()
/frameworks/native/cmds/atrace/
Datrace.cpp897 ssize_t bytes_read = read(traceFD, trace_data, 4096); in streamTrace() local
898 if (bytes_read > 0) { in streamTrace()
899 write(STDOUT_FILENO, trace_data, bytes_read); in streamTrace()
904 bytes_read, errno, strerror(errno)); in streamTrace()
/frameworks/av/media/libmedia/
DMediaProfiles.cpp888 int bytes_read = ::fread(buff, 1, BUFF_SIZE, fp); in createInstanceFromXmlFile() local
889 if (bytes_read < 0) { in createInstanceFromXmlFile()
896 CHECK(::XML_ParseBuffer(parser, bytes_read, bytes_read == 0)); in createInstanceFromXmlFile()
898 if (bytes_read == 0) break; // done parsing the xml file in createInstanceFromXmlFile()