Home
last modified time | relevance | path

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

12345678910>>...43

/external/protobuf/csharp/compatibility_tests/v3.0.0/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/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/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()
211 dictionary["$ebx"] = last_frame->context.ebx; in GetCallerByWindowsFrameInfo()
217 dictionary[".cbCalleeParams"] = last_frame_callee_parameter_size; in GetCallerByWindowsFrameInfo()
218 dictionary[".cbSavedRegs"] = last_frame_info->saved_register_size; in GetCallerByWindowsFrameInfo()
219 dictionary[".cbLocals"] = last_frame_info->local_size; in GetCallerByWindowsFrameInfo()
259 dictionary[".cbParams"] = last_frame_info->parameter_size; in GetCallerByWindowsFrameInfo()
369 dictionary[".raSearchStart"] = raSearchStart; in GetCallerByWindowsFrameInfo()
370 dictionary[".raSearch"] = raSearchStart; 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/libbrillo/brillo/
Dvariant_dictionary_test.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/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/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 *val* into the dictionary *p* with a key of *key*. *key* must be
75 Insert *val* into the dictionary *p* using *key* as a key. *key* should
[all …]
/external/brotli/java/org/brotli/dec/
DDictionaryData.java36 private static void unpackDictionaryData(ByteBuffer dictionary, String data0, String data1, in unpackDictionaryData() argument
40 if (dict.length != dictionary.capacity()) { in unpackDictionaryData()
61 dictionary.put(dict); in unpackDictionaryData()
65 ByteBuffer dictionary = ByteBuffer.allocateDirect(122784);
67 unpackDictionaryData(dictionary, DATA0, DATA1, SKIP_FLIP, sizeBits, SIZE_BITS_DATA); in unpackDictionaryData() argument
68 Utils.flipBuffer(dictionary);
69 Dictionary.setData(dictionary.asReadOnlyBuffer(), sizeBits); in dictionary.asReadOnlyBuffer()
/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/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
Dtransitive_dependencies.py42 def mako_plugin(dictionary): argument
49 libs = dictionary.get('libs')
51 for target_name, target_list in dictionary.items():
56 python_dependencies = dictionary.get('python_dependencies')
/external/cldr/tools/cldr-code/src/main/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/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/selinux/libselinux/fuzzers/
DAndroid.bp53 dictionary: "selabel_lookup_fuzzer.dict",
60 dictionary: "selinux_check_access_fuzzer.dict",
67 dictionary: "selinux_android_restorecon_fuzzer.dict",
74 dictionary: "selinux_android_setcon_fuzzer.dict",
81 dictionary: "setfilecon_fuzzer.dict",
88 dictionary: "lsetfilecon_fuzzer.dict",
95 dictionary: "string_to_security_class_fuzzer.dict",
/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/zstd/tests/regression/
Dmethod.c41 data_buffer_t dictionary; /**< The dictionary. */ member
61 state->dictionary = data_buffer_get_dict(data); in buffer_state_create()
87 if (config->use_dictionary && state->dictionary.data == NULL) { in buffer_state_bad()
175 config_get_zstd_params(config, input.size, state->dictionary.size); in compress_cctx_compress()
184 config->use_dictionary ? state->dictionary.data : NULL, in compress_cctx_compress()
185 config->use_dictionary ? state->dictionary.size : 0, in compress_cctx_compress()
194 state->dictionary.data, in compress_cctx_compress()
195 state->dictionary.size, in compress_cctx_compress()
218 state->dictionary.data, in compress_cctx_compress()
219 state->dictionary.size); in compress_cctx_compress()
[all …]
/external/protobuf/objectivec/
DGPBDictionary.h82 - (instancetype)initWithDictionary:(GPBUInt32UInt32Dictionary *)dictionary;
177 - (instancetype)initWithDictionary:(GPBUInt32Int32Dictionary *)dictionary;
272 - (instancetype)initWithDictionary:(GPBUInt32UInt64Dictionary *)dictionary;
367 - (instancetype)initWithDictionary:(GPBUInt32Int64Dictionary *)dictionary;
462 - (instancetype)initWithDictionary:(GPBUInt32BoolDictionary *)dictionary;
557 - (instancetype)initWithDictionary:(GPBUInt32FloatDictionary *)dictionary;
652 - (instancetype)initWithDictionary:(GPBUInt32DoubleDictionary *)dictionary;
762 - (instancetype)initWithDictionary:(GPBUInt32EnumDictionary *)dictionary;
909 - (instancetype)initWithDictionary:(GPBUInt32ObjectDictionary *)dictionary;
1003 - (instancetype)initWithDictionary:(GPBInt32UInt32Dictionary *)dictionary;
[all …]
/external/rust/crates/grpcio-sys/grpc/tools/buildgen/plugins/
Dlist_protos.py24 def mako_plugin(dictionary): argument
34 libs = dictionary.get('libs', [])
35 targets = dictionary.get('targets', [])
53 dictionary['protos'] = protos
Dtransitive_dependencies.py47 def mako_plugin(dictionary): argument
54 lib_map = {lib['name']: lib for lib in dictionary.get('libs')}
56 for target_name, target_list in dictionary.items():
65 python_dependencies = dictionary.get('python_dependencies')

12345678910>>...43