Home
last modified time | relevance | path

Searched refs:setExtension (Results 1 – 25 of 59) sorted by relevance

123

/external/protobuf/java/core/src/test/java/com/google/protobuf/
DTestUtilLite.java346 message.setExtension(optionalInt32ExtensionLite , 101); in setAllExtensions()
347 message.setExtension(optionalInt64ExtensionLite , 102L); in setAllExtensions()
348 message.setExtension(optionalUint32ExtensionLite , 103); in setAllExtensions()
349 message.setExtension(optionalUint64ExtensionLite , 104L); in setAllExtensions()
350 message.setExtension(optionalSint32ExtensionLite , 105); in setAllExtensions()
351 message.setExtension(optionalSint64ExtensionLite , 106L); in setAllExtensions()
352 message.setExtension(optionalFixed32ExtensionLite , 107); in setAllExtensions()
353 message.setExtension(optionalFixed64ExtensionLite , 108L); in setAllExtensions()
354 message.setExtension(optionalSfixed32ExtensionLite, 109); in setAllExtensions()
355 message.setExtension(optionalSfixed64ExtensionLite, 110L); in setAllExtensions()
[all …]
DUnknownFieldSetLiteTest.java158 .setExtension(Bar.fooExt, Bar.newBuilder() in testRoundTrips()
161 .setExtension(LiteEqualsAndHash.varint, 22) in testRoundTrips()
162 .setExtension(LiteEqualsAndHash.fixed32, 44) in testRoundTrips()
163 .setExtension(LiteEqualsAndHash.fixed64, 66L) in testRoundTrips()
164 .setExtension(LiteEqualsAndHash.myGroup, LiteEqualsAndHash.MyGroup.newBuilder() in testRoundTrips()
242 .setExtension(Bar.fooExt, Bar.newBuilder() in testTruncatedInput()
245 .setExtension(LiteEqualsAndHash.varint, 22) in testTruncatedInput()
246 .setExtension(LiteEqualsAndHash.myGroup, LiteEqualsAndHash.MyGroup.newBuilder() in testTruncatedInput()
308 .setExtension(UnittestLite.optionalInt32ExtensionLite, 2) in testEndToEnd()
DTestUtil.java1213 message.setExtension(optionalInt32Extension , 101); in setAllExtensions()
1214 message.setExtension(optionalInt64Extension , 102L); in setAllExtensions()
1215 message.setExtension(optionalUint32Extension , 103); in setAllExtensions()
1216 message.setExtension(optionalUint64Extension , 104L); in setAllExtensions()
1217 message.setExtension(optionalSint32Extension , 105); in setAllExtensions()
1218 message.setExtension(optionalSint64Extension , 106L); in setAllExtensions()
1219 message.setExtension(optionalFixed32Extension , 107); in setAllExtensions()
1220 message.setExtension(optionalFixed64Extension , 108L); in setAllExtensions()
1221 message.setExtension(optionalSfixed32Extension, 109); in setAllExtensions()
1222 message.setExtension(optionalSfixed64Extension, 110L); in setAllExtensions()
[all …]
DWireFormatTest.java270 .setExtension(UnittestProto.myExtensionInt, 23) in testInterleavedFieldsAndExtensions()
271 .setExtension(UnittestProto.myExtensionString, "bar") in testInterleavedFieldsAndExtensions()
302 .setExtension(UnittestProto.myExtensionInt, 23) in testParseMultipleExtensionRanges()
303 .setExtension(UnittestProto.myExtensionString, "bar") in testParseMultipleExtensionRanges()
348 .setExtension( in testSerializeMessageSetWithFlag()
351 .setExtension( in testSerializeMessageSetWithFlag()
DMessageTest.java154 builder.setExtension(TestRequired.single, TEST_REQUIRED_UNINITIALIZED); in testRequiredExtension()
157 builder.setExtension(TestRequired.single, TEST_REQUIRED_INITIALIZED); in testRequiredExtension()
163 builder.setExtension(TestRequired.multi, 0, TEST_REQUIRED_INITIALIZED); in testRequiredExtension()
DLazyFieldLiteTest.java195 TestAllExtensions.newBuilder().setExtension(optionalInt32Extension, 42).build(); in testMergeKeepsExtensionsWhenPossible()
227 TestAllExtensions.newBuilder().setExtension(optionalInt32Extension, 1).build(); in testMergeMightLoseExtensions()
229 TestAllExtensions.newBuilder().setExtension(optionalInt64Extension, 2L).build(); in testMergeMightLoseExtensions()
DLiteTest.java115 .setExtension(UnittestLite.optionalInt32ExtensionLite, 123) in testLiteExtensions()
117 .setExtension(UnittestLite.optionalNestedEnumExtensionLite, in testLiteExtensions()
119 .setExtension(UnittestLite.optionalNestedMessageExtensionLite, in testLiteExtensions()
150 .setExtension(UnittestLite.optionalInt32ExtensionLite, 123); in testClone()
1379 extendableMessageBuilder.setExtension( in testSanityCopyOnWrite()
1390 extendableMessageBuilder.setExtension( in testSanityCopyOnWrite()
1414 .setExtension(UnittestLite.optionalFixed32ExtensionLite, 11) in testSanityCopyOnWrite()
1514 .setExtension(UnittestLite.optionalInt32ExtensionLite, 123) in testToStringExtensions()
1517 .setExtension(UnittestLite.optionalNestedEnumExtensionLite, in testToStringExtensions()
1519 .setExtension(UnittestLite.optionalNestedMessageExtensionLite, in testToStringExtensions()
[all …]
DGeneratedMessageTest.java689 .setExtension(UnittestProto.optionalInt32Extension, 1) in testClearExtension()
708 .setExtension(UnittestProto.optionalInt32Extension, 1).build(); in testExtensionMergeFrom()
752 .setExtension(UnittestLite.optionalInt32ExtensionLite, 1) in testClearLiteExtension()
772 .setExtension(UnittestLite.optionalInt32ExtensionLite, 1).build(); in testLiteExtensionMergeFrom()
839 builder.setExtension(TestOptimizedForSize.testExtension2, in testUninitializedExtensionInOptimizedForSize()
845 builder.setExtension(TestOptimizedForSize.testExtension2, in testUninitializedExtensionInOptimizedForSize()
1034 builder.setExtension(UnittestProto.repeatedInt32Extension, 0, 2); in testInvalidations_Extensions()
1045 builder.setExtension(UnittestProto.repeatedInt32Extension, 0, 4); in testInvalidations_Extensions()
1046 builder.setExtension(UnittestProto.repeatedInt32Extension, 1, 5); in testInvalidations_Extensions()
/external/protobuf/js/binary/
Dproto_test.js510 msg.setExtension(
512 msg.setExtension(
514 msg.setExtension(
516 msg.setExtension(
518 msg.setExtension(
520 msg.setExtension(
522 msg.setExtension(
524 msg.setExtension(
526 msg.setExtension(
528 msg.setExtension(
[all …]
/external/protobuf/js/
Dmessage_test.js450 original.setExtension(proto.jspb.test.IsExtension.extField, extension);
463 clone.setExtension(proto.jspb.test.CloneExtension.extField, newExtension);
489 original.setExtension(proto.jspb.test.CloneExtension.extField, extension);
521 extendable.setExtension(proto.jspb.test.IsExtension.extField, extension1);
522 extendable.setExtension(proto.jspb.test.IndirectExtension.simple,
524 extendable.setExtension(proto.jspb.test.IndirectExtension.str, 'xyzzy');
525 extendable.setExtension(proto.jspb.test.IndirectExtension.repeatedStrList,
529 extendable.setExtension(
543 extendable.setExtension(proto.jspb.test.IndirectExtension.simple, null);
546 extendable.setExtension(proto.jspb.test.IndirectExtension.str, null);
[all …]
Ddebug_test.js88 extendable.setExtension(proto.jspb.test.IsExtension.extField, extension);
/external/protobuf/objectivec/Tests/
DGPBTestUtilities.m96 [message setExtension:[UnittestRoot repeatedInt32Extension]
99 [message setExtension:[UnittestRoot repeatedInt64Extension]
102 [message setExtension:[UnittestRoot repeatedUint32Extension]
105 [message setExtension:[UnittestRoot repeatedUint64Extension]
108 [message setExtension:[UnittestRoot repeatedSint32Extension]
111 [message setExtension:[UnittestRoot repeatedSint64Extension]
114 [message setExtension:[UnittestRoot repeatedFixed32Extension]
117 [message setExtension:[UnittestRoot repeatedFixed64Extension]
120 [message setExtension:[UnittestRoot repeatedSfixed32Extension]
123 [message setExtension:[UnittestRoot repeatedSfixed64Extension]
[all …]
DGPBMessageTests.m108 [message setExtension:[UnittestRoot optionalInt32Extension] value:@5];
109 [message setExtension:[UnittestRoot optionalStringExtension] value:@"foo"];
112 [message setExtension:[UnittestRoot optionalForeignMessageExtension]
116 [message setExtension:[UnittestRoot optionalNestedMessageExtension]
123 [message setExtension:[UnittestRoot optionalInt64Extension] value:@6];
124 [message setExtension:[UnittestRoot optionalStringExtension] value:@"bar"];
126 [message setExtension:[UnittestRoot optionalForeignMessageExtension]
131 [message setExtension:[UnittestRoot optionalNestedMessageExtension]
138 [message setExtension:[UnittestRoot optionalInt32Extension] value:@5];
139 [message setExtension:[UnittestRoot optionalInt64Extension] value:@6];
[all …]
/external/protobuf/javanano/src/test/java/com/google/protobuf/nano/
DNanoTest.java2866 message.setExtension(RepeatedExtensions.repeatedInt32, int32s); in testExtensions()
2869 message.setExtension(RepeatedExtensions.repeatedUint32, uint32s); in testExtensions()
2871 message.setExtension(RepeatedExtensions.repeatedSint32, sint32s); in testExtensions()
2873 message.setExtension(RepeatedExtensions.repeatedInt64, int64s); in testExtensions()
2876 message.setExtension(RepeatedExtensions.repeatedUint64, uint64s); in testExtensions()
2879 message.setExtension(RepeatedExtensions.repeatedSint64, sint64s); in testExtensions()
2882 message.setExtension(RepeatedExtensions.repeatedFixed32, fixed32s); in testExtensions()
2885 message.setExtension(RepeatedExtensions.repeatedSfixed32, sfixed32s); in testExtensions()
2888 message.setExtension(RepeatedExtensions.repeatedFixed64, fixed64s); in testExtensions()
2891 message.setExtension(RepeatedExtensions.repeatedSfixed64, sfixed64s); in testExtensions()
[all …]
/external/protobuf/objectivec/
DGPBMessage.h275 - (void)setExtension:(GPBExtensionDescriptor *)extension value:(nullable id)value;
285 - (void)setExtension:(GPBExtensionDescriptor *)extension
/external/sl4a/Common/src/com/googlecode/android_scripting/interpreter/
DInterpreter.java72 interpreter.setExtension(extension); in buildFromMaps()
127 protected void setExtension(String extension) { in setExtension() method in Interpreter
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/util/
DLocaleBuilderTest.java144 bld.setExtension(key.charAt(0), value); in TestLocaleBuilder()
146 bld.setExtension(ULocale.PRIVATE_USE_EXTENSION, TESTCASE[tidx][i++]); in TestLocaleBuilder()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/util/
DLocaleBuilderTest.java141 bld.setExtension(key.charAt(0), value); in TestLocaleBuilder()
143 bld.setExtension(ULocale.PRIVATE_USE_EXTENSION, TESTCASE[tidx][i++]); in TestLocaleBuilder()
/external/libphonenumber/libphonenumber/src/com/google/i18n/phonenumbers/
DPhonenumber.java80 public PhoneNumber setExtension(String value) { in setExtension() method in Phonenumber.PhoneNumber
203 setExtension(other.getExtension()); in mergeFrom()
/external/sl4a/Common/src/com/googlecode/android_scripting/interpreter/shell/
DShellInterpreter.java32 setExtension(".sh"); in ShellInterpreter()
/external/libphonenumber/repackaged/libphonenumber/src/com/android/i18n/phonenumbers/
DPhonenumber.java101 public PhoneNumber setExtension(String value) { in setExtension() method in Phonenumber.PhoneNumber
225 setExtension(other.getExtension()); in mergeFrom()
/external/grpc-grpc-java/services/src/generated/test/java/io/grpc/reflection/testing/
DThirdLevelType.java392 public <Type> Builder setExtension( in setExtension() method in ThirdLevelType.Builder
396 return (Builder) super.setExtension(extension, value); in setExtension()
398 public <Type> Builder setExtension( in setExtension() method in ThirdLevelType.Builder
402 return (Builder) super.setExtension(extension, index, value); in setExtension()
DTypeWithExtensions.java392 public <Type> Builder setExtension( in setExtension() method in TypeWithExtensions.Builder
396 return (Builder) super.setExtension(extension, value); in setExtension()
398 public <Type> Builder setExtension( in setExtension() method in TypeWithExtensions.Builder
402 return (Builder) super.setExtension(extension, index, value); in setExtension()
/external/protobuf/javanano/src/device/test/java/com/google/protobuf/nano/
DNanoAndroidTest.java70 message.setExtension(ContainerMessage.anotherThing, true); in testExtendableParceling()
/external/libphonenumber/libphonenumber/test/com/google/i18n/phonenumbers/
DPhoneNumberUtilTest.java632 PhoneNumber arNumberWithExtn = new PhoneNumber().mergeFrom(AR_MOBILE).setExtension("1234"); in testFormatOutOfCountryCallingNumber()
802 PhoneNumber deNumberWithExtn = new PhoneNumber().mergeFrom(DE_NUMBER).setExtension("1234"); in testFormatNumberForMobileDialing()
817 PhoneNumber usNumberWithExtn = new PhoneNumber().mergeFrom(US_NUMBER).setExtension("1234"); in testFormatNumberForMobileDialing()
983 PhoneNumber nzNumber = new PhoneNumber().mergeFrom(NZ_NUMBER).setExtension("1234"); in testFormatNumberWithExtension()
990 PhoneNumber usNumberWithExtension = new PhoneNumber().mergeFrom(US_NUMBER).setExtension("4567"); in testFormatNumberWithExtension()
2596 nzNumber.setCountryCode(64).setNationalNumber(33316005L).setExtension("3456"); in testParseExtensions()
2607 PhoneNumber extnNumber = new PhoneNumber().mergeFrom(ALPHA_NUMERIC_NUMBER).setExtension("1234"); in testParseExtensions()
2612 ukNumber.setCountryCode(44).setNationalNumber(2034567890L).setExtension("456"); in testParseExtensions()
2635 usWithExtension.setCountryCode(1).setNationalNumber(8009013355L).setExtension("7246433"); in testParseExtensions()
2652 ruWithExtension.setCountryCode(7).setNationalNumber(4232022511L).setExtension("100"); in testParseExtensions()
[all …]

123