Home
last modified time | relevance | path

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

1234567

/external/chromium/net/url_request/
Durl_request_job.cc60 bool URLRequestJob::Read(IOBuffer* buf, int buf_size, int *bytes_read) { in Read() argument
65 DCHECK(bytes_read); in Read()
69 *bytes_read = 0; in Read()
73 rv = ReadRawDataHelper(buf, buf_size, bytes_read); in Read()
80 if (ReadFilteredData(bytes_read)) { in Read()
86 if (rv && *bytes_read == 0) in Read()
291 void URLRequestJob::NotifyReadComplete(int bytes_read) { in NotifyReadComplete() argument
302 OnRawReadComplete(bytes_read); in NotifyReadComplete()
315 prefilter_bytes_read_ += bytes_read; in NotifyReadComplete()
318 FilteredDataRead(bytes_read); in NotifyReadComplete()
[all …]
Durl_request_file_dir_job.cc79 int *bytes_read) { in ReadRawData() argument
80 DCHECK(bytes_read); in ReadRawData()
81 *bytes_read = 0; in ReadRawData()
86 if (FillReadBuffer(buf->data(), buf_size, bytes_read)) in ReadRawData()
187 int bytes_read; in CompleteRead() local
189 &bytes_read)) { in CompleteRead()
196 NotifyReadComplete(bytes_read); in CompleteRead()
206 int *bytes_read) { in FillReadBuffer() argument
207 DCHECK(bytes_read); in FillReadBuffer()
209 *bytes_read = 0; in FillReadBuffer()
[all …]
Durl_request_job.h85 bool Read(IOBuffer* buf, int buf_size, int* bytes_read);
190 void NotifyReadComplete(int bytes_read);
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);
285 void OnRawReadComplete(int bytes_read);
289 void RecordBytesRead(int bytes_read);
Durl_request_test_util.cc200 int bytes_read = 0; in OnResponseStarted() local
201 if (request->Read(buf_, kBufferSize, &bytes_read)) in OnResponseStarted()
202 OnReadCompleted(request, bytes_read); in OnResponseStarted()
208 void TestDelegate::OnReadCompleted(net::URLRequest* request, int bytes_read) { in OnReadCompleted() argument
218 if (bytes_read >= 0) { in OnReadCompleted()
220 received_bytes_count_ += bytes_read; in OnReadCompleted()
223 data_received_.append(buf_->data(), bytes_read); in OnReadCompleted()
227 if (request->status().is_success() && bytes_read > 0) { in OnReadCompleted()
228 bytes_read = 0; in OnReadCompleted()
229 while (request->Read(buf_, kBufferSize, &bytes_read)) { in OnReadCompleted()
[all …]
Durl_request_test_job.cc158 int *bytes_read) { in ReadRawData() argument
166 DCHECK(bytes_read); in ReadRawData()
167 *bytes_read = 0; in ReadRawData()
180 *bytes_read = to_read; in ReadRawData()
221 int bytes_read; in ProcessNextOperation() local
222 if (!ReadRawData(async_buf_, async_buf_size_, &bytes_read)) in ProcessNextOperation()
225 NotifyReadComplete(bytes_read); in ProcessNextOperation()
/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/base/
Dplatform_file_unittest.cc17 int bytes_read; in ReadFully() local
19 bytes_read = base::ReadPlatformFile( in ReadFully()
24 if (bytes_read == 0) in ReadFully()
27 if ((bytes_read < 0) || (bytes_read > size - total_bytes_read)) in ReadFully()
30 total_bytes_read += bytes_read; in ReadFully()
155 int bytes_read = ReadFully(file, kTestDataSize, data_read_1, kTestDataSize); in TEST() local
156 EXPECT_EQ(0, bytes_read); in TEST()
160 bytes_read = ReadFully(file, kPartialReadOffset, data_read_1, kTestDataSize); in TEST()
161 EXPECT_EQ(kTestDataSize - kPartialReadOffset, bytes_read); in TEST()
162 for (int i = 0; i < bytes_read; i++) in TEST()
[all …]
/external/chromium/net/socket/
Dtransport_client_socket_unittest.cc136 uint32 bytes_read = 0; in DrainClientSocket() local
138 while (bytes_read < bytes_to_read) { in DrainClientSocket()
146 bytes_read += rv; in DrainClientSocket()
149 return static_cast<int>(bytes_read); in DrainClientSocket()
204 uint32 bytes_read; in TEST_P() local
221 bytes_read = DrainClientSocket(buf, 1, 1, &callback); in TEST_P()
222 ASSERT_EQ(bytes_read, 1u); in TEST_P()
229 bytes_read = DrainClientSocket(buf, 4096, arraysize(kServerReply) - 2, in TEST_P()
231 ASSERT_EQ(bytes_read, arraysize(kServerReply) - 2); in TEST_P()
242 bytes_read = DrainClientSocket(buf, 1, 1, &callback); in TEST_P()
[all …]
/external/dbus/dbus/
Ddbus-file-win.c53 DWORD bytes_read; in _dbus_file_read() local
71 result = ReadFile (hnd, data, count, &bytes_read, NULL); in _dbus_file_read()
81 if (bytes_read) in _dbus_file_read()
84 _dbus_string_set_length (buffer, start + bytes_read); in _dbus_file_read()
87 if (bytes_read > 0) in _dbus_file_read()
88 _dbus_verbose_bytes_of_string (buffer, start, bytes_read); in _dbus_file_read()
92 return bytes_read; in _dbus_file_read()
166 int bytes_read; in _dbus_file_get_contents() local
170 bytes_read = _dbus_file_read (hnd, str, fsize - total, error); in _dbus_file_get_contents()
171 if (bytes_read <= 0) in _dbus_file_get_contents()
[all …]
Ddbus-transport-socket.c249 int bytes_read; in read_data_into_auth() local
255 bytes_read = _dbus_read_socket (socket_transport->fd, in read_data_into_auth()
259 bytes_read > 0 ? bytes_read : 0); in read_data_into_auth()
261 if (bytes_read > 0) in read_data_into_auth()
263 _dbus_verbose (" read %d bytes in auth phase\n", bytes_read); in read_data_into_auth()
267 else if (bytes_read < 0) in read_data_into_auth()
288 _dbus_assert (bytes_read == 0); in read_data_into_auth()
699 int bytes_read; in do_reading() local
740 bytes_read = _dbus_string_get_length (&socket_transport->encoded_incoming); in do_reading()
742 bytes_read = _dbus_read_socket (socket_transport->fd, in do_reading()
[all …]
/external/linux-tools-perf/scripts/perl/
Drwtop.pl43 $reads{$common_pid}{bytes_read} += $ret;
45 if (!defined ($reads{$common_pid}{bytes_read})) {
46 $reads{$common_pid}{bytes_read} = 0;
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);
Drw-by-pid.pl31 $reads{$common_pid}{bytes_read} += $ret;
33 if (!defined ($reads{$common_pid}{bytes_read})) {
34 $reads{$common_pid}{bytes_read} = 0;
82 foreach my $pid (sort { ($reads{$b}{bytes_read} || 0) <=>
83 ($reads{$a}{bytes_read} || 0) } keys %reads) {
87 my $bytes_read = $reads{$pid}{bytes_read} || 0;
90 $total_reads, $bytes_requested, $bytes_read);
/external/chromium/net/base/
Dfile_stream_win.cc68 DWORD bytes_read, DWORD error);
98 MessageLoopForIO::IOContext* context, DWORD bytes_read, DWORD error) { in OnIOCompleted() argument
107 int result = static_cast<int>(bytes_read); in OnIOCompleted()
111 if (bytes_read) in OnIOCompleted()
112 IncrementOffset(&context->overlapped, bytes_read); in OnIOCompleted()
239 DWORD bytes_read; in Read() local
240 if (!ReadFile(file_, buf, buf_len, &bytes_read, overlapped)) { in Read()
255 rv = static_cast<int>(bytes_read); in Read()
265 int bytes_read = Read(buf, to_read, NULL); in ReadUntilComplete() local
266 if (bytes_read <= 0) { in ReadUntilComplete()
[all …]
/external/bluetooth/glib/glib/
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,
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 …]
/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/chromium/base/test/
Dtest_file_util_win.cc65 DWORD bytes_read, bytes_written; in EvictFileFromSystemCache() local
67 bytes_read = 0; in EvictFileFromSystemCache()
68 ::ReadFile(file_handle, buffer, kOneMB, &bytes_read, NULL); in EvictFileFromSystemCache()
69 if (bytes_read == 0) in EvictFileFromSystemCache()
72 if (bytes_read < kOneMB) { in EvictFileFromSystemCache()
77 ZeroMemory(buffer + bytes_read, kOneMB - bytes_read); in EvictFileFromSystemCache()
94 total_bytes += bytes_read; in EvictFileFromSystemCache()
/external/chromium/chrome/browser/safe_browsing/
Dbloom_filter.cc102 int bytes_read = filter.Read(reinterpret_cast<char*>(&file_version), in LoadFile() local
104 if (bytes_read != sizeof(file_version) || file_version != kFileVersion) { in LoadFile()
111 bytes_read = filter.Read(reinterpret_cast<char*>(&num_keys), in LoadFile()
113 if (bytes_read != sizeof(num_keys) || in LoadFile()
122 bytes_read = filter.Read(reinterpret_cast<char*>(&key), sizeof(key), NULL); in LoadFile()
123 if (bytes_read != sizeof(key)) { in LoadFile()
142 bytes_read = filter.Read(data.get(), byte_size, NULL); in LoadFile()
143 if (bytes_read < byte_size) { in LoadFile()
146 } else if (bytes_read != byte_size) { in LoadFile()
/external/chromium/chrome/browser/
Dplugin_download_helper.cc78 int bytes_read = 0; in OnResponseStarted() local
80 &bytes_read)) { in OnResponseStarted()
86 } else if (bytes_read == 0) { in OnResponseStarted()
89 OnReadCompleted(request, bytes_read); in OnResponseStarted()
95 int bytes_read) { in OnReadCompleted() argument
98 if (bytes_read == 0) { in OnReadCompleted()
103 int request_bytes_read = bytes_read; in OnReadCompleted()
Dcrash_upload_list_win.cc19 DWORD bytes_read; in LoadCrashList() local
27 &bytes_read, in LoadCrashList()
33 while (record_offset < bytes_read) { in LoadCrashList()
34 DCHECK(record_offset + sizeof(EVENTLOGRECORD) <= bytes_read); in LoadCrashList()
36 DCHECK(record_offset + record->Length <= bytes_read); in LoadCrashList()
/external/flac/libFLAC/
Dogg_helper.c47 size_t bytes_read = bytes; in full_read_() local
48 switch(read_callback(encoder, buffer, &bytes_read, client_data)) { in full_read_()
50 bytes -= bytes_read; in full_read_()
51 buffer += bytes_read; in full_read_()
54 if(bytes_read == 0) { in full_read_()
58 bytes -= bytes_read; in full_read_()
59 buffer += bytes_read; in full_read_()
/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/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/chromium/chrome/browser/net/
Dview_http_cache_job_factory.cc39 virtual bool ReadRawData(net::IOBuffer* buf, int buf_size, int *bytes_read) { in ReadRawData() argument
40 return core_->ReadRawData(buf, buf_size, bytes_read); in ReadRawData()
62 bool ReadRawData(net::IOBuffer* buf, int buf_size, int *bytes_read);
160 int* bytes_read) { in ReadRawData() argument
161 DCHECK(bytes_read); in ReadRawData()
167 *bytes_read = buf_size; in ReadRawData()
/external/v8/test/cctest/
Dtest-sockets.cc64 int bytes_read = 0; in Run() local
65 while (bytes_read < data_size_) { in Run()
66 bytes_read += client_->Receive(data_ + bytes_read, data_size_ - bytes_read); in Run()

1234567