Home
last modified time | relevance | path

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

/frameworks/base/libs/protoutil/src/
DProtoOutputStream.cpp328 int childRawSize, childEncodedSize; in editEncodedSize() local
347 childEncodedSize = (int)mBuffer->readRawFixed32(); in editEncodedSize()
348 if (childRawSize >= 0 && childRawSize == childEncodedSize) { in editEncodedSize()
350 } else if (childRawSize < 0 && childEncodedSize == -1){ in editEncodedSize()
351 childEncodedSize = editEncodedSize(-childRawSize); in editEncodedSize()
352 mBuffer->editRawFixed32(childEncodedSizePos, childEncodedSize); in editEncodedSize()
355 childRawSize, childEncodedSize, childEncodedSizePos); in editEncodedSize()
358 encodedSize += get_varint_size(childEncodedSize) + childEncodedSize; in editEncodedSize()
383 int childRawSize, childEncodedSize; in compactSize() local
398 childEncodedSize = (int)mBuffer->readRawFixed32(); in compactSize()
[all …]
/frameworks/base/core/java/android/util/proto/
DProtoOutputStream.java2322 int childEncodedSize = mBuffer.readRawFixed32(); in editEncodedSize() local
2325 if (childEncodedSize != childRawSize) { in editEncodedSize()
2329 + " childEncodedSize=" + childEncodedSize in editEncodedSize()
2335 childEncodedSize = editEncodedSize(-childRawSize); in editEncodedSize()
2336 mBuffer.editRawFixed32(childEncodedSizePos, childEncodedSize); in editEncodedSize()
2338 encodedSize += EncodedBuffer.getRawVarint32Size(childEncodedSize) in editEncodedSize()
2339 + childEncodedSize; in editEncodedSize()
2387 final int childEncodedSize = mBuffer.readRawFixed32(); in compactSizes() local
2388 mBuffer.writeRawVarint32(childEncodedSize); in compactSizes()
2394 mBuffer.skipRead(childEncodedSize); in compactSizes()