Searched refs:sizePos (Results 1 – 2 of 2) sorted by relevance
/frameworks/base/libs/protoutil/src/ |
D | ProtoOutputStream.cpp | 191 makeToken(uint32_t tagSize, bool repeated, uint32_t depth, uint32_t objectId, size_t sizePos) { in makeToken() argument 196 | (UINT64_C(0x0ffffffff) & (uint64_t)sizePos); in makeToken() 231 size_t sizePos = mBuffer->wp()->pos(); in start() local 237 mExpectedObjectToken = makeToken(sizePos - prevPos, in start() 238 (bool)(fieldId & FIELD_COUNT_REPEATED), mDepth, mObjectId, sizePos); in start() 259 uint32_t sizePos = getSizePosFromToken(token); in end() local 261 int childRawSize = mBuffer->wp()->pos() - sizePos - 8; in end() 264 mBuffer->ep()->rewind()->move(sizePos); in end() 269 mBuffer->editRawFixed32(sizePos, -childRawSize); in end() 270 mBuffer->editRawFixed32(sizePos+4, -1); in end() [all …]
|
/frameworks/base/core/java/android/util/proto/ |
D | ProtoOutputStream.java | 1998 final int sizePos = mBuffer.getWritePos(); in startObjectImpl() local 2010 mExpectedObjectToken = makeToken(getTagSize(id), repeated, mDepth, mNextObjectId, sizePos); in startObjectImpl() 2026 final int sizePos = getOffsetFromToken(token); in endObjectImpl() local 2027 final int childRawSize = mBuffer.getWritePos() - sizePos - 8; in endObjectImpl() 2050 mExpectedObjectToken = (((long)mBuffer.getRawFixed32At(sizePos)) << 32) in endObjectImpl() 2051 | (0x0ffffffffL & (long)mBuffer.getRawFixed32At(sizePos+4)); in endObjectImpl() 2055 mBuffer.editRawFixed32(sizePos, -childRawSize); in endObjectImpl() 2056 mBuffer.editRawFixed32(sizePos+4, -1); in endObjectImpl() 2058 mBuffer.editRawFixed32(sizePos, 0); in endObjectImpl() 2059 mBuffer.editRawFixed32(sizePos+4, 0); in endObjectImpl() [all …]
|