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

123

/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);
128 const std::map<std::string, T, Pred, Alloc>& dictionary) {
130 for (const auto& pair : dictionary)
127 ToValue( const std::map<std::string, T, Pred, Alloc>& dictionary) argument
/external/protobuf/objectivec/
H A DGPBDictionary.h51 + (instancetype)dictionary; variable
57 + (instancetype)dictionaryWithDictionary:(GPBUInt32UInt32Dictionary *)dictionary;
63 - (instancetype)initWithDictionary:(GPBUInt32UInt32Dictionary *)dictionary;
86 + (instancetype)dictionary; variable
92 + (instancetype)dictionaryWithDictionary:(GPBUInt32Int32Dictionary *)dictionary;
98 - (instancetype)initWithDictionary:(GPBUInt32Int32Dictionary *)dictionary;
121 + (instancetype)dictionary; variable
127 + (instancetype)dictionaryWithDictionary:(GPBUInt32UInt64Dictionary *)dictionary;
133 - (instancetype)initWithDictionary:(GPBUInt32UInt64Dictionary *)dictionary;
156 + (instancetype)dictionary; variable
191 + (instancetype)dictionary; variable
226 + (instancetype)dictionary; variable
261 + (instancetype)dictionary; variable
297 + (instancetype)dictionary; variable
362 + (instancetype)dictionary; variable
397 + (instancetype)dictionary; variable
432 + (instancetype)dictionary; variable
467 + (instancetype)dictionary; variable
502 + (instancetype)dictionary; variable
537 + (instancetype)dictionary; variable
572 + (instancetype)dictionary; variable
607 + (instancetype)dictionary; variable
643 + (instancetype)dictionary; variable
708 + (instancetype)dictionary; variable
743 + (instancetype)dictionary; variable
778 + (instancetype)dictionary; variable
813 + (instancetype)dictionary; variable
848 + (instancetype)dictionary; variable
883 + (instancetype)dictionary; variable
918 + (instancetype)dictionary; variable
953 + (instancetype)dictionary; variable
989 + (instancetype)dictionary; variable
1054 + (instancetype)dictionary; variable
1089 + (instancetype)dictionary; variable
1124 + (instancetype)dictionary; variable
1159 + (instancetype)dictionary; variable
1194 + (instancetype)dictionary; variable
1229 + (instancetype)dictionary; variable
1264 + (instancetype)dictionary; variable
1299 + (instancetype)dictionary; variable
1335 + (instancetype)dictionary; variable
1400 + (instancetype)dictionary; variable
1435 + (instancetype)dictionary; variable
1470 + (instancetype)dictionary; variable
1505 + (instancetype)dictionary; variable
1540 + (instancetype)dictionary; variable
1575 + (instancetype)dictionary; variable
1610 + (instancetype)dictionary; variable
1645 + (instancetype)dictionary; variable
1681 + (instancetype)dictionary; variable
1746 + (instancetype)dictionary; variable
1781 + (instancetype)dictionary; variable
1816 + (instancetype)dictionary; variable
1851 + (instancetype)dictionary; variable
1886 + (instancetype)dictionary; variable
1921 + (instancetype)dictionary; variable
1956 + (instancetype)dictionary; variable
1991 + (instancetype)dictionary; variable
2027 + (instancetype)dictionary; variable
[all...]
/external/clang/test/PCH/
H A Dobjc_container.h19 NSMutableDictionary *dictionary; local
22 oldObject = dictionary[key];
24 dictionary[key] = newObject;
/external/toolchain-utils/mem_tests/
H A Dclean_data.py22 dictionary = dict() variable
26 dictionary[new_time] = line
28 for key in dictionary.keys():
29 output_file.write(dictionary[key])
/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:__anon6858::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.cc51 const DictionaryValue* dictionary; local
52 ASSERT_TRUE(type_names->GetAsDictionary(&dictionary));
57 ASSERT_TRUE(dictionary->GetString("1", &value));
/external/libchrome/dbus/
H A Dvalues_util.cc267 const base::DictionaryValue* dictionary = NULL; local
268 value.GetAsDictionary(&dictionary);
271 for (base::DictionaryValue::Iterator iter(*dictionary);
/external/libmojo/mojo/edk/js/
H A Ddrain_data.cc13 #include "gin/dictionary.h"
112 gin::Dictionary dictionary = gin::Dictionary::CreateEmpty(isolate_); local
113 dictionary.Set("result", result);
114 dictionary.Set("buffer", array_buffer);
115 v8::Handle<v8::Value> settled_value(ConvertToV8(isolate_, dictionary));
H A Dcore.cc15 #include "gin/dictionary.h"
43 gin::Dictionary dictionary = gin::Dictionary::CreateEmpty(isolate); local
47 dictionary.Set("result", result);
51 dictionary.Set("signalsState", v8::Null(isolate).As<v8::Value>());
57 dictionary.Set("signalsState", signalsStateDict);
60 return dictionary;
68 gin::Dictionary dictionary = gin::Dictionary::CreateEmpty(isolate); local
73 dictionary.Set("result", wmv.result);
75 dictionary.Set("index", wmv.index);
77 dictionary
98 gin::Dictionary dictionary = gin::Dictionary::CreateEmpty(args.isolate()); local
163 gin::Dictionary dictionary = gin::Dictionary::CreateEmpty(args.isolate()); local
187 gin::Dictionary dictionary = gin::Dictionary::CreateEmpty(args.isolate()); local
195 gin::Dictionary dictionary = gin::Dictionary::CreateEmpty(args.isolate()); local
240 gin::Dictionary dictionary = gin::Dictionary::CreateEmpty(args.isolate()); local
253 gin::Dictionary dictionary = gin::Dictionary::CreateEmpty(args.isolate()); local
267 gin::Dictionary dictionary = gin::Dictionary::CreateEmpty(args.isolate()); local
[all...]
/external/lz4/lib/
H A Dlz4.h245 * Use this function to load a static dictionary into LZ4_stream.
246 * Any previous data will be forgotten, only 'dictionary' will remain in memory.
248 * Return : dictionary size, in bytes (necessarily <= 64 KB)
250 LZ4LIB_API int LZ4_loadDict (LZ4_stream_t* streamPtr, const char* dictionary, int dictSize);
253 * Compress buffer content 'src', using data from previously compressed blocks as dictionary to improve compression ratio.
265 * dictionary is immediately usable, you can therefore call LZ4_compress_fast_continue().
266 * Return : saved dictionary size in bytes (necessarily <= dictSize), or 0 if error.
282 * Use this function to instruct where to find the dictionary.
286 LZ4LIB_API int LZ4_setStreamDecode (LZ4_streamDecode_t* LZ4_streamDecode, const char* dictionary, int dictSize);
339 const uint8_t* dictionary; member in struct:__anon13949
357 const unsigned char* dictionary; member in struct:__anon13951
[all...]
/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/protobuf/csharp/src/Google.Protobuf/
H A DJsonFormatter.cs338 IDictionary dictionary = (IDictionary) value;
339 return dictionary.Count == 0;
686 internal void WriteDictionary(TextWriter writer, IDictionary dictionary) argument
691 foreach (DictionaryEntry pair in dictionary)
716 throw new ArgumentException("Unhandled dictionary key type: " + pair.Key.GetType());
/external/v8/src/ic/arm64/
H A Dic-arm64.cc20 // elements: Property dictionary. It is not clobbered if a jump to the miss
38 // Probe the dictionary.
61 // elements: Property dictionary. It is not clobbered if a jump to the miss
77 // Probe the dictionary.
81 // If probing finds an entry in the dictionary check that the value
108 Register dictionary = x0; local
109 DCHECK(!dictionary.is(LoadDescriptor::ReceiverRegister()));
110 DCHECK(!dictionary.is(LoadDescriptor::NameRegister()));
113 __ Ldr(dictionary, FieldMemOperand(LoadDescriptor::ReceiverRegister(),
115 GenerateDictionaryLoad(masm, &slow, dictionary,
473 Register dictionary = x5; local
[all...]
/external/v8/src/runtime/
H A Druntime-object.cc60 // Attempt dictionary lookup.
61 GlobalDictionary* dictionary = receiver->global_dictionary(); local
62 int entry = dictionary->FindEntry(key);
64 DCHECK(dictionary->ValueAt(entry)->IsPropertyCell());
65 PropertyCell* cell = PropertyCell::cast(dictionary->ValueAt(entry));
75 // Attempt dictionary lookup.
76 NameDictionary* dictionary = receiver->property_dictionary(); local
77 int entry = dictionary->FindEntry(key);
79 (dictionary->DetailsAt(entry).type() == DATA)) {
80 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/ic/arm/
H A Dic-arm.cc24 // elements: Property dictionary. It is not clobbered if a jump to the miss
41 // dictionary.
45 // Probe the dictionary.
68 // elements: Property dictionary. It is not clobbered if a jump to the miss
83 // dictionary.
87 // Probe the dictionary.
91 // If probing finds an entry in the dictionary check that the value
118 Register dictionary = r0; local
119 DCHECK(!dictionary.is(LoadDescriptor::ReceiverRegister()));
120 DCHECK(!dictionary
510 Register dictionary = r5; local
[all...]
/external/v8/src/ic/ia32/
H A Dic-ia32.cc21 // Helper function used to load a property from a dictionary backing
23 // in the dictionary, so code at miss_label must always call a backup
33 // elements - holds the property dictionary on entry and is unchanged.
39 // r0 - used for the index into the property dictionary
41 // r1 - used to hold the capacity of the property dictionary.
47 // Probe the dictionary.
51 // If probing finds an entry in the dictionary, r0 contains the
52 // index into the dictionary. Check that the value is a normal
69 // Helper function used to store a property to a dictionary backing
71 // is in the dictionary, s
369 Register dictionary = eax; local
501 Register dictionary = receiver; local
[all...]
/external/v8/src/ic/mips/
H A Dic-mips.cc24 // elements: Property dictionary. It is not clobbered if a jump to the miss
43 // dictionary.
47 // Probe the dictionary.
71 // elements: Property dictionary. It is not clobbered if a jump to the miss
88 // dictionary.
92 // Probe the dictionary.
96 // If probing finds an entry in the dictionary check that the value
123 Register dictionary = a0; local
124 DCHECK(!dictionary.is(LoadDescriptor::ReceiverRegister()));
125 DCHECK(!dictionary
507 Register dictionary = t1; local
[all...]
/external/v8/src/ic/mips64/
H A Dic-mips64.cc24 // elements: Property dictionary. It is not clobbered if a jump to the miss
43 // dictionary.
47 // Probe the dictionary.
71 // elements: Property dictionary. It is not clobbered if a jump to the miss
88 // dictionary.
92 // Probe the dictionary.
96 // If probing finds an entry in the dictionary check that the value
122 Register dictionary = a0; local
123 DCHECK(!dictionary.is(LoadDescriptor::ReceiverRegister()));
124 DCHECK(!dictionary
510 Register dictionary = a5; local
[all...]
/external/v8/src/ic/ppc/
H A Dic-ppc.cc24 // elements: Property dictionary. It is not clobbered if a jump to the miss
41 // dictionary.
45 // Probe the dictionary.
71 // elements: Property dictionary. It is not clobbered if a jump to the miss
86 // dictionary.
90 // Probe the dictionary.
94 // If probing finds an entry in the dictionary check that the value
123 Register dictionary = r3; local
124 DCHECK(!dictionary.is(LoadDescriptor::ReceiverRegister()));
125 DCHECK(!dictionary
507 Register dictionary = r8; local
[all...]

Completed in 513 milliseconds

123