Home
last modified time | relevance | path

Searched refs:getExtension (Results 1 – 25 of 41) sorted by relevance

12

/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/java/core/src/test/java/com/google/protobuf/
DTestUtil.java1424 Assert.assertTrue(message.getExtension(optionalGroupExtension ).hasA()); in assertAllExtensionsSet()
1425 Assert.assertTrue(message.getExtension(optionalNestedMessageExtension ).hasBb()); in assertAllExtensionsSet()
1426 Assert.assertTrue(message.getExtension(optionalForeignMessageExtension).hasC()); in assertAllExtensionsSet()
1427 Assert.assertTrue(message.getExtension(optionalImportMessageExtension ).hasD()); in assertAllExtensionsSet()
1436 assertEqualsExactType(101 , message.getExtension(optionalInt32Extension )); in assertAllExtensionsSet()
1437 assertEqualsExactType(102L , message.getExtension(optionalInt64Extension )); in assertAllExtensionsSet()
1438 assertEqualsExactType(103 , message.getExtension(optionalUint32Extension )); in assertAllExtensionsSet()
1439 assertEqualsExactType(104L , message.getExtension(optionalUint64Extension )); in assertAllExtensionsSet()
1440 assertEqualsExactType(105 , message.getExtension(optionalSint32Extension )); in assertAllExtensionsSet()
1441 assertEqualsExactType(106L , message.getExtension(optionalSint64Extension )); in assertAllExtensionsSet()
[all …]
DTestBadIdentifiers.java90 assertEquals(0L, message.getExtension( in testConflictingFieldNames()
92 assertEquals(0L, message.getExtension( in testConflictingFieldNames()
DWireFormatTest.java435 assertEquals(123, messageSet.getExtension( in testParseMessageSetWithFlag()
437 assertEquals("foo", messageSet.getExtension( in testParseMessageSetWithFlag()
486 assertEquals(123, messageSet.getExtension( in testParseMessageSetExtensionWithFlag()
528 assertEquals(123, messageSet.getExtension( in testMergeLazyMessageSetExtensionWithFlag()
579 assertEquals(123, messageSet.getExtension( in testMergeMessageSetExtensionWithFlag()
DLazyMessageLiteTest.java313 assertEquals("name", innerBuilder.getExtension(LazyExtension.extension).getName()); in testExtensions()
317 assertEquals("name", innerMessage.getExtension(LazyExtension.extension).getName()); in testExtensions()
322 assertEquals("name", lite.getInner().getExtension(LazyExtension.extension).getName()); in testExtensions()
DTextFormatTest.java390 assertEquals(123, messageSet.getExtension( in testParseMessageSet()
394 assertEquals("foo", messageSet.getExtension( in testParseMessageSet()
401 assertEquals(456, messageSet.getExtension( in testParseMessageSet()
414 assertEquals(123, messageSet.getExtension( in testParseMessageSetWithOverwriteForbidden()
416 assertEquals("foo", messageSet.getExtension( in testParseMessageSetWithOverwriteForbidden()
DDescriptorsTest.java375 descriptor.getOptions().getExtension(UnittestCustomOptions.messageOpt1)); in testCustomOptions()
383 field.getOptions().getExtension(UnittestCustomOptions.fieldOpt1)); in testCustomOptions()
391 oneof.getOptions().getExtension(UnittestCustomOptions.oneofOpt1)); in testCustomOptions()
399 enumType.getOptions().getExtension(UnittestCustomOptions.enumOpt1)); in testCustomOptions()
407 service.getOptions().getExtension(UnittestCustomOptions.serviceOpt1)); in testCustomOptions()
415 method.getOptions().getExtension(UnittestCustomOptions.methodOpt1)); in testCustomOptions()
DUnknownFieldSetTest.java326 message.getExtension(UnittestProto.optionalNestedEnumExtension)); in testParseUnknownEnumValue()
329 message.getExtension(UnittestProto.repeatedNestedEnumExtension)); in testParseUnknownEnumValue()
628 message.getExtension(UnittestProto.optionalNestedEnumExtension)); in testParseUnknownEnumValueLite()
631 message.getExtension(UnittestProto.repeatedNestedEnumExtension)); in testParseUnknownEnumValueLite()
DLiteTest.java128 assertEquals(123, (int) message2.getExtension( in testLiteExtensions()
132 assertEquals(1, message2.getExtension( in testLiteExtensions()
134 assertEquals("hello", message2.getExtension( in testLiteExtensions()
136 assertEquals(TestAllTypesLite.NestedEnum.BAZ, message2.getExtension( in testLiteExtensions()
138 assertEquals(7, message2.getExtension( in testLiteExtensions()
152 expected2.getExtension(UnittestLite.optionalInt32ExtensionLite), in testClone()
153 expected2.clone().getExtension(UnittestLite.optionalInt32ExtensionLite)); in testClone()
1385 1, (int) extendableMessageBuilder.getExtension( in testSanityCopyOnWrite()
1388 1, (int) extendableMessage.getExtension( in testSanityCopyOnWrite()
1393 3, (int) extendableMessageBuilder.getExtension( in testSanityCopyOnWrite()
[all …]
DParserTest.java306 assertMessageMerged(parsingMerge.getExtension( in testParsingMerge()
368 assertMessageMerged(parsingMerge.getExtension( in testParsingMergeLite()
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/js/binary/
Dproto_test.js282 msg.getExtension(proto.jspb.test.extendOptionalInt32));
284 msg.getExtension(proto.jspb.test.extendOptionalInt64));
286 msg.getExtension(proto.jspb.test.extendOptionalUint32));
288 msg.getExtension(proto.jspb.test.extendOptionalUint64));
290 msg.getExtension(proto.jspb.test.extendOptionalSint32));
292 msg.getExtension(proto.jspb.test.extendOptionalSint64));
294 msg.getExtension(proto.jspb.test.extendOptionalFixed32));
296 msg.getExtension(proto.jspb.test.extendOptionalFixed64));
298 msg.getExtension(proto.jspb.test.extendOptionalSfixed32));
300 msg.getExtension(proto.jspb.test.extendOptionalSfixed64));
[all …]
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/java/compatibility_tests/v2.5.0/tests/src/main/java/com/google/protobuf/test/
DTestUtil.java1299 Assert.assertTrue(message.getExtension(optionalGroupExtension ).hasA()); in assertAllExtensionsSet()
1300 Assert.assertTrue(message.getExtension(optionalNestedMessageExtension ).hasBb()); in assertAllExtensionsSet()
1301 Assert.assertTrue(message.getExtension(optionalForeignMessageExtension).hasC()); in assertAllExtensionsSet()
1302 Assert.assertTrue(message.getExtension(optionalImportMessageExtension ).hasD()); in assertAllExtensionsSet()
1311 assertEqualsExactType(101 , message.getExtension(optionalInt32Extension )); in assertAllExtensionsSet()
1312 assertEqualsExactType(102L , message.getExtension(optionalInt64Extension )); in assertAllExtensionsSet()
1313 assertEqualsExactType(103 , message.getExtension(optionalUint32Extension )); in assertAllExtensionsSet()
1314 assertEqualsExactType(104L , message.getExtension(optionalUint64Extension )); in assertAllExtensionsSet()
1315 assertEqualsExactType(105 , message.getExtension(optionalSint32Extension )); in assertAllExtensionsSet()
1316 assertEqualsExactType(106L , message.getExtension(optionalSint64Extension )); in assertAllExtensionsSet()
[all …]
DWireFormatTest.java369 assertEquals(123, messageSet.getExtension( in testParseMessageSetWithFlag()
371 assertEquals("foo", messageSet.getExtension( in testParseMessageSetWithFlag()
420 assertEquals(123, messageSet.getExtension( in testParseMessageSetExtensionWithFlag()
462 assertEquals(123, messageSet.getExtension( in testMergeLazyMessageSetExtensionWithFlag()
DDescriptorsTest.java361 descriptor.getOptions().getExtension(UnittestCustomOptions.messageOpt1)); in testCustomOptions()
369 field.getOptions().getExtension(UnittestCustomOptions.fieldOpt1)); in testCustomOptions()
377 enumType.getOptions().getExtension(UnittestCustomOptions.enumOpt1)); in testCustomOptions()
385 service.getOptions().getExtension(UnittestCustomOptions.serviceOpt1)); in testCustomOptions()
393 method.getOptions().getExtension(UnittestCustomOptions.methodOpt1)); in testCustomOptions()
DTextFormatTest.java369 assertEquals(123, messageSet.getExtension( in testParseMessageSet()
373 assertEquals("foo", messageSet.getExtension( in testParseMessageSet()
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/objectivec/Tests/
DGPBTestUtilities.m205 XCTAssertTrue([[message getExtension:[UnittestRoot optionalGroupExtension]] hasA]);
206 XCTAssertTrue([[message getExtension:[UnittestRoot optionalNestedMessageExtension]] hasBb]);
207 XCTAssertTrue([[message getExtension:[UnittestRoot optionalForeignMessageExtension]] hasC]);
208 XCTAssertTrue([[message getExtension:[UnittestRoot optionalImportMessageExtension]] hasD]);
240 XCTAssertEqual(101, [[message getExtension:[UnittestRoot optionalInt32Extension]] intValue]);
241 …XCTAssertEqual(102LL, [[message getExtension:[UnittestRoot optionalInt64Extension]] longLongValue]…
242 …XCTAssertEqual(103U, [[message getExtension:[UnittestRoot optionalUint32Extension]] unsignedIntVal…
243 …XCTAssertEqual(104ULL, [[message getExtension:[UnittestRoot optionalUint64Extension]] unsignedLong…
244 XCTAssertEqual(105, [[message getExtension:[UnittestRoot optionalSint32Extension]] intValue]);
245 …XCTAssertEqual(106LL, [[message getExtension:[UnittestRoot optionalSint64Extension]] longLongValue…
[all …]
DGPBMessageTests.m591 [[message2 getExtension:[UnittestRoot repeatedInt32Extension]] count],
595 [[message2 getExtension:[UnittestRoot repeatedInt32Extension]] count],
602 [message3 getExtension:[UnittestObjcRoot recursiveExtension]];
1423 [message getExtension:[UnittestRoot optionalGroupExtension]];
1425 [message getExtension:[UnittestRoot optionalNestedMessageExtension]];
1427 [message getExtension:[UnittestRoot optionalForeignMessageExtension]];
1429 [message getExtension:[UnittestRoot optionalImportMessageExtension]];
1431 getExtension:[UnittestRoot optionalPublicImportMessageExtension]];
1433 [message getExtension:[UnittestRoot optionalLazyMessageExtension]];
1456 XCTAssertEqual([message getExtension:[UnittestRoot optionalGroupExtension]],
[all …]
DGPBWireFormatTests.m149 [[message_set getExtension:[TestMessageSetExtension1 messageSetExtension]]
151 [[message_set getExtension:[TestMessageSetExtension2 messageSetExtension]]
228 getExtension:[TestMessageSetExtension1 messageSetExtension]] i],
232 getExtension:[TestMessageSetExtension2 messageSetExtension]] str],
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/javanano/src/test/java/com/google/protobuf/nano/
DNanoTest.java2920 assertEquals(int32s[1], (int) message.getExtension(SingularExtensions.someInt32)); in testExtensions()
2921 assertEquals(uint32s[1], (int) message.getExtension(SingularExtensions.someUint32)); in testExtensions()
2922 assertEquals(sint32s[1], (int) message.getExtension(SingularExtensions.someSint32)); in testExtensions()
2923 assertEquals(int64s[1], (long) message.getExtension(SingularExtensions.someInt64)); in testExtensions()
2924 assertEquals(uint64s[1], (long) message.getExtension(SingularExtensions.someUint64)); in testExtensions()
2925 assertEquals(sint64s[1], (long) message.getExtension(SingularExtensions.someSint64)); in testExtensions()
2926 assertEquals(fixed32s[1], (int) message.getExtension(SingularExtensions.someFixed32)); in testExtensions()
2927 assertEquals(sfixed32s[1], (int) message.getExtension(SingularExtensions.someSfixed32)); in testExtensions()
2928 assertEquals(fixed64s[1], (long) message.getExtension(SingularExtensions.someFixed64)); in testExtensions()
2929 assertEquals(sfixed64s[1], (long) message.getExtension(SingularExtensions.someSfixed64)); in testExtensions()
[all …]
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/js/
Dmessage_test.js536 dest.getExtension(proto.jspb.test.CloneExtension.extField).getExt());
549 dest.getExtension(proto.jspb.test.CloneExtension.extField).
552 dest.getExtension(proto.jspb.test.CloneExtension.extField).getExt(),
553 original.getExtension(
583 extendable.getExtension(proto.jspb.test.IsExtension.extField));
585 extendable.getExtension(proto.jspb.test.IndirectExtension.simple));
587 extendable.getExtension(proto.jspb.test.IndirectExtension.str));
588 assertObjectEquals(['a', 'b'], extendable.getExtension(
590 assertObjectEquals([s1, s2], extendable.getExtension(
595 extendable.getExtension(proto.jspb.test.IndirectExtension.simple));
[all …]
Ddebug.js115 var extVal = thing.getExtension(ext);
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/java/core/src/main/java/com/google/protobuf/
DGeneratedMessageV3.java753 <Type> Type getExtension(
757 <Type> Type getExtension(
774 <Type> Type getExtension(
777 <Type> Type getExtension(
780 <Type> Type getExtension(
784 <Type> Type getExtension(
879 public final <Type> Type getExtension(final ExtensionLite<MessageType, Type> extensionLite) {
903 public final <Type> Type getExtension(
938 public final <Type> Type getExtension(final Extension<MessageType, Type> extension) {
939 return getExtension((ExtensionLite<MessageType, Type>) extension);
[all …]
DGeneratedMessage.java752 <Type> Type getExtension(
756 <Type> Type getExtension(
773 <Type> Type getExtension(
776 <Type> Type getExtension(
779 <Type> Type getExtension(
783 <Type> Type getExtension(
878 public final <Type> Type getExtension(final ExtensionLite<MessageType, Type> extensionLite) {
902 public final <Type> Type getExtension(
937 public final <Type> Type getExtension(final Extension<MessageType, Type> extension) {
938 return getExtension((ExtensionLite<MessageType, Type>) extension);
[all …]
DGeneratedMessageLite.java434 <Type> Type getExtension(ExtensionLite<MessageType, Type> extension); in getExtension() method
437 <Type> Type getExtension( in getExtension() method
629 public final <Type> Type getExtension(final ExtensionLite<MessageType, Type> extension) { in getExtension() method in GeneratedMessageLite.ExtendableMessage
645 public final <Type> Type getExtension( in getExtension() method in GeneratedMessageLite.ExtendableMessage
798 public final <Type> Type getExtension(final ExtensionLite<MessageType, Type> extension) { in getExtension() method in GeneratedMessageLite.ExtendableBuilder
799 return instance.getExtension(extension); in getExtension()
805 public final <Type> Type getExtension( in getExtension() method in GeneratedMessageLite.ExtendableBuilder
807 return instance.getExtension(extension, index); in getExtension()
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/objectivec/
DGPBMessage.h289 - (nullable id)getExtension:(GPBExtensionDescriptor *)extension;
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/javanano/src/main/java/com/google/protobuf/nano/
DExtendableMessageNano.java85 public final <T> T getExtension(Extension<M, T> extension) { in getExtension() method in ExtendableMessageNano

12