Searched refs:bytes_read (Results 1 - 8 of 8) 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.cpp99 ssize_t bytes_read = TEMP_FAILURE_RETRY( local
101 if (bytes_read == 0) {
103 } else if (bytes_read == -1) {
112 ssize_t bytes_to_send = bytes_read;
116 write(STDOUT_FILENO, buffer + bytes_read - bytes_to_send,
121 bytes_read, bytes_to_send, strerror(errno));
/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/native/cmds/dumpstate/
H A Dutils.cpp448 ssize_t bytes_read = TEMP_FAILURE_RETRY(read(fd, buffer, sizeof(buffer))); local
449 if (bytes_read > 0) {
450 fwrite(buffer, bytes_read, 1, stdout);
451 newline = (buffer[bytes_read-1] == '\n');
453 if (bytes_read == -1) {
490 ssize_t bytes_read = TEMP_FAILURE_RETRY(read(fd, buffer, sizeof(buffer))); local
491 if (bytes_read == -1) {
495 if (bytes_read == 0) {
1257 ssize_t bytes_read; local
1277 bytes_read
[all...]
H A Ddumpstate.cpp551 ssize_t bytes_read = TEMP_FAILURE_RETRY(read(fd, buffer.data(), sizeof(buffer))); local
552 if (bytes_read == 0) {
554 } else if (bytes_read == -1) {
558 err = zip_writer->WriteBytes(buffer.data(), bytes_read);
1011 ssize_t bytes_read = TEMP_FAILURE_RETRY(read(fd.get(), buffer.data(), buffer.size())); local
1012 if (bytes_read == 0) {
1014 } else if (bytes_read == -1) {
1019 SHA256_update(&ctx, buffer.data(), bytes_read);
/frameworks/av/media/libmedia/
H A DMediaProfiles.cpp875 int bytes_read = ::fread(buff, 1, BUFF_SIZE, fp); local
876 if (bytes_read < 0) {
883 CHECK(::XML_ParseBuffer(parser, bytes_read, bytes_read == 0));
885 if (bytes_read == 0) break; // done parsing the xml file
/frameworks/av/media/libstagefright/
H A DMediaCodecList.cpp350 int bytes_read = ::fread(buff, 1, BUFF_SIZE, file); local
351 if (bytes_read < 0) {
357 XML_Status status = ::XML_ParseBuffer(parser, bytes_read, bytes_read == 0);
364 if (bytes_read == 0) {
/frameworks/native/cmds/atrace/
H A Datrace.cpp828 ssize_t bytes_read = read(traceFD, trace_data, 4096); local
829 if (bytes_read > 0) {
830 write(STDOUT_FILENO, trace_data, bytes_read);
835 bytes_read, errno, strerror(errno));

Completed in 121 milliseconds