Home
last modified time | relevance | path

Searched refs:bytes_read (Results 1 – 25 of 103) sorted by relevance

12345

/external/chromium/net/url_request/
Durl_request_job.cc162 bool URLRequestJob::Read(net::IOBuffer* buf, int buf_size, int *bytes_read) { in Read() argument
167 DCHECK(bytes_read); in Read()
169 *bytes_read = 0; in Read()
173 rv = ReadRawData(buf, buf_size, bytes_read); in Read()
174 if (rv && *bytes_read > 0) in Read()
175 RecordBytesRead(*bytes_read); in Read()
182 if (ReadFilteredData(bytes_read)) { in Read()
188 if (rv && *bytes_read == 0) in Read()
193 bool URLRequestJob::ReadRawDataForFilter(int *bytes_read) { in ReadRawDataForFilter() argument
196 DCHECK(bytes_read); in ReadRawDataForFilter()
[all …]
Durl_request_file_dir_job.cc75 int *bytes_read) { in ReadRawData() argument
76 DCHECK(bytes_read); in ReadRawData()
77 *bytes_read = 0; in ReadRawData()
82 if (FillReadBuffer(buf->data(), buf_size, bytes_read)) in ReadRawData()
177 int *bytes_read) { in FillReadBuffer() argument
178 DCHECK(bytes_read); in FillReadBuffer()
180 *bytes_read = 0; in FillReadBuffer()
186 *bytes_read = count; in FillReadBuffer()
197 int bytes_read; in CompleteRead() local
199 &bytes_read)) { in CompleteRead()
[all …]
Durl_request_job.h93 bool Read(net::IOBuffer* buf, int buf_size, int *bytes_read);
227 void NotifyReadComplete(int bytes_read);
260 virtual bool ReadRawData(net::IOBuffer* buf, int buf_size, int *bytes_read);
263 void FilteredDataRead(int bytes_read);
269 bool ReadFilteredData(int *bytes_read);
304 bool ReadRawDataForFilter(int *bytes_read);
313 void RecordBytesRead(int bytes_read);
Durl_request_test_job.cc155 int *bytes_read) { in ReadRawData() argument
163 DCHECK(bytes_read); in ReadRawData()
164 *bytes_read = 0; in ReadRawData()
177 *bytes_read = to_read; in ReadRawData()
212 int bytes_read; in ProcessNextOperation() local
213 if (!ReadRawData(async_buf_, async_buf_size_, &bytes_read)) in ProcessNextOperation()
216 NotifyReadComplete(bytes_read); in ProcessNextOperation()
Durl_request_unittest.h229 int bytes_read = 0; in OnResponseStarted() local
230 if (request->Read(buf_, kBufferSize, &bytes_read)) in OnResponseStarted()
231 OnReadCompleted(request, bytes_read); in OnResponseStarted()
237 virtual void OnReadCompleted(URLRequest* request, int bytes_read) { in OnReadCompleted() argument
247 if (bytes_read >= 0) { in OnReadCompleted()
249 received_bytes_count_ += bytes_read; in OnReadCompleted()
252 data_received_.append(buf_->data(), bytes_read); in OnReadCompleted()
256 if (request->status().is_success() && bytes_read > 0) { in OnReadCompleted()
257 bytes_read = 0; in OnReadCompleted()
258 while (request->Read(buf_, kBufferSize, &bytes_read)) { in OnReadCompleted()
[all …]
/external/chromium/sdch/open-vcdiff/src/
Dvcdiff_main.cc140 bool ReadInput(size_t* bytes_read);
311 bool VCDiffFileBasedCoder::ReadInput(size_t* bytes_read) { in ReadInput() argument
313 *bytes_read = fread(&input_buffer_[0], 1, input_buffer_.size(), input_file_); in ReadInput()
346 size_t bytes_read = fread(&compare_buffer_[0], in CompareOutput() local
355 if (bytes_read < output_size) { in CompareOutput()
360 if (output.compare(0, output_size, &compare_buffer_[0], bytes_read) != 0) { in CompareOutput()
410 size_t bytes_read = 0; in Encode() local
411 if (!WriteOutput(output) || !ReadInput(&bytes_read)) { in Encode()
416 if (bytes_read > 0) { in Encode()
417 input_size += bytes_read; in Encode()
[all …]
/external/chromium/net/base/
Dfile_stream_win.cc66 DWORD bytes_read, DWORD error);
95 MessageLoopForIO::IOContext* context, DWORD bytes_read, DWORD error) { in OnIOCompleted() argument
104 int result = static_cast<int>(bytes_read); in OnIOCompleted()
108 if (bytes_read) in OnIOCompleted()
109 IncrementOffset(&context->overlapped, bytes_read); in OnIOCompleted()
227 DWORD bytes_read; in Read() local
228 if (!ReadFile(file_, buf, buf_len, &bytes_read, overlapped)) { in Read()
243 rv = static_cast<int>(bytes_read); in Read()
253 int bytes_read = Read(buf, to_read, NULL); in ReadUntilComplete() local
254 if (bytes_read <= 0) { in ReadUntilComplete()
[all …]
/external/elfcopy/
Ddwarf.c243 unsigned int bytes_read; in process_extended_line_op() local
248 len = read_leb128 (data, & bytes_read, 0); in process_extended_line_op()
249 data += bytes_read; in process_extended_line_op()
254 return bytes_read; in process_extended_line_op()
257 len += bytes_read; in process_extended_line_op()
270 adr = byte_get (data, len - bytes_read - 1); in process_extended_line_op()
273 value_hook(data, len - bytes_read - 1, adr); in process_extended_line_op()
285 val = read_leb128 (data, & bytes_read, 0); in process_extended_line_op()
287 data += bytes_read; in process_extended_line_op()
288 val = read_leb128 (data, & bytes_read, 0); in process_extended_line_op()
[all …]
/external/chromium/base/test/
Dtest_file_util_win.cc64 DWORD bytes_read, bytes_written; in EvictFileFromSystemCache() local
66 bytes_read = 0; in EvictFileFromSystemCache()
67 ReadFile(file_handle, buffer, kOneMB, &bytes_read, NULL); in EvictFileFromSystemCache()
68 if (bytes_read == 0) in EvictFileFromSystemCache()
71 if (bytes_read < kOneMB) { in EvictFileFromSystemCache()
76 ZeroMemory(buffer + bytes_read, kOneMB - bytes_read); in EvictFileFromSystemCache()
93 total_bytes += bytes_read; in EvictFileFromSystemCache()
/external/bluetooth/glib/glib/
Dgconvert.c600 gsize *bytes_read, in g_convert_with_iconv() argument
683 if (bytes_read) in g_convert_with_iconv()
684 *bytes_read = p - str; in g_convert_with_iconv()
751 gsize *bytes_read, in g_convert() argument
766 if (bytes_read) in g_convert()
767 *bytes_read = 0; in g_convert()
776 bytes_read, bytes_written, in g_convert()
827 gsize *bytes_read, in g_convert_with_fallback() argument
859 bytes_read, bytes_written, &local_error); in g_convert_with_fallback()
879 if (bytes_read) in g_convert_with_fallback()
[all …]
Dgconvert.h69 gsize *bytes_read,
75 gsize *bytes_read,
83 gsize *bytes_read,
92 gsize *bytes_read,
97 gsize *bytes_read,
113 gsize *bytes_read,
118 gsize *bytes_read,
/external/chromium/base/
Dfile_util_linux.cc48 ssize_t bytes_read = HANDLE_EINTR(read(infile, &buffer[0], buffer.size())); in CopyFile() local
49 if (bytes_read < 0) { in CopyFile()
53 if (bytes_read == 0) in CopyFile()
61 bytes_read - bytes_written_per_read)); in CopyFile()
67 } while (bytes_written_per_read < bytes_read); in CopyFile()
/external/bluetooth/glib/gio/tests/
Dmemory-input-stream.c35 gsize bytes_read, pos, len, chunk_size; in test_read_chunks() local
53 bytes_read = g_input_stream_read (stream, buffer, chunk_size, NULL, &error); in test_read_chunks()
55 g_assert_cmpint (bytes_read, ==, MIN (chunk_size, len - pos)); in test_read_chunks()
56 g_assert (strncmp (buffer, result + pos, bytes_read) == 0); in test_read_chunks()
58 pos += bytes_read; in test_read_chunks()
/external/dbus/dbus/
Ddbus-transport-socket.c247 int bytes_read; in read_data_into_auth() local
253 bytes_read = _dbus_read_socket (socket_transport->fd, in read_data_into_auth()
257 bytes_read > 0 ? bytes_read : 0); in read_data_into_auth()
259 if (bytes_read > 0) in read_data_into_auth()
261 _dbus_verbose (" read %d bytes in auth phase\n", bytes_read); in read_data_into_auth()
265 else if (bytes_read < 0) in read_data_into_auth()
287 _dbus_assert (bytes_read == 0); in read_data_into_auth()
651 int bytes_read; in do_reading() local
690 bytes_read = _dbus_string_get_length (&socket_transport->encoded_incoming); in do_reading()
692 bytes_read = _dbus_read_socket (socket_transport->fd, in do_reading()
[all …]
/external/bluetooth/glib/gio/
Dgbufferedinputstream.c777 gsize available, bytes_read; in g_buffered_input_stream_read() local
797 bytes_read = available; in g_buffered_input_stream_read()
800 if (bytes_read > 0) in g_buffered_input_stream_read()
810 (char *)buffer + bytes_read, in g_buffered_input_stream_read()
815 if (nread < 0 && bytes_read == 0) in g_buffered_input_stream_read()
819 bytes_read += nread; in g_buffered_input_stream_read()
821 return bytes_read; in g_buffered_input_stream_read()
828 if (bytes_read == 0) in g_buffered_input_stream_read()
831 return bytes_read; in g_buffered_input_stream_read()
837 memcpy ((char *)buffer + bytes_read, (char *)priv->buffer + priv->pos, count); in g_buffered_input_stream_read()
[all …]
/external/openssl/apps/
Ds_time.c134 static long bytes_read=0; variable
157 bytes_read=0; in s_time_init()
396 bytes_read=0; in MAIN()
419 bytes_read+=i; in MAIN()
453 …f connections/user sec, bytes read %ld\n", nConn, totalTime, ((double)nConn/totalTime),bytes_read); in MAIN()
454 …onds, %ld bytes read per connection\n",nConn,(long)time(NULL)-finishtime+maxTime,bytes_read/nConn); in MAIN()
489 bytes_read=0; in MAIN()
512 bytes_read+=i; in MAIN()
543 …f connections/user sec, bytes read %ld\n", nConn, totalTime, ((double)nConn/totalTime),bytes_read); in MAIN()
544 …onds, %ld bytes read per connection\n",nConn,(long)time(NULL)-finishtime+maxTime,bytes_read/nConn); in MAIN()
/external/v8/src/
Dd8-posix.cc294 int bytes_read; in ChildLaunchedOK() local
297 bytes_read = read(exec_error_fds[kReadFD], &err, sizeof(err)); in ChildLaunchedOK()
298 } while (bytes_read == -1 && errno == EINTR); in ChildLaunchedOK()
299 if (bytes_read != 0) { in ChildLaunchedOK()
327 int bytes_read; in GetStdout() local
329 bytes_read = read(child_fd, in GetStdout()
332 if (bytes_read == -1) { in GetStdout()
348 if (bytes_read + fullness > 0) { in GetStdout()
349 int length = bytes_read == 0 ? in GetStdout()
350 bytes_read + fullness : in GetStdout()
[all …]
/external/bluetooth/glib/tests/
Dconvert-test.c41 gsize bytes_read = 0; in test_iconv_state() local
46 &bytes_read, &bytes_written, &error); in test_iconv_state()
52 g_assert (bytes_read == 5); in test_iconv_state()
64 gsize bytes_read = 0; in test_one_half() local
70 &bytes_read, &bytes_written, in test_one_half()
74 g_assert (bytes_read == 2); in test_one_half()
81 &bytes_read, &bytes_written, in test_one_half()
85 g_assert (bytes_read == 0); in test_one_half()
94 &bytes_read, &bytes_written, in test_one_half()
98 g_assert (bytes_read == 2); in test_one_half()
[all …]
Dtimeloop-closure.c37 gsize bytes_read = 0; in read_all() local
41 while (bytes_read < len) in read_all()
43 err = g_io_channel_read (channel, buf + bytes_read, len - bytes_read, &count); in read_all()
52 bytes_read += count; in read_all()
Dtimeloop-basic.c36 size_t bytes_read = 0; in read_all() local
39 while (bytes_read < len) in read_all()
41 count = read (fd, buf + bytes_read, len - bytes_read); in read_all()
50 bytes_read += count; in read_all()
Dtimeloop.c36 gsize bytes_read = 0; in read_all() local
40 while (bytes_read < len) in read_all()
42 err = g_io_channel_read (channel, buf + bytes_read, len - bytes_read, &count); in read_all()
51 bytes_read += count; in read_all()
/external/chromium/sdch/open-vcdiff/src/gtest/
Dgtest-port.cc146 size_t bytes_read = 0; // # of bytes read so far in ReadEntireFile() local
153 bytes_last_read = fread(buffer+bytes_read, 1, file_size-bytes_read, file); in ReadEntireFile()
154 bytes_read += bytes_last_read; in ReadEntireFile()
155 } while (bytes_last_read > 0 && bytes_read < file_size); in ReadEntireFile()
157 const ::std::string content(buffer, buffer+bytes_read); in ReadEntireFile()
/external/v8/test/cctest/
Dtest-sockets.cc60 int bytes_read = 0; in Run() local
61 while (bytes_read < data_size_) { in Run()
62 bytes_read += client_->Receive(data_ + bytes_read, data_size_ - bytes_read); in Run()
/external/gtest/src/
Dgtest-death-test.cc464 DWORD bytes_read; in Wait() local
468 &bytes_read, in Wait()
472 if (bytes_read == 0) { in Wait()
474 } else if (bytes_read == 1) { in Wait()
681 DWORD bytes_read; in FailFromInternalError() local
685 bytes_read = 0; in FailFromInternalError()
689 &bytes_read, in FailFromInternalError()
691 buffer[bytes_read] = 0; in FailFromInternalError()
693 } while (read_succeeded && bytes_read > 0); in FailFromInternalError()
743 ssize_t bytes_read; in Wait() local
[all …]
/external/chromium/net/tools/fetch/
Dfetch_client.cc87 static StatsCounter bytes_read("FetchClient.bytes_read"); in OnReadComplete() local
88 bytes_read.Add(result); in OnReadComplete()
165 int bytes_read = table.GetCounterValue("c:FetchClient.bytes_read"); in main() local
170 printf("Bytes Read : %d\n", bytes_read); in main()
173 double bps = static_cast<float>(bytes_read * 8) / in main()

12345