/external/chromium/net/url_request/ |
D | url_request_job.cc | 60 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 …]
|
D | url_request_file_dir_job.cc | 79 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 …]
|
D | url_request_job.h | 85 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);
|
D | url_request_test_util.cc | 200 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 …]
|
D | url_request_test_job.cc | 158 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/ |
D | vcdiff_main.cc | 140 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/ |
D | platform_file_unittest.cc | 17 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/ |
D | transport_client_socket_unittest.cc | 136 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/ |
D | dbus-file-win.c | 53 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 …]
|
D | dbus-transport-socket.c | 249 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/ |
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; 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);
|
D | rw-by-pid.pl | 31 $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/ |
D | file_stream_win.cc | 68 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/ |
D | gconvert.h | 69 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,
|
D | gconvert.c | 600 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/ |
D | memory-input-stream.c | 35 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/ |
D | test_file_util_win.cc | 65 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/ |
D | bloom_filter.cc | 102 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/ |
D | plugin_download_helper.cc | 78 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()
|
D | crash_upload_list_win.cc | 19 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/ |
D | ogg_helper.c | 47 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/ |
D | s_time.c | 134 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/ |
D | gbufferedinputstream.c | 777 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/ |
D | view_http_cache_job_factory.cc | 39 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/ |
D | test-sockets.cc | 64 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()
|