Home
last modified time | relevance | path

Searched refs:unknownFields (Results 1 – 25 of 29) sorted by relevance

12

/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/java/core/src/test/java/com/google/protobuf/
DUnknownFieldSetLiteTest.java52 UnknownFieldSetLite unknownFields = UnknownFieldSetLite.getDefaultInstance(); in testDefaultInstance() local
54 assertEquals(0, unknownFields.getSerializedSize()); in testDefaultInstance()
55 assertEquals(ByteString.EMPTY, toByteString(unknownFields)); in testDefaultInstance()
85 UnknownFieldSetLite unknownFields = UnknownFieldSetLite.newInstance(); in testMergeVarintField() local
86 unknownFields.mergeVarintField(10, 2); in testMergeVarintField()
89 CodedInputStream.newInstance(toByteString(unknownFields).toByteArray()); in testMergeVarintField()
126 UnknownFieldSetLite unknownFields = UnknownFieldSetLite.newInstance(); in testMutableCopyOf() local
127 unknownFields.mergeVarintField(10, 2); in testMutableCopyOf()
128 unknownFields = UnknownFieldSetLite.mutableCopyOf(unknownFields, unknownFields); in testMutableCopyOf()
129 unknownFields.checkMutable(); in testMutableCopyOf()
[all …]
DUnknownFieldSetTest.java59 unknownFields = emptyMessage.getUnknownFields(); in setUp()
65 return unknownFields.getField(field.getNumber()); in getField()
80 unknownFields.asMap().entrySet()) { in getBizarroData()
100 UnknownFieldSet unknownFields; field in UnknownFieldSetTest
202 UnknownFieldSet.newBuilder().mergeFrom(unknownFields).clear().build(); in testClear()
213 int fieldNumber = unknownFields.asMap().keySet().iterator().next(); in testClearField()
215 UnknownFieldSet.newBuilder().mergeFrom(unknownFields).clearField(fieldNumber).build(); in testClearField()
223 UnknownFieldSet.newBuilder(unknownFields) in testParseKnownAndUnknown()
260 assertEquals(unknownFields.asMap().size(), in testUnknownExtensions()
375 .addGroup(unknownFields) in testEqualsAndHashCode()
DWireFormatTest.java442 UnknownFieldSet unknownFields = messageSet.getUnknownFields(); in testParseMessageSetWithFlag() local
443 assertEquals(1, unknownFields.asMap().size()); in testParseMessageSetWithFlag()
444 assertTrue(unknownFields.hasField(UNKNOWN_TYPE_ID)); in testParseMessageSetWithFlag()
446 UnknownFieldSet.Field field = unknownFields.getField(UNKNOWN_TYPE_ID); in testParseMessageSetWithFlag()
DAbstractMessageTest.java190 public Builder setUnknownFields(UnknownFieldSet unknownFields) { in setUnknownFields() argument
191 wrappedBuilder.setUnknownFields(unknownFields); in setUnknownFields()
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/java/core/src/main/java/com/google/protobuf/
DDynamicMessage.java54 private final UnknownFieldSet unknownFields; field in DynamicMessage
68 UnknownFieldSet unknownFields) { in DynamicMessage() argument
72 this.unknownFields = unknownFields; in DynamicMessage()
226 return unknownFields; in getUnknownFields()
253 unknownFields.writeAsMessageSetTo(output); in writeTo()
256 unknownFields.writeTo(output); in writeTo()
267 size += unknownFields.getSerializedSizeAsMessageSet(); in getSerializedSize()
270 size += unknownFields.getSerializedSize(); in getSerializedSize()
333 private UnknownFieldSet unknownFields;
339 this.unknownFields = UnknownFieldSet.getDefaultInstance();
[all …]
DTextFormat.java455 private void printUnknownFields(final UnknownFieldSet unknownFields, in printUnknownFields() argument
459 unknownFields.asMap().entrySet()) { in printUnknownFields()
1387 private void checkUnknownFields(final List<String> unknownFields) in checkUnknownFields() argument
1389 if (unknownFields.isEmpty()) { in checkUnknownFields()
1394 for (String field : unknownFields) { in checkUnknownFields()
1401 String[] lineColumn = unknownFields.get(0).split(":"); in checkUnknownFields()
1420 List<String> unknownFields = new ArrayList<String>(); in merge() local
1423 mergeField(tokenizer, extensionRegistry, target, unknownFields); in merge()
1426 checkUnknownFields(unknownFields); in merge()
1437 List<String> unknownFields) in mergeField() argument
[all …]
DMessageReflection.java78 final UnknownFieldSet unknownFields = message.getUnknownFields(); in writeMessageTo() local
80 unknownFields.writeAsMessageSetTo(output); in writeMessageTo()
82 unknownFields.writeTo(output); in writeMessageTo()
107 final UnknownFieldSet unknownFields = message.getUnknownFields(); in getSerializedSize() local
109 size += unknownFields.getSerializedSizeAsMessageSet(); in getSerializedSize()
111 size += unknownFields.getSerializedSize(); in getSerializedSize()
727 UnknownFieldSet.Builder unknownFields, in mergeFieldFrom() argument
735 input, unknownFields, extensionRegistry, type, target); in mergeFieldFrom()
795 return unknownFields.mergeFieldFrom(tag, input); in mergeFieldFrom()
847 unknownFields.mergeVarintField(fieldNumber, rawValue); in mergeFieldFrom()
[all …]
DAbstractMessage.java432 final UnknownFieldSet.Builder unknownFields = in mergeFrom() local
442 if (!MessageReflection.mergeFieldFrom(input, unknownFields, in mergeFrom()
451 setUnknownFields(unknownFields.build()); in mergeFrom()
456 public BuilderType mergeUnknownFields(final UnknownFieldSet unknownFields) { in mergeUnknownFields() argument
459 .mergeFrom(unknownFields) in mergeUnknownFields()
DMessage.java244 Builder setUnknownFields(UnknownFieldSet unknownFields); in setUnknownFields() argument
250 Builder mergeUnknownFields(UnknownFieldSet unknownFields); in mergeUnknownFields() argument
DGeneratedMessageV3.java74 protected UnknownFieldSet unknownFields; field in GeneratedMessageV3
77 unknownFields = UnknownFieldSet.getDefaultInstance(); in GeneratedMessageV3()
81 unknownFields = builder.getUnknownFields(); in GeneratedMessageV3()
273 UnknownFieldSet.Builder unknownFields, in parseUnknownField() argument
276 return unknownFields.mergeFieldFrom(tag, input); in parseUnknownField()
395 private UnknownFieldSet unknownFields =
452 unknownFields = UnknownFieldSet.getDefaultInstance();
605 public BuilderType setUnknownFields(final UnknownFieldSet unknownFields) {
606 this.unknownFields = unknownFields;
613 final UnknownFieldSet unknownFields) {
[all …]
DGeneratedMessage.java73 protected UnknownFieldSet unknownFields; field in GeneratedMessage
76 unknownFields = UnknownFieldSet.getDefaultInstance(); in GeneratedMessage()
80 unknownFields = builder.getUnknownFields(); in GeneratedMessage()
272 UnknownFieldSet.Builder unknownFields, in parseUnknownField() argument
275 return unknownFields.mergeFieldFrom(tag, input); in parseUnknownField()
394 private UnknownFieldSet unknownFields =
451 unknownFields = UnknownFieldSet.getDefaultInstance();
604 public BuilderType setUnknownFields(final UnknownFieldSet unknownFields) {
605 this.unknownFields = unknownFields;
612 final UnknownFieldSet unknownFields) {
[all …]
DGeneratedMessageLite.java66 protected UnknownFieldSetLite unknownFields = UnknownFieldSetLite.getDefaultInstance(); field in GeneratedMessageLite
173 if (unknownFields == UnknownFieldSetLite.getDefaultInstance()) { in ensureUnknownFieldsInitialized()
174 unknownFields = UnknownFieldSetLite.newInstance(); in ensureUnknownFieldsInitialized()
190 return unknownFields.mergeFieldFrom(tag, input); in parseUnknownField()
198 unknownFields.mergeVarintField(tag, value); in mergeVarintField()
206 unknownFields.mergeLengthDelimitedField(fieldNumber, value); in mergeLengthDelimitedField()
215 unknownFields.makeImmutable(); in makeImmutable()
293 unknownFields = visitor.visitUnknownFields(unknownFields, other.unknownFields); in visit()
302 protected final void mergeUnknownFields(UnknownFieldSetLite unknownFields) { in mergeUnknownFields() argument
303 this.unknownFields = UnknownFieldSetLite.mutableCopyOf(this.unknownFields, unknownFields); in mergeUnknownFields()
DMessageLiteToString.java152 if (((GeneratedMessageLite<?, ?>) messageLite).unknownFields != null) { in reflectivePrintWithIndent()
153 ((GeneratedMessageLite<?, ?>) messageLite).unknownFields.printWithIndent(buffer, indent); in reflectivePrintWithIndent()
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/java/compatibility_tests/v2.5.0/tests/src/main/java/com/google/protobuf/test/
DUnknownFieldSetTest.java56 unknownFields = emptyMessage.getUnknownFields(); in setUp()
62 return unknownFields.getField(field.getNumber()); in getField()
77 unknownFields.asMap().entrySet()) { in getBizarroData()
97 UnknownFieldSet unknownFields; field in UnknownFieldSetTest
199 UnknownFieldSet.newBuilder().mergeFrom(unknownFields).clear().build(); in testClear()
213 UnknownFieldSet.newBuilder(unknownFields) in testParseKnownAndUnknown()
250 assertEquals(unknownFields.asMap().size(), in testUnknownExtensions()
365 .addGroup(unknownFields) in testEqualsAndHashCode()
DWireFormatTest.java376 UnknownFieldSet unknownFields = messageSet.getUnknownFields(); in testParseMessageSetWithFlag() local
377 assertEquals(1, unknownFields.asMap().size()); in testParseMessageSetWithFlag()
378 assertTrue(unknownFields.hasField(UNKNOWN_TYPE_ID)); in testParseMessageSetWithFlag()
380 UnknownFieldSet.Field field = unknownFields.getField(UNKNOWN_TYPE_ID); in testParseMessageSetWithFlag()
DCodedInputStreamTest.java283 UnknownFieldSet.Builder unknownFields = UnknownFieldSet.newBuilder(); in testSkipWholeMessage() local
291 unknownFields.mergeFieldFrom(tag, input1); in testSkipWholeMessage()
DAbstractMessageTest.java168 public Builder setUnknownFields(UnknownFieldSet unknownFields) { in setUnknownFields() argument
169 wrappedBuilder.setUnknownFields(unknownFields); in setUnknownFields()
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/javanano/src/main/java/com/google/protobuf/nano/
DExtension.java182 final T getValueFrom(List<UnknownFieldData> unknownFields) { in getValueFrom() argument
183 if (unknownFields == null) { in getValueFrom()
186 return repeated ? getRepeatedValueFrom(unknownFields) : getSingularValueFrom(unknownFields); in getValueFrom()
189 private T getRepeatedValueFrom(List<UnknownFieldData> unknownFields) { in getRepeatedValueFrom() argument
192 for (int i = 0; i < unknownFields.size(); i++) { in getRepeatedValueFrom()
193 UnknownFieldData data = unknownFields.get(i); in getRepeatedValueFrom()
211 private T getSingularValueFrom(List<UnknownFieldData> unknownFields) { in getSingularValueFrom() argument
213 if (unknownFields.isEmpty()) { in getSingularValueFrom()
216 UnknownFieldData lastData = unknownFields.get(unknownFields.size() - 1); in getSingularValueFrom()
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/objectivec/Tests/
DGPBUnknownFieldSetTest.m60 unknownFields_ = emptyMessage_.unknownFields;
179 XCTAssertEqual(destination.unknownFields.countOfFields, (NSUInteger)1);
181 GPBUnknownField* field2 = [destination.unknownFields getField:123456];
209 message.unknownFields.countOfFields);
DGPBMessageTests+Serialization.m131 XCTAssertEqual([foo.unknownFields countOfFields], 0U);
142 XCTAssertEqual([foo.unknownFields countOfFields], 0U);
166 GPBUnknownFieldSet *unknownFields = msg.unknownFields;
168 XCTAssertEqual([unknownFields countOfFields], 3U);
169 XCTAssertTrue([unknownFields hasField:Message2_FieldNumber_OptionalEnum]);
171 [unknownFields hasField:Message2_FieldNumber_RepeatedEnumArray]);
172 XCTAssertTrue([unknownFields hasField:Message2_FieldNumber_OneofEnum]);
175 [unknownFields getField:Message2_FieldNumber_OptionalEnum];
180 field = [unknownFields getField:Message2_FieldNumber_RepeatedEnumArray];
184 field = [unknownFields getField:Message2_FieldNumber_OneofEnum];
[all …]
DGPBWireFormatTests.m166 XCTAssertEqual([raw.unknownFields countOfFields], (NSUInteger)0);
235 XCTAssertEqual([messageSet.unknownFields countOfFields], (NSUInteger)1);
236 GPBUnknownField* unknownField = [messageSet.unknownFields getField:kUnknownTypeId];
DGPBCodedInputStreamTests.m199 GPBUnknownFieldSet* unknownFields =
208 [unknownFields mergeFieldFrom:tag input:input1];
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/objectivec/
DGPBMessage.h76 @property(nonatomic, copy, nullable) GPBUnknownFieldSet *unknownFields;
DGPBMessage.m1952 - (GPBUnknownFieldSet *)unknownFields { method
1956 - (void)setUnknownFields:(GPBUnknownFieldSet *)unknownFields {
1957 if (unknownFields != unknownFields_) {
1959 unknownFields_ = [unknownFields copy];
2005 GPBUnknownFieldSet *unknownFields = GetOrMakeUnknownFields(self);
2006 [unknownFields mergeMessageSetMessage:typeId data:rawBytes];
2049 GPBUnknownFieldSet *unknownFields = GetOrMakeUnknownFields(self);
2050 return [unknownFields mergeFieldFrom:tag input:input];
2057 GPBUnknownFieldSet *unknownFields = GetOrMakeUnknownFields(self);
2058 [unknownFields addUnknownMapEntry:fieldNum value:data];
[all …]
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/ruby/src/main/java/com/google/protobuf/jruby/
DSentinelOuterClass.java705 final com.google.protobuf.UnknownFieldSet unknownFields) { in setUnknownFields() argument
710 final com.google.protobuf.UnknownFieldSet unknownFields) { in mergeUnknownFields() argument

12