Home
last modified time | relevance | path

Searched refs:childRawSize (Results 1 – 2 of 2) sorted by relevance

/frameworks/base/libs/protoutil/src/
DProtoOutputStream.cpp261 int childRawSize = mBuffer->wp()->pos() - sizePos - 8; in end() local
268 if (childRawSize > 0) { in end()
269 mBuffer->editRawFixed32(sizePos, -childRawSize); in end()
328 int childRawSize, childEncodedSize; in editEncodedSize() local
345 childRawSize = (int)mBuffer->readRawFixed32(); in editEncodedSize()
348 if (childRawSize >= 0 && childRawSize == childEncodedSize) { in editEncodedSize()
349 mBuffer->ep()->move(childRawSize); in editEncodedSize()
350 } else if (childRawSize < 0 && childEncodedSize == -1){ in editEncodedSize()
351 childEncodedSize = editEncodedSize(-childRawSize); in editEncodedSize()
355 childRawSize, childEncodedSize, childEncodedSizePos); in editEncodedSize()
[all …]
/frameworks/base/core/java/android/util/proto/
DProtoOutputStream.java2027 final int childRawSize = mBuffer.getWritePos() - sizePos - 8; in endObjectImpl() local
2054 if (childRawSize > 0) { in endObjectImpl()
2055 mBuffer.editRawFixed32(sizePos, -childRawSize); in endObjectImpl()
2320 final int childRawSize = mBuffer.readRawFixed32(); in editEncodedSize() local
2323 if (childRawSize >= 0) { in editEncodedSize()
2325 if (childEncodedSize != childRawSize) { in editEncodedSize()
2328 + " don't match! childRawSize=" + childRawSize in editEncodedSize()
2332 mBuffer.skipRead(childRawSize); in editEncodedSize()
2335 childEncodedSize = editEncodedSize(-childRawSize); in editEncodedSize()
2386 final int childRawSize = mBuffer.readRawFixed32(); in compactSizes() local
[all …]