Home
last modified time | relevance | path

Searched refs:copy_size (Results 1 – 5 of 5) sorted by relevance

/system/core/logd/
DSerializedData.h41 size_t copy_size = std::min(size_, new_size); in Resize() local
42 memcpy(new_data.get(), data_.get(), copy_size); in Resize()
/system/extras/simpleperf/
Devent_fd.cpp219 size_t copy_size = std::min(data_size, mmap_data_buffer_size_ - data_pos); in GetAvailableMmapData() local
220 memcpy(&data[0], mmap_data_buffer_ + data_pos, copy_size); in GetAvailableMmapData()
221 if (copy_size < data_size) { in GetAvailableMmapData()
222 memcpy(&data[copy_size], mmap_data_buffer_, data_size - copy_size); in GetAvailableMmapData()
DRecordReadThread.cpp189 size_t copy_size = std::min(size, buffer_mask_ + 1 - pos); in ReadRecord() local
190 memcpy(dest, buffer_ + pos, copy_size); in ReadRecord()
191 if (copy_size < size) { in ReadRecord()
192 memcpy(static_cast<char*>(dest) + copy_size, buffer_, size - copy_size); in ReadRecord()
DETMDecoder.cpp255 size_t copy_size = 0; in ReadTargetMemory() local
261 copy_size = file_size > offset ? std::min<size_t>(file_size - offset, *num_bytes) : 0; in ReadTargetMemory()
262 if (copy_size > 0) { in ReadTargetMemory()
263 memcpy(p_buffer, memory->getBufferStart() + offset, copy_size); in ReadTargetMemory()
272 *num_bytes = copy_size; in ReadTargetMemory()
/system/bt/bta/av/
Dbta_av_main.cc1190 uint16_t copy_size = BT_HDR_SIZE + p_buf->len + p_buf->offset; in bta_av_dup_audio_buf() local
1201 BT_HDR* p_new = (BT_HDR*)osi_malloc(copy_size); in bta_av_dup_audio_buf()
1202 memcpy(p_new, p_buf, copy_size); in bta_av_dup_audio_buf()