Searched refs:dictionary (Results 1 - 25 of 158) sorted by relevance

1234567

/external/libbrillo/brillo/
H A Dvariant_dictionary_unittest.cc15 VariantDictionary dictionary; local
16 dictionary.emplace("a", 1);
17 dictionary.emplace("b", "string");
20 EXPECT_EQ(1, GetVariantValueOrDefault<int>(dictionary, "a"));
21 EXPECT_EQ("string", GetVariantValueOrDefault<const char*>(dictionary, "b"));
24 EXPECT_EQ("", GetVariantValueOrDefault<std::string>(dictionary, "missing"));
25 EXPECT_EQ(0, GetVariantValueOrDefault<int>(dictionary, "missing"));
H A Dvariant_dictionary.h18 // GetVariantValueOrDefault tries to retrieve the named key from the dictionary
22 const T GetVariantValueOrDefault(const VariantDictionary& dictionary, argument
24 VariantDictionary::const_iterator it = dictionary.find(key);
25 if (it == dictionary.end()) {
/external/webrtc/webrtc/examples/objc/AppRTCDemo/
H A DRTCICEServer+JSON.h15 + (RTCICEServer *)serverFromJSONDictionary:(NSDictionary *)dictionary;
17 + (NSArray *)serversFromCEODJSONDictionary:(NSDictionary *)dictionary;
H A DRTCMediaConstraints+JSON.h16 (NSDictionary *)dictionary;
H A DRTCICEServer+JSON.m21 + (RTCICEServer *)serverFromJSONDictionary:(NSDictionary *)dictionary {
22 NSString *url = dictionary[kRTCICEServerUrlKey];
23 NSString *username = dictionary[kRTCICEServerUsernameKey];
24 NSString *credential = dictionary[kRTCICEServerCredentialKey];
32 + (NSArray *)serversFromCEODJSONDictionary:(NSDictionary *)dictionary {
33 NSString *username = dictionary[kRTCICEServerUsernameKey];
34 NSString *password = dictionary[kRTCICEServerPasswordKey];
35 NSArray *uris = dictionary[kRTCICEServerUrisKey];
H A DRTCICECandidate+JSON.h15 + (RTCICECandidate *)candidateFromJSONDictionary:(NSDictionary *)dictionary;
H A DRTCSessionDescription+JSON.h16 (NSDictionary *)dictionary;
H A DRTCICECandidate+JSON.m23 + (RTCICECandidate *)candidateFromJSONDictionary:(NSDictionary *)dictionary {
24 NSString *mid = dictionary[kRTCICECandidateMidKey];
25 NSString *sdp = dictionary[kRTCICECandidateSdpKey];
26 NSNumber *num = dictionary[kRTCICECandidateMLineIndexKey];
H A DRTCSessionDescription+JSON.m19 (NSDictionary *)dictionary {
20 NSString *type = dictionary[kRTCSessionDescriptionTypeKey];
21 NSString *sdp = dictionary[kRTCSessionDescriptionSdpKey];
H A DRTCMediaConstraints+JSON.m20 (NSDictionary *)dictionary {
21 NSDictionary *mandatory = dictionary[kRTCMediaConstraintsMandatoryKey];
/external/nanopb-c/generator/google/protobuf/
H A Dreflection.py100 def __new__(cls, name, bases, dictionary):
113 dictionary: The class dictionary of the class we're
114 constructing. dictionary[_DESCRIPTOR_KEY] must contain
121 descriptor = dictionary[GeneratedProtocolMessageType._DESCRIPTOR_KEY]
122 bases = _NewMessage(bases, descriptor, dictionary)
125 new_class = superclass.__new__(cls, name, bases, dictionary)
129 def __init__(cls, name, bases, dictionary):
141 dictionary: The class dictionary o
[all...]
H A Dservice_reflection.py64 def __init__(cls, name, bases, dictionary):
71 dictionary: The class dictionary of the class being constructed.
72 dictionary[_DESCRIPTOR_KEY] must contain a ServiceDescriptor object
77 if GeneratedServiceType._DESCRIPTOR_KEY not in dictionary:
79 descriptor = dictionary[GeneratedServiceType._DESCRIPTOR_KEY]
94 def __init__(cls, name, bases, dictionary):
100 dictionary: The class dictionary of the class being constructed.
101 dictionary[_DESCRIPTOR_KE
[all...]
/external/clang/test/PCH/
H A Dobjc_container.h19 NSMutableDictionary *dictionary; local
22 oldObject = dictionary[key];
24 dictionary[key] = newObject;
/external/protobuf/python/google/protobuf/
H A Dreflection.py104 def __new__(cls, name, bases, dictionary):
117 dictionary: The class dictionary of the class we're
118 constructing. dictionary[_DESCRIPTOR_KEY] must contain
125 descriptor = dictionary[GeneratedProtocolMessageType._DESCRIPTOR_KEY]
126 bases = _NewMessage(bases, descriptor, dictionary)
129 new_class = superclass.__new__(cls, name, bases, dictionary)
133 def __init__(cls, name, bases, dictionary):
145 dictionary: The class dictionary o
[all...]
H A Dservice_reflection.py64 def __init__(cls, name, bases, dictionary):
71 dictionary: The class dictionary of the class being constructed.
72 dictionary[_DESCRIPTOR_KEY] must contain a ServiceDescriptor object
77 if GeneratedServiceType._DESCRIPTOR_KEY not in dictionary:
79 descriptor = dictionary[GeneratedServiceType._DESCRIPTOR_KEY]
94 def __init__(cls, name, bases, dictionary):
100 dictionary: The class dictionary of the class being constructed.
101 dictionary[_DESCRIPTOR_KE
[all...]
/external/google-breakpad/src/processor/
H A Dpostfix_evaluator.h35 // in postfix (reverse Polish) notation and a dictionary mapping constants
45 // which reference the dictionary. The supported binary operators are +
54 // The dictionary is provided as a map with string keys. Keys beginning
57 // dictionary. These variables do not need to exist prior to calling
95 // (^) will not be supported. |dictionary| may be NULL, but evaluation
98 PostfixEvaluator(DictionaryType *dictionary, const MemoryRegion *memory) argument
99 : dictionary_(dictionary), memory_(memory), stack_() {}
102 // execution will be stored in one (or more) variables in the dictionary.
104 // variables in the dictionary in an indeterminate state. If assigned is
105 // non-NULL, any keys set in the dictionary a
116 DictionaryType* dictionary() const { return dictionary_; } function in class:google_breakpad::PostfixEvaluator
119 set_dictionary(DictionaryType *dictionary) argument
[all...]
H A Dstackwalker_x86.cc203 // Set up the dictionary for the PostfixEvaluator. %ebp and %esp are used
206 PostfixEvaluator<uint32_t>::DictionaryType dictionary; local
208 dictionary["$ebp"] = last_frame->context.ebp;
209 dictionary["$esp"] = last_frame->context.esp;
215 dictionary[".cbCalleeParams"] = last_frame_callee_parameter_size;
216 dictionary[".cbSavedRegs"] = last_frame_info->saved_register_size;
217 dictionary[".cbLocals"] = last_frame_info->local_size;
257 dictionary[".cbParams"] = last_frame_info->parameter_size;
261 // Given the dictionary and the program string, it is possible to compute
359 dictionary["
[all...]
/external/chromium-trace/catapult/dashboard/dashboard/
H A Dbuildbucket_job_status.py45 def _ConvertTimes(dictionary):
52 dictionary: A dictionary with the original data.
55 A copy of the original dictionary with appropriate replacements.
57 result = dictionary.copy()
70 def _ParseJsonKeys(dictionary):
75 in the topmost level, i.e. only string values in the given dictionary and
79 dictionary: A dictionary with the original data.
82 A copy of the original dictionary wit
[all...]
/external/ppp/pppd/plugins/radius/etc/
H A Dradiusclient.conf48 # dictionary of allowed attributes and values
50 dictionary /usr/local/etc/radiusclient/dictionary
/external/skia/tests/
H A DBitmapHeapTest.cpp61 FlatDictionary dictionary(&controller);
65 REPORTER_ASSERT(reporter, dictionary.count() == 0);
68 int index = dictionary.find(*bitmapShader);
71 // The dictionary and heap should now each have one entry.
74 REPORTER_ASSERT(reporter, dictionary.count() == 1);
89 index = dictionary.find(*bitmapShader);
92 // The dictionary should report the same index since the new entry is identical.
/external/chromium-trace/catapult/telemetry/telemetry/internal/platform/
H A Dgpu_device_unittest.py19 dictionary = {'vendor_id': 3000,
23 device = gpu_device.GPUDevice.FromDict(dictionary)
/external/autotest/server/site_tests/buffet_PrivetInfo/
H A Dbuffet_PrivetInfo.py21 def _assert_not_empty(dictionary, key):
28 if not key in dictionary:
31 if not dictionary[key]:
/external/libchrome/base/trace_event/
H A Dheap_profiler_type_name_deduplicator_unittest.cc60 const DictionaryValue* dictionary; local
61 ASSERT_TRUE(type_names->GetAsDictionary(&dictionary));
66 ASSERT_TRUE(dictionary->GetString("1", &type_name));
/external/libweave/src/test/
H A Dunittest_utils.cc40 CHECK(dict) << "Value is not dictionary: " << json;
/external/protobuf/python/google/protobuf/pyext/
H A Dcpp_message.py43 def NewMessage(bases, message_descriptor, dictionary):

Completed in 922 milliseconds

1234567