Home
last modified time | relevance | path

Searched refs:pad_size (Results 1 – 4 of 4) sorted by relevance

/system/extras/simpleperf/
Drecord_file_writer.cpp269 size_t pad_size = Align(s.size() + 1, 64) - s.size() - 1; in WriteStringWithLength() local
270 if (pad_size > 0u) { in WriteStringWithLength()
271 char align_buf[pad_size]; in WriteStringWithLength()
272 memset(align_buf, '\0', pad_size); in WriteStringWithLength()
273 if (!Write(align_buf, pad_size)) { in WriteStringWithLength()
DRecordReadThread.cpp604 size_t pad_size = auxtrace.data->aux_size - aux_size; in ReadAuxDataFromKernelBuffer() local
605 if (pad_size != 0) { in ReadAuxDataFromKernelBuffer()
607 memcpy(p, &pad, pad_size); in ReadAuxDataFromKernelBuffer()
DRecordReadThread_test.cpp451 FakeAuxData(size_t buf1_size, size_t buf2_size, char c, size_t pad_size, bool lost) in FakeAuxData()
452 : buf1(buf1_size, c), buf2(buf2_size, c), pad(pad_size, 0), lost(lost) {} in FakeAuxData()
/system/libhwbinder/
DParcel.cpp66 static size_t pad_size(size_t s) { in pad_size() function
466 const size_t padded = pad_size(len); in writeInplace()
895 if ((mDataPos+pad_size(len)) >= mDataPos && (mDataPos+pad_size(len)) <= mDataSize in read()
896 && len <= pad_size(len)) { in read()
898 mDataPos += pad_size(len); in read()
913 if ((mDataPos+pad_size(len)) >= mDataPos && (mDataPos+pad_size(len)) <= mDataSize in readInplace()
914 && len <= pad_size(len)) { in readInplace()
916 mDataPos += pad_size(len); in readInplace()
1117 mDataPos += pad_size(len+1); in readCString()