Searched defs:bytes_read (Results 1 - 12 of 12) sorted by relevance

/frameworks/native/cmds/bugreport/
H A Dbugreport.cpp67 ssize_t bytes_read = TEMP_FAILURE_RETRY(read(s, buffer, sizeof(buffer))); local
68 if (bytes_read == 0) {
70 } else if (bytes_read == -1) {
79 ssize_t bytes_to_send = bytes_read;
83 buffer + bytes_read - bytes_to_send,
87 bytes_read, bytes_to_send, strerror(errno));
/frameworks/native/cmds/bugreportz/
H A Dbugreportz.cpp49 ssize_t bytes_read = TEMP_FAILURE_RETRY(read(s, buffer, sizeof(buffer))); local
50 if (bytes_read == 0) {
52 } else if (bytes_read == -1) {
62 for (int i = 0; i < bytes_read; i++) {
/frameworks/ex/framesequence/jni/
H A DStream.cpp61 size_t bytes_read = 0; local
64 bytes_read = min(size, peek_remaining);
65 memcpy(buffer, mPeekBuffer + mPeekOffset, bytes_read);
66 mPeekOffset += bytes_read;
73 size -= bytes_read;
74 buffer = ((char*) buffer) + bytes_read;
77 bytes_read += doRead(buffer, size);
79 return bytes_read;
/frameworks/base/tools/aapt2/compile/
H A DPngChunkFilter.cpp85 const size_t bytes_read = window_end_ - window_start_; local
87 *len = bytes_read;
H A DPngCrunch.cpp101 const size_t bytes_read = std::min(in_len, len); local
102 memcpy(buffer, in_buffer, bytes_read);
103 if (bytes_read != in_len) {
104 in->BackUp(in_len - bytes_read);
/frameworks/native/cmds/dumpstate/
H A DDumpstateInternal.cpp174 ssize_t bytes_read = TEMP_FAILURE_RETRY(read(fd, buffer, sizeof(buffer))); local
175 if (bytes_read > 0) {
176 android::base::WriteFully(out_fd, buffer, bytes_read);
177 newline = (buffer[bytes_read - 1] == '\n');
179 if (bytes_read == -1) {
H A Ddumpstate.cpp787 ssize_t bytes_read = TEMP_FAILURE_RETRY(read(fd, buffer.data(), buffer.size())); local
788 if (bytes_read == 0) {
790 } else if (bytes_read == -1) {
794 err = zip_writer_->WriteBytes(buffer.data(), bytes_read);
1770 ssize_t bytes_read = TEMP_FAILURE_RETRY(read(fd.get(), buffer.data(), buffer.size())); local
1771 if (bytes_read == 0) {
1773 } else if (bytes_read == -1) {
1778 SHA256_Update(&ctx, buffer.data(), bytes_read);
H A Dutils.cpp577 ssize_t bytes_read = TEMP_FAILURE_RETRY(read(fd, buffer, sizeof(buffer))); local
578 if (bytes_read == -1) {
582 if (bytes_read == 0) {
/frameworks/av/media/libstagefright/xmlparser/
H A DMediaCodecsXmlParser.cpp192 int bytes_read = ::fread(buff, 1, BUFF_SIZE, file); local
193 if (bytes_read < 0) {
199 XML_Status status = ::XML_ParseBuffer(parser, bytes_read, bytes_read == 0);
206 if (bytes_read == 0) {
/frameworks/av/media/libmedia/
H A DMediaProfiles.cpp888 int bytes_read = ::fread(buff, 1, BUFF_SIZE, fp); local
889 if (bytes_read < 0) {
896 CHECK(::XML_ParseBuffer(parser, bytes_read, bytes_read == 0));
898 if (bytes_read == 0) break; // done parsing the xml file
/frameworks/native/cmds/atrace/
H A Datrace.cpp929 ssize_t bytes_read = read(traceFD, trace_data, 4096); local
930 if (bytes_read > 0) {
931 write(STDOUT_FILENO, trace_data, bytes_read);
936 bytes_read, errno, strerror(errno));
/frameworks/native/cmds/installd/
H A Ddexopt.cpp2336 ssize_t bytes_read = TEMP_FAILURE_RETRY(read(fd, buffer.data(), buffer.size())); local
2337 if (bytes_read == 0) {
2339 } else if (bytes_read == -1) {
2344 SHA256_Update(&ctx, buffer.data(), bytes_read);

Completed in 1506 milliseconds