Home
last modified time | relevance | path

Searched refs:sizePos (Results 1 – 3 of 3) sorted by relevance

/frameworks/base/libs/protoutil/src/
DProtoOutputStream.cpp219 makeToken(uint32_t tagSize, bool repeated, uint32_t depth, uint32_t objectId, size_t sizePos) { in makeToken() argument
224 | (UINT64_C(0x0ffffffff) & (uint64_t)sizePos); in makeToken()
259 size_t sizePos = mBuffer->wp()->pos(); in start() local
265 mExpectedObjectToken = makeToken(sizePos - prevPos, in start()
266 (bool)(fieldId & FIELD_COUNT_REPEATED), mDepth, mObjectId, sizePos); in start()
287 uint32_t sizePos = getSizePosFromToken(token); in end() local
289 int childRawSize = mBuffer->wp()->pos() - sizePos - 8; in end()
292 mBuffer->ep()->rewind()->move(sizePos); in end()
297 mBuffer->editRawFixed32(sizePos, -childRawSize); in end()
298 mBuffer->editRawFixed32(sizePos+4, -1); in end()
[all …]
/frameworks/base/core/java/android/os/
DParcelableHolder.java157 int sizePos = parcel.dataPosition(); in writeToParcel() local
163 parcel.setDataPosition(sizePos); in writeToParcel()
/frameworks/base/core/java/android/util/proto/
DProtoOutputStream.java2066 final int sizePos = mBuffer.getWritePos(); in startObjectImpl() local
2078 mExpectedObjectToken = makeToken(getTagSize(id), repeated, mDepth, mNextObjectId, sizePos); in startObjectImpl()
2094 final int sizePos = getOffsetFromToken(token); in endObjectImpl() local
2095 final int childRawSize = mBuffer.getWritePos() - sizePos - 8; in endObjectImpl()
2118 mExpectedObjectToken = (((long)mBuffer.getRawFixed32At(sizePos)) << 32) in endObjectImpl()
2119 | (0x0ffffffffL & (long)mBuffer.getRawFixed32At(sizePos+4)); in endObjectImpl()
2123 mBuffer.editRawFixed32(sizePos, -childRawSize); in endObjectImpl()
2124 mBuffer.editRawFixed32(sizePos+4, -1); in endObjectImpl()
2126 mBuffer.editRawFixed32(sizePos, 0); in endObjectImpl()
2127 mBuffer.editRawFixed32(sizePos+4, 0); in endObjectImpl()
[all …]