/external/chromium_org/android_webview/native/ |
H A D | input_stream_unittest.cc | 47 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/media/audio/ |
H A D | async_socket_io_handler_posix.cc | 30 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 D | url_request_file_dir_job.cc | 69 int* bytes_read) { 70 DCHECK(bytes_read); 71 *bytes_read = 0; 76 if (FillReadBuffer(buf->data(), buf_size, bytes_read)) 150 int bytes_read; local 152 &bytes_read)) { 159 NotifyReadComplete(bytes_read); 169 int* bytes_read) { 170 DCHECK(bytes_read); 172 *bytes_read 68 ReadRawData(IOBuffer* buf, int buf_size, int* bytes_read) argument 168 FillReadBuffer(char* buf, int buf_size, int* bytes_read) argument [all...] |
H A D | url_request_job.cc | 68 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) 367 void URLRequestJob::NotifyReadComplete(int bytes_read) { argument 378 OnRawReadComplete(bytes_read); 393 FilteredDataRead(bytes_read); 495 ReadRawData(IOBuffer* buf, int buf_size, int *bytes_read) argument 506 FilteredDataRead(int bytes_read) argument 511 ReadFilteredData(int* bytes_read) argument 652 ReadRawDataForFilter(int* bytes_read) argument 671 ReadRawDataHelper(IOBuffer* buf, int buf_size, int* bytes_read) argument 706 OnRawReadComplete(int bytes_read) argument 714 RecordBytesRead(int bytes_read) argument [all...] |
H A D | url_request_job.h | 102 bool Read(IOBuffer* buf, int buf_size, int* bytes_read); 239 void NotifyReadComplete(int bytes_read); 270 // the data, and bytes_read will receive the number of bytes read. 271 // If returning true, and bytes_read is returned as 0, there is no 278 virtual bool ReadRawData(IOBuffer* buf, int buf_size, int *bytes_read); 285 void FilteredDataRead(int bytes_read); 291 bool ReadFilteredData(int *bytes_read); 331 bool ReadRawDataForFilter(int *bytes_read); 335 bool ReadRawDataHelper(IOBuffer* buf, int buf_size, int* bytes_read); 342 // Called after every raw read. If |bytes_read| i [all...] |
/external/chromium/net/url_request/ |
H A D | url_request_job.cc | 60 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 D | url_request_simple_job.cc | 41 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 D | url_request_file_dir_job.cc | 79 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 D | url_request_job.h | 85 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 D | url_request_test_util.cc | 200 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/sfntly/cpp/src/sfntly/data/ |
H A D | 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 local 165 int32_t bytes_read = 0; local [all...] |
/external/chromium_org/device/bluetooth/ |
H A D | bluetooth_socket_win.cc | 78 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 D | bluetooth_socket_chromeos.cc | 93 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 D | ipc_channel_reader.cc | 23 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 D | rwtop.pl | 43 $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/android_webview/browser/ |
H A D | input_stream.h | 37 // 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 D | command.cc | 50 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 D | crash_upload_list_win.cc | 19 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 D | crash_upload_list_win.cc | 20 DWORD bytes_read; local 28 &bytes_read, 34 while (record_offset < bytes_read) { 35 DCHECK(record_offset + sizeof(EVENTLOGRECORD) <= bytes_read); 37 DCHECK(record_offset + record->Length <= bytes_read);
|
/external/chromium_org/chromeos/process_proxy/ |
H A D | process_output_watcher.cc | 97 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 D | urlmon_upload_data_stream_unittest.cc | 27 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/streams/ |
H A D | stream_url_request_job.cc | 43 int bytes_read; local 45 pending_buffer_.get(), pending_buffer_size_, &bytes_read); 52 total_bytes_read_ += bytes_read; 53 NotifyReadComplete(bytes_read); 73 int* bytes_read) { 77 DCHECK(bytes_read); 84 *bytes_read = 0; 89 switch (stream_->ReadRawData(buf, to_read, bytes_read)) { 92 total_bytes_read_ += *bytes_read; 71 ReadRawData(net::IOBuffer* buf, int buf_size, int* bytes_read) argument
|
/external/chromium/sdch/open-vcdiff/src/ |
H A D | vcdiff_main.cc | 137 // into input_buffer_. If successful, returns true and sets *bytes_read 140 bool ReadInput(size_t* bytes_read); 311 bool VCDiffFileBasedCoder::ReadInput(size_t* bytes_read) { argument 313 *bytes_read = fread(&input_buffer_[0], 1, input_buffer_.size(), input_file_); 346 size_t bytes_read = fread(&compare_buffer_[0], local 355 if (bytes_read < output_size) { 360 if (output.compare(0, output_size, &compare_buffer_[0], bytes_read) != 0) { 410 size_t bytes_read = 0; local 411 if (!WriteOutput(output) || !ReadInput(&bytes_read)) { 416 if (bytes_read > 467 size_t bytes_read = 0; local 531 size_t bytes_read = 0; local [all...] |
/external/chromium_org/sdch/open-vcdiff/src/ |
H A D | vcdiff_main.cc | 138 // into input_buffer_. If successful, returns true and sets *bytes_read 141 bool ReadInput(size_t* bytes_read); 312 bool VCDiffFileBasedCoder::ReadInput(size_t* bytes_read) { argument 314 *bytes_read = fread(&input_buffer_[0], 1, input_buffer_.size(), input_file_); 347 size_t bytes_read = fread(&compare_buffer_[0], local 356 if (bytes_read < output_size) { 361 if (output.compare(0, output_size, &compare_buffer_[0], bytes_read) != 0) { 414 size_t bytes_read = 0; local 415 if (!WriteOutput(output) || !ReadInput(&bytes_read)) { 420 if (bytes_read > 471 size_t bytes_read = 0; local 535 size_t bytes_read = 0; local [all...] |
/external/open-vcdiff/src/ |
H A D | vcdiff_main.cc | 138 // into input_buffer_. If successful, returns true and sets *bytes_read 141 bool ReadInput(size_t* bytes_read); 312 bool VCDiffFileBasedCoder::ReadInput(size_t* bytes_read) { argument 314 *bytes_read = fread(&input_buffer_[0], 1, input_buffer_.size(), input_file_); 347 size_t bytes_read = fread(&compare_buffer_[0], local 356 if (bytes_read < output_size) { 361 if (output.compare(0, output_size, &compare_buffer_[0], bytes_read) != 0) { 414 size_t bytes_read = 0; local 415 if (!WriteOutput(output) || !ReadInput(&bytes_read)) { 420 if (bytes_read > 471 size_t bytes_read = 0; local 535 size_t bytes_read = 0; local [all...] |