Home
last modified time | relevance | path

Searched refs:Extensions (Results 1 – 25 of 30) sorted by relevance

12

/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/python/google/protobuf/internal/
Ddescriptor_test.py150 self.assertEqual(9876543210, file_options.Extensions[file_opt1])
153 self.assertEqual(-56, message_options.Extensions[message_opt1])
156 self.assertEqual(8765432109, field_options.Extensions[field_opt1])
158 self.assertEqual(42, field_options.Extensions[field_opt2])
161 self.assertEqual(-99, oneof_options.Extensions[oneof_opt1])
164 self.assertEqual(-789, enum_options.Extensions[enum_opt1])
167 self.assertEqual(123, enum_value_options.Extensions[enum_value_opt1])
171 self.assertEqual(-9876543210, service_options.Extensions[service_opt1])
175 method_options.Extensions[method_opt1])
193 self.assertEqual(False, message_options.Extensions[
[all …]
Dreflection_test.py495 proto.Extensions[unittest_pb2.optional_fixed32_extension] = 1
496 proto.Extensions[unittest_pb2.optional_int32_extension ] = 5
497 proto.Extensions[unittest_pb2.optional_string_extension ] = 'foo'
506 proto.Extensions[unittest_pb2.repeated_fixed32_extension].append(1)
507 proto.Extensions[unittest_pb2.repeated_int32_extension ].append(5)
508 proto.Extensions[unittest_pb2.repeated_int32_extension ].append(11)
509 proto.Extensions[unittest_pb2.repeated_string_extension ].append('foo')
510 proto.Extensions[unittest_pb2.repeated_string_extension ].append('bar')
511 proto.Extensions[unittest_pb2.repeated_string_extension ].append('baz')
512 proto.Extensions[unittest_pb2.optional_int32_extension ] = 21
[all …]
Dmessage_factory_test.py129 msg1.Extensions[ext1] = 'test1'
130 msg1.Extensions[ext2] = 'test2'
131 self.assertEqual('test1', msg1.Extensions[ext1])
132 self.assertEqual('test2', msg1.Extensions[ext2])
Dtext_format_test.py609 message.message_set.Extensions[ext1].i = 23
610 message.message_set.Extensions[ext2].str = 'foo'
623 message.Extensions[ext].text = 'bar'
635 message.message_set.Extensions[ext1].i = 23
636 message.message_set.Extensions[ext2].str = 'foo'
652 message.message_set.Extensions[ext1].i = 23
653 message.message_set.Extensions[ext2].str = 'foo'
684 self.assertEqual(23, message.message_set.Extensions[ext1].i)
685 self.assertEqual('foo', message.message_set.Extensions[ext2].str)
706 self.assertEqual(23, message.message_set.Extensions[ext1].i)
[all …]
Dgenerator_test.py281 self.assertEqual(message.Extensions[test_bad_identifiers_pb2.message],
283 self.assertEqual(message.Extensions[test_bad_identifiers_pb2.descriptor],
285 self.assertEqual(message.Extensions[test_bad_identifiers_pb2.reflection],
287 self.assertEqual(message.Extensions[test_bad_identifiers_pb2.service],
Dtest_util.py208 extensions = message.Extensions
352 message.Extensions[unittest_pb2.my_extension_int] = 23
353 message.Extensions[unittest_pb2.my_extension_string] = 'bar'
368 message.Extensions[my_extension_int] = 23 # Field 5.
374 message.Extensions[my_extension_string] = 'bar' # Field 50.
656 extensions = message.Extensions
Ddescriptor_pool_test.py640 file_descriptor_proto.options.Extensions[extension_id].foo_name = 'foo'
647 self.assertEqual('foo', options.Extensions[extension_id].foo_name)
Dmessage_test.py1098 self.assertEqual(parsing_merge.Extensions[
1105 self.assertEqual(len(parsing_merge.Extensions[
Dpython_message.py566 cls.Extensions = property(lambda self: _ExtensionDict(self))
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/javanano/src/test/java/com/google/protobuf/nano/
Dunittest_extension_nano.proto3 option java_outer_classname = "Extensions";
DNanoTest.java43 import com.google.protobuf.nano.testext.nano.Extensions;
44 import com.google.protobuf.nano.testext.nano.Extensions.AnotherMessage;
45 import com.google.protobuf.nano.testext.nano.Extensions.MessageWithGroup;
2831 Extensions.ExtendableMessage message = new Extensions.ExtendableMessage(); in testExtensions()
2846 int[] enums = {Extensions.SECOND_VALUE, Extensions.FIRST_VALUE}; in testExtensions()
2915 message = Extensions.ExtendableMessage.parseFrom(data); in testExtensions()
2942 message = Extensions.ExtendableMessage.parseFrom(data); in testExtensions()
2976 message = Extensions.ExtendableMessage.parseFrom(data); in testExtensions()
3029 message = MessageNano.mergeFrom(new Extensions.ExtendableMessage(), data2); in testExtensions()
3046 Extensions.ExtendableMessage clone = message.clone(); in testExtensions()
[all …]
/frameworks/native/opengl/tools/glgen/stubs/egl/
DEGLExtHeader.java-if22 * EGL Extensions
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/python/google/protobuf/
Dtext_format.py604 field = message.Extensions._FindExtensionByName(name)
625 field = message.Extensions._FindExtensionByNumber(number)
750 sub_message = message.Extensions[field].add()
758 sub_message = message.Extensions[field]
821 message.Extensions[field].append(value)
831 message.Extensions[field] = value
/frameworks/ml/nn/extensions/
DREADME.md13 ## Extensions usage allowlist
80 Extensions may also declare custom structures to accompany extension operands:
/frameworks/base/core/java/android/provider/
DContacts.java709 public static class Extensions implements BaseColumns, ExtensionsColumns { class in Contacts.People
715 private Extensions() {} in Extensions() method in Contacts.People.Extensions
1916 public static final class Extensions implements BaseColumns, ExtensionsColumns { class in Contacts
1920 private Extensions() {} in Extensions() method in Contacts.Extensions
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/
Ddynamic_message_unittest.cc158 TEST_F(DynamicMessageTest, Extensions) { in TEST_F() argument
Dgenerated_message_reflection_unittest.cc424 TEST(GeneratedMessageReflectionTest, Extensions) { in TEST() argument
Dtext_format_unittest.cc129 TEST_F(TextFormatExtensionsTest, Extensions) { in TEST_F() argument
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/js/
Dtest.proto116 // Extensions of proto2 Descriptor messages will be ignored.
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/objectivec/ProtocolBuffers_OSX.xcodeproj/
Dproject.pbxproj251 7461B3C50F94F84100A0C422 /* Extensions */,
327 7461B3C50F94F84100A0C422 /* Extensions */ = {
338 name = Extensions;
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/objectivec/ProtocolBuffers_iOS.xcodeproj/
Dproject.pbxproj285 7461B3C50F94F84100A0C422 /* Extensions */,
364 7461B3C50F94F84100A0C422 /* Extensions */ = {
375 name = Extensions;
/frameworks/compile/mclinker/tools/mcld/
DOptions.td48 HelpText<"Extensions for GNU ld compatibility">;
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/compiler/
Dparser_unittest.cc748 TEST_F(ParseMessageTest, Extensions) { in TEST_F() argument
2391 TEST_F(SourceInfoTest, Extensions) { in TEST_F() argument
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/objectivec/Tests/
DGPBMessageTests+Serialization.m825 // Extensions and fields end up on the wire the same way, so they can parse
857 // Extensions and fields end up on the wire the same way, so they can parse
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/objectivec/
DGPBMessage.m1708 #pragma mark - Extensions
2513 // Extensions
3159 // Extensions scoped to a Message and looked up via class methods.

12