Home
last modified time | relevance | path

Searched refs:parseFrom (Results 1 – 17 of 17) sorted by relevance

/external/protobuf/java/src/test/java/com/google/protobuf/
DWireFormatTest.java63 TestAllTypes message2 = TestAllTypes.parseFrom(rawBytes); in testSerialization()
74 TestPackedTypes message2 = TestPackedTypes.parseFrom(rawBytes); in testSerializationPacked()
88 TestAllTypes message2 = TestAllTypes.parseFrom(rawBytes); in testSerializeExtensions()
121 TestPackedTypes message2 = TestPackedTypes.parseFrom( in testSerializationPackedWithoutGetSerializedSize()
136 TestAllTypes message2 = TestAllTypes.parseFrom(rawBytes); in testSerializeExtensionsLite()
164 TestAllExtensions.parseFrom(rawBytes, registry); in testParseExtensions()
177 TestPackedExtensions.parseFrom(rawBytes, registry); in testParsePackedExtensions()
193 TestAllExtensionsLite.parseFrom(rawBytes, registry_lite); in testParseExtensionsLite()
201 TestAllExtensionsLite.parseFrom(rawBytes, registry); in testParseExtensionsLite()
214 TestPackedExtensionsLite.parseFrom(rawBytes, registry); in testParsePackedExtensionsLite()
[all …]
DMicroTest.java92 SimpleMessageMicro newMsg = SimpleMessageMicro.parseFrom(result); in testSimpleMessageMicro()
131 RecursiveMessageMicro newMsg = RecursiveMessageMicro.parseFrom(result); in testRecursiveMessageMicro()
168 TestAllTypesMicro newMsg = TestAllTypesMicro.parseFrom(result); in testMicroRequiredInt32()
195 TestAllTypesMicro newMsg = TestAllTypesMicro.parseFrom(result); in testMicroOptionalInt32()
221 TestAllTypesMicro newMsg = TestAllTypesMicro.parseFrom(result); in testMicroOptionalInt64()
247 TestAllTypesMicro newMsg = TestAllTypesMicro.parseFrom(result); in testMicroOptionalUint32()
273 TestAllTypesMicro newMsg = TestAllTypesMicro.parseFrom(result); in testMicroOptionalUint64()
299 TestAllTypesMicro newMsg = TestAllTypesMicro.parseFrom(result); in testMicroOptionalSint32()
325 TestAllTypesMicro newMsg = TestAllTypesMicro.parseFrom(result); in testMicroOptionalSint64()
351 TestAllTypesMicro newMsg = TestAllTypesMicro.parseFrom(result); in testMicroOptionalFixed32()
[all …]
DUnknownFieldSetTest.java54 emptyMessage = TestEmptyMessage.parseFrom(allFieldsData); in setUp()
218 TestAllTypes destination = TestAllTypes.parseFrom(data); in testParseKnownAndUnknown()
234 TestAllTypes allTypesMessage = TestAllTypes.parseFrom(bizarroData); in testWrongTypeTreatedAsUnknown()
235 TestEmptyMessage emptyMessage = TestEmptyMessage.parseFrom(bizarroData); in testWrongTypeTreatedAsUnknown()
247 TestEmptyMessageWithExtensions.parseFrom(allFieldsData); in testUnknownExtensions()
260 TestAllExtensions.parseFrom(bizarroData); in testWrongExtensionTypeTreatedAsUnknown()
261 TestEmptyMessage emptyMessage = TestEmptyMessage.parseFrom(bizarroData); in testWrongExtensionTypeTreatedAsUnknown()
295 TestAllTypes message = TestAllTypes.parseFrom(data); in testParseUnknownEnumValue()
313 TestAllExtensions.parseFrom(data, TestUtil.getExtensionRegistry()); in testParseUnknownEnumValue()
339 UnknownFieldSet parsed = UnknownFieldSet.parseFrom(data); in testLargeVarint()
DCodedInputStreamTest.java281 TestAllTypes message2 = TestAllTypes.parseFrom(rawBytes); in testReadWholeMessage()
286 message2 = TestAllTypes.parseFrom( in testReadWholeMessage()
371 TestAllTypes.parseFrom(message.toByteString().newInput()); in testReadHugeBlob()
426 assertMessageDepth(TestRecursiveMessage.parseFrom(data64), 64); in testMaliciousRecursion()
429 TestRecursiveMessage.parseFrom(data65); in testMaliciousRecursion()
438 TestRecursiveMessage.parseFrom(input); in testMaliciousRecursion()
451 TestAllTypes.parseFrom(input); in testSizeLimit()
DAbstractMessageTest.java209 TestAllTypes.parseFrom(abstractMessage.toByteString())); in testSerialization()
228 TestPackedTypes.parseFrom(abstractMessage.toByteString())); in testPackedSerialization()
247 TestUnpackedTypes.parseFrom(abstractMessage.toByteString())); in testUnpackedSerialization()
283 message = TestOptimizedForSize.parseFrom(message.toByteString()); in testOptimizedForSize()
409 UnittestProto.TestEmptyMessage.parseFrom(e.toByteArray()); in testEqualsAndHashCode()
411 UnittestProto.TestEmptyMessage.parseFrom(f.toByteArray()); in testEqualsAndHashCode()
418 UnittestProto.TestEmptyMessage.parseFrom(e.toByteArray()); in testEqualsAndHashCode()
DDynamicMessageTest.java152 TestAllTypes message2 = TestAllTypes.parseFrom(rawBytes); in testDynamicMessageSerialization()
168 DynamicMessage.parseFrom(TestAllTypes.getDescriptor(), rawBytes); in testDynamicMessageParsing()
179 TestPackedTypes message2 = TestPackedTypes.parseFrom(rawBytes); in testDynamicMessagePackedSerialization()
195 DynamicMessage.parseFrom(TestPackedTypes.getDescriptor(), rawBytes); in testDynamicMessagePackedParsing()
DMessageTest.java253 TestRequired.parseFrom(ByteString.EMPTY); in testParseUnititialized()
269 TestRequiredForeign.parseFrom(data); in testParseNestedUnititialized()
307 DynamicMessage.parseFrom(descriptor, ByteString.EMPTY); in testDynamicParseUnititialized()
DLiteTest.java75 TestAllTypesLite message2 = TestAllTypesLite.parseFrom(data); in testLite()
DGeneratedMessageTest.java558 assertEquals(message, MessageWithNoOuter.parseFrom(message.toByteString())); in testMultipleFilesOption()
/external/icu4c/test/intltest/
Dfldset.h66 int32_t parseFrom(const U_NAMESPACE_QUALIFIER UnicodeString& str, UErrorCode& status) { in parseFrom() function
67 return parseFrom(str,NULL,status); in parseFrom()
78 int32_t parseFrom(const U_NAMESPACE_QUALIFIER UnicodeString& str, in parseFrom() function
81 return parseFrom(str, &inheritFrom, status); in parseFrom()
92 int32_t parseFrom(const U_NAMESPACE_QUALIFIER UnicodeString& str,
Ddadrcal.cpp139 } else if(fromSet.parseFrom(testSetting, status)<0 || U_FAILURE(status)){ in testOps()
170 paramsSet.parseFrom(testSetting, status); // parse with inheritance. in testOps()
190 } else if(toSet.parseFrom(testSetting, &fromSet, status)<0 || U_FAILURE(status)){ in testOps()
416 fromSet.parseFrom(from, status); in testConvert()
426 toSet.parseFrom(to, &fromSet, status); in testConvert()
Ddadrfmt.cpp163 if(styleSet.parseFrom(spec, status)<0 || U_FAILURE(status)) { in testConvertDate()
190 if(fromSet.parseFrom(add, status)<0 || U_FAILURE(status)) { in testConvertDate()
210 } else if(fromSet.parseFrom(date, status)<0 || U_FAILURE(status)) { in testConvertDate()
Dfldset.cpp93 int32_t FieldsSet::parseFrom(const UnicodeString& str, const in parseFrom() function in FieldsSet
/external/protobuf/java/src/main/java/com/google/protobuf/
DDynamicMessage.java72 public static DynamicMessage parseFrom(Descriptor type, in parseFrom() method in DynamicMessage
79 public static DynamicMessage parseFrom( in parseFrom() method in DynamicMessage
88 public static DynamicMessage parseFrom(Descriptor type, ByteString data) in parseFrom() method in DynamicMessage
94 public static DynamicMessage parseFrom(Descriptor type, ByteString data, in parseFrom() method in DynamicMessage
101 public static DynamicMessage parseFrom(Descriptor type, byte[] data) in parseFrom() method in DynamicMessage
107 public static DynamicMessage parseFrom(Descriptor type, byte[] data, in parseFrom() method in DynamicMessage
114 public static DynamicMessage parseFrom(Descriptor type, InputStream input) in parseFrom() method in DynamicMessage
120 public static DynamicMessage parseFrom(Descriptor type, InputStream input, in parseFrom() method in DynamicMessage
DUnknownFieldSet.java237 public static UnknownFieldSet parseFrom(final CodedInputStream input) in parseFrom() method in UnknownFieldSet
243 public static UnknownFieldSet parseFrom(final ByteString data) in parseFrom() method in UnknownFieldSet
249 public static UnknownFieldSet parseFrom(final byte[] data) in parseFrom() method in UnknownFieldSet
255 public static UnknownFieldSet parseFrom(final InputStream input) in parseFrom() method in UnknownFieldSet
DDescriptors.java276 proto = FileDescriptorProto.parseFrom(descriptorBytes); in internalBuildGeneratedFileFrom()
296 proto = FileDescriptorProto.parseFrom(descriptorBytes, registry); in internalBuildGeneratedFileFrom()
/external/protobuf/examples/
DListPeople.java46 AddressBook.parseFrom(new FileInputStream(args[0])); in main()