Home
last modified time | relevance | path

Searched refs:parseFrom (Results 1 – 24 of 24) 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.java99 SimpleMessageMicro newMsg = SimpleMessageMicro.parseFrom(result); in testSimpleMessageMicro()
138 RecursiveMessageMicro newMsg = RecursiveMessageMicro.parseFrom(result); in testRecursiveMessageMicro()
175 TestAllTypesMicro newMsg = TestAllTypesMicro.parseFrom(result); in testMicroRequiredInt32()
202 TestAllTypesMicro newMsg = TestAllTypesMicro.parseFrom(result); in testMicroOptionalInt32()
228 TestAllTypesMicro newMsg = TestAllTypesMicro.parseFrom(result); in testMicroOptionalInt64()
254 TestAllTypesMicro newMsg = TestAllTypesMicro.parseFrom(result); in testMicroOptionalUint32()
280 TestAllTypesMicro newMsg = TestAllTypesMicro.parseFrom(result); in testMicroOptionalUint64()
306 TestAllTypesMicro newMsg = TestAllTypesMicro.parseFrom(result); in testMicroOptionalSint32()
332 TestAllTypesMicro newMsg = TestAllTypesMicro.parseFrom(result); in testMicroOptionalSint64()
358 TestAllTypesMicro newMsg = TestAllTypesMicro.parseFrom(result); in testMicroOptionalFixed32()
[all …]
DNanoTest.java105 SimpleMessageNano newMsg = SimpleMessageNano.parseFrom(result); in testSimpleMessageNano()
144 RecursiveMessageNano newMsg = RecursiveMessageNano.parseFrom(result); in testRecursiveMessageNano()
174 TestAllTypesNano newMsg = TestAllTypesNano.parseFrom(result); in testNanoRequiredInt32()
194 TestAllTypesNano newMsg = TestAllTypesNano.parseFrom(result); in testNanoOptionalInt32()
215 TestAllTypesNano newMsg = TestAllTypesNano.parseFrom(result); in testNanoOptionalInt64()
236 TestAllTypesNano newMsg = TestAllTypesNano.parseFrom(result); in testNanoOptionalUint32()
257 TestAllTypesNano newMsg = TestAllTypesNano.parseFrom(result); in testNanoOptionalUint64()
278 TestAllTypesNano newMsg = TestAllTypesNano.parseFrom(result); in testNanoOptionalSint32()
299 TestAllTypesNano newMsg = TestAllTypesNano.parseFrom(result); in testNanoOptionalSint64()
320 TestAllTypesNano newMsg = TestAllTypesNano.parseFrom(result); in testNanoOptionalFixed32()
[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/icu/icu4c/source/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.cpp171 if(styleSet.parseFrom(spec, status)<0 || U_FAILURE(status)) { in testConvertDate()
205 if(fromSet.parseFrom(add, status)<0 || U_FAILURE(status)) { in testConvertDate()
230 } 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/chromium_org/third_party/icu/source/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.cpp171 if(styleSet.parseFrom(spec, status)<0 || U_FAILURE(status)) { in testConvertDate()
205 if(fromSet.parseFrom(add, status)<0 || U_FAILURE(status)) { in testConvertDate()
230 } 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/google-tv-pairing-protocol/java/src/com/google/polo/wire/protobuf/
DProtobufWireAdapter.java130 OuterMessage message = OuterMessage.parseFrom(messageBuffer); in readNextOuterMessage()
154 return PoloProto.Options.parseFrom(payload); in readNextInnerMessage()
156 return PoloProto.PairingRequest.parseFrom(payload); in readNextInnerMessage()
158 return PoloProto.PairingRequestAck.parseFrom(payload); in readNextInnerMessage()
160 return PoloProto.Configuration.parseFrom(payload); in readNextInnerMessage()
162 return PoloProto.ConfigurationAck.parseFrom(payload); in readNextInnerMessage()
164 return PoloProto.Secret.parseFrom(payload); in readNextInnerMessage()
166 return PoloProto.SecretAck.parseFrom(payload); in readNextInnerMessage()
/external/protobuf/examples/
DListPeople.java46 AddressBook.parseFrom(new FileInputStream(args[0])); in main()
/external/protobuf/java/
DREADME.txt493 and upon clear(). If parseFrom(...) reads the field from the wire,