Searched defs:bytes_read (Results 1 - 25 of 299) sorted by path

1234567891011>>

/external/bison/src/
H A Dscan-gram.c3530 size_t bytes_read = fread (buf, 1, size, fp); local
3531 if (bytes_read)
3533 char *w = memchr (buf, '\r', bytes_read);
3537 char const *lim = buf + bytes_read;
3566 return bytes_read;
/external/blktrace/
H A Dblktrace.c926 int bytes_read; local
930 bytes_read = __net_recv_data(nc->fd, bnh, sizeof(*bnh));
933 if (bytes_read == sizeof(*bnh))
935 else if (bytes_read == 0)
/external/bluetooth/bluedroid/hci/src/
H A Dhci_h4.c741 uint16_t bytes_read = 0; local
755 bytes_read++;
900 bytes_read += len;
962 return (bytes_read);
H A Dhci_mct.c715 uint16_t bytes_read = 0; local
730 bytes_read++;
830 bytes_read += len;
880 return (bytes_read);
895 uint16_t bytes_read = 0; local
910 bytes_read++;
1018 bytes_read += len;
1066 return (bytes_read);
/external/bluetooth/bluedroid/stack/include/
H A Dgoep_fs.h112 UINT16 bytes_read; member in struct:__anon1558
347 ** bytes_read - total number of bytes read from the file.
354 UINT16 bytes_read, UINT16 event_id);
/external/chromium_org/android_webview/browser/net/
H A Dandroid_stream_reader_url_request_job.cc239 int* bytes_read) {
245 *bytes_read = 0;
237 ReadRawData(net::IOBuffer* dest, int dest_size, int* bytes_read) argument
H A Daw_network_delegate.cc86 int bytes_read) {
85 OnRawBytesRead(const net::URLRequest& request, int bytes_read) argument
H A Dinput_stream_reader.cc47 int bytes_read = 0; local
48 if (!stream_->Read(dest, dest_size, &bytes_read))
51 return bytes_read;
/external/chromium_org/android_webview/native/
H A Dinput_stream_impl.cc79 bool InputStreamImpl::Read(net::IOBuffer* dest, int length, int* bytes_read) { argument
93 *bytes_read = 0;
129 // bytes_read can be strictly less than the req. length if EOF is encountered.
132 *bytes_read = length - remaining_length;
H A Dinput_stream_unittest.cc47 int* bytes_read) {
56 EXPECT_TRUE(input_stream->Read(buffer.get(), bytes_requested, bytes_read));
70 int bytes_read = 0; local
73 EXPECT_TRUE(input_stream->Read(buffer.get(), bytes_requested, &bytes_read));
74 EXPECT_EQ(0, bytes_read);
79 int bytes_read = 0; local
80 DoReadCountedStreamTest(bytes_requested * 2, bytes_requested, &bytes_read);
81 EXPECT_EQ(bytes_requested, bytes_read);
86 int bytes_read = 0; local
87 DoReadCountedStreamTest(bytes_requested, bytes_requested, &bytes_read);
45 DoReadCountedStreamTest(int stream_size, int bytes_requested, int* bytes_read) argument
93 int bytes_read = 0; local
100 int bytes_read = 0; local
111 int bytes_read = 0; local
118 int bytes_read = 0; local
138 int bytes_read = 0; local
[all...]
/external/chromium_org/base/
H A Dasync_socket_io_handler_posix.cc30 int bytes_read = HANDLE_EINTR(read(socket_, pending_buffer_, local
32 DCHECK_GE(bytes_read, 0);
35 read_complete_.Run(bytes_read > 0 ? bytes_read : 0);
52 int bytes_read = HANDLE_EINTR(read(socket_, buffer, buffer_len)); local
53 if (bytes_read < 0) {
62 read_complete_.Run(bytes_read);
H A Dasync_socket_io_handler_unittest.cc45 void OnRead(int bytes_read) { argument
47 EXPECT_GT(bytes_read, 0);
49 EXPECT_GE(bytes_read, 0);
H A Dasync_socket_io_handler_win.cc47 DWORD bytes_read = 0; local
48 BOOL ok = ::ReadFile(socket_, buffer, buffer_len, &bytes_read,
H A Dsync_socket_nacl.cc63 const ssize_t bytes_read = read(handle_, buffer, length); local
64 return bytes_read > 0 ? bytes_read : 0;
/external/chromium_org/base/debug/
H A Dproc_maps_linux.cc64 ssize_t bytes_read = HANDLE_EINTR(read(fd.get(), buffer, kReadSize)); local
65 if (bytes_read < 0) {
72 proc_maps->resize(pos + bytes_read);
74 if (bytes_read == 0)
/external/chromium_org/base/files/
H A Dfile_path_watcher_linux.cc232 ssize_t bytes_read = HANDLE_EINTR(read(inotify_fd, &buffer[0], local
235 if (bytes_read < 0) {
241 while (i < bytes_read) {
244 DCHECK(i + event_size <= static_cast<size_t>(bytes_read));
H A Dfile_posix.cc299 int bytes_read = 0; local
302 rv = HANDLE_EINTR(pread(file_.get(), data + bytes_read,
303 size - bytes_read, offset + bytes_read));
307 bytes_read += rv;
308 } while (bytes_read < size);
310 return bytes_read ? bytes_read : rv;
319 int bytes_read = 0; local
322 rv = HANDLE_EINTR(read(file_.get(), data + bytes_read, siz
[all...]
H A Dfile_proxy_unittest.cc58 int bytes_read) {
60 buffer_.resize(bytes_read);
61 memcpy(&buffer_[0], data, bytes_read);
56 DidRead(File::Error error, const char* data, int bytes_read) argument
H A Dfile_unittest.cc168 int bytes_read = file.Read(kTestDataSize, data_read_1, kTestDataSize); local
169 EXPECT_EQ(0, bytes_read);
173 bytes_read = file.Read(kPartialReadOffset, data_read_1, kTestDataSize);
174 EXPECT_EQ(kTestDataSize - kPartialReadOffset, bytes_read);
175 for (int i = 0; i < bytes_read; i++)
179 bytes_read = file.Read(0, data_read_1, 0);
180 EXPECT_EQ(0, bytes_read);
183 bytes_read = file.Read(0, data_read_1, kTestDataSize);
184 EXPECT_EQ(kTestDataSize, bytes_read);
185 for (int i = 0; i < bytes_read;
256 int bytes_read = file.Read(0, data_read_1, local
292 int bytes_read = file.Read(0, data_read, static_cast<int>(file_size)); local
[all...]
H A Dfile_util_posix.cc375 ssize_t bytes_read = local
377 if (bytes_read <= 0)
379 total_read += bytes_read;
673 ssize_t bytes_read = HANDLE_EINTR(read(fd, data, max_size));
676 return bytes_read;
880 ssize_t bytes_read = HANDLE_EINTR(read(infile, &buffer[0], buffer.size())); local
881 if (bytes_read < 0) {
885 if (bytes_read == 0)
893 bytes_read - bytes_written_per_read));
899 } while (bytes_written_per_read < bytes_read);
[all...]
H A Dfile_win.cc150 DWORD bytes_read; local
151 if (::ReadFile(file_.Get(), data, size, &bytes_read, &overlapped))
152 return bytes_read;
166 DWORD bytes_read;
167 if (::ReadFile(file_.Get(), data, size, &bytes_read, NULL))
168 return bytes_read;
/external/chromium_org/base/process/
H A Dlaunch_posix.cc600 ssize_t bytes_read = 1; // A lie to properly handle |max_output == 0| local
604 bytes_read = HANDLE_EINTR(read(pipe_fd[0], buffer,
606 if (bytes_read <= 0)
608 output->append(buffer, bytes_read);
609 output_buf_left -= static_cast<size_t>(bytes_read);
619 if (!output_buf_left && bytes_read > 0)
H A Dlaunch_win.cc355 DWORD bytes_read = 0; local
356 BOOL success = ReadFile(out_read, buffer, kBufferSize, &bytes_read, NULL);
357 if (!success || bytes_read == 0)
359 output->append(buffer, bytes_read);
H A Dprocess_util_unittest.cc584 ssize_t bytes_read = local
586 CHECK_EQ(bytes_read, static_cast<ssize_t>(sizeof(num_open_files)));
/external/chromium_org/base/test/
H A Dtest_file_util_win.cc159 DWORD bytes_read, bytes_written; local
161 bytes_read = 0;
162 ::ReadFile(file_handle.Get(), buffer, kOneMB, &bytes_read, NULL);
163 if (bytes_read == 0)
166 if (bytes_read < kOneMB) {
171 ZeroMemory(buffer + bytes_read, kOneMB - bytes_read);
188 total_bytes += bytes_read;

Completed in 1130 milliseconds

1234567891011>>