Home
last modified time | relevance | path

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

12

/external/protobuf/java/src/main/java/com/google/protobuf/
DAbstractParser.java86 public MessageType parseFrom(CodedInputStream input, in parseFrom() method in AbstractParser
93 public MessageType parseFrom(CodedInputStream input) in parseFrom() method in AbstractParser
95 return parseFrom(input, EMPTY_REGISTRY); in parseFrom()
121 public MessageType parseFrom(ByteString data, in parseFrom() method in AbstractParser
127 public MessageType parseFrom(ByteString data) in parseFrom() method in AbstractParser
129 return parseFrom(data, EMPTY_REGISTRY); in parseFrom()
165 public MessageType parseFrom(byte[] data, int off, int len, in parseFrom() method in AbstractParser
172 public MessageType parseFrom(byte[] data, int off, int len) in parseFrom() method in AbstractParser
174 return parseFrom(data, off, len, EMPTY_REGISTRY); in parseFrom()
177 public MessageType parseFrom(byte[] data, in parseFrom() method in AbstractParser
[all …]
DParser.java51 public MessageType parseFrom(CodedInputStream input) in parseFrom() method
60 public MessageType parseFrom(CodedInputStream input, in parseFrom() method
88 public MessageType parseFrom(ByteString data) in parseFrom() method
96 public MessageType parseFrom(ByteString data, in parseFrom() method
121 public MessageType parseFrom(byte[] data, int off, int len) in parseFrom() method
129 public MessageType parseFrom(byte[] data, int off, int len, in parseFrom() method
137 public MessageType parseFrom(byte[] data) in parseFrom() method
145 public MessageType parseFrom(byte[] data, in parseFrom() method
194 public MessageType parseFrom(InputStream input) in parseFrom() method
202 public MessageType parseFrom(InputStream input, in parseFrom() method
DDynamicMessage.java89 public static DynamicMessage parseFrom(Descriptor type, in parseFrom() method in DynamicMessage
96 public static DynamicMessage parseFrom( in parseFrom() method in DynamicMessage
105 public static DynamicMessage parseFrom(Descriptor type, ByteString data) in parseFrom() method in DynamicMessage
111 public static DynamicMessage parseFrom(Descriptor type, ByteString data, in parseFrom() method in DynamicMessage
118 public static DynamicMessage parseFrom(Descriptor type, byte[] data) in parseFrom() method in DynamicMessage
124 public static DynamicMessage parseFrom(Descriptor type, byte[] data, in parseFrom() method in DynamicMessage
131 public static DynamicMessage parseFrom(Descriptor type, InputStream input) in parseFrom() method in DynamicMessage
137 public static DynamicMessage parseFrom(Descriptor type, InputStream input, in parseFrom() method in DynamicMessage
/external/protobuf/java/src/test/java/com/google/protobuf/
DUnknownFieldSetTest.java57 emptyMessage = TestEmptyMessage.parseFrom(allFieldsData); in setUp()
228 TestAllTypes destination = TestAllTypes.parseFrom(data); in testParseKnownAndUnknown()
244 TestAllTypes allTypesMessage = TestAllTypes.parseFrom(bizarroData); in testWrongTypeTreatedAsUnknown()
245 TestEmptyMessage emptyMessage = TestEmptyMessage.parseFrom(bizarroData); in testWrongTypeTreatedAsUnknown()
257 TestEmptyMessageWithExtensions.parseFrom(allFieldsData); in testUnknownExtensions()
270 TestAllExtensions.parseFrom(bizarroData); in testWrongExtensionTypeTreatedAsUnknown()
271 TestEmptyMessage emptyMessage = TestEmptyMessage.parseFrom(bizarroData); in testWrongExtensionTypeTreatedAsUnknown()
305 TestAllTypes message = TestAllTypes.parseFrom(data); in testParseUnknownEnumValue()
323 TestAllExtensions.parseFrom(data, TestUtil.getExtensionRegistry()); in testParseUnknownEnumValue()
349 UnknownFieldSet parsed = UnknownFieldSet.parseFrom(data); in testLargeVarint()
[all …]
DParserTest.java74 assertMessageEquals(message, parser.parseFrom(data, registry)); in assertRoundTripEquals()
75 assertMessageEquals(message, parser.parseFrom( in assertRoundTripEquals()
78 assertMessageEquals(message, parser.parseFrom( in assertRoundTripEquals()
80 assertMessageEquals(message, parser.parseFrom( in assertRoundTripEquals()
82 assertMessageEquals(message, parser.parseFrom( in assertRoundTripEquals()
95 assertMessageEquals(message, parser.parseFrom(data)); in assertRoundTripEquals()
96 assertMessageEquals(message, parser.parseFrom( in assertRoundTripEquals()
99 assertMessageEquals(message, parser.parseFrom(message.toByteString())); in assertRoundTripEquals()
100 assertMessageEquals(message, parser.parseFrom( in assertRoundTripEquals()
102 assertMessageEquals(message, parser.parseFrom( in assertRoundTripEquals()
[all …]
DWireFormatTest.java66 TestAllTypes message2 = TestAllTypes.parseFrom(rawBytes); in testSerialization()
77 TestPackedTypes message2 = TestPackedTypes.parseFrom(rawBytes); in testSerializationPacked()
91 TestAllTypes message2 = TestAllTypes.parseFrom(rawBytes); in testSerializeExtensions()
124 TestPackedTypes message2 = TestPackedTypes.parseFrom( in testSerializationPackedWithoutGetSerializedSize()
139 TestAllTypes message2 = TestAllTypes.parseFrom(rawBytes); in testSerializeExtensionsLite()
167 TestAllExtensions.parseFrom(rawBytes, registry); in testParseExtensions()
180 TestPackedExtensions.parseFrom(rawBytes, registry); in testParsePackedExtensions()
196 TestAllExtensionsLite.parseFrom(rawBytes, registry_lite); in testParseExtensionsLite()
204 TestAllExtensionsLite.parseFrom(rawBytes, registry); in testParseExtensionsLite()
217 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.java110 SimpleMessageNano newMsg = SimpleMessageNano.parseFrom(result); in testSimpleMessageNano()
149 RecursiveMessageNano newMsg = RecursiveMessageNano.parseFrom(result); in testRecursiveMessageNano()
179 TestAllTypesNano newMsg = TestAllTypesNano.parseFrom(result); in testNanoRequiredInt32()
199 TestAllTypesNano newMsg = TestAllTypesNano.parseFrom(result); in testNanoOptionalInt32()
220 TestAllTypesNano newMsg = TestAllTypesNano.parseFrom(result); in testNanoOptionalInt64()
241 TestAllTypesNano newMsg = TestAllTypesNano.parseFrom(result); in testNanoOptionalUint32()
262 TestAllTypesNano newMsg = TestAllTypesNano.parseFrom(result); in testNanoOptionalUint64()
283 TestAllTypesNano newMsg = TestAllTypesNano.parseFrom(result); in testNanoOptionalSint32()
304 TestAllTypesNano newMsg = TestAllTypesNano.parseFrom(result); in testNanoOptionalSint64()
325 TestAllTypesNano newMsg = TestAllTypesNano.parseFrom(result); in testNanoOptionalFixed32()
[all …]
DDynamicMessageTest.java173 TestAllTypes message2 = TestAllTypes.parseFrom(rawBytes); in testDynamicMessageSerialization()
189 DynamicMessage.parseFrom(TestAllTypes.getDescriptor(), rawBytes); in testDynamicMessageParsing()
193 Message message3 = message2.getParserForType().parseFrom(rawBytes); in testDynamicMessageParsing()
199 Message message = DynamicMessage.parseFrom( in testDynamicMessageExtensionParsing()
205 Message message2 = message.getParserForType().parseFrom( in testDynamicMessageExtensionParsing()
217 TestPackedTypes message2 = TestPackedTypes.parseFrom(rawBytes); in testDynamicMessagePackedSerialization()
233 DynamicMessage.parseFrom(TestPackedTypes.getDescriptor(), rawBytes); in testDynamicMessagePackedParsing()
237 Message message3 = message2.getParserForType().parseFrom(rawBytes); in testDynamicMessagePackedParsing()
DCheckUtf8Test.java62 StringWrapper.PARSER.parseFrom(serialized).getReq()); in testParseRequiredStringWithGoodUtf8()
96 StringWrapper.PARSER.parseFrom(serialized); in testParseRequiredStringWithBadUtf8()
134 StringWrapperSize.PARSER.parseFrom(serialized); in testParseRequiredStringWithBadUtf8Size()
DLazyStringEndToEndTest.java71 UnittestProto.TestAllTypes tV2 = UnittestProto.TestAllTypes.parseFrom( in testParseAndSerialize()
82 UnittestProto.TestAllTypes tV2 = UnittestProto.TestAllTypes.parseFrom( in testParseAndWrite()
131 UnittestProto.TestAllTypes.parseFrom(encodedTestAllTypes); in testNoStringCachingIfOnlyBytesAccessed()
DAbstractMessageTest.java217 TestAllTypes.parseFrom(abstractMessage.toByteString())); in testSerialization()
264 TestPackedTypes.parseFrom(abstractMessage.toByteString())); in testPackedSerialization()
283 TestUnpackedTypes.parseFrom(abstractMessage.toByteString())); in testUnpackedSerialization()
319 message = TestOptimizedForSize.parseFrom(message.toByteString()); in testOptimizedForSize()
458 UnittestProto.TestEmptyMessage.parseFrom(e.toByteArray()); in testEqualsAndHashCode()
460 UnittestProto.TestEmptyMessage.parseFrom(f.toByteArray()); in testEqualsAndHashCode()
467 UnittestProto.TestEmptyMessage.parseFrom(e.toByteArray()); in testEqualsAndHashCode()
DCodedInputStreamTest.java320 TestAllTypes message2 = TestAllTypes.parseFrom(rawBytes); in testReadWholeMessage()
325 message2 = TestAllTypes.parseFrom( in testReadWholeMessage()
406 TestAllTypes.parseFrom(message.toByteString().newInput()); in testReadHugeBlob()
461 assertMessageDepth(TestRecursiveMessage.parseFrom(data64), 64); in testMaliciousRecursion()
464 TestRecursiveMessage.parseFrom(data65); in testMaliciousRecursion()
473 TestRecursiveMessage.parseFrom(input); in testMaliciousRecursion()
493 TestAllTypes.parseFrom(input); in testSizeLimit()
762 BoolMessage msg2 = BoolMessage.parseFrom(serialized); in testCompatibleTypes()
766 Int32Message msg3 = Int32Message.parseFrom(serialized); in testCompatibleTypes()
DMessageTest.java255 TestRequired.parseFrom(ByteString.EMPTY); in testParseUnititialized()
271 TestRequiredForeign.parseFrom(data); in testParseNestedUnititialized()
309 DynamicMessage.parseFrom(descriptor, ByteString.EMPTY); in testDynamicParseUnititialized()
/external/google-tv-pairing-protocol/java/jar/
Dprotobuf-java-2.2.0-lite.jarMETA-INF/ META-INF/MANIFEST.MF com/ com/google/ com/ ...
/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()
/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/icu/android_icu4j/src/main/tests/android/icu/dev/test/calendar/
DDataDrivenCalendarTest.java140 fromSet.parseFrom(from); in testConvert()
142 toSet.parseFrom(to, fromSet); in testConvert()
195 fromSet.parseFrom(testSetting); in testOps()
206 paramsSet.parseFrom(paramsData); // parse with inheritance. in testOps()
217 toSet.parseFrom(testSetting, fromSet); in testOps()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/calendar/
DDataDrivenCalendarTest.java136 fromSet.parseFrom(from); in testConvert()
138 toSet.parseFrom(to, fromSet); in testConvert()
191 fromSet.parseFrom(testSetting); in testOps()
202 paramsSet.parseFrom(paramsData); // parse with inheritance. in testOps()
213 toSet.parseFrom(testSetting, fromSet); in testOps()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/util/
DFieldsSet.java115 public int parseFrom(String str) { in parseFrom() method in FieldsSet
116 return parseFrom(str, null); in parseFrom()
119 public int parseFrom(String str, FieldsSet inheritFrom) { in parseFrom() method in FieldsSet
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/util/
DFieldsSet.java114 public int parseFrom(String str) { in parseFrom() method in FieldsSet
115 return parseFrom(str, null); in parseFrom()
118 public int parseFrom(String str, FieldsSet inheritFrom) { in parseFrom() method in FieldsSet
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/
DDataDrivenFormatTest.java106 styleSet.parseFrom(spec); in testConvertDate()
128 addSet.parseFrom(add); in testConvertDate()
147 fromSet.parseFrom(date); in testConvertDate()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/
DDataDrivenFormatTest.java110 styleSet.parseFrom(spec); in testConvertDate()
132 addSet.parseFrom(add); in testConvertDate()
151 fromSet.parseFrom(date); in testConvertDate()

12