Home
last modified time | relevance | path

Searched refs:bytes_copied (Results 1 – 22 of 22) sorted by relevance

/external/chromium_org/net/spdy/
Dspdy_read_queue.cc36 size_t bytes_copied = 0; in Dequeue() local
37 while (!queue_.empty() && bytes_copied < len) { in Dequeue()
40 std::min(len - bytes_copied, buffer->GetRemainingSize()); in Dequeue()
41 memcpy(out + bytes_copied, buffer->GetRemainingData(), bytes_to_copy); in Dequeue()
42 bytes_copied += bytes_to_copy; in Dequeue()
50 total_size_ -= bytes_copied; in Dequeue()
51 return bytes_copied; in Dequeue()
/external/chromium_org/net/disk_cache/
Dnet_log_parameters.cc42 int bytes_copied, in NetLogReadWriteCompleteCallback() argument
44 DCHECK_NE(bytes_copied, net::ERR_IO_PENDING); in NetLogReadWriteCompleteCallback()
46 if (bytes_copied < 0) { in NetLogReadWriteCompleteCallback()
47 dict->SetInteger("net_error", bytes_copied); in NetLogReadWriteCompleteCallback()
49 dict->SetInteger("bytes_copied", bytes_copied); in NetLogReadWriteCompleteCallback()
111 int bytes_copied) { in CreateNetLogReadWriteCompleteCallback() argument
112 return base::Bind(&NetLogReadWriteCompleteCallback, bytes_copied); in CreateNetLogReadWriteCompleteCallback()
Dmapped_file_unittest.cc26 virtual void OnFileIOComplete(int bytes_copied) OVERRIDE;
34 void FileCallbackTest::OnFileIOComplete(int bytes_copied) { in OnFileIOComplete() argument
Dnet_log_parameters.h40 int bytes_copied);
Dfile.h25 virtual void OnFileIOComplete(int bytes_copied) = 0;
Dsparse_control.cc59 virtual void OnFileIOComplete(int bytes_copied) OVERRIDE;
81 void ChildrenDeleter::OnFileIOComplete(int bytes_copied) { in OnFileIOComplete() argument
83 Start(buffer, bytes_copied); in OnFileIOComplete()
Dentry_impl.cc46 virtual void OnFileIOComplete(int bytes_copied) OVERRIDE;
59 void SyncCallback::OnFileIOComplete(int bytes_copied) { in OnFileIOComplete() argument
65 disk_cache::CreateNetLogReadWriteCompleteCallback(bytes_copied)); in OnFileIOComplete()
69 callback_.Run(bytes_copied); in OnFileIOComplete()
/external/chromium/net/base/
Dupload_data_stream.cc72 size_t bytes_copied = std::min(count, size_remaining); in FillBuf() local
77 if (bytes_copied) { in FillBuf()
78 memcpy(buf_->data() + buf_len_, &d[next_element_offset_], bytes_copied); in FillBuf()
79 buf_len_ += bytes_copied; in FillBuf()
82 if (bytes_copied == count) { in FillBuf()
85 next_element_offset_ += bytes_copied; in FillBuf()
/external/chromium_org/content/browser/loader/
Dcertificate_resource_handler.cc129 size_t bytes_copied = 0; in AssembleResource() local
134 DCHECK_LE(bytes_copied + data_len, content_length_); in AssembleResource()
135 memcpy(resource_buffer_->data() + bytes_copied, data->data(), data_len); in AssembleResource()
136 bytes_copied += data_len; in AssembleResource()
138 DCHECK_EQ(content_length_, bytes_copied); in AssembleResource()
/external/chromium_org/chrome_frame/
Durlmon_upload_data_stream.cc86 uint64 bytes_copied = 0; in Read() local
89 while (bytes_copied < total_bytes_to_copy) { in Read()
90 size_t bytes_to_copy_now = total_bytes_to_copy - bytes_copied; in Read()
103 bytes_copied += bytes_read; in Read()
109 DCHECK_LE(bytes_copied, total_bytes_to_copy); in Read()
112 *read = static_cast<ULONG>(bytes_copied); in Read()
Durlmon_url_request.cc123 size_t bytes_copied = 0; in Read() local
124 if ((bytes_copied = SendDataToDelegate(bytes_to_read))) { in Read()
125 DVLOG(1) << __FUNCTION__ << me() << " bytes read: " << bytes_copied; in Read()
207 size_t bytes_copied = 0; in SendDataToDelegate() local
237 bytes_copied = read_data.length(); in SendDataToDelegate()
239 if (bytes_copied) { in SendDataToDelegate()
251 return bytes_copied; in SendDataToDelegate()
549 size_t bytes_copied = SendDataToDelegate(pending_read_size_); in OnDataAvailable() local
550 DVLOG(1) << __FUNCTION__ << me() << "size read: " << bytes_copied; in OnDataAvailable()
/external/bluetooth/bluedroid/stack/hid/
Dhidh_conn.c822 UINT16 bytes_copied; in hidh_conn_snd_data() local
872 bytes_copied = 0; in hidh_conn_snd_data()
883 bytes_copied = p_hcon->rem_mtu_size - 1; in hidh_conn_snd_data()
891 bytes_copied = buf->len; in hidh_conn_snd_data()
901 data_size = bytes_copied = 1; in hidh_conn_snd_data()
907 memcpy (p_out, (((UINT8 *)(buf+1)) + buf->offset), bytes_copied); in hidh_conn_snd_data()
908 buf->offset += bytes_copied; in hidh_conn_snd_data()
909 buf->len -= bytes_copied; in hidh_conn_snd_data()
913 *(p_out+bytes_copied) = data & 0xff; in hidh_conn_snd_data()
917 *(p_out+bytes_copied) = data & 0xff; in hidh_conn_snd_data()
[all …]
/external/chromium_org/net/base/
Dupload_data_stream.cc220 const int bytes_copied = buf->BytesConsumed(); in ReadInternal() local
221 current_position_ += bytes_copied; in ReadInternal()
224 if (is_chunked_ && !IsEOF() && bytes_copied == 0) { in ReadInternal()
237 DCHECK(bytes_copied != 0 || IsEOF()); in ReadInternal()
238 return bytes_copied; in ReadInternal()
/external/chromium/net/disk_cache/
Dmapped_file_unittest.cc25 virtual void OnFileIOComplete(int bytes_copied);
30 void FileCallbackTest::OnFileIOComplete(int bytes_copied) { in OnFileIOComplete() argument
Dnet_log_parameters.cc43 ReadWriteCompleteParameters::ReadWriteCompleteParameters(int bytes_copied) in ReadWriteCompleteParameters() argument
44 : bytes_copied_(bytes_copied) { in ReadWriteCompleteParameters()
Dfile.h25 virtual void OnFileIOComplete(int bytes_copied) = 0;
Dnet_log_parameters.h53 explicit ReadWriteCompleteParameters(int bytes_copied);
Dsparse_control.cc58 virtual void OnFileIOComplete(int bytes_copied);
80 void ChildrenDeleter::OnFileIOComplete(int bytes_copied) { in OnFileIOComplete() argument
82 Start(buffer, bytes_copied); in OnFileIOComplete()
Dentry_impl.cc45 virtual void OnFileIOComplete(int bytes_copied);
58 void SyncCallback::OnFileIOComplete(int bytes_copied) { in OnFileIOComplete() argument
65 new disk_cache::ReadWriteCompleteParameters(bytes_copied))); in OnFileIOComplete()
68 callback_->Run(bytes_copied); in OnFileIOComplete()
/external/chromium_org/chrome/browser/resources/net_internals/
Dtimeline_data_series.js362 if (entry.params.bytes_copied != 0)
363 this.addPoint(entry.time, entry.params.bytes_copied);
/external/chromium_org/media/base/
Dseekable_buffer_unittest.cc60 int bytes_copied = buffer_.Peek(write_buffer_, copy_size); in TEST_F() local
61 EXPECT_GE(copy_size, bytes_copied); in TEST_F()
62 EXPECT_EQ(0, memcmp(write_buffer_, data_ + read_position, bytes_copied)); in TEST_F()
/external/chromium_org/net/disk_cache/v3/
Dsparse_control_v3.cc59 virtual void OnFileIOComplete(int bytes_copied) OVERRIDE;
81 void ChildrenDeleter::OnFileIOComplete(int bytes_copied) { in OnFileIOComplete() argument
83 Start(buffer, bytes_copied); in OnFileIOComplete()