Home
last modified time | relevance | path

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

/frameworks/base/libs/protoutil/src/
DProtoOutputStream.cpp360 int childRawSize, childEncodedSize; in editEncodedSize() local
379 childEncodedSize = (int)mBuffer->readRawFixed32(); in editEncodedSize()
380 if (childRawSize >= 0 && childRawSize == childEncodedSize) { in editEncodedSize()
382 } else if (childRawSize < 0 && childEncodedSize == -1){ in editEncodedSize()
383 childEncodedSize = editEncodedSize(-childRawSize); in editEncodedSize()
384 mBuffer->editRawFixed32(childEncodedSizePos, childEncodedSize); in editEncodedSize()
387 childRawSize, childEncodedSize, childEncodedSizePos); in editEncodedSize()
390 encodedSize += get_varint_size(childEncodedSize) + childEncodedSize; in editEncodedSize()
415 int childRawSize, childEncodedSize; in compactSize() local
430 childEncodedSize = (int)mBuffer->readRawFixed32(); in compactSize()
[all …]
/frameworks/base/core/java/android/util/proto/
DProtoOutputStream.java2397 int childEncodedSize = mBuffer.readRawFixed32(); in editEncodedSize() local
2400 if (childEncodedSize != childRawSize) { in editEncodedSize()
2404 + " childEncodedSize=" + childEncodedSize in editEncodedSize()
2410 childEncodedSize = editEncodedSize(-childRawSize); in editEncodedSize()
2411 mBuffer.editRawFixed32(childEncodedSizePos, childEncodedSize); in editEncodedSize()
2413 encodedSize += EncodedBuffer.getRawVarint32Size(childEncodedSize) in editEncodedSize()
2414 + childEncodedSize; in editEncodedSize()
2462 final int childEncodedSize = mBuffer.readRawFixed32(); in compactSizes() local
2463 mBuffer.writeRawVarint32(childEncodedSize); in compactSizes()
2469 mBuffer.skipRead(childEncodedSize); in compactSizes()