/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()) {
|
H A D | value_conversion.h | 116 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 D | objc_container.h | 19 NSMutableDictionary *dictionary; local 22 oldObject = dictionary[key]; 24 dictionary[key] = newObject;
|
/external/autotest/frontend/client/src/autotest/afe/ |
H A D | JobStatusDataSource.java | 24 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 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 | postfix_evaluator_unittest.cc | 96 // 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 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/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/libchrome/dbus/ |
H A D | values_util.cc | 261 const base::DictionaryValue* dictionary = NULL; local 262 value.GetAsDictionary(&dictionary); 265 for (base::DictionaryValue::Iterator iter(*dictionary);
|
/external/libweave/src/privet/ |
H A D | privet_manager.cc | 132 const base::DictionaryValue* dictionary = ∅ local 134 value->GetAsDictionary(&dictionary); 136 VLOG(3) << "Input: " << *dictionary; 139 request->GetPath(), auth_header, dictionary,
|
H A D | privet_handler_unittest.cc | 38 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 D | array-constructor-feedback.js | 36 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 D | array-feedback.js | 34 dictionary : 'dictionary elements', 50 if (%HasDictionaryElements(obj)) return elements_kind.dictionary;
|
H A D | array-literal-feedback.js | 35 dictionary : 'dictionary elements', 51 if (%HasDictionaryElements(obj)) return elements_kind.dictionary;
|
H A D | opt-elements-kind.js | 39 dictionary : 'dictionary elements', 55 if (%HasDictionaryElements(obj)) return elements_kind.dictionary;
|
H A D | osr-elements-kind.js | 39 dictionary : 'dictionary elements', 55 if (%HasDictionaryElements(obj)) return elements_kind.dictionary;
|
H A D | allocation-site-info.js | 35 dictionary : 'dictionary elements', 51 if (%HasDictionaryElements(obj)) return elements_kind.dictionary;
|
H A D | elements-kind.js | 34 dictionary : 'dictionary elements', 50 if (%HasDictionaryElements(obj)) return elements_kind.dictionary; 113 assertKind(elements_kind.dictionary, temp);
|
/external/zlib/src/test/ |
H A D | example.c | 34 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 D | ic-compiler.cc | 90 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 D | runtime-object.cc | 61 // 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 D | code-stubs-ia32.h | 56 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 D | lookup.cc | 354 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 D | code-stubs-x64.h | 51 NameDictionaryLookupStub(Isolate* isolate, Register dictionary, argument 54 minor_key_ = DictionaryBits::encode(dictionary.code()) | 88 Register dictionary() const { function in class:v8::internal::NameDictionaryLookupStub
|