Home
last modified time | relevance | path

Searched refs:dictionary (Results 1 – 25 of 873) sorted by relevance

12345678910>>...35

/external/protobuf/csharp/src/Google.Protobuf.Test/Collections/
DMapFieldTest.cs315 IDictionary dictionary = map; in IDictionary_Add()
316 dictionary.Add("a", "b"); in IDictionary_Add()
318 Assert.Throws<ArgumentException>(() => dictionary.Add("a", "duplicate")); in IDictionary_Add()
319 Assert.Throws<InvalidCastException>(() => dictionary.Add(new object(), "key is bad")); in IDictionary_Add()
320 Assert.Throws<InvalidCastException>(() => dictionary.Add("value is bad", new object())); in IDictionary_Add()
327 IDictionary dictionary = map; in IDictionary_Contains()
329 Assert.IsFalse(dictionary.Contains("a")); in IDictionary_Contains()
330 Assert.IsFalse(dictionary.Contains(5)); in IDictionary_Contains()
332 Assert.IsFalse(dictionary.Contains(new DictionaryEntry("x", "y"))); in IDictionary_Contains()
333 Assert.IsTrue(dictionary.Contains("x")); in IDictionary_Contains()
[all …]
/external/python/oauth2client/tests/contrib/
Dtest_dictionary_storage.py43 dictionary = {}
45 storage = dictionary_storage.DictionaryStorage(dictionary, key)
47 self.assertEqual(dictionary, storage._dictionary)
52 dictionary = {}
54 storage = dictionary_storage.DictionaryStorage(dictionary, key)
58 dictionary, key, lock=lock)
63 dictionary = {}
65 storage = dictionary_storage.DictionaryStorage(dictionary, key)
69 dictionary[key] = credentials.to_json()
80 dictionary = {}
[all …]
/external/libaom/libaom/av1/decoder/
Daccounting.c35 AccountingDictionary *dictionary; in aom_accounting_dictionary_lookup() local
36 dictionary = &accounting->syms.dictionary; in aom_accounting_dictionary_lookup()
39 if (strcmp(dictionary->strs[accounting->hash_dictionary[hash]], str) == 0) { in aom_accounting_dictionary_lookup()
46 assert(dictionary->num_strs + 1 < MAX_SYMBOL_TYPES); in aom_accounting_dictionary_lookup()
47 accounting->hash_dictionary[hash] = dictionary->num_strs; in aom_accounting_dictionary_lookup()
49 dictionary->strs[dictionary->num_strs] = malloc(len + 1); in aom_accounting_dictionary_lookup()
50 snprintf(dictionary->strs[dictionary->num_strs], len + 1, "%s", str); in aom_accounting_dictionary_lookup()
51 dictionary->num_strs++; in aom_accounting_dictionary_lookup()
52 return dictionary->num_strs - 1; in aom_accounting_dictionary_lookup()
60 accounting->syms.dictionary.num_strs = 0; in aom_accounting_init()
[all …]
/external/protobuf/objectivec/
DGPBDictionary.h51 + (instancetype)dictionary;
57 + (instancetype)dictionaryWithDictionary:(GPBUInt32UInt32Dictionary *)dictionary;
63 - (instancetype)initWithDictionary:(GPBUInt32UInt32Dictionary *)dictionary;
86 + (instancetype)dictionary;
92 + (instancetype)dictionaryWithDictionary:(GPBUInt32Int32Dictionary *)dictionary;
98 - (instancetype)initWithDictionary:(GPBUInt32Int32Dictionary *)dictionary;
121 + (instancetype)dictionary;
127 + (instancetype)dictionaryWithDictionary:(GPBUInt32UInt64Dictionary *)dictionary;
133 - (instancetype)initWithDictionary:(GPBUInt32UInt64Dictionary *)dictionary;
156 + (instancetype)dictionary;
[all …]
/external/google-breakpad/src/processor/
Dstackwalker_x86.cc206 PostfixEvaluator<uint32_t>::DictionaryType dictionary; in GetCallerByWindowsFrameInfo() local
208 dictionary["$ebp"] = last_frame->context.ebp; in GetCallerByWindowsFrameInfo()
209 dictionary["$esp"] = last_frame->context.esp; in GetCallerByWindowsFrameInfo()
215 dictionary[".cbCalleeParams"] = last_frame_callee_parameter_size; in GetCallerByWindowsFrameInfo()
216 dictionary[".cbSavedRegs"] = last_frame_info->saved_register_size; in GetCallerByWindowsFrameInfo()
217 dictionary[".cbLocals"] = last_frame_info->local_size; in GetCallerByWindowsFrameInfo()
257 dictionary[".cbParams"] = last_frame_info->parameter_size; in GetCallerByWindowsFrameInfo()
359 dictionary[".raSearchStart"] = raSearchStart; in GetCallerByWindowsFrameInfo()
360 dictionary[".raSearch"] = raSearchStart; in GetCallerByWindowsFrameInfo()
365 PostfixEvaluator<uint32_t>(&dictionary, memory_); in GetCallerByWindowsFrameInfo()
[all …]
Dpostfix_evaluator.h98 PostfixEvaluator(DictionaryType *dictionary, const MemoryRegion *memory) in PostfixEvaluator() argument
99 : dictionary_(dictionary), memory_(memory), stack_() {} in PostfixEvaluator()
116 DictionaryType* dictionary() const { return dictionary_; } in dictionary() function
119 void set_dictionary(DictionaryType *dictionary) {dictionary_ = dictionary; } in set_dictionary() argument
/external/libtextclassifier/utils/zlib/
Dzlib.cc24 const unsigned char* dictionary, const unsigned int dictionary_size) { in Instance() argument
26 new ZlibDecompressor(dictionary, dictionary_size)); in Instance()
33 ZlibDecompressor::ZlibDecompressor(const unsigned char* dictionary, in ZlibDecompressor() argument
43 if (dictionary != nullptr && in ZlibDecompressor()
44 inflateSetDictionary(&stream_, dictionary, dictionary_size) != Z_OK) { in ZlibDecompressor()
114 const unsigned char* dictionary, const unsigned int dictionary_size) { in Instance() argument
116 new ZlibCompressor(dictionary, dictionary_size)); in Instance()
123 ZlibCompressor::ZlibCompressor(const unsigned char* dictionary, in ZlibCompressor() argument
136 if (dictionary != nullptr && in ZlibCompressor()
137 deflateSetDictionary(&stream_, dictionary, dictionary_size) != Z_OK) { in ZlibCompressor()
[all …]
Dzlib.h33 const unsigned char* dictionary = nullptr,
51 ZlibDecompressor(const unsigned char* dictionary,
60 const unsigned char* dictionary = nullptr,
67 bool GetDictionary(std::vector<unsigned char>* dictionary);
70 explicit ZlibCompressor(const unsigned char* dictionary = nullptr,
/external/libbrillo/brillo/
Dvariant_dictionary_unittest.cc15 VariantDictionary dictionary; in TEST() local
16 dictionary.emplace("a", 1); in TEST()
17 dictionary.emplace("b", "string"); in TEST()
20 EXPECT_EQ(1, GetVariantValueOrDefault<int>(dictionary, "a")); in TEST()
21 EXPECT_EQ("string", GetVariantValueOrDefault<const char*>(dictionary, "b")); in TEST()
24 EXPECT_EQ("", GetVariantValueOrDefault<std::string>(dictionary, "missing")); in TEST()
25 EXPECT_EQ(0, GetVariantValueOrDefault<int>(dictionary, "missing")); in TEST()
/external/python/cpython2/Doc/c-api/
Ddict.rst8 .. index:: object: dictionary
13 This subtype of :c:type:`PyObject` represents a Python dictionary object.
22 This instance of :c:type:`PyTypeObject` represents the Python dictionary
46 Return a new empty dictionary, or *NULL* on failure.
53 dictionary for non-dynamic class types.
60 Empty an existing dictionary of all key-value pairs.
65 Determine if dictionary *p* contains *key*. If an item in *p* is matches
74 Return a new dictionary that contains the same key-value pairs as *p*.
81 Insert *value* into the dictionary *p* with a key of *key*. *key* must be
90 Insert *value* into the dictionary *p* using *key* as a key. *key* should
[all …]
/external/python/cpython3/Doc/c-api/
Ddict.rst8 .. index:: object: dictionary
13 This subtype of :c:type:`PyObject` represents a Python dictionary object.
18 This instance of :c:type:`PyTypeObject` represents the Python dictionary
36 Return a new empty dictionary, or *NULL* on failure.
43 prevent modification of the dictionary for non-dynamic class types.
48 Empty an existing dictionary of all key-value pairs.
53 Determine if dictionary *p* contains *key*. If an item in *p* is matches
60 Return a new dictionary that contains the same key-value pairs as *p*.
65 Insert *value* into the dictionary *p* with a key of *key*. *key* must be
74 Insert *value* into the dictionary *p* using *key* as a key. *key* should
[all …]
/external/brotli/fetch-spec/
Dshared-brotli-fetch-spec.txt8 The goal is to add support for custom dictionaries for Brotli. A dictionary is used
9 to improve compression. A client can download a dictionary from a server and then
10 use it to decompress resources compressed with this dictionary.
12 This document specifies how the client and server negotiate the dictionary over HTTP.
14 with a URL of the dictionary. The browser downloads the dictionary from the URL and
16 which the client uses to verify the dictionary. Caching, CORS, and other existing
17 mechanisms are used. A dictionary can be a pre-made static dictionary, but does not
31 shared dictionary.
48 Shared-Brotli-dictionary fetch given dictionaryId and request.
55 [NOTE-BOX] If the dictionary is still being fetched, which happens in
[all …]
/external/brotli/c/enc/
Dstatic_dict.c32 static BROTLI_INLINE size_t DictMatchLength(const BrotliDictionary* dictionary, in DictMatchLength() argument
37 const size_t offset = dictionary->offsets_by_length[len] + len * id; in DictMatchLength()
38 return FindMatchLengthWithLimit(&dictionary->data[offset], data, in DictMatchLength()
42 static BROTLI_INLINE BROTLI_BOOL IsMatch(const BrotliDictionary* dictionary, in IsMatch() argument
47 const size_t offset = dictionary->offsets_by_length[w.len] + in IsMatch()
49 const uint8_t* dict = &dictionary->data[offset]; in IsMatch()
78 const BrotliEncoderDictionary* dictionary, const uint8_t* data, in BrotliFindAllStaticDictionaryMatches() argument
82 size_t offset = dictionary->buckets[Hash(data)]; in BrotliFindAllStaticDictionaryMatches()
85 DictWord w = dictionary->dict_words[offset++]; in BrotliFindAllStaticDictionaryMatches()
87 const size_t n = (size_t)1 << dictionary->words->size_bits_by_length[l]; in BrotliFindAllStaticDictionaryMatches()
[all …]
/external/brotli/java/org/brotli/dec/
DDictionaryData.java22 ByteBuffer dictionary, String data0, String data1, String skipFlip) { in unpackDictionaryData() argument
25 if (dict.length != dictionary.capacity()) { in unpackDictionaryData()
42 dictionary.put(dict); in unpackDictionaryData()
46 ByteBuffer dictionary = ByteBuffer.allocateDirect(122784);
47 unpackDictionaryData(dictionary, DATA0, DATA1, SKIP_FLIP); in unpackDictionaryData() argument
48 Utils.flipBuffer(dictionary);
49 Dictionary.setData(dictionary.asReadOnlyBuffer()); in dictionary.asReadOnlyBuffer()
/external/grpc-grpc/tools/buildgen/plugins/
Dgenerate_vsprojects.py25 def mako_plugin(dictionary): argument
32 libs = dictionary.get('libs', [])
33 targets = dictionary.get('targets', [])
80 packages = dictionary.get('vspackages', [])
83 dictionary['vsprojects'] = projects
84 dictionary['vsproject_dict'] = project_dict
85 dictionary['vspackages_dict'] = packages_dict
Dexpand_filegroups.py47 def mako_plugin(dictionary): argument
55 libs = dictionary.get('libs')
56 targets = dictionary.get('targets')
57 filegroups_list = dictionary.get('filegroups')
107 for thing in dictionary['libs'] + dictionary['targets'] + dictionary['filegroups']:
127 for tgt in dictionary['targets']:
Dlist_protos.py24 def mako_plugin(dictionary): argument
34 libs = dictionary.get('libs', [])
35 targets = dictionary.get('targets', [])
53 dictionary['protos'] = protos
/external/webrtc/webrtc/examples/objc/AppRTCDemo/
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];
/external/v8/src/objects/
Dliteral-objects.cc131 Isolate* isolate, Handle<NameDictionary> dictionary, Handle<Name> name, in DictionaryAddNoUpdateNextEnumerationIndex() argument
134 isolate, dictionary, name, value, details, entry_out); in DictionaryAddNoUpdateNextEnumerationIndex()
138 Isolate* isolate, Handle<NumberDictionary> dictionary, uint32_t element, in DictionaryAddNoUpdateNextEnumerationIndex() argument
142 return NumberDictionary::Add(isolate, dictionary, element, value, details, in DictionaryAddNoUpdateNextEnumerationIndex()
146 void DictionaryUpdateMaxNumberKey(Handle<NameDictionary> dictionary, in DictionaryUpdateMaxNumberKey() argument
151 void DictionaryUpdateMaxNumberKey(Handle<NumberDictionary> dictionary, in DictionaryUpdateMaxNumberKey() argument
153 dictionary->UpdateMaxNumberKey(element, Handle<JSObject>()); in DictionaryUpdateMaxNumberKey()
154 dictionary->set_requires_slow_elements(); in DictionaryUpdateMaxNumberKey()
170 void AddToDictionaryTemplate(Isolate* isolate, Handle<Dictionary> dictionary, in AddToDictionaryTemplate() argument
174 int entry = dictionary->FindEntry(isolate, key); in AddToDictionaryTemplate()
[all …]
Ddictionary.h52 Isolate* isolate, Handle<Derived> dictionary, int entry);
56 Isolate* isolate, Handle<Derived> dictionary) { in Shrink() argument
57 return DerivedHashTable::Shrink(isolate, dictionary); in Shrink()
77 Isolate* isolate, Handle<Derived> dictionary, Key key,
83 Handle<Derived> dictionary,
163 static void CollectKeysTo(Handle<Derived> dictionary, KeyAccumulator* keys);
167 Handle<Derived> dictionary);
172 static void CopyEnumKeysTo(Isolate* isolate, Handle<Derived> dictionary,
178 Handle<Derived> dictionary, int n);
181 Isolate* isolate, Handle<Derived> dictionary, Key key,
[all …]
/external/brotli/scripts/dictionary/
Dstep-02-rfc-to-bin.py16 dictionary = [] variable
22 dictionary.append(int(data[2 * i : 2 * i + 2], 16))
23 if len(dictionary) == 122784:
32 output.write(bytearray(dictionary))
34 print("Parsed and saved " + str(len(dictionary)) + " bytes to " + bin_path)
/external/cldr/tools/java/org/unicode/cldr/util/
DDictionaryStringByteConverter.java19 private final Dictionary<String> dictionary; field in DictionaryStringByteConverter
27 return dictionary; in getDictionary()
30 …public DictionaryStringByteConverter(Dictionary<String> dictionary, StringByteConverter byteMaker)… in DictionaryStringByteConverter() argument
32 this.dictionary = dictionary; in DictionaryStringByteConverter()
33 matcher = dictionary.getMatcher(); in DictionaryStringByteConverter()
37 for (Iterator<Entry<CharSequence, String>> m = dictionary.getMapping(); m.hasNext();) { in DictionaryStringByteConverter()
118 for (Iterator<Entry<CharSequence, String>> m = dictionary.getMapping(); m.hasNext();) { in fromBytes()
/external/protobuf/python/google/protobuf/
Dservice_reflection.py64 def __init__(cls, name, bases, dictionary): argument
77 if GeneratedServiceType._DESCRIPTOR_KEY not in dictionary:
79 descriptor = dictionary[GeneratedServiceType._DESCRIPTOR_KEY]
94 def __init__(cls, name, bases, dictionary): argument
104 super(GeneratedServiceStubType, cls).__init__(name, bases, dictionary)
107 if GeneratedServiceStubType._DESCRIPTOR_KEY not in dictionary:
109 descriptor = dictionary[GeneratedServiceStubType._DESCRIPTOR_KEY]
/external/grpc-grpc/tools/buildgen/
Dmako_renderer.py60 dictionary = {}
107 dictionary = pickle.load(dict_file)
125 dictionary[k] = bunch.to_bunch(v)
129 pickle.dump(dictionary, dict_file)
145 template.render_context(Context(output_file, **dictionary))
159 for el in dictionary[src['foreach']]:
161 args = dict(dictionary)
170 args = dict(dictionary)
/external/toolchain-utils/mem_tests/
Dclean_data.py22 dictionary = dict() variable
26 dictionary[new_time] = line
28 for key in dictionary.keys():
29 output_file.write(dictionary[key])

12345678910>>...35