/external/protobuf/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 | 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 | AbstractMessageTest.java | 233 assertEquals(message.getSerializedSize(), in testSerializedSize() 234 abstractMessage.getSerializedSize()); in testSerializedSize() 344 assertEquals(2, message.getSerializedSize()); in testOptimizedForSize()
|
D | TestBadIdentifiers.java | 78 assertEquals(0, message.getMessageFieldCount15().getSerializedSize()); in testConflictingFieldNames()
|
D | MapForProto2LiteTest.java | 357 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()
|
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()
|
/external/protobuf/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()
|
/external/protobuf/javanano/src/test/java/com/google/protobuf/nano/ |
D | NanoTest.java | 88 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/ |
D | ProtoInputStream.java | 51 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/ |
D | MessageMicro.java | 56 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/ |
D | AbstractMessageLite.java | 56 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()
|
D | UnknownFieldSet.java | 155 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
|
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 | DynamicMessage.java | 261 public int getSerializedSize() { in getSerializedSize() method in DynamicMessage 269 size = fields.getSerializedSize(); in getSerializedSize() 270 size += unknownFields.getSerializedSize(); in getSerializedSize()
|
D | MessageLite.java | 80 int getSerializedSize(); in getSerializedSize() method
|
D | MapEntry.java | 119 public int getSerializedSize() { in getSerializedSize() method in MapEntry 120 return data.getSerializedSize(); in getSerializedSize()
|
D | CodedOutputStream.java | 837 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/ |
D | NanoProtoInputStream.java | 61 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/ |
D | NanoUtilsTest.java | 95 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/ |
D | ProtoLiteUtilsTest.java | 129 assertEquals(proto.getSerializedSize(), is.available()); in testAvailable() 131 assertEquals(proto.getSerializedSize() - 1, is.available()); in testAvailable()
|