/external/protobuf/csharp/compatibility_tests/v3.0.0/src/Google.Protobuf.Test/Collections/ |
D | MapFieldTest.cs | 315 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/llvm-project/lldb/examples/scripting/ |
D | dictionary.c | 82 void populate_dictionary(tree_node **dictionary, char *filename) { in populate_dictionary() argument 91 if (*dictionary == NULL) { in populate_dictionary() 96 *dictionary = new_node; in populate_dictionary() 98 insert(*dictionary, new_word); in populate_dictionary() 106 int find_word(tree_node *dictionary, char *word) { in find_word() argument 107 if (!word || !dictionary) in find_word() 110 int compare_value = strcmp(word, dictionary->word); in find_word() 115 return find_word(dictionary->left, word); in find_word() 117 return find_word(dictionary->right, word); in find_word() 122 void print_tree(tree_node *dictionary) { in print_tree() argument [all …]
|
/external/protobuf/csharp/src/Google.Protobuf.Test/Collections/ |
D | MapFieldTest.cs | 315 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/ |
D | test_dictionary_storage.py | 43 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/ |
D | accounting.c | 35 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/ |
D | stackwalker_x86.cc | 206 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 …]
|
/external/llvm-project/lldb/test/API/types/ |
D | HideTestFailures.py | 48 self.build(dictionary=d) 49 self.setTearDownCleanup(dictionary=d) 55 self.build(dictionary=d) 56 self.setTearDownCleanup(dictionary=d) 62 self.build(dictionary=d) 63 self.setTearDownCleanup(dictionary=d) 69 self.build(dictionary=d) 70 self.setTearDownCleanup(dictionary=d) 76 self.build(dictionary=d) 77 self.setTearDownCleanup(dictionary=d)
|
/external/libbrillo/brillo/ |
D | variant_dictionary_test.cc | 15 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/llvm-project/clang/test/SemaObjC/ |
D | dictionary-literal-duplicates.m | 29 @"foo" : @0, // expected-warning{{duplicate key in dictionary literal}} 30 @("foo") : @0, // expected-warning{{duplicate key in dictionary literal}} 34 @YES : @0, // expected-warning{{duplicate key in dictionary literal}} 35 @'\1' : @0, // expected-warning{{duplicate key in dictionary literal}} 36 @1 : @0, // expected-warning{{duplicate key in dictionary literal}} 37 @1ul : @0, // expected-warning{{duplicate key in dictionary literal}} 38 @1ll : @0, // expected-warning{{duplicate key in dictionary literal}} 40 @true : @0, // expected-warning{{duplicate key in dictionary literal}} 46 @-1ll : @0, // expected-warning{{duplicate key in dictionary literal}} 47 @(NO-YES) : @0, // expected-warning{{duplicate key in dictionary literal}} [all …]
|
/external/python/cpython2/Doc/c-api/ |
D | dict.rst | 8 .. 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/ |
D | shared-brotli-fetch-spec.txt | 8 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/java/org/brotli/dec/ |
D | DictionaryData.java | 36 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/python/cpython3/Doc/c-api/ |
D | dict.rst | 8 .. 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/c/enc/ |
D | static_dict.c | 32 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/ |
D | generate_vsprojects.py | 25 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
|
D | expand_filegroups.py | 47 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']:
|
/external/rust/crates/grpcio-sys/grpc/tools/buildgen/plugins/ |
D | generate_vsprojects.py | 25 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
|
D | expand_filegroups.py | 47 def mako_plugin(dictionary): argument 55 libs = dictionary.get('libs') 56 targets = dictionary.get('targets') 57 filegroups_list = dictionary.get('filegroups') 110 for thing in dictionary['libs'] + dictionary['targets'] + dictionary[ 132 for tgt in dictionary['targets']:
|
/external/llvm-project/lldb/packages/Python/lldbsuite/test/builders/ |
D | builder.py | 134 dictionary=None, argument 148 self.getCmdLine(dictionary) 160 dictionary=None, argument 174 self.getCmdLine(dictionary) 185 dictionary=None, argument 199 self.getCmdLine(dictionary) 210 dictionary=None, argument 224 self.getCmdLine(dictionary) 235 dictionary=None, argument 241 def cleanup(self, sender=None, dictionary=None): argument
|
/external/brotli/scripts/dictionary/ |
D | step-02-rfc-to-bin.py | 16 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/ |
D | DictionaryStringByteConverter.java | 19 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/llvm-project/lldb/test/API/python_api/target/ |
D | TestTargetAPI.py | 42 self.build(dictionary=d) 43 self.setTearDownCleanup(dictionary=d) 50 self.build(dictionary=d) 51 self.setTearDownCleanup(dictionary=d) 59 self.build(dictionary=d) 60 self.setTearDownCleanup(dictionary=d) 79 self.build(dictionary=d) 80 self.setTearDownCleanup(dictionary=d) 88 self.build(dictionary=d) 89 self.setTearDownCleanup(dictionary=d) [all …]
|
/external/llvm-project/lldb/test/API/commands/expression/char/ |
D | TestExprsChar.py | 10 def do_test(self, dictionary=None): argument 12 self.build(dictionary=dictionary) 31 self.do_test(dictionary={'CFLAGS_EXTRAS': '-fsigned-char'}) 45 self.do_test(dictionary={'CFLAGS_EXTRAS': '-funsigned-char'})
|
/external/selinux/libselinux/fuzzers/ |
D | Android.bp | 53 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/llvm-project/lldb/docs/use/ |
D | python.rst | 20 We have a simple C program (dictionary.c) that reads in a text file, 39 % ./dictionary Romeo-and-Juliet.txt 116 "FindVariable" on the lldb.frame object to give us our dictionary 121 root = lldb.frame.FindVariable ("dictionary") 124 current frame to find the variable named "dictionary" and return it. We then 182 is in our tree or not. To actually use it in LLDB on our dictionary program, 188 (lldb) process attach -n "dictionary" 198 * thread #1: tid = 0x2c03, 0x0000000100001830 dictionary`find_word + 16 199 at dictionary.c:105, stop reason = breakpoint 1.1 200 frame #0: 0x0000000100001830 dictionary`find_word + 16 at dictionary.c:105 [all …]
|