/frameworks/native/cmds/bugreport/ |
D | bugreport.cpp | 67 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/ |
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/opt/gamesdk/third_party/protobuf-3.0.0/conformance/ |
D | conformance_cpp.cc | 67 ssize_t bytes_read = read(fd, (char*)buf + ofs, len); in CheckedRead() local 69 if (bytes_read == 0) return false; in CheckedRead() 71 if (bytes_read < 0) { in CheckedRead() 75 len -= bytes_read; in CheckedRead() 76 ofs += bytes_read; in CheckedRead()
|
D | conformance_test_runner.cc | 206 ssize_t bytes_read = read(fd, (char*)buf + ofs, len); in TryRead() local 208 if (bytes_read == 0) { in TryRead() 212 } else if (bytes_read < 0) { in TryRead() 219 len -= bytes_read; in TryRead() 220 ofs += bytes_read; in TryRead()
|
/frameworks/native/cmds/dumpstate/ |
D | DumpstateInternal.cpp | 174 ssize_t bytes_read = TEMP_FAILURE_RETRY(read(fd, buffer, sizeof(buffer))); in DumpFileFromFdToFd() local 175 if (bytes_read > 0) { in DumpFileFromFdToFd() 176 android::base::WriteFully(out_fd, buffer, bytes_read); in DumpFileFromFdToFd() 177 newline = (buffer[bytes_read - 1] == '\n'); in DumpFileFromFdToFd() 179 if (bytes_read == -1) { in DumpFileFromFdToFd()
|
D | dumpstate.cpp | 862 ssize_t bytes_read = TEMP_FAILURE_RETRY(read(fd, buffer.data(), buffer.size())); in AddZipEntryFromFd() local 863 if (bytes_read == 0) { in AddZipEntryFromFd() 865 } else if (bytes_read == -1) { in AddZipEntryFromFd() 869 err = zip_writer_->WriteBytes(buffer.data(), bytes_read); in AddZipEntryFromFd() 1992 ssize_t bytes_read = TEMP_FAILURE_RETRY(read(fd.get(), buffer.data(), buffer.size())); in SHA256_file_hash() local 1993 if (bytes_read == 0) { in SHA256_file_hash() 1995 } else if (bytes_read == -1) { in SHA256_file_hash() 2000 SHA256_Update(&ctx, buffer.data(), bytes_read); in SHA256_file_hash()
|
D | utils.cpp | 597 ssize_t bytes_read = TEMP_FAILURE_RETRY(read(fd, buffer, sizeof(buffer))); in read_file_as_long() local 598 if (bytes_read == -1) { in read_file_as_long() 602 if (bytes_read == 0) { in read_file_as_long()
|
/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 | 902 int bytes_read = ::fread(buff, 1, BUFF_SIZE, fp); in createInstanceFromXmlFile() local 903 if (bytes_read < 0) { in createInstanceFromXmlFile() 910 CHECK(::XML_ParseBuffer(parser, bytes_read, bytes_read == 0)); in createInstanceFromXmlFile() 912 if (bytes_read == 0) break; // done parsing the xml file in createInstanceFromXmlFile()
|
/frameworks/native/cmds/atrace/ |
D | atrace.cpp | 982 ssize_t bytes_read = read(traceFD, trace_data, 4096); in streamTrace() local 983 if (bytes_read > 0) { in streamTrace() 984 write(STDOUT_FILENO, trace_data, bytes_read); in streamTrace() 989 bytes_read, errno, strerror(errno)); in streamTrace()
|
/frameworks/av/media/libstagefright/xmlparser/ |
D | MediaCodecsXmlParser.cpp | 518 int bytes_read = ::fread(buff, 1, BUFF_SIZE, file); in parseXmlFile() local 519 if (bytes_read < 0) { in parseXmlFile() 525 XML_Status status = ::XML_ParseBuffer(mParser.get(), bytes_read, bytes_read == 0); in parseXmlFile() 532 if (bytes_read == 0) { in parseXmlFile()
|
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/python/google/protobuf/internal/ |
D | reflection_test.py | 1718 bytes_read = raw.MergeFromString(serialized) 1719 self.assertEqual(len(serialized), bytes_read) 1729 bytes_read = message2.MergeFromString(raw.item[0].message) 1730 self.assertEqual(len(raw.item[0].message), bytes_read) 1770 bytes_read = proto.optional_nested_message.MergeFromString(b'') 1771 self.assertEqual(0, bytes_read) 2622 bytes_read = second_proto.MergeFromString(serialized) 2623 self.assertEqual(second_proto.ByteSize(), bytes_read) 2631 bytes_read = second_proto.MergeFromString(serialized) 2632 self.assertEqual(second_proto.ByteSize(), bytes_read)
|
/frameworks/native/cmds/installd/ |
D | dexopt.cpp | 2409 ssize_t bytes_read = TEMP_FAILURE_RETRY(read(fd, buffer.data(), buffer.size())); in hash_secondary_dex_file() local 2410 if (bytes_read == 0) { in hash_secondary_dex_file() 2412 } else if (bytes_read == -1) { in hash_secondary_dex_file() 2417 SHA256_Update(&ctx, buffer.data(), bytes_read); in hash_secondary_dex_file()
|