Searched refs:copy_size (Results 1 – 5 of 5) sorted by relevance
/system/logging/logd/ |
D | SerializedData.h | 41 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/ |
D | event_fd.cpp | 211 size_t copy_size = std::min(data_size, mmap_data_buffer_size_ - data_pos); in GetAvailableMmapData() local 212 memcpy(&data[0], mmap_data_buffer_ + data_pos, copy_size); in GetAvailableMmapData() 213 if (copy_size < data_size) { in GetAvailableMmapData() 214 memcpy(&data[copy_size], mmap_data_buffer_, data_size - copy_size); in GetAvailableMmapData()
|
D | RecordReadThread.cpp | 188 size_t copy_size = std::min(size, buffer_mask_ + 1 - pos); in ReadRecord() local 189 memcpy(dest, buffer_ + pos, copy_size); in ReadRecord() 190 if (copy_size < size) { in ReadRecord() 191 memcpy(static_cast<char*>(dest) + copy_size, buffer_, size - copy_size); in ReadRecord()
|
D | ETMDecoder.cpp | 257 size_t copy_size = 0; in ReadTargetMemory() local 265 copy_size = file_size > offset ? std::min<size_t>(file_size - offset, *num_bytes) : 0; in ReadTargetMemory() 266 if (copy_size > 0) { in ReadTargetMemory() 267 memcpy(p_buffer, memory->getBufferStart() + offset, copy_size); in ReadTargetMemory() 281 *num_bytes = copy_size; in ReadTargetMemory()
|
/system/bt/bta/av/ |
D | bta_av_main.cc | 1056 uint16_t copy_size = BT_HDR_SIZE + p_buf->len + p_buf->offset; in bta_av_dup_audio_buf() local 1067 BT_HDR* p_new = (BT_HDR*)osi_malloc(copy_size); in bta_av_dup_audio_buf() 1068 memcpy(p_new, p_buf, copy_size); in bta_av_dup_audio_buf()
|