Searched refs:pad_size (Results 1 – 4 of 4) sorted by relevance
/system/extras/simpleperf/ |
D | record_file_writer.cpp | 269 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()
|
D | RecordReadThread.cpp | 604 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()
|
D | RecordReadThread_test.cpp | 451 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/ |
D | Parcel.cpp | 66 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()
|