/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/java/core/src/test/java/com/google/protobuf/ |
D | WellKnownTypesTest.java | 54 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()
|
D | LazyFieldLiteTest.java | 89 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()
|
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 | UnknownFieldSetLiteTest.java | 54 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()
|
D | TestBadIdentifiers.java | 78 assertEquals(0, message.getMessageFieldCount15().getSerializedSize()); in testConflictingFieldNames()
|
D | FieldPresenceTest.java | 162 assertEquals(0, message.getSerializedSize()); in testLazyField() 169 assertEquals(2, message.getSerializedSize()); in testLazyField() 188 assertEquals(0, message.getSerializedSize()); in testFieldPresence()
|
D | AbstractMessageTest.java | 233 assertEquals(message.getSerializedSize(), in testSerializedSize() 234 abstractMessage.getSerializedSize()); in testSerializedSize() 344 assertEquals(2, message.getSerializedSize()); in testOptimizedForSize()
|
D | CodedOutputStreamTest.java | 321 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());
|
D | DynamicMessageTest.java | 162 assertEquals(message.getSerializedSize(), in testDynamicMessageSerializedSize() 163 dynamicMessage.getSerializedSize()); in testDynamicMessageSerializedSize()
|
D | UnknownFieldSetTest.java | 209 assertEquals(0, message.getSerializedSize()); in testClearMessage() 454 assertEquals(allFieldsData.size(), emptyMessageLite.getSerializedSize()); in testSerializeLite() 649 assertEquals(0, emptyMessageLite2.getSerializedSize()); in testClearLite()
|
D | MapForProto2LiteTest.java | 379 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()
|
D | LiteTest.java | 1321 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/ |
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()
|
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/javanano/src/test/java/com/google/protobuf/nano/ |
D | NanoTest.java | 84 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/ |
D | AbstractMessageLite.java | 56 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()
|
D | UnknownFieldSet.java | 157 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
|
D | LazyFieldLite.java | 379 public int getSerializedSize() { in getSerializedSize() method in LazyFieldLite 387 return value.getSerializedSize(); in getSerializedSize()
|
D | UnknownFieldSetLite.java | 183 public int getSerializedSize() { in getSerializedSize() method in UnknownFieldSetLite 208 + ((UnknownFieldSetLite) objects[i]).getSerializedSize(); in getSerializedSize()
|
D | MessageLite.java | 80 int getSerializedSize(); in getSerializedSize() method
|
D | DynamicMessage.java | 261 public int getSerializedSize() { in getSerializedSize() method in DynamicMessage 269 size = fields.getSerializedSize(); in getSerializedSize() 270 size += unknownFields.getSerializedSize(); in getSerializedSize()
|
D | AbstractMessage.java | 128 public int getSerializedSize() { in getSerializedSize() method in AbstractMessage 134 memoizedSize = MessageReflection.getSerializedSize(this, getAllFields()); in getSerializedSize()
|
D | CodedOutputStream.java | 871 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/ |
D | WireFormatTest.java | 61 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()
|
D | DynamicMessageTest.java | 159 assertEquals(message.getSerializedSize(), in testDynamicMessageSerializedSize() 160 dynamicMessage.getSerializedSize()); in testDynamicMessageSerializedSize()
|
D | AbstractMessageTest.java | 210 assertEquals(message.getSerializedSize(), in testSerializedSize() 211 abstractMessage.getSerializedSize()); in testSerializedSize() 321 assertEquals(2, message.getSerializedSize()); in testOptimizedForSize()
|