/frameworks/native/cmds/bugreport/ |
D | bugreport.cpp | 75 ssize_t bytes_read = TEMP_FAILURE_RETRY(read(s, buffer, sizeof(buffer))); in main() local 76 if (bytes_read == 0) { in main() 78 } else if (bytes_read == -1) { in main() 87 ssize_t bytes_to_send = bytes_read; in main() 91 buffer + bytes_read - bytes_to_send, in main() 95 bytes_read, bytes_to_send, strerror(errno)); in main()
|
/frameworks/ex/framesequence/jni/ |
D | Stream.cpp | 61 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/ |
D | bugreportz.cpp | 49 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/ |
D | DumpstateInternal.cpp | 180 ssize_t bytes_read = TEMP_FAILURE_RETRY(read(fd, buffer, sizeof(buffer))); in DumpFileFromFdToFd() local 181 if (bytes_read > 0) { in DumpFileFromFdToFd() 182 android::base::WriteFully(out_fd, buffer, bytes_read); in DumpFileFromFdToFd() 183 newline = (buffer[bytes_read - 1] == '\n'); in DumpFileFromFdToFd() 185 if (bytes_read == -1) { in DumpFileFromFdToFd()
|
D | dumpstate.cpp | 788 ssize_t bytes_read = TEMP_FAILURE_RETRY(read(fd, buffer.data(), buffer.size())); in AddZipEntryFromFd() local 789 if (bytes_read == 0) { in AddZipEntryFromFd() 791 } else if (bytes_read == -1) { in AddZipEntryFromFd() 795 err = zip_writer_->WriteBytes(buffer.data(), bytes_read); in AddZipEntryFromFd() 2063 ssize_t bytes_read = TEMP_FAILURE_RETRY(read(fd.get(), buffer.data(), buffer.size())); in SHA256_file_hash() local 2064 if (bytes_read == 0) { in SHA256_file_hash() 2066 } else if (bytes_read == -1) { in SHA256_file_hash() 2071 SHA256_Update(&ctx, buffer.data(), bytes_read); in SHA256_file_hash() 3479 ssize_t bytes_read = TEMP_FAILURE_RETRY(read(fd, buffer, sizeof(buffer))); in read_file_as_long() local 3480 if (bytes_read == -1) { in read_file_as_long() [all …]
|
/frameworks/base/tools/aapt2/compile/ |
D | PngChunkFilter.cpp | 85 const size_t bytes_read = window_end_ - window_start_; in ConsumeWindow() local 87 *len = bytes_read; in ConsumeWindow()
|
D | PngCrunch.cpp | 103 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/av/media/libmedia/ |
D | MediaProfiles.cpp | 948 int bytes_read = ::fread(buff, 1, BUFF_SIZE, fp); in createInstanceFromXmlFile() local 949 if (bytes_read < 0) { in createInstanceFromXmlFile() 956 CHECK(::XML_ParseBuffer(parser, bytes_read, bytes_read == 0)); in createInstanceFromXmlFile() 958 if (bytes_read == 0) break; // done parsing the xml file in createInstanceFromXmlFile()
|
/frameworks/native/cmds/atrace/ |
D | atrace.cpp | 911 ssize_t bytes_read = read(traceFD, trace_data, 4096); in streamTrace() local 912 if (bytes_read > 0) { in streamTrace() 913 write(STDOUT_FILENO, trace_data, bytes_read); in streamTrace() 918 bytes_read, errno, strerror(errno)); in streamTrace()
|
/frameworks/av/media/libstagefright/xmlparser/ |
D | MediaCodecsXmlParser.cpp | 534 int bytes_read = ::fread(buff, 1, BUFF_SIZE, file); in parseXmlFile() local 535 if (bytes_read < 0) { in parseXmlFile() 541 XML_Status status = ::XML_ParseBuffer(mParser.get(), bytes_read, bytes_read == 0); in parseXmlFile() 548 if (bytes_read == 0) { in parseXmlFile()
|
/frameworks/native/cmds/installd/ |
D | dexopt.cpp | 2497 ssize_t bytes_read = TEMP_FAILURE_RETRY(read(fd, buffer.data(), buffer.size())); in hash_secondary_dex_file() local 2498 if (bytes_read == 0) { in hash_secondary_dex_file() 2500 } else if (bytes_read == -1) { in hash_secondary_dex_file() 2505 SHA256_Update(&ctx, buffer.data(), bytes_read); in hash_secondary_dex_file()
|