/external/libbrillo/brillo/ |
H A D | variant_dictionary_unittest.cc | 15 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 D | variant_dictionary.h | 18 // 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 D | RTCICEServer+JSON.h | 15 + (RTCICEServer *)serverFromJSONDictionary:(NSDictionary *)dictionary; 17 + (NSArray *)serversFromCEODJSONDictionary:(NSDictionary *)dictionary;
|
H A D | RTCMediaConstraints+JSON.h | 16 (NSDictionary *)dictionary;
|
H A D | RTCICEServer+JSON.m | 21 + (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 D | RTCICECandidate+JSON.h | 15 + (RTCICECandidate *)candidateFromJSONDictionary:(NSDictionary *)dictionary;
|
H A D | RTCSessionDescription+JSON.h | 16 (NSDictionary *)dictionary;
|
H A D | RTCICECandidate+JSON.m | 23 + (RTCICECandidate *)candidateFromJSONDictionary:(NSDictionary *)dictionary { 24 NSString *mid = dictionary[kRTCICECandidateMidKey]; 25 NSString *sdp = dictionary[kRTCICECandidateSdpKey]; 26 NSNumber *num = dictionary[kRTCICECandidateMLineIndexKey];
|
H A D | RTCSessionDescription+JSON.m | 19 (NSDictionary *)dictionary { 20 NSString *type = dictionary[kRTCSessionDescriptionTypeKey]; 21 NSString *sdp = dictionary[kRTCSessionDescriptionSdpKey];
|
H A D | RTCMediaConstraints+JSON.m | 20 (NSDictionary *)dictionary { 21 NSDictionary *mandatory = dictionary[kRTCMediaConstraintsMandatoryKey];
|
/external/nanopb-c/generator/google/protobuf/ |
H A D | reflection.py | 100 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 D | service_reflection.py | 64 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 D | objc_container.h | 19 NSMutableDictionary *dictionary; local 22 oldObject = dictionary[key]; 24 dictionary[key] = newObject;
|
/external/protobuf/python/google/protobuf/ |
H A D | reflection.py | 104 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 D | service_reflection.py | 64 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 D | postfix_evaluator.h | 35 // 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 D | stackwalker_x86.cc | 203 // 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 D | buildbucket_job_status.py | 45 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 D | radiusclient.conf | 48 # dictionary of allowed attributes and values 50 dictionary /usr/local/etc/radiusclient/dictionary
|
/external/skia/tests/ |
H A D | BitmapHeapTest.cpp | 61 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 D | gpu_device_unittest.py | 19 dictionary = {'vendor_id': 3000, 23 device = gpu_device.GPUDevice.FromDict(dictionary)
|
/external/autotest/server/site_tests/buffet_PrivetInfo/ |
H A D | buffet_PrivetInfo.py | 21 def _assert_not_empty(dictionary, key): 28 if not key in dictionary: 31 if not dictionary[key]:
|
/external/libchrome/base/trace_event/ |
H A D | heap_profiler_type_name_deduplicator_unittest.cc | 60 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 D | unittest_utils.cc | 40 CHECK(dict) << "Value is not dictionary: " << json;
|
/external/protobuf/python/google/protobuf/pyext/ |
H A D | cpp_message.py | 43 def NewMessage(bases, message_descriptor, dictionary):
|