Home
last modified time | relevance | path

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

/frameworks/native/cmds/bugreportz/
Dbugreportz.cpp48 ssize_t bytes_read = TEMP_FAILURE_RETRY(read(s, buffer, sizeof(buffer))); in bugreportz() local
49 if (bytes_read == 0) { in bugreportz()
51 } else if (bytes_read == -1) { in bugreportz()
61 for (int i = 0; i < bytes_read; i++) { in bugreportz()
78 ssize_t bytes_read = TEMP_FAILURE_RETRY(read(s, buffer, sizeof(buffer))); in bugreportz_stream() local
79 if (bytes_read == 0) { in bugreportz_stream()
81 } else if (bytes_read == -1) { in bugreportz_stream()
91 bytes_read)) { in bugreportz_stream()
92 printf("Failed to write data to stdout: trying to send %zd bytes (%s)\n", bytes_read, in bugreportz_stream()
/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/dumpstate/
DDumpstateInternal.cpp179 ssize_t bytes_read = TEMP_FAILURE_RETRY(read(fd, buffer, sizeof(buffer))); in DumpFileFromFdToFd() local
180 if (bytes_read > 0) { in DumpFileFromFdToFd()
181 android::base::WriteFully(out_fd, buffer, bytes_read); in DumpFileFromFdToFd()
182 newline = (buffer[bytes_read - 1] == '\n'); in DumpFileFromFdToFd()
184 if (bytes_read == -1) { in DumpFileFromFdToFd()
Ddumpstate.cpp876 ssize_t bytes_read = TEMP_FAILURE_RETRY(read(fd, buffer.data(), buffer.size())); in AddZipEntryFromFd() local
877 if (bytes_read == 0) { in AddZipEntryFromFd()
879 } else if (bytes_read == -1) { in AddZipEntryFromFd()
883 err = zip_writer_->WriteBytes(buffer.data(), bytes_read); in AddZipEntryFromFd()
3891 ssize_t bytes_read = TEMP_FAILURE_RETRY(read(fd, buffer, sizeof(buffer))); in read_file_as_long() local
3892 if (bytes_read == -1) { in read_file_as_long()
3896 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.cpp103 const size_t bytes_read = std::min(in_len, len); in ReadDataFromStream() local
104 memcpy(buffer, in_buffer, bytes_read); in ReadDataFromStream()
105 if (bytes_read != in_len) { in ReadDataFromStream()
106 in->BackUp(in_len - bytes_read); in ReadDataFromStream()
/frameworks/native/cmds/atrace/
Datrace.cpp912 ssize_t bytes_read = read(traceFD, trace_data, 4096); in streamTrace() local
913 if (bytes_read > 0) { in streamTrace()
914 write(STDOUT_FILENO, trace_data, bytes_read); in streamTrace()
919 bytes_read, errno, strerror(errno)); in streamTrace()
/frameworks/av/media/libmedia/
DMediaProfiles.cpp1248 int bytes_read = ::fread(buff, 1, BUFF_SIZE, fp); in createInstanceFromXmlFile() local
1249 if (bytes_read < 0) { in createInstanceFromXmlFile()
1256 CHECK(::XML_ParseBuffer(parser, bytes_read, bytes_read == 0)); in createInstanceFromXmlFile()
1258 if (bytes_read == 0) break; // done parsing the xml file in createInstanceFromXmlFile()
/frameworks/av/media/libstagefright/xmlparser/
DMediaCodecsXmlParser.cpp539 int bytes_read = ::fread(buff, 1, BUFF_SIZE, file); in parseXmlFile() local
540 if (bytes_read < 0) { in parseXmlFile()
546 XML_Status status = ::XML_ParseBuffer(mParser.get(), bytes_read, bytes_read == 0); in parseXmlFile()
553 if (bytes_read == 0) { in parseXmlFile()
/frameworks/native/cmds/installd/
Ddexopt.cpp2263 ssize_t bytes_read = TEMP_FAILURE_RETRY(read(fd, buffer.data(), buffer.size())); in hash_secondary_dex_file() local
2264 if (bytes_read == 0) { in hash_secondary_dex_file()
2266 } else if (bytes_read == -1) { in hash_secondary_dex_file()
2272 SHA256_Update(&ctx, buffer.data(), bytes_read); in hash_secondary_dex_file()