Searched refs:bytes_read (Results 1 - 25 of 426) sorted by relevance

1234567891011>>

/external/chromium_org/android_webview/native/
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
[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);
/external/chromium_org/net/url_request/
H A Durl_request_file_dir_job.cc69 int* bytes_read) {
70 DCHECK(bytes_read);
71 *bytes_read = 0;
76 if (FillReadBuffer(buf->data(), buf_size, bytes_read))
151 int bytes_read; local
153 &bytes_read)) {
160 NotifyReadComplete(bytes_read);
170 int* bytes_read) {
171 DCHECK(bytes_read);
173 *bytes_read
68 ReadRawData(IOBuffer* buf, int buf_size, int* bytes_read) argument
169 FillReadBuffer(char* buf, int buf_size, int* bytes_read) argument
[all...]
H A Durl_request_job.cc68 bool URLRequestJob::Read(IOBuffer* buf, int buf_size, int *bytes_read) { argument
73 DCHECK(bytes_read);
77 *bytes_read = 0;
81 rv = ReadRawDataHelper(buf, buf_size, bytes_read);
88 if (ReadFilteredData(bytes_read)) {
94 if (*bytes_read == 0)
100 if (rv && *bytes_read == 0)
368 void URLRequestJob::NotifyReadComplete(int bytes_read) { argument
379 OnRawReadComplete(bytes_read);
394 FilteredDataRead(bytes_read);
496 ReadRawData(IOBuffer* buf, int buf_size, int *bytes_read) argument
507 FilteredDataRead(int bytes_read) argument
512 ReadFilteredData(int* bytes_read) argument
653 ReadRawDataForFilter(int* bytes_read) argument
672 ReadRawDataHelper(IOBuffer* buf, int buf_size, int* bytes_read) argument
707 OnRawReadComplete(int bytes_read) argument
715 RecordBytesRead(int bytes_read) argument
[all...]
H A Durl_request_job.h102 bool Read(IOBuffer* buf, int buf_size, int* bytes_read);
239 void NotifyReadComplete(int bytes_read);
269 // the data, and bytes_read will receive the number of bytes read.
270 // If returning true, and bytes_read is returned as 0, there is no
277 virtual bool ReadRawData(IOBuffer* buf, int buf_size, int *bytes_read);
284 void FilteredDataRead(int bytes_read);
290 bool ReadFilteredData(int *bytes_read);
330 bool ReadRawDataForFilter(int *bytes_read);
334 bool ReadRawDataHelper(IOBuffer* buf, int buf_size, int* bytes_read);
341 // Called after every raw read. If |bytes_read| i
[all...]
/external/chromium/net/url_request/
H A Durl_request_job.cc60 bool URLRequestJob::Read(IOBuffer* buf, int buf_size, int *bytes_read) { argument
65 DCHECK(bytes_read);
69 *bytes_read = 0;
73 rv = ReadRawDataHelper(buf, buf_size, bytes_read);
80 if (ReadFilteredData(bytes_read)) {
86 if (rv && *bytes_read == 0)
291 void URLRequestJob::NotifyReadComplete(int bytes_read) { argument
302 OnRawReadComplete(bytes_read);
315 prefilter_bytes_read_ += bytes_read;
318 FilteredDataRead(bytes_read);
415 ReadRawData(IOBuffer* buf, int buf_size, int *bytes_read) argument
423 FilteredDataRead(int bytes_read) argument
428 ReadFilteredData(int* bytes_read) argument
547 ReadRawDataForFilter(int* bytes_read) argument
566 ReadRawDataHelper(IOBuffer* buf, int buf_size, int* bytes_read) argument
594 OnRawReadComplete(int bytes_read) argument
602 RecordBytesRead(int bytes_read) argument
[all...]
H A Durl_request_simple_job.cc41 int* bytes_read) {
42 DCHECK(bytes_read);
48 *bytes_read = buf_size;
40 ReadRawData(IOBuffer* buf, int buf_size, int* bytes_read) argument
H A Durl_request_file_dir_job.cc79 int *bytes_read) {
80 DCHECK(bytes_read);
81 *bytes_read = 0;
86 if (FillReadBuffer(buf->data(), buf_size, bytes_read))
187 int bytes_read; local
189 &bytes_read)) {
196 NotifyReadComplete(bytes_read);
206 int *bytes_read) {
207 DCHECK(bytes_read);
209 *bytes_read
78 ReadRawData(IOBuffer* buf, int buf_size, int *bytes_read) argument
205 FillReadBuffer(char *buf, int buf_size, int *bytes_read) argument
[all...]
H A Durl_request_job.h85 bool Read(IOBuffer* buf, int buf_size, int* bytes_read);
190 void NotifyReadComplete(int bytes_read);
216 // the data, and bytes_read will receive the number of bytes read.
217 // If returning true, and bytes_read is returned as 0, there is no
224 virtual bool ReadRawData(IOBuffer* buf, int buf_size, int *bytes_read);
227 void FilteredDataRead(int bytes_read);
233 bool ReadFilteredData(int *bytes_read);
270 bool ReadRawDataForFilter(int *bytes_read);
274 bool ReadRawDataHelper(IOBuffer* buf, int buf_size, int* bytes_read);
281 // Called after every raw read. If |bytes_read| i
[all...]
H A Durl_request_test_util.cc200 int bytes_read = 0; local
201 if (request->Read(buf_, kBufferSize, &bytes_read))
202 OnReadCompleted(request, bytes_read);
208 void TestDelegate::OnReadCompleted(net::URLRequest* request, int bytes_read) { argument
218 if (bytes_read >= 0) {
220 received_bytes_count_ += bytes_read;
223 data_received_.append(buf_->data(), bytes_read);
227 if (request->status().is_success() && bytes_read > 0) {
228 bytes_read = 0;
229 while (request->Read(buf_, kBufferSize, &bytes_read)) {
280 OnReadCompleted(net::URLRequest* request, int bytes_read) argument
[all...]
/external/chromium_org/third_party/sfntly/cpp/src/sfntly/data/
H A Dbyte_array.cc111 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 local
165 int32_t bytes_read = 0; local
[all...]
/external/sfntly/cpp/src/sfntly/data/
H A Dbyte_array.cc111 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 local
165 int32_t bytes_read = 0; local
[all...]
/external/chromium_org/device/bluetooth/
H A Dbluetooth_socket_win.cc78 int bytes_read; local
82 bytes_read = recv(fd_, buffer->data(), buffer->RemainingCapacity(), 0);
83 if (bytes_read > 0)
84 buffer->set_offset(buffer->offset() + bytes_read);
85 } while (bytes_read > 0);
88 if (bytes_read < 0 && error_code != WSAEWOULDBLOCK) {
H A Dbluetooth_socket_chromeos.cc93 ssize_t bytes_read; local
97 bytes_read =
99 if (bytes_read > 0)
100 buffer->set_offset(buffer->offset() + bytes_read);
101 } while (socket_type_ == RFCOMM && bytes_read > 0);
108 if (bytes_read < 0) {
119 if (bytes_read == 0 && socket_type_ == RFCOMM) {
/external/chromium_org/ipc/
H A Dipc_channel_reader.cc23 int bytes_read = 0; local
25 &bytes_read);
31 DCHECK(bytes_read > 0);
32 if (!DispatchInputData(input_buf_, bytes_read))
37 bool ChannelReader::AsyncReadComplete(int bytes_read) { argument
38 return DispatchInputData(input_buf_, bytes_read);
/external/linux-tools-perf/scripts/perl/
H A Drwtop.pl43 $reads{$common_pid}{bytes_read} += $ret;
45 if (!defined ($reads{$common_pid}{bytes_read})) {
46 $reads{$common_pid}{bytes_read} = 0;
128 "# reads", "bytes_req", "bytes_read");
132 foreach my $pid (sort { ($reads{$b}{bytes_read} || 0) <=>
133 ($reads{$a}{bytes_read} || 0) } keys %reads) {
137 my $bytes_read = $reads{$pid}{bytes_read} || 0;
140 $total_reads, $bytes_requested, $bytes_read);
/external/chromium_org/content/browser/streams/
H A Dstream_url_request_job.cc50 int bytes_read; local
52 pending_buffer_.get(), pending_buffer_size_, &bytes_read)) {
54 DCHECK_GT(bytes_read, 0);
59 bytes_read = 0;
76 total_bytes_read_ += bytes_read;
77 NotifyReadComplete(bytes_read);
96 int* bytes_read) {
101 DCHECK(bytes_read);
108 *bytes_read = 0;
113 switch (stream_->ReadRawData(buf, to_read, bytes_read)) {
94 ReadRawData(net::IOBuffer* buf, int buf_size, int* bytes_read) argument
[all...]
/external/chromium_org/native_client_sdk/src/libraries/nacl_io/
H A Dmount_node_http.cc261 int bytes_read; local
262 error = DownloadToTemp(&bytes_read);
266 SetCachedSize(bytes_read);
384 int bytes_read; local
385 error = ReadEntireResponseToCache(loader, &bytes_read);
389 SetCachedSize(bytes_read);
489 int bytes_read; local
490 error = ReadResponseToTemp(loader, bytes_to_read, &bytes_read);
495 if (bytes_read < bytes_to_read) {
538 int bytes_read; local
562 int bytes_read; local
589 int bytes_read; local
617 int bytes_read = local
[all...]
/external/chromium_org/android_webview/browser/
H A Dinput_stream.h37 // Reads at most |length| bytes into |dest|. Sets |bytes_read| to the total
43 virtual bool Read(net::IOBuffer* dest, int length, int* bytes_read) = 0;
/external/chromium_org/tools/android/forwarder2/
H A Dcommand.cc50 int bytes_read = socket->ReadNumBytes(command_buffer, kCommandStringSize); local
51 if (bytes_read != kCommandStringSize) {
52 if (bytes_read < 0)
54 else if (!bytes_read)
/external/chromium/chrome/browser/
H A Dcrash_upload_list_win.cc19 DWORD bytes_read; local
27 &bytes_read,
33 while (record_offset < bytes_read) {
34 DCHECK(record_offset + sizeof(EVENTLOGRECORD) <= bytes_read);
36 DCHECK(record_offset + record->Length <= bytes_read);
/external/chromium_org/chrome/browser/
H A Dcrash_upload_list_win.cc21 DWORD bytes_read; local
29 &bytes_read,
35 while (record_offset < bytes_read) {
36 DCHECK(record_offset + sizeof(EVENTLOGRECORD) <= bytes_read);
38 DCHECK(record_offset + record->Length <= bytes_read);
/external/chromium_org/chromeos/process_proxy/
H A Dprocess_output_watcher.cc97 ssize_t bytes_read = HANDLE_EINTR(read(*fd, read_buffer_, read_buffer_size_)); local
98 if (bytes_read < 0)
101 if (bytes_read > 0) {
102 on_read_callback_.Run(type, std::string(read_buffer_, bytes_read));
107 if (bytes_read <= 0) {
/external/chromium_org/chrome_frame/
H A Durlmon_upload_data_stream_unittest.cc27 ULONG bytes_read = 0; local
28 hr = upload_istream->Read(buffer, 500, &bytes_read);
31 EXPECT_EQ(bytes_read, random_string_length);
62 ULONG bytes_read = 0; local
67 &bytes_read)) != S_FALSE) {
69 EXPECT_GT(bytes_read, static_cast<ULONG>(0));
71 write_pos += bytes_read;
72 bytes_read = 0;
76 EXPECT_TRUE((write_pos + bytes_read) == kBigBufferLength);
117 ULONG bytes_read local
152 ULONG bytes_read = 42; local
[all...]
/external/chromium_org/content/browser/fileapi/
H A Dfileapi_message_filter_unittest.cc169 int bytes_read = 0; local
175 stream->ReadRawData(buffer.get(), kBufferSize, &bytes_read));
176 EXPECT_EQ(0, bytes_read);
185 stream->ReadRawData(buffer.get(), kBufferSize, &bytes_read));
186 EXPECT_EQ(0, bytes_read);
192 stream->ReadRawData(buffer.get(), kBufferSize, &bytes_read));
193 EXPECT_EQ(0, bytes_read);
222 int bytes_read = 0; local
228 stream->ReadRawData(buffer.get(), kFakeData.size(), &bytes_read));
229 EXPECT_EQ(kFakeData.size(), static_cast<size_t>(bytes_read));
269 int bytes_read = 0; local
[all...]

Completed in 760 milliseconds

1234567891011>>