/external/protobuf/java/src/test/java/com/google/protobuf/ |
D | LazyFieldLiteTest.java | 85 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()
|
D | MicroTest.java | 94 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 …]
|
D | NanoTest.java | 105 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 …]
|
D | WireFormatTest.java | 64 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()
|
D | TestBadIdentifiers.java | 78 assertEquals(0, message.getMessageFieldCount15().getSerializedSize()); in testConflictingFieldNames()
|
D | AbstractMessageTest.java | 209 assertEquals(message.getSerializedSize(), in testSerializedSize() 210 abstractMessage.getSerializedSize()); in testSerializedSize() 320 assertEquals(2, message.getSerializedSize()); in testOptimizedForSize()
|
D | DynamicMessageTest.java | 162 assertEquals(message.getSerializedSize(), in testDynamicMessageSerializedSize() 163 dynamicMessage.getSerializedSize()); in testDynamicMessageSerializedSize()
|
D | UnknownFieldSetTest.java | 208 assertEquals(0, message.getSerializedSize()); in testClearMessage() 453 assertEquals(allFieldsData.size(), emptyMessageLite.getSerializedSize()); in testSerializeLite() 648 assertEquals(0, emptyMessageLite2.getSerializedSize()); in testClearLite()
|
D | LazyMessageLiteTest.java | 274 assertEquals(bytes.size(), outer.getSerializedSize()); in testSerialize()
|
D | CodedInputStreamTest.java | 318 assertEquals(rawBytes.length, message.getSerializedSize()); in testReadWholeMessage()
|
D | DescriptorsTest.java | 438 .toProto().getSerializedSize() > 65536); in testEnormousDescriptor()
|
/external/protobuf/java/src/main/java/com/google/protobuf/nano/ |
D | MessageNano.java | 54 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()
|
D | CodedOutputByteBufferNano.java | 850 return value.getSerializedSize(); in computeGroupSizeNoTag() 858 final int size = value.getSerializedSize(); in computeMessageSizeNoTag()
|
/external/protobuf/java/src/main/java/com/google/protobuf/ |
D | AbstractMessageLite.java | 52 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()
|
D | LazyFieldLite.java | 130 public int getSerializedSize() { in getSerializedSize() method in LazyFieldLite 132 return value.getSerializedSize(); in getSerializedSize()
|
D | UnknownFieldSet.java | 152 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
|
D | MessageLite.java | 80 int getSerializedSize(); in getSerializedSize() method
|
D | CodedOutputStream.java | 448 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()
|
D | DynamicMessage.java | 251 public int getSerializedSize() { in getSerializedSize() method in DynamicMessage 259 size = fields.getSerializedSize(); in getSerializedSize() 260 size += unknownFields.getSerializedSize(); in getSerializedSize()
|
D | AbstractMessage.java | 88 public int getSerializedSize() { in getSerializedSize() method in AbstractMessage 94 memoizedSize = MessageReflection.getSerializedSize(this); in getSerializedSize()
|
D | MessageReflection.java | 85 static int getSerializedSize(Message message) { in getSerializedSize() method in MessageReflection 108 size += unknownFields.getSerializedSize(); in getSerializedSize()
|
D | GeneratedMessageLite.java | 316 return extensions.getSerializedSize(); in extensionsSerializedSize()
|
D | FieldSet.java | 753 public int getSerializedSize() { in getSerializedSize() method in FieldSet
|
/external/protobuf/java/src/main/java/com/google/protobuf/micro/ |
D | MessageMicro.java | 56 abstract public int getSerializedSize(); in getSerializedSize() method in MessageMicro 75 final byte[] result = new byte[getSerializedSize()]; in toByteArray()
|
D | CodedOutputStreamMicro.java | 677 return value.getSerializedSize(); in computeGroupSizeNoTag() 685 final int size = value.getSerializedSize(); in computeMessageSizeNoTag()
|