Home
last modified time | relevance | path

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

/frameworks/base/libs/protoutil/src/
DProtoOutputStream.cpp293 int childRawSize = mBuffer->wp()->pos() - sizePos - 8; in end() local
300 if (childRawSize > 0) { in end()
301 mBuffer->editRawFixed32(sizePos, -childRawSize); in end()
360 int childRawSize, childEncodedSize; in editEncodedSize() local
377 childRawSize = (int)mBuffer->readRawFixed32(); in editEncodedSize()
380 if (childRawSize >= 0 && childRawSize == childEncodedSize) { in editEncodedSize()
381 mBuffer->ep()->move(childRawSize); in editEncodedSize()
382 } else if (childRawSize < 0 && childEncodedSize == -1){ in editEncodedSize()
383 childEncodedSize = editEncodedSize(-childRawSize); in editEncodedSize()
387 childRawSize, childEncodedSize, childEncodedSizePos); in editEncodedSize()
[all …]
/frameworks/base/core/java/android/util/proto/
DProtoOutputStream.java2097 final int childRawSize = mBuffer.getWritePos() - sizePos - 8; in endObjectImpl() local
2124 if (childRawSize > 0) { in endObjectImpl()
2125 mBuffer.editRawFixed32(sizePos, -childRawSize); in endObjectImpl()
2395 final int childRawSize = mBuffer.readRawFixed32(); in editEncodedSize() local
2398 if (childRawSize >= 0) { in editEncodedSize()
2400 if (childEncodedSize != childRawSize) { in editEncodedSize()
2403 + " don't match! childRawSize=" + childRawSize in editEncodedSize()
2407 mBuffer.skipRead(childRawSize); in editEncodedSize()
2410 childEncodedSize = editEncodedSize(-childRawSize); in editEncodedSize()
2461 final int childRawSize = mBuffer.readRawFixed32(); in compactSizes() local
[all …]