Home
last modified time | relevance | path

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

12

/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/csharp/src/Google.Protobuf.Test/Collections/
DMapFieldTest.cs315 IDictionary dictionary = map; in IDictionary_Add()
316 dictionary.Add("a", "b"); in IDictionary_Add()
318 Assert.Throws<ArgumentException>(() => dictionary.Add("a", "duplicate")); in IDictionary_Add()
319 Assert.Throws<InvalidCastException>(() => dictionary.Add(new object(), "key is bad")); in IDictionary_Add()
320 Assert.Throws<InvalidCastException>(() => dictionary.Add("value is bad", new object())); in IDictionary_Add()
327 IDictionary dictionary = map; in IDictionary_Contains()
329 Assert.IsFalse(dictionary.Contains("a")); in IDictionary_Contains()
330 Assert.IsFalse(dictionary.Contains(5)); in IDictionary_Contains()
332 Assert.IsFalse(dictionary.Contains(new DictionaryEntry("x", "y"))); in IDictionary_Contains()
333 Assert.IsTrue(dictionary.Contains("x")); in IDictionary_Contains()
[all …]
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/objectivec/
DGPBDictionary.h60 + (instancetype)dictionary;
66 + (instancetype)dictionaryWithDictionary:(GPBUInt32UInt32Dictionary *)dictionary;
72 - (instancetype)initWithDictionary:(GPBUInt32UInt32Dictionary *)dictionary;
97 + (instancetype)dictionary;
103 + (instancetype)dictionaryWithDictionary:(GPBUInt32Int32Dictionary *)dictionary;
109 - (instancetype)initWithDictionary:(GPBUInt32Int32Dictionary *)dictionary;
134 + (instancetype)dictionary;
140 + (instancetype)dictionaryWithDictionary:(GPBUInt32UInt64Dictionary *)dictionary;
146 - (instancetype)initWithDictionary:(GPBUInt32UInt64Dictionary *)dictionary;
171 + (instancetype)dictionary;
[all …]
DGPBDictionary.m593 //%+ (instancetype)dictionary {
616 //%+ (instancetype)dictionaryWithDictionary:(GPB##KEY_NAME##VALUE_NAME##Dictionary *)dictionary {
619 //% return [[(GPB##KEY_NAME##VALUE_NAME##Dictionary*)[self alloc] initWithDictionary:dictionary] a…
645 //%- (instancetype)initWithDictionary:(GPB##KEY_NAME##VALUE_NAME##Dictionary *)dictionary {
648 //% if (dictionary) {
649 //% [_dictionary addEntriesFromDictionary:dictionary->_dictionary];
682 //%+ (instancetype)dictionary {
719 //%+ (instancetype)dictionaryWithDictionary:(GPB##KEY_NAME##VALUE_NAME##Dictionary *)dictionary {
722 //% return [[(GPB##KEY_NAME##VALUE_NAME##Dictionary*)[self alloc] initWithDictionary:dictionary] a…
755 //%- (instancetype)initWithDictionary:(GPB##KEY_NAME##VALUE_NAME##Dictionary *)dictionary {
[all …]
DGPBMessage_PackagePrivate.h136 void GPBAutocreatedDictionaryModified(GPBMessage *self, id dictionary);
DGPBRootObject.m64 // Note that the dictionary lasts for the lifetime of our app, so no need
112 // See description above for reason for using custom dictionary.
189 // the dictionary.
DGPBUtilities.h175 void GPBSetMessageMapField(GPBMessage *self, GPBFieldDescriptor *field, id dictionary);
DGPBUnknownFieldSet.m41 // We use a custom dictionary here because our keys are numbers and
131 // Return the hash of the fields dictionary (or just some value).
295 // See description above for reason for using custom dictionary.
DGPBExtensionRegistry.m73 extensionMap = [NSMutableDictionary dictionary];
DGPBUtilities.m994 id dictionary) {
1001 if (dictionary) {
1019 if (![dictionary isKindOfClass:expectedClass]) {
1023 [dictionary class]];
1027 GPBSetObjectIvarWithField(self, field, dictionary);
DGPBMessage.m687 void GPBAutocreatedDictionaryModified(GPBMessage *self, id dictionary) {
693 if (curDict == dictionary) {
696 GPBAutocreatedDictionary *autoDict = dictionary;
699 GPBInt32Int32Dictionary *gpbDict = dictionary;
707 NSCAssert(NO, @"Unknown autocreated %@ for %@.", [dictionary class], self);
2699 // them as dictionary keys) you will probably want to implement a ProtoBuf
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/python/google/protobuf/
Dservice_reflection.py64 def __init__(cls, name, bases, dictionary): argument
77 if GeneratedServiceType._DESCRIPTOR_KEY not in dictionary:
79 descriptor = dictionary[GeneratedServiceType._DESCRIPTOR_KEY]
94 def __init__(cls, name, bases, dictionary): argument
104 super(GeneratedServiceStubType, cls).__init__(name, bases, dictionary)
107 if GeneratedServiceStubType._DESCRIPTOR_KEY not in dictionary:
109 descriptor = dictionary[GeneratedServiceStubType._DESCRIPTOR_KEY]
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/python/google/protobuf/internal/
Dpython_message.py112 def __new__(cls, name, bases, dictionary): argument
133 descriptor = dictionary[GeneratedProtocolMessageType._DESCRIPTOR_KEY]
136 _AddClassAttributesForNestedExtensions(descriptor, dictionary)
137 _AddSlots(descriptor, dictionary)
140 new_class = superclass.__new__(cls, name, bases, dictionary)
143 def __init__(cls, name, bases, dictionary): argument
160 descriptor = dictionary[GeneratedProtocolMessageType._DESCRIPTOR_KEY]
184 superclass.__init__(name, bases, dictionary)
246 def _AddSlots(message_descriptor, dictionary): argument
254 dictionary['__slots__'] = ['_cached_byte_size',
[all …]
/frameworks/native/opengl/tools/glgen2/registry/
Dreg.py711 def addElementInfo(self, elem, info, infoName, dictionary): argument
716 if key in dictionary:
720 dictionary[key] = info
726 def lookupElementInfo(self, fname, dictionary): argument
728 if (key in dictionary):
730 return dictionary[key]
731 elif (fname in dictionary):
733 return dictionary[fname]
913 def generateFeature(self, fname, ftype, dictionary, genProc): argument
914 f = self.lookupElementInfo(fname, dictionary)
/frameworks/base/startop/scripts/app_startup/
Dapp_startup_runner.py126 def dict_lookup_any_key(dictionary: dict, *keys: List[Any]):
128 if k in dictionary:
129 return dictionary[k]
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/csharp/src/Google.Protobuf.Test/Reflection/
DFieldAccessTest.cs83 …var dictionary = (IDictionary) fields[TestMap.MapStringStringFieldNumber].Accessor.GetValue(mapMes… in GetValue()
84 Assert.AreEqual(mapMessage.MapStringString, dictionary); in GetValue()
85 Assert.AreEqual("value1", dictionary["key1"]); in GetValue()
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/csharp/src/Google.Protobuf/
DJsonFormatter.cs338 IDictionary dictionary = (IDictionary) value; in IsDefaultValue()
339 return dictionary.Count == 0; in IsDefaultValue()
686 internal void WriteDictionary(TextWriter writer, IDictionary dictionary) in WriteDictionary() argument
691 foreach (DictionaryEntry pair in dictionary) in WriteDictionary()
DJsonParser.cs287 IDictionary dictionary = (IDictionary) field.Accessor.GetValue(message); in MergeMapField()
302 dictionary[key] = value; in MergeMapField()
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/csharp/src/Google.Protobuf.Test/WellKnownTypes/
DWrappersTest.cs255 …var dictionary = (IDictionary) fields[MapWellKnownTypes.Int32FieldFieldNumber].Accessor.GetValue(m… in Reflection_MapFields()
256 Assert.AreEqual(2, dictionary[1]); in Reflection_MapFields()
/frameworks/ml/nn/tools/test_generator/
DREADME.md86 # Example 1, separate dictionary for inputs and outputs
93 # Example 2, combined dictionary
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/objectivec/Tests/
DGPBDictionaryTests+Bool.m227 GPBBoolUInt32Dictionary *dict = [GPBBoolUInt32Dictionary dictionary];
528 GPBBoolInt32Dictionary *dict = [GPBBoolInt32Dictionary dictionary];
829 GPBBoolUInt64Dictionary *dict = [GPBBoolUInt64Dictionary dictionary];
1130 GPBBoolInt64Dictionary *dict = [GPBBoolInt64Dictionary dictionary];
1431 GPBBoolBoolDictionary *dict = [GPBBoolBoolDictionary dictionary];
1732 GPBBoolFloatDictionary *dict = [GPBBoolFloatDictionary dictionary];
2033 GPBBoolDoubleDictionary *dict = [GPBBoolDoubleDictionary dictionary];
2326 GPBBoolObjectDictionary<NSString*> *dict = [GPBBoolObjectDictionary dictionary];
DGPBDictionaryTests+Int32.m271 GPBInt32UInt32Dictionary *dict = [GPBInt32UInt32Dictionary dictionary];
628 GPBInt32Int32Dictionary *dict = [GPBInt32Int32Dictionary dictionary];
985 GPBInt32UInt64Dictionary *dict = [GPBInt32UInt64Dictionary dictionary];
1342 GPBInt32Int64Dictionary *dict = [GPBInt32Int64Dictionary dictionary];
1699 GPBInt32BoolDictionary *dict = [GPBInt32BoolDictionary dictionary];
2056 GPBInt32FloatDictionary *dict = [GPBInt32FloatDictionary dictionary];
2413 GPBInt32DoubleDictionary *dict = [GPBInt32DoubleDictionary dictionary];
2770 GPBInt32EnumDictionary *dict = [GPBInt32EnumDictionary dictionary];
3533 GPBInt32ObjectDictionary<NSString*> *dict = [GPBInt32ObjectDictionary dictionary];
DGPBDictionaryTests+UInt32.m271 GPBUInt32UInt32Dictionary *dict = [GPBUInt32UInt32Dictionary dictionary];
628 GPBUInt32Int32Dictionary *dict = [GPBUInt32Int32Dictionary dictionary];
985 GPBUInt32UInt64Dictionary *dict = [GPBUInt32UInt64Dictionary dictionary];
1342 GPBUInt32Int64Dictionary *dict = [GPBUInt32Int64Dictionary dictionary];
1699 GPBUInt32BoolDictionary *dict = [GPBUInt32BoolDictionary dictionary];
2056 GPBUInt32FloatDictionary *dict = [GPBUInt32FloatDictionary dictionary];
2413 GPBUInt32DoubleDictionary *dict = [GPBUInt32DoubleDictionary dictionary];
2770 GPBUInt32EnumDictionary *dict = [GPBUInt32EnumDictionary dictionary];
3533 GPBUInt32ObjectDictionary<NSString*> *dict = [GPBUInt32ObjectDictionary dictionary];
DGPBDictionaryTests+UInt64.m271 GPBUInt64UInt32Dictionary *dict = [GPBUInt64UInt32Dictionary dictionary];
628 GPBUInt64Int32Dictionary *dict = [GPBUInt64Int32Dictionary dictionary];
985 GPBUInt64UInt64Dictionary *dict = [GPBUInt64UInt64Dictionary dictionary];
1342 GPBUInt64Int64Dictionary *dict = [GPBUInt64Int64Dictionary dictionary];
1699 GPBUInt64BoolDictionary *dict = [GPBUInt64BoolDictionary dictionary];
2056 GPBUInt64FloatDictionary *dict = [GPBUInt64FloatDictionary dictionary];
2413 GPBUInt64DoubleDictionary *dict = [GPBUInt64DoubleDictionary dictionary];
2770 GPBUInt64EnumDictionary *dict = [GPBUInt64EnumDictionary dictionary];
3533 GPBUInt64ObjectDictionary<NSString*> *dict = [GPBUInt64ObjectDictionary dictionary];
DGPBDictionaryTests+Int64.m271 GPBInt64UInt32Dictionary *dict = [GPBInt64UInt32Dictionary dictionary];
628 GPBInt64Int32Dictionary *dict = [GPBInt64Int32Dictionary dictionary];
985 GPBInt64UInt64Dictionary *dict = [GPBInt64UInt64Dictionary dictionary];
1342 GPBInt64Int64Dictionary *dict = [GPBInt64Int64Dictionary dictionary];
1699 GPBInt64BoolDictionary *dict = [GPBInt64BoolDictionary dictionary];
2056 GPBInt64FloatDictionary *dict = [GPBInt64FloatDictionary dictionary];
2413 GPBInt64DoubleDictionary *dict = [GPBInt64DoubleDictionary dictionary];
2770 GPBInt64EnumDictionary *dict = [GPBInt64EnumDictionary dictionary];
3533 GPBInt64ObjectDictionary<NSString*> *dict = [GPBInt64ObjectDictionary dictionary];
DGPBDictionaryTests+String.m271 GPBStringUInt32Dictionary *dict = [GPBStringUInt32Dictionary dictionary];
628 GPBStringInt32Dictionary *dict = [GPBStringInt32Dictionary dictionary];
985 GPBStringUInt64Dictionary *dict = [GPBStringUInt64Dictionary dictionary];
1342 GPBStringInt64Dictionary *dict = [GPBStringInt64Dictionary dictionary];
1699 GPBStringBoolDictionary *dict = [GPBStringBoolDictionary dictionary];
2056 GPBStringFloatDictionary *dict = [GPBStringFloatDictionary dictionary];
2413 GPBStringDoubleDictionary *dict = [GPBStringDoubleDictionary dictionary];
2770 GPBStringEnumDictionary *dict = [GPBStringEnumDictionary dictionary];

12