Home
last modified time | relevance | path

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

12345

/external/protobuf/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()
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());
DAbstractMessageTest.java233 assertEquals(message.getSerializedSize(), in testSerializedSize()
234 abstractMessage.getSerializedSize()); in testSerializedSize()
344 assertEquals(2, message.getSerializedSize()); in testOptimizedForSize()
DTestBadIdentifiers.java78 assertEquals(0, message.getMessageFieldCount15().getSerializedSize()); in testConflictingFieldNames()
DMapForProto2LiteTest.java357 assertEquals(message.getSerializedSize(), message.toByteString().size()); in testSerializeAndParse()
364 assertEquals(message.getSerializedSize(), message.toByteString().size()); in testSerializeAndParse()
371 assertEquals(message.getSerializedSize(), message.toByteString().size()); in testSerializeAndParse()
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()
/external/protobuf/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()
/external/protobuf/javanano/src/test/java/com/google/protobuf/nano/
DNanoTest.java88 int msgSerializedSize = msg.getSerializedSize(); in testSimpleMessageNano()
99 assertTrue(msgSerializedSize != msg.getSerializedSize()); in testSimpleMessageNano()
102 assertEquals(0, msg.getSerializedSize()); in testSimpleMessageNano()
127 int msgSerializedSize = msg.getSerializedSize(); in testRecursiveMessageNano()
143 assertEquals(0, msg.getSerializedSize()); in testMessageNoFields()
157 int msgSerializedSize = msg.getSerializedSize(); in testNanoRequiredInt32()
177 int msgSerializedSize = msg.getSerializedSize(); in testNanoOptionalInt32()
198 int msgSerializedSize = msg.getSerializedSize(); in testNanoOptionalInt64()
219 int msgSerializedSize = msg.getSerializedSize(); in testNanoOptionalUint32()
240 int msgSerializedSize = msg.getSerializedSize(); in testNanoOptionalUint64()
[all …]
/external/grpc-grpc-java/protobuf-lite/src/main/java/io/grpc/protobuf/lite/
DProtoInputStream.java51 written = message.getSerializedSize(); in drainTo()
78 int size = message.getSerializedSize(); in read()
108 return message.getSerializedSize(); in available()
/external/protobuf/javamicro/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()
/external/protobuf/java/core/src/main/java/com/google/protobuf/
DAbstractMessageLite.java56 ByteString.newCodedBuilder(getSerializedSize()); in toByteString()
69 final byte[] result = new byte[getSerializedSize()]; in toByteArray()
84 CodedOutputStream.computePreferredBufferSize(getSerializedSize()); in writeTo()
93 final int serialized = getSerializedSize(); in writeDelimitedTo()
DUnknownFieldSet.java155 ByteString.newCodedBuilder(getSerializedSize()); in toByteString()
172 final byte[] result = new byte[getSerializedSize()]; in toByteArray()
198 codedOutput.writeRawVarint32(getSerializedSize()); in writeDelimitedTo()
205 public int getSerializedSize() { in getSerializedSize() method in UnknownFieldSet
208 result += entry.getValue().getSerializedSize(entry.getKey()); in getSerializedSize()
809 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()
DDynamicMessage.java261 public int getSerializedSize() { in getSerializedSize() method in DynamicMessage
269 size = fields.getSerializedSize(); in getSerializedSize()
270 size += unknownFields.getSerializedSize(); in getSerializedSize()
DMessageLite.java80 int getSerializedSize(); in getSerializedSize() method
DMapEntry.java119 public int getSerializedSize() { in getSerializedSize() method in MapEntry
120 return data.getSerializedSize(); in getSerializedSize()
DCodedOutputStream.java837 return computeLengthDelimitedFieldSize(value.getSerializedSize()); in computeLazyFieldSizeNoTag()
869 return computeLengthDelimitedFieldSize(value.getSerializedSize()); in computeMessageSizeNoTag()
1027 return value.getSerializedSize(); in computeGroupSizeNoTag()
1244 writeUInt32NoTag(value.getSerializedSize()); in writeMessageNoTag()
1590 writeUInt32NoTag(value.getSerializedSize()); in writeMessageNoTag()
2093 writeUInt32NoTag(value.getSerializedSize()); in writeMessageNoTag()
2396 writeUInt32NoTag(value.getSerializedSize()); in writeMessageNoTag()
/external/grpc-grpc-java/protobuf-nano/src/main/java/io/grpc/protobuf/nano/
DNanoProtoInputStream.java61 int size = message.getSerializedSize(); in read()
89 return message.getSerializedSize(); in available()
/external/grpc-grpc-java/protobuf-nano/src/test/java/io/grpc/protobuf/nano/
DNanoUtilsTest.java95 assertEquals(m.getSerializedSize(), is.available()); in testAvailable()
97 assertEquals(m.getSerializedSize() - 1, is.available()); in testAvailable()
/external/grpc-grpc-java/protobuf-lite/src/test/java/io/grpc/protobuf/lite/
DProtoLiteUtilsTest.java129 assertEquals(proto.getSerializedSize(), is.available()); in testAvailable()
131 assertEquals(proto.getSerializedSize() - 1, is.available()); in testAvailable()

12345