/third_party/protobuf/java/core/src/main/java/com/google/protobuf/ |
D | Parser.java | 61 public MessageType parseFrom(CodedInputStream input) throws InvalidProtocolBufferException; in parseFrom() method 68 public MessageType parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) in parseFrom() method 92 public MessageType parseFrom(ByteBuffer data) throws InvalidProtocolBufferException; in parseFrom() method 98 public MessageType parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry) in parseFrom() method 104 public MessageType parseFrom(ByteString data) throws InvalidProtocolBufferException; in parseFrom() method 110 public MessageType parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) in parseFrom() method 130 public MessageType parseFrom(byte[] data, int off, int len) throws InvalidProtocolBufferException; in parseFrom() method 136 public MessageType parseFrom( in parseFrom() method 144 public MessageType parseFrom(byte[] data) throws InvalidProtocolBufferException; in parseFrom() method 150 public MessageType parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) in parseFrom() method [all …]
|
D | AbstractParser.java | 84 public MessageType parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) in parseFrom() method in AbstractParser 90 public MessageType parseFrom(CodedInputStream input) throws InvalidProtocolBufferException { in parseFrom() method in AbstractParser 91 return parseFrom(input, EMPTY_REGISTRY); in parseFrom() 118 public MessageType parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) in parseFrom() method in AbstractParser 124 public MessageType parseFrom(ByteString data) throws InvalidProtocolBufferException { in parseFrom() method in AbstractParser 125 return parseFrom(data, EMPTY_REGISTRY); in parseFrom() 129 public MessageType parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry) in parseFrom() method in AbstractParser 148 public MessageType parseFrom(ByteBuffer data) throws InvalidProtocolBufferException { in parseFrom() method in AbstractParser 149 return parseFrom(data, EMPTY_REGISTRY); in parseFrom() 188 public MessageType parseFrom( in parseFrom() method in AbstractParser [all …]
|
D | DynamicMessage.java | 90 public static DynamicMessage parseFrom(Descriptor type, CodedInputStream input) in parseFrom() method in DynamicMessage 96 public static DynamicMessage parseFrom( in parseFrom() method in DynamicMessage 103 public static DynamicMessage parseFrom(Descriptor type, ByteString data) in parseFrom() method in DynamicMessage 109 public static DynamicMessage parseFrom( in parseFrom() method in DynamicMessage 116 public static DynamicMessage parseFrom(Descriptor type, byte[] data) in parseFrom() method in DynamicMessage 122 public static DynamicMessage parseFrom( in parseFrom() method in DynamicMessage 129 public static DynamicMessage parseFrom(Descriptor type, InputStream input) throws IOException { in parseFrom() method in DynamicMessage 134 public static DynamicMessage parseFrom( in parseFrom() method in DynamicMessage
|
/third_party/protobuf/java/core/src/test/java/com/google/protobuf/ |
D | WireFormatLiteTest.java | 72 TestAllTypes message2 = TestAllTypes.parseFrom(rawBytes); in testSerializeExtensionsLite() 99 TestAllExtensionsLite message2 = TestAllExtensionsLite.parseFrom(rawBytes, registryLite); in testParseExtensionsLite() 101 message2 = TestAllExtensionsLite.parseFrom(message.toByteArray(), registryLite); in testParseExtensionsLite() 112 TestPackedExtensionsLite message2 = TestPackedExtensionsLite.parseFrom(rawBytes, registry); in testParsePackedExtensionsLite() 114 message2 = TestPackedExtensionsLite.parseFrom(message.toByteArray(), registry); in testParsePackedExtensionsLite() 124 TestAllTypes message2 = TestAllTypes.parseFrom(rawBytes); in testSerialization() 135 TestPackedTypes message2 = TestPackedTypes.parseFrom(rawBytes); in testSerializationPacked() 149 TestAllTypes message2 = TestAllTypes.parseFrom(rawBytes); in testSerializeExtensions() 181 TestPackedTypes message2 = TestPackedTypes.parseFrom(outputStream.toByteArray()); in testSerializationPackedWithoutGetSerializedSize() 196 TestAllExtensions message2 = TestAllExtensions.parseFrom(rawBytes, registry); in testParseExtensions() [all …]
|
D | ParserTest.java | 68 assertMessageEquals(message, parser.parseFrom(data, registry)); in assertRoundTripEquals() 71 parser.parseFrom(generatePaddingArray(data, offset, padding), offset, length, registry)); in assertRoundTripEquals() 72 assertMessageEquals(message, parser.parseFrom(message.toByteString(), registry)); in assertRoundTripEquals() 73 assertMessageEquals(message, parser.parseFrom(new ByteArrayInputStream(data), registry)); in assertRoundTripEquals() 74 assertMessageEquals(message, parser.parseFrom(CodedInputStream.newInstance(data), registry)); in assertRoundTripEquals() 76 message, parser.parseFrom(message.toByteString().asReadOnlyByteBuffer(), registry)); in assertRoundTripEquals() 87 assertMessageEquals(message, parser.parseFrom(data)); in assertRoundTripEquals() 89 message, parser.parseFrom(generatePaddingArray(data, offset, padding), offset, length)); in assertRoundTripEquals() 90 assertMessageEquals(message, parser.parseFrom(message.toByteString())); in assertRoundTripEquals() 91 assertMessageEquals(message, parser.parseFrom(new ByteArrayInputStream(data))); in assertRoundTripEquals() [all …]
|
D | ParserLiteTest.java | 49 assertEquals(message, parser.parseFrom(data, registry)); in assertRoundTripEquals() 52 parser.parseFrom(generatePaddingArray(data, offset, padding), offset, length, registry)); in assertRoundTripEquals() 53 assertEquals(message, parser.parseFrom(message.toByteString(), registry)); in assertRoundTripEquals() 54 assertEquals(message, parser.parseFrom(new ByteArrayInputStream(data), registry)); in assertRoundTripEquals() 55 assertEquals(message, parser.parseFrom(CodedInputStream.newInstance(data), registry)); in assertRoundTripEquals() 57 message, parser.parseFrom(message.toByteString().asReadOnlyByteBuffer(), registry)); in assertRoundTripEquals() 68 assertEquals(message, parser.parseFrom(data)); in assertRoundTripEquals() 70 message, parser.parseFrom(generatePaddingArray(data, offset, padding), offset, length)); in assertRoundTripEquals() 71 assertEquals(message, parser.parseFrom(message.toByteString())); in assertRoundTripEquals() 72 assertEquals(message, parser.parseFrom(new ByteArrayInputStream(data))); in assertRoundTripEquals() [all …]
|
D | WireFormatTest.java | 70 TestAllTypes message2 = TestAllTypes.parseFrom(rawBytes); in testSerialization() 81 TestPackedTypes message2 = TestPackedTypes.parseFrom(rawBytes); in testSerializationPacked() 95 TestAllTypes message2 = TestAllTypes.parseFrom(rawBytes); in testSerializeExtensions() 127 TestPackedTypes message2 = TestPackedTypes.parseFrom(outputStream.toByteArray()); in testSerializationPackedWithoutGetSerializedSize() 142 TestAllExtensions message2 = TestAllExtensions.parseFrom(rawBytes, registry); in testParseExtensions() 154 TestPackedExtensions message2 = TestPackedExtensions.parseFrom(rawBytes, registry); in testParsePackedExtensions() 240 TestFieldOrderings.parseFrom(source.toByteString(), getTestFieldOrderingsRegistry()); in testParseMultipleExtensionRanges() 259 TestExtensionInsideTable.parseFrom( in testExtensionInsideTable() 276 DynamicMessage.parseFrom( in testParseMultipleExtensionRangesDynamic() 313 RawMessageSet raw = RawMessageSet.parseFrom(data); in testSerializeMessageSetWithFlag() [all …]
|
D | PackedFieldTest.java | 195 TestAllTypes message = TestAllTypes.parseFrom(expectedPackedRawBytes); in testPackedGeneratedMessage() 201 DynamicMessage.parseFrom(TestAllTypes.getDescriptor(), expectedPackedRawBytes); in testPackedDynamicMessageSerialize() 206 TestUnpackedTypes message = TestUnpackedTypes.parseFrom(expectedUnpackedRawBytes); in testUnpackedGeneratedMessage() 212 DynamicMessage.parseFrom(TestUnpackedTypes.getDescriptor(), expectedUnpackedRawBytes); in testUnPackedDynamicMessageSerialize()
|
D | CachedFieldSizeTest.java | 50 UnittestProto3.TestPackedTypes.parseFrom(TestUtil.getPackedSet().toByteArray())); in testCachedFieldSize() 62 assertEquals(message.getProto2Child(), TestPackedTypes.parseFrom(data2)); in testCachedFieldSize() 63 assertEquals(message.getProto3Child(), UnittestProto3.TestPackedTypes.parseFrom(data3)); in testCachedFieldSize()
|
D | DiscardUnknownFieldsTest.java | 85 Message parsed = DiscardUnknownFieldsParser.wrap(message.getParserForType()).parseFrom(input); in assertReuseCodedInputStreamPreserve() 90 parsed = message.getParserForType().parseFrom(input); in assertReuseCodedInputStreamPreserve() 106 MessageLite parsed = message.getParserForType().parseFrom(payload); in assertUnknownFieldsPreserved() 114 Message parsed = DiscardUnknownFieldsParser.wrap(message.getParserForType()).parseFrom(payload); in assertUnknownFieldsExplicitlyDiscarded()
|
D | UnknownFieldSetTest.java | 62 emptyMessage = TestEmptyMessage.parseFrom(allFieldsData); in setUp() 372 TestAllTypes destination = TestAllTypes.parseFrom(data); in testParseKnownAndUnknown() 387 TestAllTypes allTypesMessage = TestAllTypes.parseFrom(bizarroData); in testWrongTypeTreatedAsUnknown() 388 TestEmptyMessage emptyMessage = TestEmptyMessage.parseFrom(bizarroData); in testWrongTypeTreatedAsUnknown() 400 TestEmptyMessageWithExtensions.parseFrom(allFieldsData); in testUnknownExtensions() 411 TestAllExtensions allExtensionsMessage = TestAllExtensions.parseFrom(bizarroData); in testWrongExtensionTypeTreatedAsUnknown() 412 TestEmptyMessage emptyMessage = TestEmptyMessage.parseFrom(bizarroData); in testWrongExtensionTypeTreatedAsUnknown() 447 TestAllTypes message = TestAllTypes.parseFrom(data); in testParseUnknownEnumValue() 462 TestAllExtensions.parseFrom(data, TestUtil.getExtensionRegistry()); in testParseUnknownEnumValue() 484 UnknownFieldSet parsed = UnknownFieldSet.parseFrom(data); in testLargeVarint() [all …]
|
D | DynamicMessageTest.java | 163 TestAllTypes message2 = TestAllTypes.parseFrom(rawBytes); in testDynamicMessageSerialization() 178 Message message2 = DynamicMessage.parseFrom(TestAllTypes.getDescriptor(), rawBytes); in testDynamicMessageParsing() 182 Message message3 = message2.getParserForType().parseFrom(rawBytes); in testDynamicMessageParsing() 189 DynamicMessage.parseFrom( in testDynamicMessageExtensionParsing() 195 message.getParserForType().parseFrom(rawBytes, TestUtil.getExtensionRegistry()); in testDynamicMessageExtensionParsing() 205 TestPackedTypes message2 = TestPackedTypes.parseFrom(rawBytes); in testDynamicMessagePackedSerialization() 220 Message message2 = DynamicMessage.parseFrom(TestPackedTypes.getDescriptor(), rawBytes); in testDynamicMessagePackedParsing() 224 Message message3 = message2.getParserForType().parseFrom(rawBytes); in testDynamicMessagePackedParsing()
|
D | LazyStringEndToEndTest.java | 68 UnittestProto.TestAllTypes.parseFrom(TEST_ALL_TYPES_SERIALIZED_WITH_ILLEGAL_UTF8); in testParseAndSerialize() 79 UnittestProto.TestAllTypes.parseFrom(TEST_ALL_TYPES_SERIALIZED_WITH_ILLEGAL_UTF8); in testParseAndWrite() 113 UnittestProto.TestAllTypes proto = UnittestProto.TestAllTypes.parseFrom(encodedTestAllTypes); in testNoStringCachingIfOnlyBytesAccessed()
|
D | CheckUtf8Test.java | 61 assertEquals(UTF8_BYTE_STRING_TEXT, StringWrapper.parser().parseFrom(serialized).getReq()); in testParseRequiredStringWithGoodUtf8() 133 defaultInstance.getParserForType().parseFrom(data); in assertParseBadUtf8() 145 defaultInstance.getParserForType().parseFrom(new ByteArrayInputStream(data)); in assertParseBadUtf8()
|
D | ParseExceptionsTest.java | 87 return DescriptorProto.parseFrom(in); in message_parseFrom_InputStream() 99 return DescriptorProto.parseFrom(in, ExtensionRegistry.newInstance()); in message_parseFrom_InputStreamAndExtensionRegistry() 111 return DescriptorProto.parseFrom(CodedInputStream.newInstance(in)); in message_parseFrom_CodedInputStream() 123 return DescriptorProto.parseFrom( in message_parseFrom_CodedInputStreamAndExtensionRegistry()
|
/third_party/protobuf/java/compatibility_tests/v2.5.0/tests/src/main/java/com/google/protobuf/test/ |
D | ParserTest.java | 72 assertMessageEquals(message, parser.parseFrom(data, registry)); in assertRoundTripEquals() 73 assertMessageEquals(message, parser.parseFrom( in assertRoundTripEquals() 76 assertMessageEquals(message, parser.parseFrom( in assertRoundTripEquals() 78 assertMessageEquals(message, parser.parseFrom( in assertRoundTripEquals() 80 assertMessageEquals(message, parser.parseFrom( in assertRoundTripEquals() 90 assertMessageEquals(message, parser.parseFrom(data)); in assertRoundTripEquals() 91 assertMessageEquals(message, parser.parseFrom( in assertRoundTripEquals() 94 assertMessageEquals(message, parser.parseFrom(message.toByteString())); in assertRoundTripEquals() 95 assertMessageEquals(message, parser.parseFrom( in assertRoundTripEquals() 97 assertMessageEquals(message, parser.parseFrom( in assertRoundTripEquals() [all …]
|
D | WireFormatTest.java | 63 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() 138 TestAllExtensions.parseFrom(rawBytes, registry); in testParseExtensions() 151 TestPackedExtensions.parseFrom(rawBytes, registry); in testParsePackedExtensions() 240 TestFieldOrderings.parseFrom(source.toByteString(), in testParseMultipleExtensionRanges() 257 DynamicMessage.parseFrom(descriptor, source.toByteString(), in testParseMultipleExtensionRangesDynamic() 300 RawMessageSet raw = RawMessageSet.parseFrom(data); in testSerializeMessageSetWithFlag() 310 TestMessageSetExtension1.parseFrom( in testSerializeMessageSetWithFlag() [all …]
|
D | DynamicMessageTest.java | 170 TestAllTypes message2 = TestAllTypes.parseFrom(rawBytes); in testDynamicMessageSerialization() 186 DynamicMessage.parseFrom(TestAllTypes.getDescriptor(), rawBytes); in testDynamicMessageParsing() 190 Message message3 = message2.getParserForType().parseFrom(rawBytes); in testDynamicMessageParsing() 196 Message message = DynamicMessage.parseFrom( in testDynamicMessageExtensionParsing() 202 Message message2 = message.getParserForType().parseFrom( in testDynamicMessageExtensionParsing() 214 TestPackedTypes message2 = TestPackedTypes.parseFrom(rawBytes); in testDynamicMessagePackedSerialization() 230 DynamicMessage.parseFrom(TestPackedTypes.getDescriptor(), rawBytes); in testDynamicMessagePackedParsing() 234 Message message3 = message2.getParserForType().parseFrom(rawBytes); in testDynamicMessagePackedParsing()
|
D | UnknownFieldSetTest.java | 55 emptyMessage = TestEmptyMessage.parseFrom(allFieldsData); in setUp() 219 TestAllTypes destination = TestAllTypes.parseFrom(data); in testParseKnownAndUnknown() 235 TestAllTypes allTypesMessage = TestAllTypes.parseFrom(bizarroData); in testWrongTypeTreatedAsUnknown() 236 TestEmptyMessage emptyMessage = TestEmptyMessage.parseFrom(bizarroData); in testWrongTypeTreatedAsUnknown() 248 TestEmptyMessageWithExtensions.parseFrom(allFieldsData); in testUnknownExtensions() 261 TestAllExtensions.parseFrom(bizarroData); in testWrongExtensionTypeTreatedAsUnknown() 262 TestEmptyMessage emptyMessage = TestEmptyMessage.parseFrom(bizarroData); in testWrongExtensionTypeTreatedAsUnknown() 296 TestAllTypes message = TestAllTypes.parseFrom(data); in testParseUnknownEnumValue() 314 TestAllExtensions.parseFrom(data, TestUtil.getExtensionRegistry()); in testParseUnknownEnumValue() 340 UnknownFieldSet parsed = UnknownFieldSet.parseFrom(data); in testLargeVarint()
|
D | LazyStringEndToEndTest.java | 72 UnittestProto.TestAllTypes tV2 = UnittestProto.TestAllTypes.parseFrom( in testParseAndSerialize() 83 UnittestProto.TestAllTypes tV2 = UnittestProto.TestAllTypes.parseFrom( in testParseAndWrite() 96 UnittestProto.TestAllTypes.parseFrom(encodedTestAllTypes); in testNoStringCachingIfOnlyBytesAccessed()
|
/third_party/protobuf/ruby/src/main/java/com/google/protobuf/jruby/ |
D | SentinelOuterClass.java | 269 public static com.google.protobuf.jruby.SentinelOuterClass.Sentinel parseFrom( in parseFrom() method in SentinelOuterClass.Sentinel 272 return PARSER.parseFrom(data); in parseFrom() 274 public static com.google.protobuf.jruby.SentinelOuterClass.Sentinel parseFrom( in parseFrom() method in SentinelOuterClass.Sentinel 278 return PARSER.parseFrom(data, extensionRegistry); in parseFrom() 280 public static com.google.protobuf.jruby.SentinelOuterClass.Sentinel parseFrom(byte[] data) in parseFrom() method in SentinelOuterClass.Sentinel 282 return PARSER.parseFrom(data); in parseFrom() 284 public static com.google.protobuf.jruby.SentinelOuterClass.Sentinel parseFrom( in parseFrom() method in SentinelOuterClass.Sentinel 288 return PARSER.parseFrom(data, extensionRegistry); in parseFrom() 290 …public static com.google.protobuf.jruby.SentinelOuterClass.Sentinel parseFrom(java.io.InputStream … in parseFrom() method in SentinelOuterClass.Sentinel 292 return PARSER.parseFrom(input); in parseFrom() [all …]
|
/third_party/icu/icu4c/source/test/intltest/ |
D | fldset.h | 68 int32_t parseFrom(const U_NAMESPACE_QUALIFIER UnicodeString& str, UErrorCode& status) { in parseFrom() function 69 return parseFrom(str,NULL,status); in parseFrom() 80 int32_t parseFrom(const U_NAMESPACE_QUALIFIER UnicodeString& str, in parseFrom() function 83 return parseFrom(str, &inheritFrom, status); in parseFrom() 94 int32_t parseFrom(const U_NAMESPACE_QUALIFIER UnicodeString& str,
|
/third_party/protobuf/conformance/ |
D | ConformanceJava.java | 107 return parser.parseFrom(bytes, extensions); in decode() 109 return parser.parseFrom(bytes.toByteArray(), extensions); in decode() 115 return parser.parseFrom(CodedInputStream.newInstance(buffer), extensions); in decode() 122 return parser.parseFrom( in decode() 133 return parser.parseFrom(CodedInputStream.newInstance(buffer), extensions); in decode() 143 return parser.parseFrom( in decode() 151 return parser.parseFrom(bytes.newInput(), extensions); in decode() 371 Conformance.ConformanceRequest.parseFrom(serializedInput); in doTestIo()
|
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/calendar/ |
D | DataDrivenCalendarTest.java | 151 fromSet.parseFrom(from); in testConvert() 153 toSet.parseFrom(to, fromSet); in testConvert() 206 fromSet.parseFrom(testSetting); in testOps() 217 paramsSet.parseFrom(paramsData); // parse with inheritance. in testOps() 228 toSet.parseFrom(testSetting, fromSet); in testOps()
|
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/calendar/ |
D | DataDrivenCalendarTest.java | 154 fromSet.parseFrom(from); in testConvert() 156 toSet.parseFrom(to, fromSet); in testConvert() 209 fromSet.parseFrom(testSetting); in testOps() 220 paramsSet.parseFrom(paramsData); // parse with inheritance. in testOps() 231 toSet.parseFrom(testSetting, fromSet); in testOps()
|