/external/chromium_org/net/base/ |
D | test_data_stream.cc | 17 int bytes_to_copy = std::min(length, bytes_remaining_); in GetBytes() local 18 memcpy(buffer, buffer_ptr_, bytes_to_copy); in GetBytes() 19 buffer += bytes_to_copy; in GetBytes() 20 Consume(bytes_to_copy); in GetBytes() 21 length -= bytes_to_copy; in GetBytes()
|
/external/chromium_org/net/spdy/ |
D | spdy_read_queue.cc | 39 size_t bytes_to_copy = in Dequeue() local 41 memcpy(out + bytes_copied, buffer->GetRemainingData(), bytes_to_copy); in Dequeue() 42 bytes_copied += bytes_to_copy; in Dequeue() 43 if (bytes_to_copy == buffer->GetRemainingSize()) { in Dequeue() 47 buffer->Consume(bytes_to_copy); in Dequeue()
|
/external/chromium_org/chrome/browser/devtools/device/usb/ |
D | android_usb_socket.cc | 126 size_t bytes_to_copy = static_cast<size_t>(length) > read_buffer_.length() ? in Read() local 128 memcpy(buffer->data(), read_buffer_.data(), bytes_to_copy); in Read() 129 if (read_buffer_.length() > bytes_to_copy) in Read() 130 read_buffer_ = read_buffer_.substr(bytes_to_copy); in Read() 133 return bytes_to_copy; in Read() 239 size_t bytes_to_copy = in RespondToReaders() local 242 memcpy(read_request.buffer->data(), read_buffer_.data(), bytes_to_copy); in RespondToReaders() 243 if (read_buffer_.length() > bytes_to_copy) in RespondToReaders() 244 read_buffer_ = read_buffer_.substr(bytes_to_copy); in RespondToReaders() 247 read_request.callback.Run(bytes_to_copy); in RespondToReaders()
|
/external/chromium_org/remoting/client/ |
D | audio_player.cc | 124 size_t bytes_to_copy = std::min( in FillWithSamples() local 127 memcpy(next_sample, packet_data.data() + bytes_consumed_, bytes_to_copy); in FillWithSamples() 129 next_sample += bytes_to_copy; in FillWithSamples() 130 bytes_consumed_ += bytes_to_copy; in FillWithSamples() 131 bytes_extracted += bytes_to_copy; in FillWithSamples() 132 queued_bytes_ -= bytes_to_copy; in FillWithSamples()
|
/external/chromium_org/native_client_sdk/src/libraries/nacl_io/devfs/ |
D | tty_node.cc | 124 size_t bytes_to_copy = std::min(count, input_buffer_.size()); in Read() local 133 bytes_to_copy = std::min(bytes_to_copy, line_len); in Read() 139 input_buffer_.begin() + bytes_to_copy, in Read() 141 *out_bytes = bytes_to_copy; in Read() 143 input_buffer_.begin() + bytes_to_copy); in Read()
|
D | dev_fs.cc | 214 int bytes_to_copy = std::min(bytes_left, sizeof(random_int)); in Read() local 215 memcpy(out, &random_int, bytes_to_copy); in Read() 216 out += bytes_to_copy; in Read() 217 bytes_left -= bytes_to_copy; in Read()
|
/external/chromium_org/content/renderer/pepper/ |
D | pepper_media_stream_audio_track_host.cc | 252 uint32_t bytes_to_copy = std::min(buffer_bytes_remaining, in OnData() local 254 uint32_t frames_to_copy = bytes_to_copy / bytes_per_frame; in OnData() 255 DCHECK_EQ(bytes_to_copy % bytes_per_frame, 0U); in OnData() 257 audio_data, bytes_to_copy); in OnData() 258 active_buffer_offset_ += bytes_to_copy; in OnData() 259 audio_data += bytes_to_copy / sizeof(*audio_data); in OnData()
|
/external/chromium_org/net/quic/ |
D | quic_http_stream.cc | 182 const int bytes_to_copy = std::min(buf_len, data->size()); in ReadResponseBody() local 183 memcpy(&(buf->data()[bytes_read]), data->data(), bytes_to_copy); in ReadResponseBody() 184 buf_len -= bytes_to_copy; in ReadResponseBody() 185 if (bytes_to_copy == data->size()) { in ReadResponseBody() 188 const int bytes_remaining = data->size() - bytes_to_copy; in ReadResponseBody() 190 memcpy(new_buffer->data(), &(data->data()[bytes_to_copy]), in ReadResponseBody() 195 bytes_read += bytes_to_copy; in ReadResponseBody()
|
/external/chromium_org/third_party/leveldatabase/src/helpers/memenv/ |
D | memenv.cc | 74 size_t bytes_to_copy = n; in Read() local 77 while (bytes_to_copy > 0) { in Read() 79 if (avail > bytes_to_copy) { in Read() 80 avail = bytes_to_copy; in Read() 84 bytes_to_copy -= avail; in Read()
|
/external/chromium_org/ppapi/proxy/ |
D | url_loader_resource.cc | 381 size_t bytes_to_copy = std::min(buffer_.size(), user_buffer_size_); in FillUserBuffer() local 382 std::copy(buffer_.begin(), buffer_.begin() + bytes_to_copy, user_buffer_); in FillUserBuffer() 383 buffer_.erase(buffer_.begin(), buffer_.begin() + bytes_to_copy); in FillUserBuffer() 396 return bytes_to_copy; in FillUserBuffer()
|
/external/libpng/ |
D | pngrutil.c | 3272 unsigned int bytes_to_copy, bytes_to_jump; in png_combine_row() local 3300 bytes_to_copy = (1<<((6-pass)>>1)) * pixel_depth; in png_combine_row() 3303 if (bytes_to_copy > row_width) in png_combine_row() 3304 bytes_to_copy = (unsigned int)/*SAFE*/row_width; in png_combine_row() 3308 bytes_to_copy = pixel_depth; in png_combine_row() 3321 switch (bytes_to_copy) in png_combine_row() 3380 if (bytes_to_copy < 16 /*else use memcpy*/ && in png_combine_row() 3383 bytes_to_copy % (sizeof (png_uint_16)) == 0 && in png_combine_row() 3391 bytes_to_copy % (sizeof (png_uint_32)) == 0 && in png_combine_row() 3397 size_t skip = (bytes_to_jump-bytes_to_copy) / in png_combine_row() [all …]
|
/external/chromium_org/native_client_sdk/src/tests/nacl_io_test/fake_ppapi/ |
D | fake_pepper_interface_url_loader.cc | 216 size_t bytes_to_copy = std::min(bytes_left, src_size - src_offset); in Read() local 217 memcpy(dst, src + src_offset, bytes_to_copy); in Read() 218 dst += bytes_to_copy; in Read() 219 bytes_left -= bytes_to_copy; in Read()
|
/external/chromium_org/third_party/webrtc/modules/video_coding/codecs/vp8/ |
D | vp8_impl.cc | 708 const uint32_t bytes_to_copy = input_image._length; in Decode() local 709 if (last_keyframe_._size < bytes_to_copy) { in Decode() 722 last_keyframe_._size = bytes_to_copy; in Decode() 726 memcpy(last_keyframe_._buffer, input_image._buffer, bytes_to_copy); in Decode() 727 last_keyframe_._length = bytes_to_copy; in Decode()
|
/external/chromium_org/chrome/browser/thumbnails/ |
D | content_analysis.cc | 698 size_t bytes_to_copy = (c - left_copy_pixel) * bitmap.bytesPerPixel(); in ComputeDecimatedImage() local 701 bytes_to_copy); in ComputeDecimatedImage() 703 insertion_target += bytes_to_copy; in ComputeDecimatedImage() 708 size_t bytes_to_copy = in ComputeDecimatedImage() local 712 bytes_to_copy); in ComputeDecimatedImage()
|
/external/lldb/source/Plugins/Process/MacOSX-Kernel/ |
D | CommunicationKDP.cpp | 1339 const uint32_t bytes_to_copy = std::min<uint32_t>(src_len, dst_len); in SendRequestReadRegisters() local 1340 const void *src = reply_packet.GetData(&offset, bytes_to_copy); in SendRequestReadRegisters() 1343 ::memcpy (dst, src, bytes_to_copy); in SendRequestReadRegisters()
|
/external/bluetooth/bluedroid/bta/dm/ |
D | bta_dm_act.c | 2821 UINT32 bytes_to_copy; in bta_dm_pinname_cback() local 2832 bytes_to_copy = (p_result->length < (BD_NAME_LEN-1)) in bta_dm_pinname_cback() 2834 memcpy(sec_event.cfm_req.bd_name, p_result->remote_bd_name, bytes_to_copy); in bta_dm_pinname_cback() 2853 bytes_to_copy = (p_result->length < (BD_NAME_LEN-1)) in bta_dm_pinname_cback() 2855 memcpy(sec_event.pin_req.bd_name, p_result->remote_bd_name, bytes_to_copy); in bta_dm_pinname_cback()
|
/external/chromium_org/pdf/pdfium/ |
D | pdfium_engine.cc | 3196 int bytes_to_copy = rv_bytes < length ? rv_bytes : length; in Form_Response() local 3197 memcpy(response, rv_16.c_str(), bytes_to_copy); in Form_Response()
|