/external/chromium_org/android_webview/native/ |
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); 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/ |
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/ |
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)) 151 int bytes_read; local 153 &bytes_read)) { 160 NotifyReadComplete(bytes_read); 170 int* bytes_read) { 171 DCHECK(bytes_read); 173 *bytes_read = 0 [all...] |
url_request_job.cc | 68 bool URLRequestJob::Read(IOBuffer* buf, int buf_size, int *bytes_read) { 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) { 379 OnRawReadComplete(bytes_read); 394 FilteredDataRead(bytes_read); [all...] |
/external/chromium/net/url_request/ |
url_request_job.cc | 60 bool URLRequestJob::Read(IOBuffer* buf, int buf_size, int *bytes_read) { 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) { 302 OnRawReadComplete(bytes_read); 315 prefilter_bytes_read_ += bytes_read; 318 FilteredDataRead(bytes_read); [all...] |
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| is > 0, this indicate [all...] |
url_request_simple_job.cc | 41 int* bytes_read) { 42 DCHECK(bytes_read); 48 *bytes_read = buf_size;
|
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 = 0 [all...] |
/external/chromium_org/third_party/sfntly/cpp/src/sfntly/data/ |
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 = 0 local 165 int32_t bytes_read = 0; local [all...] |
/external/sfntly/cpp/src/sfntly/data/ |
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 = 0 local 165 int32_t bytes_read = 0; local [all...] |
/external/chromium_org/device/bluetooth/ |
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) {
|
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/ |
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) { 38 return DispatchInputData(input_buf_, bytes_read);
|
ipc_channel_reader.h | 43 bool AsyncReadComplete(int bytes_read); 61 // read will be placed into |*bytes_read| (which can be less than the 70 virtual ReadState ReadData(char* buffer, int buffer_len, int* bytes_read) = 0;
|
/art/runtime/base/unix_file/ |
fd_file.cc | 112 int bytes_read = TEMP_FAILURE_RETRY(read(fd_, ptr, byte_count)); local 113 if (bytes_read <= 0) { 116 byte_count -= bytes_read; // Reduce the number of remaining bytes. 117 ptr += bytes_read; // Move the buffer forward. 125 int bytes_read = TEMP_FAILURE_RETRY(write(fd_, ptr, byte_count)); local 126 if (bytes_read < 0) { 129 byte_count -= bytes_read; // Reduce the number of remaining bytes. 130 ptr += bytes_read; // Move the buffer forward.
|
/external/chromium_org/content/browser/streams/ |
stream_url_request_job.cc | 50 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)) { [all...] |
/external/chromium_org/native_client_sdk/src/libraries/nacl_io/ |
mount_node_http.cc | 261 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...] |
/development/host/windows/usb/api/ |
adb_endpoint_object.cpp | 52 ULONG* bytes_read,
58 bytes_read,
78 ULONG* bytes_read,
83 bytes_read,
|
/external/chromium_org/android_webview/browser/ |
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/ |
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/ |
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/ |
crash_upload_list_win.cc | 21 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/ |
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/ |
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 = 0 local 152 ULONG bytes_read = 42; local [all...] |
/external/chromium_org/content/browser/fileapi/ |
fileapi_message_filter_unittest.cc | 169 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...] |