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

1234567891011>>

/external/chromium_org/content/browser/fileapi/
H A Dmock_url_request_delegate.cc34 int bytes_read) {
35 if (bytes_read > 0)
36 ReceiveData(request, bytes_read);
47 int bytes_read = 0; local
48 if (!request->Read(io_buffer_.get(), kBufferSize, &bytes_read)) {
54 ReceiveData(request, bytes_read);
58 int bytes_read) {
59 if (bytes_read) {
61 static_cast<size_t>(bytes_read));
33 OnReadCompleted(net::URLRequest* request, int bytes_read) argument
57 ReceiveData(net::URLRequest* request, int bytes_read) argument
H A Dmock_url_request_delegate.h24 int bytes_read) OVERRIDE;
29 void ReceiveData(net::URLRequest* request, int bytes_read);
H A Dfileapi_message_filter_unittest.cc160 int bytes_read = 0; local
166 stream->ReadRawData(buffer.get(), kBufferSize, &bytes_read));
167 EXPECT_EQ(0, bytes_read);
176 stream->ReadRawData(buffer.get(), kBufferSize, &bytes_read));
177 EXPECT_EQ(0, bytes_read);
183 stream->ReadRawData(buffer.get(), kBufferSize, &bytes_read));
184 EXPECT_EQ(0, bytes_read);
213 int bytes_read = 0; local
219 stream->ReadRawData(buffer.get(), kFakeData.size(), &bytes_read));
220 EXPECT_EQ(kFakeData.size(), static_cast<size_t>(bytes_read));
260 int bytes_read = 0; local
[all...]
/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
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);
/external/chromium_org/components/cronet/android/
H A Dwrapped_channel_upload_element_reader.cc46 int bytes_read = delegate_->ReadFromUploadChannel(buf, buf_length); local
47 if (bytes_read < 0)
49 offset_ += bytes_read;
50 return bytes_read;
/external/chromium_org/third_party/libvpx/source/libvpx/
H A Divfdec.h22 size_t *bytes_read, size_t *buffer_size);
/external/libvpx/libvpx/
H A Divfdec.h22 size_t *bytes_read, size_t *buffer_size);
/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.cc67 bool URLRequestJob::Read(IOBuffer* buf, int buf_size, int *bytes_read) { argument
72 DCHECK(bytes_read);
76 *bytes_read = 0;
80 rv = ReadRawDataHelper(buf, buf_size, bytes_read);
87 if (ReadFilteredData(bytes_read)) {
93 if (*bytes_read == 0)
99 if (rv && *bytes_read == 0)
379 void URLRequestJob::NotifyReadComplete(int bytes_read) { argument
391 OnRawReadComplete(bytes_read);
406 FilteredDataRead(bytes_read);
513 ReadRawData(IOBuffer* buf, int buf_size, int *bytes_read) argument
527 FilteredDataRead(int bytes_read) argument
532 ReadFilteredData(int* bytes_read) argument
673 ReadRawDataForFilter(int* bytes_read) argument
692 ReadRawDataHelper(IOBuffer* buf, int buf_size, int* bytes_read) argument
718 OnRawReadComplete(int bytes_read) argument
734 RecordBytesRead(int bytes_read) argument
[all...]
H A Durl_request_job.h104 bool Read(IOBuffer* buf, int buf_size, int* bytes_read);
260 void NotifyReadComplete(int bytes_read);
290 // the data, and bytes_read will receive the number of bytes read.
291 // If returning true, and bytes_read is returned as 0, there is no
298 virtual bool ReadRawData(IOBuffer* buf, int buf_size, int *bytes_read);
310 void FilteredDataRead(int bytes_read);
316 bool ReadFilteredData(int *bytes_read);
359 bool ReadRawDataForFilter(int *bytes_read);
363 bool ReadRawDataHelper(IOBuffer* buf, int buf_size, int* bytes_read);
370 // Called after every raw read. If |bytes_read| i
[all...]
/external/chromium_org/chrome/utility/image_writer/
H A Dimage_writer.cc120 int bytes_read = image_file_.Read(bytes_processed_, buffer.get(), local
123 if (bytes_read > 0) {
126 int bytes_to_write = bytes_read + (kMemoryAlignment - 1) -
127 (bytes_read - 1) % kMemoryAlignment;
132 if (bytes_written < bytes_read) {
137 bytes_processed_ += bytes_read;
141 } else if (bytes_read == 0) {
162 int bytes_read = image_file_.Read(bytes_processed_, image_buffer.get(), local
165 if (bytes_read > 0) {
168 kBurningBlockSize) < bytes_read) {
[all...]
/external/e2fsprogs/resize/
H A Dresource_track.c42 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
[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/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/chromium_org/device/serial/
H A Dbuffer.h21 virtual void Done(uint32_t bytes_read) = 0;
22 virtual void DoneWithError(uint32_t bytes_read, int32_t error) = 0;
H A Ddata_sink_receiver.cc54 virtual void Done(uint32_t bytes_read) OVERRIDE;
55 virtual void DoneWithError(uint32_t bytes_read, int32_t error) OVERRIDE;
174 void DataSinkReceiver::Done(uint32_t bytes_read) { argument
175 if (!DoneInternal(bytes_read))
177 client()->ReportBytesSent(bytes_read);
181 void DataSinkReceiver::DoneWithError(uint32_t bytes_read, int32_t error) { argument
182 if (!DoneInternal(bytes_read))
184 ReportBytesSentAndError(bytes_read, error);
187 bool DataSinkReceiver::DoneInternal(uint32_t bytes_read) { argument
193 MojoResult result = mojo::EndReadDataRaw(handle_.get(), bytes_read);
201 ReportBytesSentAndError(uint32_t bytes_read, int32_t error) argument
265 Done(uint32_t bytes_read) argument
275 DoneWithError(uint32_t bytes_read, int32_t error) argument
[all...]
H A Ddata_sink_receiver.h62 // Reports a successful read of |bytes_read|.
63 void Done(uint32_t bytes_read);
65 // Reports a partially successful or unsuccessful read of |bytes_read|
67 void DoneWithError(uint32_t bytes_read, int32_t error);
70 bool DoneInternal(uint32_t bytes_read);
73 void ReportBytesSentAndError(uint32_t bytes_read, int32_t error);
/external/linux-tools-perf/perf-3.12.0/tools/perf/scripts/perl/
H A Drwtop.pl44 $reads{$common_pid}{bytes_read} += $ret;
46 if (!defined ($reads{$common_pid}{bytes_read})) {
47 $reads{$common_pid}{bytes_read} = 0;
132 "# reads", "bytes_req", "bytes_read");
136 foreach my $pid (sort { ($reads{$b}{bytes_read} || 0) <=>
137 ($reads{$a}{bytes_read} || 0) } keys %reads) {
141 my $bytes_read = $reads{$pid}{bytes_read} || 0;
144 $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/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/mojo/services/public/cpp/network/
H A Dweb_socket_read_queue.cc37 uint32_t bytes_read = op->num_bytes_; local
39 handle_, &buffer, &bytes_read, MOJO_READ_DATA_FLAG_ALL_OR_NONE);
41 EndReadDataRaw(handle_, bytes_read);
53 EndReadDataRaw(handle, bytes_read);
/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_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);

Completed in 599 milliseconds

1234567891011>>