/external/v8/src/base/platform/ |
D | platform-freebsd.cc | 57 ssize_t bytes_read = read(fd, addr_buffer + 2, 8); in GetSharedLibraryAddresses() local 58 if (bytes_read < 8) break; in GetSharedLibraryAddresses() 60 bytes_read = read(fd, addr_buffer + 2, 1); in GetSharedLibraryAddresses() 61 if (bytes_read < 1) break; in GetSharedLibraryAddresses() 63 bytes_read = read(fd, addr_buffer + 2, 8); in GetSharedLibraryAddresses() 64 if (bytes_read < 8) break; in GetSharedLibraryAddresses() 67 bytes_read = -1; in GetSharedLibraryAddresses() 69 bytes_read++; in GetSharedLibraryAddresses() 70 if (bytes_read >= MAP_LENGTH - 1) break; in GetSharedLibraryAddresses() 71 bytes_read = read(fd, buffer + bytes_read, 1); in GetSharedLibraryAddresses() [all …]
|
D | platform-aix.cc | 92 int bytes_read = -1; in GetSharedLibraryAddresses() local 94 bytes_read++; in GetSharedLibraryAddresses() 95 if (bytes_read >= MAP_LENGTH - 1) break; in GetSharedLibraryAddresses() 96 rc = read(fd, buffer + bytes_read, 1); in GetSharedLibraryAddresses() 98 } while (buffer[bytes_read] != '\n'); in GetSharedLibraryAddresses() 99 buffer[bytes_read] = 0; in GetSharedLibraryAddresses() 105 buffer[bytes_read] = 0; in GetSharedLibraryAddresses()
|
/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/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/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/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/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/tensorflow/tensorflow/core/lib/io/ |
D | inputbuffer.cc | 81 size_t bytes_read = 0; in ReadNBytes() local 82 Status status = ReadNBytes(bytes_to_read, &(*result)[0], &bytes_read); in ReadNBytes() 83 if (bytes_read < bytes_to_read) result->resize(bytes_read); in ReadNBytes() 88 size_t* bytes_read) { in ReadNBytes() argument 94 *bytes_read = 0; in ReadNBytes() 95 while (*bytes_read < static_cast<size_t>(bytes_to_read)) { in ReadNBytes() 105 std::min<int64>(limit_ - pos_, bytes_to_read - *bytes_read); in ReadNBytes() 107 memcpy(result + *bytes_read, pos_, bytes_to_copy); in ReadNBytes() 109 *bytes_read += bytes_to_copy; in ReadNBytes() 112 (*bytes_read == static_cast<size_t>(bytes_to_read))) { in ReadNBytes()
|
/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/libchrome/ipc/ |
D | ipc_channel_nacl.cc | 53 int bytes_read = imc_recvmsg(pipe, &msg, 0); in ReadDataOnReaderThread() local 55 if (bytes_read <= 0) { in ReadDataOnReaderThread() 62 DCHECK(bytes_read); in ReadDataOnReaderThread() 64 contents->data.resize(bytes_read); in ReadDataOnReaderThread() 330 int* bytes_read) { in ReadData() argument 331 *bytes_read = 0; in ReadData() 336 while (!read_queue_.empty() && *bytes_read < buffer_len) { in ReadData() 338 size_t bytes_to_read = buffer_len - *bytes_read; in ReadData() 341 std::copy(vec->begin(), vec->end(), buffer + *bytes_read); in ReadData() 342 *bytes_read += vec->size(); in ReadData() [all …]
|
D | ipc_channel_reader.cc | 56 int bytes_read = 0; in ProcessIncomingMessages() local 58 &bytes_read); in ProcessIncomingMessages() 64 DCHECK(bytes_read > 0); in ProcessIncomingMessages() 65 if (!TranslateInputData(input_buf_, bytes_read)) in ProcessIncomingMessages() 70 ChannelReader::DispatchState ChannelReader::AsyncReadComplete(int bytes_read) { in AsyncReadComplete() argument 71 if (!TranslateInputData(input_buf_, bytes_read)) in AsyncReadComplete()
|
/external/autotest/client/site_tests/platform_CompressedSwapPerf/src/ |
D | hog.c | 165 ssize_t bytes_read = recv(connfd, &command, sizeof(command), 0); in main() local 167 if (bytes_read < 0) { in main() 170 } else if (bytes_read == 0) { in main() 174 } else if (bytes_read != sizeof(command)) { in main() 176 bytes_read, sizeof(command)); in main() 202 bytes_read = recv(connfd, &balloon_size, sizeof(balloon_size), 0); in main() 204 if (bytes_read < 0) { in main() 207 } else if (bytes_read == 0) { in main()
|
/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/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/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 …]
|
/external/flac/libFLAC/ |
D | ogg_helper.c | 48 size_t bytes_read = bytes; in full_read_() local 49 switch(read_callback(encoder, buffer, &bytes_read, client_data)) { in full_read_() 51 bytes -= bytes_read; in full_read_() 52 buffer += bytes_read; in full_read_() 55 if(bytes_read == 0) { in full_read_() 59 bytes -= bytes_read; in full_read_() 60 buffer += bytes_read; in full_read_()
|
/external/google-breakpad/src/tools/windows/dump_syms/ |
D | dump_syms_unittest.cc | 136 DWORD bytes_read = 0; in RunCommand() local 137 while (::ReadFile(child_stdout_read, buffer, sizeof(buffer), &bytes_read, in RunCommand() 138 NULL) && bytes_read > 0) { in RunCommand() 139 stdout_string->append(buffer, bytes_read); in RunCommand() 159 size_t bytes_read = ::fread(buffer, 1, sizeof(buffer), f); in GetFileContents() local 160 if (bytes_read == 0) in GetFileContents() 162 content->append(buffer, bytes_read); in GetFileContents()
|
/external/libexif/libexif/ |
D | exif-loader.c | 79 unsigned int bytes_read; member 135 if (!eld || (len && !buf) || (eld->bytes_read >= eld->size)) in exif_loader_copy() 145 len = MIN (len, eld->size - eld->bytes_read); in exif_loader_copy() 146 memcpy (eld->buf + eld->bytes_read, buf, len); in exif_loader_copy() 147 eld->bytes_read += len; in exif_loader_copy() 149 return (eld->bytes_read >= eld->size) ? 0 : 1; in exif_loader_copy() 403 loader->bytes_read = 0; in exif_loader_reset() 415 !loader->bytes_read) in exif_loader_get_data() 420 exif_data_load_data (ed, loader->buf, loader->bytes_read); in exif_loader_get_data() 437 s = loader->bytes_read; in exif_loader_get_buf()
|
/external/perfetto/src/tracing/core/ |
D | startup_trace_writer.cc | 67 size_t bytes_read = 0; in ReadBytes() local 68 while (bytes_read < num_bytes) { in ReadBytes() 70 return bytes_read; in ReadBytes() 80 size_t read_size = std::min(num_bytes - bytes_read, in ReadBytes() 82 memcpy(target_ptr + bytes_read, cur_slice_range.begin + cur_slice_offset_, in ReadBytes() 85 bytes_read += read_size; in ReadBytes() 89 bytes_read == num_bytes); in ReadBytes() 91 return bytes_read; in ReadBytes() 343 size_t bytes_read = local_buffer_reader.ReadBytes( in CommitLocalBufferChunks() local 345 PERFETTO_DCHECK(bytes_read == fragment_size); in CommitLocalBufferChunks()
|
/external/perfetto/src/base/ |
D | file_utils.cc | 47 ssize_t bytes_read; in ReadFileDescriptor() local 52 bytes_read = PERFETTO_EINTR(read(fd, &((*out)[i]), kBufSize)); in ReadFileDescriptor() 53 if (bytes_read > 0) { in ReadFileDescriptor() 54 i += static_cast<size_t>(bytes_read); in ReadFileDescriptor() 57 return bytes_read == 0; in ReadFileDescriptor()
|
/external/google-breakpad/src/common/tests/ |
D | file_utils.cc | 64 ssize_t bytes_read = HANDLE_EINTR(read(infile, buffer, sizeof(buffer))); in CopyFile() local 65 if (bytes_read < 0) { in CopyFile() 70 if (bytes_read == 0) in CopyFile() 77 bytes_read - bytes_written_per_read)); in CopyFile() 84 } while (bytes_written_per_read < bytes_read); in CopyFile()
|
/external/puffin/src/ |
D | puffin_stream.cc | 213 uint64_t bytes_read = 0; in Read() local 214 while (bytes_read < length) { in Read() 222 auto bytes_to_read = std::min(length - bytes_read, end_byte - start_byte); in Read() 226 TEST_AND_RETURN_FALSE(stream_->Read(bytes + bytes_read, bytes_to_read)); in Read() 231 bytes[bytes_read + bytes_to_read - 1] &= in Read() 242 bytes[bytes_read] >>= deflate_bit_pos_ & 7; in Read() 253 bytes_read += bytes_to_read; in Read() 267 (length - bytes_read >= cur_puff_->length); in Read() 280 ? bytes + bytes_read in Read() 299 std::min(length - bytes_read, cur_puff_->length - skip_bytes_); in Read() [all …]
|
/external/libaom/libaom/test/ |
D | av1_config_test.cc | 90 size_t bytes_read = 0; in TEST() local 94 ASSERT_EQ(-1, read_av1config(&kAv1cAllZero[0], 4, &bytes_read, NULL)); in TEST() 95 ASSERT_EQ(-1, read_av1config(NULL, 4, &bytes_read, &av1_config)); in TEST() 152 size_t bytes_read = 0; in TEST() local 154 &bytes_read, &av1_config)); in TEST() 155 ASSERT_EQ(kAv1cNoConfigObusSize, bytes_read); in TEST()
|
/external/linux-kselftest/tools/testing/selftests/sparc64/drivers/ |
D | adi-test.c | 186 int ret, bytes_read = 0; in read_adi() local 191 ret = read(fd, buf + bytes_read, buf_sz - bytes_read); in read_adi() 198 bytes_read += ret; in read_adi() 200 } while (bytes_read < buf_sz); in read_adi() 203 DEBUG_PRINT_L3("\tRead %d bytes\n", bytes_read); in read_adi() 205 return bytes_read; in read_adi() 211 int ret, i, bytes_read = 0; in pread_adi() local 218 ret = pread(fd, buf + bytes_read, buf_sz - bytes_read, in pread_adi() 226 bytes_read += ret; in pread_adi() 229 } while (bytes_read < buf_sz); in pread_adi() [all …]
|
/external/parameter-framework/asio-1.10.6/include/asio/detail/impl/ |
D | pipe_select_interrupter.ipp | 95 signed_size_type bytes_read = ::read(read_descriptor_, data, sizeof(data)); 96 if (bytes_read < 0 && errno == EINTR) 98 bool was_interrupted = (bytes_read > 0); 99 while (bytes_read == sizeof(data)) 100 bytes_read = ::read(read_descriptor_, data, sizeof(data));
|