/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 | 99 size_t bytes_read; in TEST_F() local 100 EXPECT_FALSE(file.Read(nullptr, 1, &bytes_read)); in TEST_F() 126 size_t bytes_read = 0; in TEST_F() local 127 EXPECT_TRUE(file.Read(buf, 100, &bytes_read)); in TEST_F() 128 EXPECT_EQ(15U, bytes_read); in TEST_F() 148 size_t bytes_read = 0; in TEST_F() local 149 EXPECT_TRUE(file.Read(buf, 2, &bytes_read)); in TEST_F() 150 EXPECT_EQ(2U, bytes_read); in TEST_F() 151 EXPECT_TRUE(file.Read(buf, 8, &bytes_read)); in TEST_F() 152 EXPECT_EQ(8U, bytes_read); in TEST_F() [all …]
|
/external/v8/src/base/platform/ |
D | platform-freebsd.cc | 87 ssize_t bytes_read = read(fd, addr_buffer + 2, 8); in GetSharedLibraryAddresses() local 88 if (bytes_read < 8) break; in GetSharedLibraryAddresses() 90 bytes_read = read(fd, addr_buffer + 2, 1); in GetSharedLibraryAddresses() 91 if (bytes_read < 1) break; in GetSharedLibraryAddresses() 93 bytes_read = read(fd, addr_buffer + 2, 8); in GetSharedLibraryAddresses() 94 if (bytes_read < 8) break; in GetSharedLibraryAddresses() 97 bytes_read = -1; in GetSharedLibraryAddresses() 99 bytes_read++; in GetSharedLibraryAddresses() 100 if (bytes_read >= MAP_LENGTH - 1) in GetSharedLibraryAddresses() 102 bytes_read = read(fd, buffer + bytes_read, 1); in GetSharedLibraryAddresses() [all …]
|
D | platform-aix.cc | 103 int bytes_read = -1; in GetSharedLibraryAddresses() local 105 bytes_read++; in GetSharedLibraryAddresses() 106 if (bytes_read >= MAP_LENGTH - 1) break; in GetSharedLibraryAddresses() 107 rc = read(fd, buffer + bytes_read, 1); in GetSharedLibraryAddresses() 109 } while (buffer[bytes_read] != '\n'); in GetSharedLibraryAddresses() 110 buffer[bytes_read] = 0; in GetSharedLibraryAddresses() 116 buffer[bytes_read] = 0; in GetSharedLibraryAddresses()
|
/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/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/syslinux/com32/elflink/ldlinux/ |
D | loadhigh.c | 48 uint32_t bytes_read; in pm_load_high() local 85 bytes_read = fs->fs_ops->getfssec(file, buf, sectors, &have_more); in pm_load_high() 87 if (bytes_read > chunk) in pm_load_high() 88 bytes_read = chunk; in pm_load_high() 90 buf += bytes_read; in pm_load_high() 91 bytes -= bytes_read; in pm_load_high()
|
/external/libchrome/base/files/ |
D | file_unittest.cc | 174 int bytes_read = file.Read(kTestDataSize, data_read_1, kTestDataSize); in TEST() local 175 EXPECT_EQ(0, bytes_read); in TEST() 179 bytes_read = file.Read(kPartialReadOffset, data_read_1, kTestDataSize); in TEST() 180 EXPECT_EQ(kTestDataSize - kPartialReadOffset, bytes_read); in TEST() 181 for (int i = 0; i < bytes_read; i++) in TEST() 185 bytes_read = file.Read(0, data_read_1, 0); in TEST() 186 EXPECT_EQ(0, bytes_read); in TEST() 189 bytes_read = file.Read(0, data_read_1, kTestDataSize); in TEST() 190 EXPECT_EQ(kTestDataSize, bytes_read); in TEST() 191 for (int i = 0; i < bytes_read; i++) in TEST() [all …]
|
D | file_posix.cc | 209 int bytes_read = 0; in Read() local 212 rv = HANDLE_EINTR(pread(file_.get(), data + bytes_read, in Read() 213 size - bytes_read, offset + bytes_read)); in Read() 217 bytes_read += rv; in Read() 218 } while (bytes_read < size); in Read() 220 return bytes_read ? bytes_read : rv; in Read() 231 int bytes_read = 0; in ReadAtCurrentPos() local 234 rv = HANDLE_EINTR(read(file_.get(), data + bytes_read, size - bytes_read)); in ReadAtCurrentPos() 238 bytes_read += rv; in ReadAtCurrentPos() 239 } while (bytes_read < size); in ReadAtCurrentPos() [all …]
|
/external/syslinux/core/fs/ |
D | getfssec.c | 94 uint32_t bytes_read = 0; in generic_getfssec() local 182 bytes_read += len; in generic_getfssec() 187 bytes_read = min(bytes_read, bytes_left); in generic_getfssec() 188 file->offset += bytes_read; in generic_getfssec() 191 *have_more = bytes_read < bytes_left; in generic_getfssec() 193 return bytes_read; in generic_getfssec()
|
/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/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/libmojo/mojo/edk/test/ |
D | test_utils_posix.cc | 41 size_t* bytes_read) { in BlockingRead() argument 55 *bytes_read = result; in BlockingRead() 62 size_t* bytes_read) { in NonBlockingRead() argument 69 *bytes_read = 0; in NonBlockingRead() 71 *bytes_read = result; in NonBlockingRead()
|
D | test_utils_win.cc | 40 size_t* bytes_read) { in BlockingRead() argument 53 *bytes_read = bytes_read_dword; in BlockingRead() 60 size_t* bytes_read) { in NonBlockingRead() argument 73 *bytes_read = 0; in NonBlockingRead() 78 *bytes_read = bytes_read_dword; in NonBlockingRead()
|
/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() 384 loader->bytes_read = 0; in exif_loader_reset() 396 !loader->bytes_read) in exif_loader_get_data() 401 exif_data_load_data (ed, loader->buf, loader->bytes_read); in exif_loader_get_data() 418 s = loader->bytes_read; in exif_loader_get_buf()
|
/external/libmojo/mojo/common/ |
D | data_pipe_file_utils.cc | 36 int bytes_read = in BlockingCopyFromFile() local 38 if (bytes_read >= 0) { in BlockingCopyFromFile() 39 EndWriteDataRaw(destination.get(), bytes_read); in BlockingCopyFromFile() 40 if (bytes_read == 0) { in BlockingCopyFromFile()
|
/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));
|
/external/syslinux/com32/lib/sys/ |
D | fileread.c | 44 ssize_t bytes_read; in __file_get_block() local 46 bytes_read = pmapi_read_file(&fp->i.fd.handle, fp->i.buf, in __file_get_block() 48 if (!bytes_read) { in __file_get_block() 53 fp->i.nbytes = bytes_read; in __file_get_block()
|
/external/curl/lib/ |
D | security.c | 231 size_t bytes_read; in sec_recv() local 246 bytes_read = buffer_read(&conn->in_buffer, buffer, len); in sec_recv() 247 len -= bytes_read; in sec_recv() 248 total_read += bytes_read; in sec_recv() 249 buffer += bytes_read; in sec_recv() 255 if(bytes_read > 0) in sec_recv() 257 return bytes_read; in sec_recv() 259 bytes_read = buffer_read(&conn->in_buffer, buffer, len); in sec_recv() 260 len -= bytes_read; in sec_recv() 261 total_read += bytes_read; in sec_recv() [all …]
|
/external/ltp/testcases/kernel/io/stress_cd/ |
D | stress_cd.c | 145 int bytes_read = 0; in read_data() local 159 while (bytes_read < num_bytes) { in read_data() 165 bytes_read += n; in read_data() 172 "%-#12lx\n", num, bytes_read, *cksum); in read_data() 178 num, bytes_read, *cksum); in read_data()
|
/external/webrtc/webrtc/modules/audio_processing/transient/ |
D | file_utils.cc | 91 size_t bytes_read = file->Read(byte_array.get(), 2); in ReadInt16BufferFromFile() local 92 if (bytes_read < 2) { in ReadInt16BufferFromFile() 153 size_t bytes_read = file->Read(byte_array.get(), 4); in ReadFloatBufferFromFile() local 154 if (bytes_read < 4) { in ReadFloatBufferFromFile() 176 size_t bytes_read = file->Read(byte_array.get(), 8); in ReadDoubleBufferFromFile() local 177 if (bytes_read < 8) { in ReadDoubleBufferFromFile()
|
/external/protobuf/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()
|
/external/sfntly/cpp/src/test/ |
D | font_data_test.cc | 158 int32_t bytes_read = rfd->ReadBytes(index, &(buffer[0]), 0, buffer.size()); in ReadFontDataWithBuffer() local 159 EXPECT_GE(bytes_read, 0); in ReadFontDataWithBuffer() 160 std::copy(buffer.begin(), buffer.begin() + bytes_read, b->begin() + index); in ReadFontDataWithBuffer() 161 index += bytes_read; in ReadFontDataWithBuffer() 172 int32_t bytes_read = in ReadFontDataWithSlidingWindow() local 174 EXPECT_GE(bytes_read, 0); in ReadFontDataWithSlidingWindow() 175 index += bytes_read; in ReadFontDataWithSlidingWindow() 205 int32_t bytes_read = rfd->ReadBytes(index, &(b[0]), index, sliding_size); in WriteFontDataWithSlidingWindow() local 207 index += bytes_read; in WriteFontDataWithSlidingWindow()
|
D | byte_array_test.cc | 39 int32_t bytes_read = ba->Get(index, buffer); in ReadByteArrayWithBuffer() local 40 std::copy(buffer->begin(), buffer->begin() + bytes_read, in ReadByteArrayWithBuffer() 42 index += bytes_read; in ReadByteArrayWithBuffer() 54 int32_t bytes_read = ba->Get(index, &((*b)[0]), index, actual_window_size); in ReadByteArrayWithSlidingWindow() local 55 index += bytes_read; in ReadByteArrayWithSlidingWindow()
|