HomeSort by relevance Sort by last modified time
    Searched defs:bytes_read (Results 1 - 25 of 180) sorted by null

1 2 3 4 5 6 7 8

  /bionic/libc/stdio/
fread.c 127 ssize_t bytes_read = (*fp->_read)(fp->_cookie, dst, total); local
128 if (bytes_read <= 0) {
129 fp->_flags |= (bytes_read == 0) ? __SEOF : __SERR;
132 dst += bytes_read;
133 total -= bytes_read;
  /external/v8/test/fuzzer/
fuzzer.cc 42 size_t bytes_read = fread(data, 1, size, input); local
45 if (bytes_read != size) {
  /frameworks/native/cmds/bugreport/
bugreport.cpp 67 ssize_t bytes_read = TEMP_FAILURE_RETRY(read(s, buffer, sizeof(buffer))); local
68 if (bytes_read == 0) {
70 } else if (bytes_read == -1) {
79 ssize_t bytes_to_send = bytes_read;
83 buffer + bytes_read - bytes_to_send,
87 bytes_read, bytes_to_send, strerror(errno));
  /frameworks/native/cmds/bugreportz/
bugreportz.cpp 49 ssize_t bytes_read = TEMP_FAILURE_RETRY(read(s, buffer, sizeof(buffer))); local
50 if (bytes_read == 0) {
52 } else if (bytes_read == -1) {
62 for (int i = 0; i < bytes_read; i++) {
  /system/update_engine/payload_generator/
blob_file_writer_unittest.cc 49 ssize_t bytes_read; local
54 &bytes_read));
55 EXPECT_EQ(bytes_read, blob_size);
block_mapping.cc 49 ssize_t bytes_read = 0; local
50 if (!utils::PReadAll(fd, blob.data(), block_size_, byte_offset, &bytes_read))
52 if (static_cast<size_t>(bytes_read) != block_size_)
121 ssize_t bytes_read = 0; local
122 if (!utils::PReadAll(fd, blob.data(), block_size, byte_offset, &bytes_read))
124 if (static_cast<size_t>(bytes_read) != block_size)
  /art/runtime/
zip_archive_test.cc 57 ssize_t bytes_read = TEMP_FAILURE_RETRY(read(fd, buf, kBufSize)); local
58 if (bytes_read == 0) {
61 computed_crc = crc32(computed_crc, buf, bytes_read);
  /bionic/libc/bionic/
bionic_netlink.cpp 81 ssize_t bytes_read; local
82 while ((bytes_read = TEMP_FAILURE_RETRY(recv(fd_, data_, size_, 0))) > 0) {
84 for (; NLMSG_OK(hdr, static_cast<size_t>(bytes_read)); hdr = NLMSG_NEXT(hdr, bytes_read)) {
  /external/boringssl/src/tool/
server.cc 49 size_t bytes_read; local
70 bytes_read = fread(data, 1, length, f);
72 bytes_read != (size_t)length ||
73 !SSL_CTX_set_ocsp_response(ctx, (uint8_t*)data, bytes_read)) {
  /external/bsdiff/
extents_file_unittest.cc 99 size_t bytes_read; local
100 EXPECT_FALSE(file.Read(nullptr, 1, &bytes_read));
126 size_t bytes_read = 0; local
127 EXPECT_TRUE(file.Read(buf, 100, &bytes_read));
128 EXPECT_EQ(15U, bytes_read);
148 size_t bytes_read = 0; local
149 EXPECT_TRUE(file.Read(buf, 2, &bytes_read));
150 EXPECT_EQ(2U, bytes_read);
151 EXPECT_TRUE(file.Read(buf, 8, &bytes_read));
152 EXPECT_EQ(8U, bytes_read);
168 size_t bytes_read = 0; local
182 size_t bytes_read = 0; local
191 size_t bytes_read; local
206 size_t bytes_read = 0; local
    [all...]
test_utils.cc 62 size_t bytes_read = fread(buf, 1, sizeof(buf), fp); local
63 if (!bytes_read)
65 out->insert(out->end(), buf, buf + bytes_read);
  /external/e2fsprogs/resize/
resource_track.c 42 track->bytes_read = 0;
47 track->bytes_read = io_start->bytes_read;
104 unsigned long long bytes_read = 0; local
109 bytes_read = delta->bytes_read - track->bytes_read;
112 if (bytes_read == 0 && bytes_written == 0)
118 mbytes(bytes_read),
120 (double)mbytes(bytes_read + bytes_written)
    [all...]
  /external/google-breakpad/src/common/tests/
file_utils.cc 64 ssize_t bytes_read = HANDLE_EINTR(read(infile, buffer, sizeof(buffer))); local
65 if (bytes_read < 0) {
70 if (bytes_read == 0)
77 bytes_read - bytes_written_per_read));
84 } while (bytes_written_per_read < bytes_read);
  /external/libweave/third_party/chromium/base/
rand_util_posix.cc 35 ssize_t bytes_read = local
37 if (bytes_read <= 0)
39 total_read += bytes_read;
  /external/sfntly/cpp/src/test/
file_io_test.cc 41 size_t bytes_read = fread(&(b1[0]), 1, length, file_handle); local
42 EXPECT_EQ(bytes_read, length);
102 size_t bytes_read = fread(&(b1[0]), 1, length, file_handle); local
103 EXPECT_EQ(bytes_read, length);
test_font_utils.cc 78 size_t bytes_read = fread(&((*input_buffer)[0]), 1, file_size, input_file); local
79 EXPECT_EQ(bytes_read, file_size);
  /hardware/bsp/intel/peripheral/sensors/mraa/
Sensor.cpp 39 int bytes_read = 0, bytes_to_read = sizeof(sensors_event_t); local
51 bytes_read = read(fd, ptr, bytes_to_read);
52 if (bytes_read <= 0) {
55 bytes_to_read -= bytes_read;
56 ptr += bytes_read;
  /device/google/contexthub/util/nanotool/
calibrationfile.cpp 52 ssize_t bytes_read = file_->read(file_data.data(), file_size); local
53 if (bytes_read != file_size) {
55 bytes_read, file_size);
  /external/dbus/dbus/
dbus-file-unix.c 110 int bytes_read; local
114 bytes_read = _dbus_read (fd, str,
116 if (bytes_read <= 0)
131 total += bytes_read;
  /external/sfntly/cpp/src/sample/subsetter/
subset_util.cc 55 size_t bytes_read = fread(&(input_buffer[0]), 1, file_size, input_file); local
56 UNREFERENCED_PARAMETER(bytes_read);
  /external/sfntly/cpp/src/sfntly/data/
byte_array.cc 111 int32_t bytes_read = 0; local
115 while ((bytes_read =
117 int bytes_written = array->Put(index + dst_offset, &(b[0]), 0, bytes_read);
119 index += bytes_read;
120 remaining_length -= bytes_read;
132 int32_t bytes_read = 0; local
135 while ((bytes_read = Get(index + offset, &(b[0]), 0, buffer_length)) > 0) {
136 os->Write(&b, 0, bytes_read);
137 index += bytes_read;
145 int32_t bytes_read = 0 local
165 int32_t bytes_read = 0; local
    [all...]
  /frameworks/ex/framesequence/jni/
Stream.cpp 61 size_t bytes_read = 0; local
64 bytes_read = min(size, peek_remaining);
65 memcpy(buffer, mPeekBuffer + mPeekOffset, bytes_read);
66 mPeekOffset += bytes_read;
73 size -= bytes_read;
74 buffer = ((char*) buffer) + bytes_read;
77 bytes_read += doRead(buffer, size);
79 return bytes_read;
  /system/bt/osi/test/
eager_reader_test.cpp 107 size_t bytes_read = eager_reader_read(reader, buffer, bytes_to_read); local
108 EXPECT_LE(bytes_read, bytes_to_read);
109 for (size_t j = 0; j < bytes_read && i < length; j++, i++) {
  /system/media/brillo/audio/audioservice/
audio_daemon.cpp 112 int bytes_read = local
114 if (bytes_read != sizeof(event)) {
  /bionic/tests/
fcntl_test.cpp 166 ssize_t bytes_read = splice(in, 0, pipe_fds[1], NULL, 8*1024, SPLICE_F_MORE | SPLICE_F_MOVE); local
167 ASSERT_NE(bytes_read, -1);
169 ssize_t bytes_written = splice(pipe_fds[0], NULL, tf.fd, 0, bytes_read, SPLICE_F_MORE | SPLICE_F_MOVE);
170 ASSERT_EQ(bytes_read, bytes_written);
215 ssize_t bytes_read = splice(in, 0, pipe1[1], NULL, 8*1024, SPLICE_F_MORE | SPLICE_F_MOVE); local
216 ASSERT_NE(bytes_read, -1);
221 ASSERT_EQ(bytes_read, bytes_teed);

Completed in 485 milliseconds

1 2 3 4 5 6 7 8