| /external/libaom/libaom/common/ |
| D | obudec.c | 71 ObuHeader *obu_header, size_t *bytes_read) { in obudec_read_obu_header() argument 73 !obu_data || !obu_header || !bytes_read) { in obudec_read_obu_header() 76 *bytes_read = fread(obu_data, 1, 1, f); in obudec_read_obu_header() 78 if (feof(f) && *bytes_read == 0) { in obudec_read_obu_header() 80 } else if (*bytes_read != 1) { in obudec_read_obu_header() 91 ++*bytes_read; in obudec_read_obu_header() 96 obu_data, *bytes_read, &obu_bytes_parsed, obu_header, is_annexb); in obudec_read_obu_header() 97 if (parse_result != AOM_CODEC_OK || *bytes_read != obu_bytes_parsed) { in obudec_read_obu_header() 109 uint8_t *obu_data, size_t *bytes_read) { in obudec_read_obu_payload() argument 110 if (!f || payload_length == 0 || !obu_data || !bytes_read) return -1; in obudec_read_obu_payload() [all …]
|
| /external/sfntly/cpp/src/sfntly/data/ |
| D | byte_array.cc | 113 int32_t bytes_read = 0; in CopyTo() local 117 while ((bytes_read = in CopyTo() 119 int bytes_written = array->Put(index + dst_offset, &(b[0]), 0, bytes_read); in CopyTo() 121 index += bytes_read; in CopyTo() 122 remaining_length -= bytes_read; in CopyTo() 134 int32_t bytes_read = 0; in CopyTo() local 137 while ((bytes_read = Get(index + offset, &(b[0]), 0, buffer_length)) > 0) { in CopyTo() 138 os->Write(&b, 0, bytes_read); in CopyTo() 139 index += bytes_read; in CopyTo() 147 int32_t bytes_read = 0; in CopyFrom() local [all …]
|
| /external/bsdiff/ |
| D | extents_file_unittest.cc | 98 size_t bytes_read; in TEST_F() local 99 EXPECT_FALSE(file.Read(nullptr, 1, &bytes_read)); in TEST_F() 125 size_t bytes_read = 0; in TEST_F() local 126 EXPECT_TRUE(file.Read(buf, 100, &bytes_read)); in TEST_F() 127 EXPECT_EQ(15U, bytes_read); in TEST_F() 147 size_t bytes_read = 0; in TEST_F() local 148 EXPECT_TRUE(file.Read(buf, 2, &bytes_read)); in TEST_F() 149 EXPECT_EQ(2U, bytes_read); in TEST_F() 150 EXPECT_TRUE(file.Read(buf, 8, &bytes_read)); in TEST_F() 151 EXPECT_EQ(8U, bytes_read); in TEST_F() [all …]
|
| /external/openscreen/osp/msgs/ |
| D | messages_unittest.cc | 28 ssize_t bytes_read = DecodePresentationUrlAvailabilityRequest( in TEST() local 30 ASSERT_EQ(bytes_read, bytes_out); in TEST() 44 ssize_t bytes_read = DecodePresentationUrlAvailabilityRequest( in TEST() local 46 ASSERT_EQ(bytes_read, bytes_out); in TEST() 62 ssize_t bytes_read = DecodePresentationUrlAvailabilityRequest( in TEST() local 64 ASSERT_EQ(bytes_read, bytes_out); in TEST() 97 ssize_t bytes_read = DecodePresentationUrlAvailabilityRequest( in TEST() local 99 ASSERT_GT(0, bytes_read); in TEST() 114 ssize_t bytes_read = in TEST() local 116 ASSERT_EQ(bytes_read, bytes_out); in TEST() [all …]
|
| /external/ltp/testcases/kernel/fs/fs_di/ |
| D | frag.c | 48 int bytes_read = 0, bytes_written = 0, fd1 = -1, fd2 = -1; in main() local 78 bytes_read = fread(buff, 1, 1024, fp_data); in main() 79 if (bytes_read < 0) { in main() 84 bytes_written = fwrite(buff, 1, bytes_read, fp_frag1); in main() 85 if (bytes_read != bytes_written) { in main() 90 bytes_written = fwrite(buff, 1, bytes_read, fp_frag2); in main() 91 if (bytes_read != bytes_written) { in main() 104 if (bytes_read < 1024) in main()
|
| /external/cpuinfo/tools/ |
| D | cpuinfo-dump.c | 25 ssize_t bytes_read; in main() local 27 bytes_read = read(file, buffer, BUFFER_SIZE); in main() 28 if (bytes_read < 0) { in main() 34 position += (size_t) bytes_read; in main() 35 if (bytes_read > 0) { in main() 36 fwrite(buffer, 1, (size_t) bytes_read, stdout); in main() 38 } while (bytes_read != 0); in main()
|
| /external/e2fsprogs/resize/ |
| D | resource_track.c | 43 track->bytes_read = 0; in init_resource_track() 48 track->bytes_read = io_start->bytes_read; in init_resource_track() 105 unsigned long long bytes_read = 0; in print_resource_track() local 110 bytes_read = delta->bytes_read - track->bytes_read; in print_resource_track() 113 if (bytes_read == 0 && bytes_written == 0) in print_resource_track() 119 mbytes(bytes_read), in print_resource_track() 121 (double)mbytes(bytes_read + bytes_written) / in print_resource_track()
|
| /external/cpuinfo/src/linux/ |
| D | multiline.c | 41 ssize_t bytes_read; in cpuinfo_linux_parse_multiline_file() local 44 bytes_read = cpuinfo_mock_read(file, data_start, (size_t) (buffer_end - data_start)); in cpuinfo_linux_parse_multiline_file() 46 bytes_read = read(file, data_start, (size_t) (buffer_end - data_start)); in cpuinfo_linux_parse_multiline_file() 48 if (bytes_read < 0) { in cpuinfo_linux_parse_multiline_file() 54 position += (size_t) bytes_read; in cpuinfo_linux_parse_multiline_file() 55 const char* data_end = data_start + (size_t) bytes_read; in cpuinfo_linux_parse_multiline_file() 58 if (bytes_read == 0) { in cpuinfo_linux_parse_multiline_file() 91 } while (bytes_read != 0); in cpuinfo_linux_parse_multiline_file()
|
| D | smallfile.c | 40 ssize_t bytes_read; in cpuinfo_linux_parse_small_file() local 43 bytes_read = cpuinfo_mock_read(file, &buffer[buffer_position], buffer_size - buffer_position); in cpuinfo_linux_parse_small_file() 45 bytes_read = read(file, &buffer[buffer_position], buffer_size - buffer_position); in cpuinfo_linux_parse_small_file() 47 if (bytes_read < 0) { in cpuinfo_linux_parse_small_file() 51 buffer_position += (size_t) bytes_read; in cpuinfo_linux_parse_small_file() 56 } while (bytes_read != 0); in cpuinfo_linux_parse_small_file()
|
| D | cpulist.c | 154 ssize_t bytes_read; in cpuinfo_linux_parse_cpulist() local 157 bytes_read = cpuinfo_mock_read(file, data_start, (size_t) (buffer_end - data_start)); in cpuinfo_linux_parse_cpulist() 159 bytes_read = read(file, data_start, (size_t) (buffer_end - data_start)); in cpuinfo_linux_parse_cpulist() 161 if (bytes_read < 0) { in cpuinfo_linux_parse_cpulist() 167 position += (size_t) bytes_read; in cpuinfo_linux_parse_cpulist() 168 const char* data_end = data_start + (size_t) bytes_read; in cpuinfo_linux_parse_cpulist() 171 if (bytes_read == 0) { in cpuinfo_linux_parse_cpulist() 202 } while (bytes_read != 0); in cpuinfo_linux_parse_cpulist()
|
| /external/boringssl/src/tool/ |
| D | pkcs12.cc | 78 size_t bytes_read; in DoPKCS12() local 79 if (!ReadFromFD(fd.get(), &bytes_read, contents.get() + off, size - off)) { in DoPKCS12() 83 if (bytes_read == 0) { in DoPKCS12() 87 off += bytes_read; in DoPKCS12() 96 size_t bytes_read; in DoPKCS12() local 97 if (!ReadFromFD(0, &bytes_read, password + off, in DoPKCS12() 103 off += bytes_read; in DoPKCS12() 104 if (bytes_read == 0 || OPENSSL_memchr(password, '\n', off) != nullptr) { in DoPKCS12()
|
| /external/rust/crates/quiche/deps/boringssl/src/tool/ |
| D | pkcs12.cc | 78 size_t bytes_read; in DoPKCS12() local 79 if (!ReadFromFD(fd.get(), &bytes_read, contents.get() + off, size - off)) { in DoPKCS12() 83 if (bytes_read == 0) { in DoPKCS12() 87 off += bytes_read; in DoPKCS12() 96 size_t bytes_read; in DoPKCS12() local 97 if (!ReadFromFD(0, &bytes_read, password + off, in DoPKCS12() 103 off += bytes_read; in DoPKCS12() 104 if (bytes_read == 0 || OPENSSL_memchr(password, '\n', off) != nullptr) { in DoPKCS12()
|
| /external/grpc-grpc/src/cpp/ext/filters/census/ |
| D | rpc_encoding.h | 89 size_t bytes_read = in Decode() local 91 if (bytes_read == 0) { in Decode() 94 pos += bytes_read; in Decode() 132 size_t bytes_read = kFieldIdSize; in ParseField() local 135 bytes_read += kTraceIdSize; in ParseField() 136 if (bytes_read > buf.size()) { in ParseField() 143 bytes_read += kSpanIdSize; in ParseField() 144 if (bytes_read > buf.size()) { in ParseField() 151 bytes_read += kTraceOptionsSize; in ParseField() 152 if (bytes_read > buf.size()) { in ParseField() [all …]
|
| /external/e2fsprogs/e2fsck/ |
| D | iscan.c | 44 unsigned long long bytes_read; member 81 track->bytes_read = 0; in init_resource_track() 86 track->bytes_read = io_start->bytes_read; in init_resource_track() 140 unsigned long long bytes_read = 0; in print_resource_track() local 148 bytes_read = delta->bytes_read - track->bytes_read; in print_resource_track() 154 mbytes(bytes_read), mbytes(bytes_written), in print_resource_track() 155 (double)mbytes(bytes_read + bytes_written) / in print_resource_track()
|
| /external/tensorflow/tensorflow/core/lib/io/ |
| D | inputbuffer.cc | 86 size_t bytes_read = 0; in ReadNBytes() local 87 Status status = ReadNBytes(bytes_to_read, &(*result)[0], &bytes_read); in ReadNBytes() 88 if (bytes_read < bytes_to_read) result->resize(bytes_read); in ReadNBytes() 93 size_t* bytes_read) { in ReadNBytes() argument 99 *bytes_read = 0; in ReadNBytes() 100 while (*bytes_read < static_cast<size_t>(bytes_to_read)) { in ReadNBytes() 110 std::min<int64>(limit_ - pos_, bytes_to_read - *bytes_read); in ReadNBytes() 112 memcpy(result + *bytes_read, pos_, bytes_to_copy); in ReadNBytes() 114 *bytes_read += bytes_to_copy; in ReadNBytes() 117 (*bytes_read == static_cast<size_t>(bytes_to_read))) { in ReadNBytes()
|
| /external/cpuinfo/src/arm/linux/ |
| D | hwcap.c | 105 ssize_t bytes_read; in cpuinfo_arm_linux_hwcap_from_procfs() 108 bytes_read = read(file, &elf_auxv, sizeof(Elf32_auxv_t)); in cpuinfo_arm_linux_hwcap_from_procfs() 109 if (bytes_read < 0) { in cpuinfo_arm_linux_hwcap_from_procfs() 112 } else if (bytes_read > 0) { in cpuinfo_arm_linux_hwcap_from_procfs() 113 if (bytes_read == sizeof(elf_auxv)) { in cpuinfo_arm_linux_hwcap_from_procfs() 125 sizeof(elf_auxv), (size_t) bytes_read); in cpuinfo_arm_linux_hwcap_from_procfs() 129 } while (bytes_read == sizeof(Elf32_auxv_t)); in cpuinfo_arm_linux_hwcap_from_procfs()
|
| /external/openscreen/testing/util/ |
| D | read_file.cc | 20 int bytes_read = 0; in ReadEntireFileToString() local 21 while (bytes_read < file_size) { in ReadEntireFileToString() 22 size_t ret = fread(&contents[bytes_read], 1, file_size - bytes_read, file); in ReadEntireFileToString() 26 bytes_read += ret; in ReadEntireFileToString()
|
| /external/arm-trusted-firmware/drivers/mtd/nand/ |
| D | core.c | 34 unsigned int bytes_read; in nand_read() local 79 bytes_read = MIN((size_t)(nand_dev.page_size - in nand_read() 85 bytes_read); in nand_read() 96 bytes_read = nand_dev.page_size; in nand_read() 99 length -= bytes_read; in nand_read() 100 buffer += bytes_read; in nand_read() 101 *length_read += bytes_read; in nand_read()
|
| /external/arm-trusted-firmware/drivers/partition/ |
| D | partition.c | 48 size_t bytes_read; in load_mbr_header() local 60 PLAT_PARTITION_BLOCK_SIZE, &bytes_read); in load_mbr_header() 83 size_t bytes_read; in load_gpt_header() local 91 sizeof(gpt_header_t), &bytes_read); in load_gpt_header() 92 if ((result != 0) || (sizeof(gpt_header_t) != bytes_read)) { in load_gpt_header() 111 size_t bytes_read; in load_mbr_entry() local 123 PLAT_PARTITION_BLOCK_SIZE, &bytes_read); in load_mbr_entry() 161 size_t bytes_read; in load_gpt_entry() local 166 &bytes_read); in load_gpt_entry() 167 if (sizeof(gpt_entry_t) != bytes_read) in load_gpt_entry()
|
| /external/grpc-grpc/test/core/tsi/alts/frame_protector/ |
| D | frame_handler_test.cc | 86 size_t bytes_read = GPR_MIN(read_length, handler->buffer_size - offset); in deframe() local 88 &bytes_read)); in deframe() 89 offset += bytes_read; in deframe() 167 size_t bytes_read = handler->buffer_size; in frame_handler_test_bad_frame_length() local 169 !alts_read_frame_bytes(handler->reader, handler->buffer, &bytes_read)); in frame_handler_test_bad_frame_length() 171 GPR_ASSERT(bytes_read == 0); in frame_handler_test_bad_frame_length() 186 size_t bytes_read = handler->buffer_size; in frame_handler_test_unsupported_message_type() local 188 !alts_read_frame_bytes(handler->reader, handler->buffer, &bytes_read)); in frame_handler_test_unsupported_message_type() 190 GPR_ASSERT(bytes_read == 0); in frame_handler_test_unsupported_message_type() 225 size_t bytes_read = handler->buffer_size; in frame_handler_test_null_reader_bytes() local [all …]
|
| /external/pigweed/pw_trace_tokenized/ |
| D | trace_buffer_test.cc | 85 size_t bytes_read = 0; in TEST() local 86 EXPECT_EQ(buf->PeekFront(std::span<std::byte>(value), &bytes_read), in TEST() 90 EXPECT_GE(bytes_read, expected_min_bytes_used - 1); in TEST() 91 EXPECT_LE(bytes_read, expected_max_bytes_used - 1); in TEST() 93 reinterpret_cast<char*>(&value[bytes_read - sizeof(data)])); in TEST() 124 size_t bytes_read = 0; in TEST() local 125 EXPECT_EQ(buf->PeekFront(std::span<std::byte>(value), &bytes_read), in TEST() 130 &entry_count, &value[bytes_read - sizeof(size_t)], sizeof(entry_count)); in TEST()
|
| /external/libchrome/base/files/ |
| D | file_posix.cc | 213 int bytes_read = 0; in Read() local 216 rv = HANDLE_EINTR(pread(file_.get(), data + bytes_read, in Read() 217 size - bytes_read, offset + bytes_read)); in Read() 221 bytes_read += rv; in Read() 222 } while (bytes_read < size); in Read() 224 return bytes_read ? bytes_read : rv; in Read() 235 int bytes_read = 0; in ReadAtCurrentPos() local 238 rv = HANDLE_EINTR(read(file_.get(), data + bytes_read, size - bytes_read)); in ReadAtCurrentPos() 242 bytes_read += rv; in ReadAtCurrentPos() 243 } while (bytes_read < size); in ReadAtCurrentPos() [all …]
|
| /external/perfetto/src/trace_processor/ |
| D | read_trace.cc | 118 uint64_t bytes_read = 0; in ReadTrace() local 135 while (bytes_read < whole_size_64) { in ReadTrace() 136 progress_callback(bytes_read); in ReadTrace() 137 const size_t bytes_read_z = static_cast<size_t>(bytes_read); in ReadTrace() 141 bytes_read += slice_size; in ReadTrace() 145 if (bytes_read == 0) in ReadTrace() 148 if (bytes_read == 0) { in ReadTrace() 150 ReadTraceUsingRead(tp, *fd, &bytes_read, progress_callback)); in ReadTrace() 156 progress_callback(bytes_read); in ReadTrace()
|
| /external/pigweed/pw_protobuf/public/pw_protobuf/ |
| D | bytes_utils.h | 49 ConstByteSpan bytes_read; in DecodeBytesToUint32() local 50 PW_TRY(decoder.ReadBytes(&bytes_read)); in DecodeBytesToUint32() 51 if (bytes_read.size() != sizeof(uint32_t)) { in DecodeBytesToUint32() 55 if (!bytes::ReadInOrder(std::endian::little, bytes_read, value)) { in DecodeBytesToUint32()
|
| /external/grpc-grpc/test/core/network_benchmarks/ |
| D | low_level_ping_pong.cc | 72 size_t bytes_read = 0; in read_bytes() local 75 err = read(fd, buf + bytes_read, read_size - bytes_read); in read_bytes() 87 bytes_read += static_cast<size_t>(err); in read_bytes() 89 } while (bytes_read < read_size); in read_bytes() 104 size_t bytes_read = 0; in poll_read_bytes() local 124 err2 = read(fd, buf + bytes_read, read_size - bytes_read); in poll_read_bytes() 130 bytes_read += static_cast<size_t>(err2); in poll_read_bytes() 131 } while (bytes_read < read_size); in poll_read_bytes() 147 size_t bytes_read = 0; in epoll_read_bytes() local 166 read(args->fds.read_fd, buf + bytes_read, read_size - bytes_read); in epoll_read_bytes() [all …]
|