Home
last modified time | relevance | path

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

/system/extras/simpleperf/
Drecord_file_writer.cpp272 size_t pad_size = Align(s.size() + 1, 64) - s.size() - 1; in WriteStringWithLength() local
273 if (pad_size > 0u) { in WriteStringWithLength()
274 char align_buf[pad_size]; in WriteStringWithLength()
275 memset(align_buf, '\0', pad_size); in WriteStringWithLength()
276 if (!Write(align_buf, pad_size)) { in WriteStringWithLength()
DRecordReadThread.cpp605 size_t pad_size = auxtrace.data->aux_size - aux_size; in ReadAuxDataFromKernelBuffer() local
606 if (pad_size != 0) { in ReadAuxDataFromKernelBuffer()
608 memcpy(p, &pad, pad_size); in ReadAuxDataFromKernelBuffer()
DRecordReadThread_test.cpp455 FakeAuxData(size_t buf1_size, size_t buf2_size, char c, size_t pad_size, bool lost) in FakeAuxData()
456 : 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
471 const size_t padded = pad_size(len); in writeInplace()
900 if ((mDataPos+pad_size(len)) >= mDataPos && (mDataPos+pad_size(len)) <= mDataSize in read()
901 && len <= pad_size(len)) { in read()
903 mDataPos += pad_size(len); in read()
918 if ((mDataPos+pad_size(len)) >= mDataPos && (mDataPos+pad_size(len)) <= mDataSize in readInplace()
919 && len <= pad_size(len)) { in readInplace()
921 mDataPos += pad_size(len); in readInplace()
1122 mDataPos += pad_size(len+1); in readCString()