Home
last modified time | relevance | path

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

/frameworks/base/libs/protoutil/src/
DProtoOutputStream.cpp289 int childRawSize = mBuffer->wp()->pos() - sizePos - 8; in end() local
296 if (childRawSize > 0) { in end()
297 mBuffer->editRawFixed32(sizePos, -childRawSize); in end()
356 int childRawSize, childEncodedSize; in editEncodedSize() local
373 childRawSize = (int)mBuffer->readRawFixed32(); in editEncodedSize()
376 if (childRawSize >= 0 && childRawSize == childEncodedSize) { in editEncodedSize()
377 mBuffer->ep()->move(childRawSize); in editEncodedSize()
378 } else if (childRawSize < 0 && childEncodedSize == -1){ in editEncodedSize()
379 childEncodedSize = editEncodedSize(-childRawSize); in editEncodedSize()
383 childRawSize, childEncodedSize, childEncodedSizePos); in editEncodedSize()
[all …]
/frameworks/base/core/java/android/util/proto/
DProtoOutputStream.java2095 final int childRawSize = mBuffer.getWritePos() - sizePos - 8; in endObjectImpl() local
2122 if (childRawSize > 0) { in endObjectImpl()
2123 mBuffer.editRawFixed32(sizePos, -childRawSize); in endObjectImpl()
2390 final int childRawSize = mBuffer.readRawFixed32(); in editEncodedSize() local
2393 if (childRawSize >= 0) { in editEncodedSize()
2395 if (childEncodedSize != childRawSize) { in editEncodedSize()
2398 + " don't match! childRawSize=" + childRawSize in editEncodedSize()
2402 mBuffer.skipRead(childRawSize); in editEncodedSize()
2405 childEncodedSize = editEncodedSize(-childRawSize); in editEncodedSize()
2456 final int childRawSize = mBuffer.readRawFixed32(); in compactSizes() local
[all …]