Searched defs:dictionary (Results 1 - 25 of 76) sorted by relevance

1234

/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()) {
H A Dvalue_conversion.h116 const std::map<std::string, T, Pred, Alloc>& dictionary);
129 const std::map<std::string, T, Pred, Alloc>& dictionary) {
131 for (const auto& pair : dictionary) {
128 ToValue( const std::map<std::string, T, Pred, Alloc>& dictionary) argument
/external/clang/test/PCH/
H A Dobjc_container.h19 NSMutableDictionary *dictionary; local
22 oldObject = dictionary[key];
24 dictionary[key] = newObject;
/external/autotest/frontend/client/src/autotest/afe/
H A DJobStatusDataSource.java24 private JSONObject dictionary; field in class:JobStatusDataSource
29 // retrieve the dictionary from static data
31 dictionary = staticData.getData("status_dictionary").isObject();
35 if (dictionary.containsKey(status)) {
36 return dictionary.get(status).isString().stringValue();
/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 Dpostfix_evaluator_unittest.cc96 // The dictionary used for all tests in the set.
97 PostfixEvaluator<unsigned int>::DictionaryType *dictionary; member in struct:__anon6228::EvaluateTestSet
235 // The same dictionary will be used for each test in the set. Earlier
236 // tests can affect the state of the dictionary for later tests.
237 postfix_evaluator.set_dictionary(evaluate_test_set->dictionary);
239 // Use a new validity dictionary for each test set.
271 evaluate_test_set->dictionary->find(identifier);
273 // The identifier must exist in the dictionary.
274 if (dictionary_iterator == evaluate_test_set->dictionary->end()) {
283 // The value in the dictionary mus
[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/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/libchrome/dbus/
H A Dvalues_util.cc261 const base::DictionaryValue* dictionary = NULL; local
262 value.GetAsDictionary(&dictionary);
265 for (base::DictionaryValue::Iterator iter(*dictionary);
/external/libweave/src/privet/
H A Dprivet_manager.cc132 const base::DictionaryValue* dictionary = &empty; local
134 value->GetAsDictionary(&dictionary);
136 VLOG(3) << "Input: " << *dictionary;
139 request->GetPath(), auth_header, dictionary,
H A Dprivet_handler_unittest.cc38 base::DictionaryValue* dictionary) {
50 dictionary->MergeDictionary(dictionary_ptr);
65 const base::DictionaryValue& dictionary) {
68 return dictionary.GetInteger("error.http_status", &code) &&
69 code == expected.code && dictionary.GetString("error.code", &reason) &&
116 base::DictionaryValue dictionary; local
117 LoadTestJson(json_input, &dictionary);
118 return HandleRequest(api, &dictionary);
123 base::DictionaryValue dictionary; local
124 handler_->HandleRequest(api, auth_header_, &dictionary,
37 LoadTestJson(const std::string& test_json, base::DictionaryValue* dictionary) argument
64 IsEqualError(const CodeWithReason& expected, const base::DictionaryValue& dictionary) argument
[all...]
/external/v8/test/mjsunit/
H A Darray-constructor-feedback.js36 dictionary : 'dictionary elements',
52 if (%HasDictionaryElements(obj)) return elements_kind.dictionary;
119 // based on the move to a dictionary for the array.
235 assertKind(elements_kind.dictionary, bar(large_size));
H A Darray-feedback.js34 dictionary : 'dictionary elements',
50 if (%HasDictionaryElements(obj)) return elements_kind.dictionary;
H A Darray-literal-feedback.js35 dictionary : 'dictionary elements',
51 if (%HasDictionaryElements(obj)) return elements_kind.dictionary;
H A Dopt-elements-kind.js39 dictionary : 'dictionary elements',
55 if (%HasDictionaryElements(obj)) return elements_kind.dictionary;
H A Dosr-elements-kind.js39 dictionary : 'dictionary elements',
55 if (%HasDictionaryElements(obj)) return elements_kind.dictionary;
H A Dallocation-site-info.js35 dictionary : 'dictionary elements',
51 if (%HasDictionaryElements(obj)) return elements_kind.dictionary;
H A Delements-kind.js34 dictionary : 'dictionary elements',
50 if (%HasDictionaryElements(obj)) return elements_kind.dictionary;
113 assertKind(elements_kind.dictionary, temp);
/external/zlib/src/test/
H A Dexample.c34 const char dictionary[] = "hello"; variable
35 uLong dictId; /* Adler32 value of the dictionary */
455 * Test deflate() with preset dictionary
472 (const Bytef*)dictionary, (int)sizeof(dictionary));
492 * Test inflate() with a preset dictionary
521 fprintf(stderr, "unexpected dictionary");
524 err = inflateSetDictionary(&d_stream, (const Bytef*)dictionary,
525 (int)sizeof(dictionary));
537 printf("inflate with dictionary
[all...]
/external/v8/src/ic/
H A Dic-compiler.cc90 UnseededNumberDictionary* dictionary = local
92 int entry = dictionary->FindEntry(isolate, flags);
94 Object* code = dictionary->ValueAt(entry);
102 Handle<UnseededNumberDictionary> dictionary = UnseededNumberDictionary::Set( local
104 isolate->heap()->SetRootNonMonomorphicCache(*dictionary);
/external/v8/src/runtime/
H A Druntime-object.cc61 // Attempt dictionary lookup.
62 GlobalDictionary* dictionary = receiver->global_dictionary(); local
63 int entry = dictionary->FindEntry(key);
65 DCHECK(dictionary->ValueAt(entry)->IsPropertyCell());
66 PropertyCell* cell = PropertyCell::cast(dictionary->ValueAt(entry));
74 // Attempt dictionary lookup.
75 NameDictionary* dictionary = receiver->property_dictionary(); local
76 int entry = dictionary->FindEntry(key);
78 (dictionary->DetailsAt(entry).type() == DATA)) {
79 Object* value = dictionary
[all...]
/external/v8/src/ia32/
H A Dcode-stubs-ia32.h56 NameDictionaryLookupStub(Isolate* isolate, Register dictionary, argument
59 minor_key_ = DictionaryBits::encode(dictionary.code()) |
93 Register dictionary() const { function in class:v8::internal::NameDictionaryLookupStub
/external/v8/src/
H A Dlookup.cc354 Handle<SeededNumberDictionary> dictionary = local
360 dictionary =
361 SeededNumberDictionary::Set(dictionary, index_, pair, details, false);
362 receiver->RequireSlowElements(*dictionary);
370 FixedArray::cast(receiver->elements())->set(1, *dictionary);
372 receiver->set_elements(*dictionary);
/external/v8/src/x64/
H A Dcode-stubs-x64.h51 NameDictionaryLookupStub(Isolate* isolate, Register dictionary, argument
54 minor_key_ = DictionaryBits::encode(dictionary.code()) |
88 Register dictionary() const { function in class:v8::internal::NameDictionaryLookupStub

Completed in 1664 milliseconds

1234