Home
last modified time | relevance | path

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

12

/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/java/core/src/test/java/com/google/protobuf/
DWellKnownTypesTest.java54 assertEquals(0, message.getAnyField().getSerializedSize()); in testWellKnownTypes()
55 assertEquals(0, message.getApiField().getSerializedSize()); in testWellKnownTypes()
56 assertEquals(0, message.getDurationField().getSerializedSize()); in testWellKnownTypes()
57 assertEquals(0, message.getEmptyField().getSerializedSize()); in testWellKnownTypes()
58 assertEquals(0, message.getFieldMaskField().getSerializedSize()); in testWellKnownTypes()
59 assertEquals(0, message.getSourceContextField().getSerializedSize()); in testWellKnownTypes()
60 assertEquals(0, message.getStructField().getSerializedSize()); in testWellKnownTypes()
61 assertEquals(0, message.getTimestampField().getSerializedSize()); in testWellKnownTypes()
62 assertEquals(0, message.getTypeField().getSerializedSize()); in testWellKnownTypes()
63 assertEquals(0, message.getInt32Field().getSerializedSize()); in testWellKnownTypes()
DLazyFieldLiteTest.java89 assertEquals(message.getSerializedSize(), lazyField.getSerializedSize()); in testGetSerializedSize()
91 assertNotEqual(message.getSerializedSize(), lazyField.getSerializedSize()); in testGetSerializedSize()
97 assertEquals(message.getSerializedSize(), lazyField.getSerializedSize()); in testGetSerializedSizeEx()
99 assertNotEqual(message.getSerializedSize(), lazyField.getSerializedSize()); in testGetSerializedSizeEx()
130 assertEquals(0, field.getSerializedSize()); in testEmptyLazyField()
140 assertEquals(0, field.getSerializedSize()); in testInvalidProto()
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()
DUnknownFieldSetLiteTest.java54 assertEquals(0, unknownFields.getSerializedSize()); in testDefaultInstance()
81 assertEquals(foo.toByteString().size(), instance.getSerializedSize()); in testSerializedSize()
151 assertEquals(0, unknownFields.getSerializedSize()); in testMutableCopyOf_empty()
171 assertEquals(foo.getSerializedSize(), copy.getSerializedSize()); in testRoundTrips()
DTestBadIdentifiers.java78 assertEquals(0, message.getMessageFieldCount15().getSerializedSize()); in testConflictingFieldNames()
DFieldPresenceTest.java162 assertEquals(0, message.getSerializedSize()); in testLazyField()
169 assertEquals(2, message.getSerializedSize()); in testLazyField()
188 assertEquals(0, message.getSerializedSize()); in testFieldPresence()
DAbstractMessageTest.java233 assertEquals(message.getSerializedSize(), in testSerializedSize()
234 abstractMessage.getSerializedSize()); in testSerializedSize()
344 assertEquals(2, message.getSerializedSize()); in testOptimizedForSize()
DCodedOutputStreamTest.java321 Coder coder = outputType.newCoder(message.getSerializedSize()); in testWriteWholeMessage()
346 Coder coder = outputType.newCoder(message.getSerializedSize()); in testWriteWholePackedFieldsMessage()
363 Coder coder = outputType.newCoder(message.getSerializedSize()); in testWriteMessageWithNegativeEnumValue()
659 Coder coder = outputType.newCoder(testAllTypes.getSerializedSize());
DDynamicMessageTest.java162 assertEquals(message.getSerializedSize(), in testDynamicMessageSerializedSize()
163 dynamicMessage.getSerializedSize()); in testDynamicMessageSerializedSize()
DUnknownFieldSetTest.java209 assertEquals(0, message.getSerializedSize()); in testClearMessage()
454 assertEquals(allFieldsData.size(), emptyMessageLite.getSerializedSize()); in testSerializeLite()
649 assertEquals(0, emptyMessageLite2.getSerializedSize()); in testClearLite()
DMapForProto2LiteTest.java379 assertEquals(message.getSerializedSize(), message.toByteString().size()); in testSerializeAndParse()
386 assertEquals(message.getSerializedSize(), message.toByteString().size()); in testSerializeAndParse()
393 assertEquals(message.getSerializedSize(), message.toByteString().size()); in testSerializeAndParse()
DLiteTest.java1321 assertEquals(0, message.getSerializedSize()); in testSanityCopyOnWrite()
1325 assertEquals(0, message.getSerializedSize()); in testSanityCopyOnWrite()
1330 assertEquals(0, message.getSerializedSize()); in testSanityCopyOnWrite()
1334 assertEquals(0, message.getSerializedSize()); in testSanityCopyOnWrite()
1337 assertEquals(0, builder.build().getSerializedSize()); in testSanityCopyOnWrite()
1340 assertEquals(0, message.getSerializedSize()); in testSanityCopyOnWrite()
1342 assertEquals(0, message.getSerializedSize()); in testSanityCopyOnWrite()
1349 assertEquals(0, message.getSerializedSize()); in testSanityCopyOnWrite()
1351 assertEquals(0, message.getSerializedSize()); in testSanityCopyOnWrite()
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/javanano/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()
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/javanano/src/test/java/com/google/protobuf/nano/
DNanoTest.java84 int msgSerializedSize = msg.getSerializedSize(); in testSimpleMessageNano()
95 assertTrue(msgSerializedSize != msg.getSerializedSize()); in testSimpleMessageNano()
98 assertEquals(0, msg.getSerializedSize()); in testSimpleMessageNano()
123 int msgSerializedSize = msg.getSerializedSize(); in testRecursiveMessageNano()
139 assertEquals(0, msg.getSerializedSize()); in testMessageNoFields()
153 int msgSerializedSize = msg.getSerializedSize(); in testNanoRequiredInt32()
173 int msgSerializedSize = msg.getSerializedSize(); in testNanoOptionalInt32()
194 int msgSerializedSize = msg.getSerializedSize(); in testNanoOptionalInt64()
215 int msgSerializedSize = msg.getSerializedSize(); in testNanoOptionalUint32()
236 int msgSerializedSize = msg.getSerializedSize(); in testNanoOptionalUint64()
[all …]
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/java/core/src/main/java/com/google/protobuf/
DAbstractMessageLite.java56 ByteString.newCodedBuilder(getSerializedSize()); in toByteString()
67 final byte[] result = new byte[getSerializedSize()]; in toByteArray()
80 CodedOutputStream.computePreferredBufferSize(getSerializedSize()); in writeTo()
89 final int serialized = getSerializedSize(); in writeDelimitedTo()
DUnknownFieldSet.java157 ByteString.newCodedBuilder(getSerializedSize()); in toByteString()
174 final byte[] result = new byte[getSerializedSize()]; in toByteArray()
200 codedOutput.writeRawVarint32(getSerializedSize()); in writeDelimitedTo()
207 public int getSerializedSize() { in getSerializedSize() method in UnknownFieldSet
210 result += entry.getValue().getSerializedSize(entry.getKey()); in getSerializedSize()
811 public int getSerializedSize(final int fieldNumber) { in getSerializedSize() method in UnknownFieldSet.Field
DLazyFieldLite.java379 public int getSerializedSize() { in getSerializedSize() method in LazyFieldLite
387 return value.getSerializedSize(); in getSerializedSize()
DUnknownFieldSetLite.java183 public int getSerializedSize() { in getSerializedSize() method in UnknownFieldSetLite
208 + ((UnknownFieldSetLite) objects[i]).getSerializedSize(); in getSerializedSize()
DMessageLite.java80 int getSerializedSize(); in getSerializedSize() method
DDynamicMessage.java261 public int getSerializedSize() { in getSerializedSize() method in DynamicMessage
269 size = fields.getSerializedSize(); in getSerializedSize()
270 size += unknownFields.getSerializedSize(); in getSerializedSize()
DAbstractMessage.java128 public int getSerializedSize() { in getSerializedSize() method in AbstractMessage
134 memoizedSize = MessageReflection.getSerializedSize(this, getAllFields()); in getSerializedSize()
DCodedOutputStream.java871 return computeLengthDelimitedFieldSize(value.getSerializedSize()); in computeLazyFieldSizeNoTag()
903 return computeLengthDelimitedFieldSize(value.getSerializedSize()); in computeMessageSizeNoTag()
1065 return value.getSerializedSize(); in computeGroupSizeNoTag()
1282 writeUInt32NoTag(value.getSerializedSize()); in writeMessageNoTag()
1622 writeUInt32NoTag(value.getSerializedSize()); in writeMessageNoTag()
2125 writeUInt32NoTag(value.getSerializedSize()); in writeMessageNoTag()
2428 writeUInt32NoTag(value.getSerializedSize()); in writeMessageNoTag()
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/java/compatibility_tests/v2.5.0/tests/src/main/java/com/google/protobuf/test/
DWireFormatTest.java61 assertEquals(rawBytes.size(), message.getSerializedSize()); in testSerialization()
72 assertEquals(rawBytes.size(), message.getSerializedSize()); in testSerializationPacked()
86 assertEquals(rawBytes.size(), message.getSerializedSize()); in testSerializeExtensions()
157 assertEquals(TestUtil.getAllSet().getSerializedSize(), in testExtensionsSerializedSize()
158 TestUtil.getAllExtensionsSet().getSerializedSize()); in testExtensionsSerializedSize()
DDynamicMessageTest.java159 assertEquals(message.getSerializedSize(), in testDynamicMessageSerializedSize()
160 dynamicMessage.getSerializedSize()); in testDynamicMessageSerializedSize()
DAbstractMessageTest.java210 assertEquals(message.getSerializedSize(), in testSerializedSize()
211 abstractMessage.getSerializedSize()); in testSerializedSize()
321 assertEquals(2, message.getSerializedSize()); in testOptimizedForSize()

12