Home
last modified time | relevance | path

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

/frameworks/base/libs/protoutil/src/
DProtoOutputStream.cpp356 int childRawSize, childEncodedSize; in editEncodedSize() local
375 childEncodedSize = (int)mBuffer->readRawFixed32(); in editEncodedSize()
376 if (childRawSize >= 0 && childRawSize == childEncodedSize) { in editEncodedSize()
378 } else if (childRawSize < 0 && childEncodedSize == -1){ in editEncodedSize()
379 childEncodedSize = editEncodedSize(-childRawSize); in editEncodedSize()
380 mBuffer->editRawFixed32(childEncodedSizePos, childEncodedSize); in editEncodedSize()
383 childRawSize, childEncodedSize, childEncodedSizePos); in editEncodedSize()
386 encodedSize += get_varint_size(childEncodedSize) + childEncodedSize; in editEncodedSize()
411 int childRawSize, childEncodedSize; in compactSize() local
426 childEncodedSize = (int)mBuffer->readRawFixed32(); in compactSize()
[all …]
/frameworks/base/core/java/android/util/proto/
DProtoOutputStream.java2392 int childEncodedSize = mBuffer.readRawFixed32(); in editEncodedSize() local
2395 if (childEncodedSize != childRawSize) { in editEncodedSize()
2399 + " childEncodedSize=" + childEncodedSize in editEncodedSize()
2405 childEncodedSize = editEncodedSize(-childRawSize); in editEncodedSize()
2406 mBuffer.editRawFixed32(childEncodedSizePos, childEncodedSize); in editEncodedSize()
2408 encodedSize += EncodedBuffer.getRawVarint32Size(childEncodedSize) in editEncodedSize()
2409 + childEncodedSize; in editEncodedSize()
2457 final int childEncodedSize = mBuffer.readRawFixed32(); in compactSizes() local
2458 mBuffer.writeRawVarint32(childEncodedSize); in compactSizes()
2464 mBuffer.skipRead(childEncodedSize); in compactSizes()