Home
last modified time | relevance | path

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

/frameworks/base/libs/protoutil/src/
DProtoOutputStream.cpp296 int childRawSize = mBuffer.wp()->pos() - sizePos - 8; in end() local
303 if (childRawSize > 0) { in end()
304 mBuffer.editRawFixed32(sizePos, -childRawSize); in end()
363 int childRawSize, childEncodedSize; in editEncodedSize() local
380 childRawSize = (int)mBuffer.readRawFixed32(); in editEncodedSize()
383 if (childRawSize >= 0 && childRawSize == childEncodedSize) { in editEncodedSize()
384 mBuffer.ep()->move(childRawSize); in editEncodedSize()
385 } else if (childRawSize < 0 && childEncodedSize == -1){ in editEncodedSize()
386 childEncodedSize = editEncodedSize(-childRawSize); in editEncodedSize()
390 childRawSize, childEncodedSize, childEncodedSizePos); in editEncodedSize()
[all …]
/frameworks/base/core/java/android/util/proto/
DProtoOutputStream.java2179 final int childRawSize = mBuffer.getWritePos() - sizePos - 8; in endObjectImpl() local
2206 if (childRawSize > 0) { in endObjectImpl()
2207 mBuffer.editRawFixed32(sizePos, -childRawSize); in endObjectImpl()
2522 final int childRawSize = mBuffer.readRawFixed32(); in editEncodedSize() local
2525 if (childRawSize >= 0) { in editEncodedSize()
2527 if (childEncodedSize != childRawSize) { in editEncodedSize()
2530 + " don't match! childRawSize=" + childRawSize in editEncodedSize()
2534 mBuffer.skipRead(childRawSize); in editEncodedSize()
2537 childEncodedSize = editEncodedSize(-childRawSize); in editEncodedSize()
2588 final int childRawSize = mBuffer.readRawFixed32(); in compactSizes() local
[all …]