Home
last modified time | relevance | path

Searched refs:getSerializedSize (Results 1 – 25 of 28) sorted by relevance

12

/external/protobuf/java/src/test/java/com/google/protobuf/
DLazyFieldLiteTest.java85 assertEquals(message.getSerializedSize(), lazyField.getSerializedSize()); in testGetSerializedSize()
87 assertNotEqual(message.getSerializedSize(), lazyField.getSerializedSize()); in testGetSerializedSize()
93 assertEquals(message.getSerializedSize(), lazyField.getSerializedSize()); in testGetSerializedSizeEx()
95 assertNotEqual(message.getSerializedSize(), lazyField.getSerializedSize()); in testGetSerializedSizeEx()
DMicroTest.java94 int msgSerializedSize = msg.getSerializedSize(); in testSimpleMessageMicro()
133 int msgSerializedSize = msg.getSerializedSize(); in testRecursiveMessageMicro()
170 int msgSerializedSize = msg.getSerializedSize(); in testMicroRequiredInt32()
197 int msgSerializedSize = msg.getSerializedSize(); in testMicroOptionalInt32()
223 int msgSerializedSize = msg.getSerializedSize(); in testMicroOptionalInt64()
249 int msgSerializedSize = msg.getSerializedSize(); in testMicroOptionalUint32()
275 int msgSerializedSize = msg.getSerializedSize(); in testMicroOptionalUint64()
301 int msgSerializedSize = msg.getSerializedSize(); in testMicroOptionalSint32()
327 int msgSerializedSize = msg.getSerializedSize(); in testMicroOptionalSint64()
353 int msgSerializedSize = msg.getSerializedSize(); in testMicroOptionalFixed32()
[all …]
DNanoTest.java105 int msgSerializedSize = msg.getSerializedSize(); in testSimpleMessageNano()
116 assertTrue(msgSerializedSize != msg.getSerializedSize()); in testSimpleMessageNano()
119 assertEquals(0, msg.getSerializedSize()); in testSimpleMessageNano()
144 int msgSerializedSize = msg.getSerializedSize(); in testRecursiveMessageNano()
160 assertEquals(0, msg.getSerializedSize()); in testMessageNoFields()
174 int msgSerializedSize = msg.getSerializedSize(); in testNanoRequiredInt32()
194 int msgSerializedSize = msg.getSerializedSize(); in testNanoOptionalInt32()
215 int msgSerializedSize = msg.getSerializedSize(); in testNanoOptionalInt64()
236 int msgSerializedSize = msg.getSerializedSize(); in testNanoOptionalUint32()
257 int msgSerializedSize = msg.getSerializedSize(); in testNanoOptionalUint64()
[all …]
DWireFormatTest.java64 assertEquals(rawBytes.size(), message.getSerializedSize()); in testSerialization()
75 assertEquals(rawBytes.size(), message.getSerializedSize()); in testSerializationPacked()
89 assertEquals(rawBytes.size(), message.getSerializedSize()); in testSerializeExtensions()
137 assertEquals(rawBytes.size(), message.getSerializedSize()); in testSerializeExtensionsLite()
223 assertNotSame(TestUtil.getAllSet().getSerializedSize(), in testExtensionsSerializedSize()
224 TestUtil.getAllExtensionsSet().getSerializedSize()); in testExtensionsSerializedSize()
564 raw.getSerializedSize()); in testMergeMessageSetExtensionWithFlag()
591 assertEquals(rawBytes.size(), message.getSerializedSize()); in testOneofWireFormat()
DTestBadIdentifiers.java78 assertEquals(0, message.getMessageFieldCount15().getSerializedSize()); in testConflictingFieldNames()
DAbstractMessageTest.java209 assertEquals(message.getSerializedSize(), in testSerializedSize()
210 abstractMessage.getSerializedSize()); in testSerializedSize()
320 assertEquals(2, message.getSerializedSize()); in testOptimizedForSize()
DDynamicMessageTest.java162 assertEquals(message.getSerializedSize(), in testDynamicMessageSerializedSize()
163 dynamicMessage.getSerializedSize()); in testDynamicMessageSerializedSize()
DUnknownFieldSetTest.java208 assertEquals(0, message.getSerializedSize()); in testClearMessage()
453 assertEquals(allFieldsData.size(), emptyMessageLite.getSerializedSize()); in testSerializeLite()
648 assertEquals(0, emptyMessageLite2.getSerializedSize()); in testClearLite()
DLazyMessageLiteTest.java274 assertEquals(bytes.size(), outer.getSerializedSize()); in testSerialize()
DCodedInputStreamTest.java318 assertEquals(rawBytes.length, message.getSerializedSize()); in testReadWholeMessage()
DDescriptorsTest.java438 .toProto().getSerializedSize() > 65536); in testEnormousDescriptor()
/external/protobuf/java/src/main/java/com/google/protobuf/nano/
DMessageNano.java54 getSerializedSize(); in getCachedSize()
64 public int getSerializedSize() { in getSerializedSize() method in MessageNano
100 final byte[] result = new byte[msg.getSerializedSize()]; in toByteArray()
168 final int serializedSize = a.getSerializedSize(); in messageNanoEquals()
169 if (b.getSerializedSize() != serializedSize) { in messageNanoEquals()
DCodedOutputByteBufferNano.java850 return value.getSerializedSize(); in computeGroupSizeNoTag()
858 final int size = value.getSerializedSize(); in computeMessageSizeNoTag()
/external/protobuf/java/src/main/java/com/google/protobuf/
DAbstractMessageLite.java52 ByteString.newCodedBuilder(getSerializedSize()); in toByteString()
64 final byte[] result = new byte[getSerializedSize()]; in toByteArray()
78 CodedOutputStream.computePreferredBufferSize(getSerializedSize()); in writeTo()
86 final int serialized = getSerializedSize(); in writeDelimitedTo()
DLazyFieldLite.java130 public int getSerializedSize() { in getSerializedSize() method in LazyFieldLite
132 return value.getSerializedSize(); in getSerializedSize()
DUnknownFieldSet.java152 ByteString.newCodedBuilder(getSerializedSize()); in toByteString()
168 final byte[] result = new byte[getSerializedSize()]; in toByteArray()
192 codedOutput.writeRawVarint32(getSerializedSize()); in writeDelimitedTo()
198 public int getSerializedSize() { in getSerializedSize() method in UnknownFieldSet
201 result += entry.getValue().getSerializedSize(entry.getKey()); in getSerializedSize()
771 public int getSerializedSize(final int fieldNumber) { in getSerializedSize() method in UnknownFieldSet.Field
DMessageLite.java80 int getSerializedSize(); in getSerializedSize() method
DCodedOutputStream.java448 writeRawVarint32(value.getSerializedSize()); in writeMessageNoTag()
844 return value.getSerializedSize(); in computeGroupSizeNoTag()
865 final int size = value.getSerializedSize(); in computeMessageSizeNoTag()
874 final int size = value.getSerializedSize(); in computeLazyFieldSizeNoTag()
DDynamicMessage.java251 public int getSerializedSize() { in getSerializedSize() method in DynamicMessage
259 size = fields.getSerializedSize(); in getSerializedSize()
260 size += unknownFields.getSerializedSize(); in getSerializedSize()
DAbstractMessage.java88 public int getSerializedSize() { in getSerializedSize() method in AbstractMessage
94 memoizedSize = MessageReflection.getSerializedSize(this); in getSerializedSize()
DMessageReflection.java85 static int getSerializedSize(Message message) { in getSerializedSize() method in MessageReflection
108 size += unknownFields.getSerializedSize(); in getSerializedSize()
DGeneratedMessageLite.java316 return extensions.getSerializedSize(); in extensionsSerializedSize()
DFieldSet.java753 public int getSerializedSize() { in getSerializedSize() method in FieldSet
/external/protobuf/java/src/main/java/com/google/protobuf/micro/
DMessageMicro.java56 abstract public int getSerializedSize(); in getSerializedSize() method in MessageMicro
75 final byte[] result = new byte[getSerializedSize()]; in toByteArray()
DCodedOutputStreamMicro.java677 return value.getSerializedSize(); in computeGroupSizeNoTag()
685 final int size = value.getSerializedSize(); in computeMessageSizeNoTag()

12