Home
last modified time | relevance | path

Searched refs:dict (Results 1 – 25 of 3425) sorted by relevance

12345678910>>...137

/external/google-breakpad/src/common/
Dlong_string_dictionary_unittest.cc42 LongStringDictionary dict; in TEST() local
45 dict.SetKeyValue("key1", "value1"); in TEST()
46 dict.SetKeyValue("key2", "value2"); in TEST()
47 dict.SetKeyValue("key3", "value3"); in TEST()
49 EXPECT_EQ("value1", dict.GetValueForKey("key1")); in TEST()
50 EXPECT_EQ("value2", dict.GetValueForKey("key2")); in TEST()
51 EXPECT_EQ("value3", dict.GetValueForKey("key3")); in TEST()
52 EXPECT_EQ(3u, dict.GetCount()); in TEST()
54 EXPECT_EQ("", dict.GetValueForKey("key4")); in TEST()
57 dict.RemoveKey("key3"); in TEST()
[all …]
/external/protobuf/objectivec/Tests/
DGPBDictionaryTests+Int32.m85 GPBInt32UInt32Dictionary *dict = [[GPBInt32UInt32Dictionary alloc] init];
86 XCTAssertNotNil(dict);
87 XCTAssertEqual(dict.count, 0U);
88 XCTAssertFalse([dict getUInt32:NULL forKey:11]);
89 [dict enumerateKeysAndUInt32sUsingBlock:^(int32_t aKey, uint32_t aValue, BOOL *stop) {
93 [dict release];
97 GPBInt32UInt32Dictionary *dict = [[GPBInt32UInt32Dictionary alloc] init];
98 [dict setUInt32:100U forKey:11];
99 XCTAssertNotNil(dict);
100 XCTAssertEqual(dict.count, 1U);
[all …]
DGPBDictionaryTests+String.m85 GPBStringUInt32Dictionary *dict = [[GPBStringUInt32Dictionary alloc] init];
86 XCTAssertNotNil(dict);
87 XCTAssertEqual(dict.count, 0U);
88 XCTAssertFalse([dict getUInt32:NULL forKey:@"foo"]);
89 [dict enumerateKeysAndUInt32sUsingBlock:^(NSString *aKey, uint32_t aValue, BOOL *stop) {
93 [dict release];
97 GPBStringUInt32Dictionary *dict = [[GPBStringUInt32Dictionary alloc] init];
98 [dict setUInt32:100U forKey:@"foo"];
99 XCTAssertNotNil(dict);
100 XCTAssertEqual(dict.count, 1U);
[all …]
DGPBDictionaryTests+UInt32.m85 GPBUInt32UInt32Dictionary *dict = [[GPBUInt32UInt32Dictionary alloc] init];
86 XCTAssertNotNil(dict);
87 XCTAssertEqual(dict.count, 0U);
88 XCTAssertFalse([dict getUInt32:NULL forKey:1U]);
89 [dict enumerateKeysAndUInt32sUsingBlock:^(uint32_t aKey, uint32_t aValue, BOOL *stop) {
93 [dict release];
97 GPBUInt32UInt32Dictionary *dict = [[GPBUInt32UInt32Dictionary alloc] init];
98 [dict setUInt32:100U forKey:1U];
99 XCTAssertNotNil(dict);
100 XCTAssertEqual(dict.count, 1U);
[all …]
DGPBDictionaryTests+UInt64.m85 GPBUInt64UInt32Dictionary *dict = [[GPBUInt64UInt32Dictionary alloc] init];
86 XCTAssertNotNil(dict);
87 XCTAssertEqual(dict.count, 0U);
88 XCTAssertFalse([dict getUInt32:NULL forKey:31ULL]);
89 [dict enumerateKeysAndUInt32sUsingBlock:^(uint64_t aKey, uint32_t aValue, BOOL *stop) {
93 [dict release];
97 GPBUInt64UInt32Dictionary *dict = [[GPBUInt64UInt32Dictionary alloc] init];
98 [dict setUInt32:100U forKey:31ULL];
99 XCTAssertNotNil(dict);
100 XCTAssertEqual(dict.count, 1U);
[all …]
DGPBDictionaryTests+Int64.m85 GPBInt64UInt32Dictionary *dict = [[GPBInt64UInt32Dictionary alloc] init];
86 XCTAssertNotNil(dict);
87 XCTAssertEqual(dict.count, 0U);
88 XCTAssertFalse([dict getUInt32:NULL forKey:21LL]);
89 [dict enumerateKeysAndUInt32sUsingBlock:^(int64_t aKey, uint32_t aValue, BOOL *stop) {
93 [dict release];
97 GPBInt64UInt32Dictionary *dict = [[GPBInt64UInt32Dictionary alloc] init];
98 [dict setUInt32:100U forKey:21LL];
99 XCTAssertNotNil(dict);
100 XCTAssertEqual(dict.count, 1U);
[all …]
DGPBDictionaryTests+Bool.m54 GPBBoolUInt32Dictionary *dict = [[GPBBoolUInt32Dictionary alloc] init];
55 XCTAssertNotNil(dict);
56 XCTAssertEqual(dict.count, 0U);
57 XCTAssertFalse([dict getUInt32:NULL forKey:YES]);
58 [dict enumerateKeysAndUInt32sUsingBlock:^(BOOL aKey, uint32_t aValue, BOOL *stop) {
62 [dict release];
66 GPBBoolUInt32Dictionary *dict = [[GPBBoolUInt32Dictionary alloc] init];
67 [dict setUInt32:100U forKey:YES];
68 XCTAssertNotNil(dict);
69 XCTAssertEqual(dict.count, 1U);
[all …]
/external/fonttools/Tests/ufoLib/
DtestSupport.py93 if isinstance(value, dict):
111 if isinstance(value, dict):
129 if isinstance(value, dict):
313 dict(rangeMaxPPEM=10, rangeGaspBehavior=[0]),
314 dict(rangeMaxPPEM=20, rangeGaspBehavior=[1]),
315 dict(rangeMaxPPEM=30, rangeGaspBehavior=[2]),
316 dict(rangeMaxPPEM=40, rangeGaspBehavior=[3]),
317 dict(rangeMaxPPEM=50, rangeGaspBehavior=[0, 1, 2, 3]),
318 dict(rangeMaxPPEM=0xFFFF, rangeGaspBehavior=[0])
345 dict(nameID=1, platformID=1, encodingID=1, languageID=1, string="Name Record."),
[all …]
/external/libxml2/
Ddict.c71 #define xmlDictComputeKey(dict, name, len) \ argument
72 (((dict)->size == MIN_DICT_SIZE) ? \
73 xmlDictComputeFastKey(name, len, (dict)->seed) : \
74 xmlDictComputeBigKey(name, len, (dict)->seed))
76 #define xmlDictComputeQKey(dict, prefix, plen, name, len) \ argument
78 (xmlDictComputeKey(dict, name, len)) : \
79 (((dict)->size == MIN_DICT_SIZE) ? \
80 xmlDictComputeFastQKey(prefix, plen, name, len, (dict)->seed) : \
81 xmlDictComputeBigQKey(prefix, plen, name, len, (dict)->seed)))
84 #define xmlDictComputeKey(dict, name, len) \ argument
[all …]
/external/llvm-project/lldb/source/Host/macosx/cfcpp/
DCFCMutableDictionary.cpp31 CFMutableDictionaryRef dict = get(); in GetCount() local
32 if (dict) in GetCount()
33 return ::CFDictionaryGetCount(dict); in GetCount()
40 CFMutableDictionaryRef dict = get(); in GetCountOfKey() local
41 if (dict) in GetCountOfKey()
42 return ::CFDictionaryGetCountOfKey(dict, key); in GetCountOfKey()
49 CFMutableDictionaryRef dict = get(); in GetCountOfValue() local
50 if (dict) in GetCountOfValue()
51 return ::CFDictionaryGetCountOfValue(dict, value); in GetCountOfValue()
57 CFMutableDictionaryRef dict = get(); in GetKeysAndValues() local
[all …]
/external/llvm-project/clang/test/Analysis/Inputs/expected-plists/
Dmalloc-plist.c.plist2 <dict>
6 <dict>
9 <dict>
13 </dict>
14 <dict>
18 </dict>
22 <dict>
26 </dict>
27 <dict>
31 </dict>
[all …]
Dlambda-notes.cpp.plist2 <dict>
6 <dict>
9 <dict>
13 </dict>
14 <dict>
18 </dict>
22 <dict>
26 </dict>
27 <dict>
31 </dict>
[all …]
/external/tensorflow/tensorflow/python/ops/ragged/
Dragged_const_op_test.py39 dict(pylist=b'x', expected_shape=()),
43 dict(pylist=[1, 2, 3], expected_shape=(3,)),
47 dict(pylist=[[1, 2, 3], [4], [5, 6]], expected_shape=(3, None)),
48 dict(pylist=[[1, 2, 3], [4, 5, 6], [7, 8, 9]], expected_shape=(3, None)),
52 dict(
55 dict(
59 dict(
63 dict(
69 dict(
73 dict(
[all …]
Dragged_constant_value_op_test.py37 dict(pylist='x', expected_shape=()),
41 dict(pylist=[1, 2, 3], expected_shape=(3,)),
45 dict(pylist=[[1, 2, 3], [4], [5, 6]], expected_shape=(3, None)),
46 dict(pylist=[[1, 2, 3], [4, 5, 6], [7, 8, 9]], expected_shape=(3, None)),
50 dict(
53 dict(
57 dict(
61 dict(
67 dict(
71 dict(
[all …]
Dragged_tensor_shape_test.py46 dict(value='x', expected_dim_sizes=[]),
47 dict(value=['a', 'b', 'c'], expected_dim_sizes=[3]),
48 dict(value=[['a', 'b', 'c'], ['d', 'e', 'f']], expected_dim_sizes=[2, 3]),
49 dict(
52 dict(
56 dict(
60 dict(
64 dict(
68 dict(
72 dict(value=[[1, 2, 3], [4, 5, 6]], expected_dim_sizes=[2, 3]),
[all …]
Dragged_util_test.py50 dict(
55 dict(
60 dict(
67 dict(
72 dict(
77 dict(
85 dict(data=3, repeats=4, axis=0, expected=[3, 3, 3, 3]),
86 dict(data=[3], repeats=4, axis=0, expected=[3, 3, 3, 3]),
87 dict(data=3, repeats=[4], axis=0, expected=[3, 3, 3, 3]),
88 dict(data=[3], repeats=[4], axis=0, expected=[3, 3, 3, 3]),
[all …]
/external/llvm-project/clang/test/Analysis/copypaste/Inputs/expected-plists/
DMismatchedDeallocator-path-notes.cpp.plist2 <dict>
6 <dict>
9 <dict>
13 </dict>
14 <dict>
18 </dict>
22 <dict>
26 </dict>
27 <dict>
31 </dict>
[all …]
/external/clang/test/Analysis/
Dobjc-radar17039661.m64 // CHECK: <dict>
67 // CHECK: <dict>
71 // CHECK: <dict>
74 // CHECK: <dict>
78 // CHECK: </dict>
79 // CHECK: <dict>
83 // CHECK: </dict>
87 // CHECK: <dict>
91 // CHECK: </dict>
92 // CHECK: <dict>
[all …]
Dedges-new.mm595 // CHECK-NEXT: <dict>
598 // CHECK-NEXT: <dict>
601 // CHECK-NEXT: <dict>
605 // CHECK-NEXT: </dict>
609 // CHECK-NEXT: <dict>
613 // CHECK-NEXT: </dict>
614 // CHECK-NEXT: <dict>
618 // CHECK-NEXT: </dict>
626 // CHECK-NEXT: </dict>
627 // CHECK-NEXT: <dict>
[all …]
Dplist-output.m199 // CHECK-NEXT: <dict>
202 // CHECK-NEXT: <dict>
205 // CHECK-NEXT: <dict>
209 // CHECK-NEXT: </dict>
213 // CHECK-NEXT: <dict>
217 // CHECK-NEXT: </dict>
218 // CHECK-NEXT: <dict>
222 // CHECK-NEXT: </dict>
230 // CHECK-NEXT: </dict>
231 // CHECK-NEXT: <dict>
[all …]
/external/e2fsprogs/lib/support/
Ddict.c144 static void free_nodes(dict_t *dict, dnode_t *node, dnode_t *nil) in free_nodes() argument
148 free_nodes(dict, node->left, nil); in free_nodes()
149 free_nodes(dict, node->right, nil); in free_nodes()
150 dict->freenode(node, dict->context); in free_nodes()
162 static int verify_bintree(dict_t *dict) in verify_bintree() argument
166 first = dict_first(dict); in verify_bintree()
168 if (dict->dupes) { in verify_bintree()
169 while (first && (next = dict_next(dict, first))) { in verify_bintree()
170 if (dict->compare(first->key, next->key) > 0) in verify_bintree()
175 while (first && (next = dict_next(dict, first))) { in verify_bintree()
[all …]
/external/f2fs-tools/fsck/
Ddict.c136 static void free_nodes(dict_t *dict, dnode_t *node, dnode_t *nil) in free_nodes() argument
140 free_nodes(dict, node->left, nil); in free_nodes()
141 free_nodes(dict, node->right, nil); in free_nodes()
142 dict->freenode(node, dict->context); in free_nodes()
154 static int verify_bintree(dict_t *dict) in verify_bintree() argument
158 first = dict_first(dict); in verify_bintree()
160 if (dict->dupes) { in verify_bintree()
161 while (first && (next = dict_next(dict, first))) { in verify_bintree()
162 if (dict->compare(first->key, next->key) > 0) in verify_bintree()
167 while (first && (next = dict_next(dict, first))) { in verify_bintree()
[all …]
/external/llvm-project/clang/test/Analysis/diagnostics/Inputs/expected-plists/
Dplist-multi-file.c.plist2 <dict>
5 <dict>
9 </dict>
13 <dict>
17 </dict>
18 <dict>
22 </dict>
30 </dict>
31 <dict>
34 <dict>
[all …]
/external/oss-fuzz/projects/pygments/
DDockerfile27 RUN cat fuzzing/dictionaries/aff.dict \
28 fuzzing/dictionaries/bash.dict \
29 fuzzing/dictionaries/creole.dict \
30 fuzzing/dictionaries/css.dict \
31 fuzzing/dictionaries/graphviz.dict \
32 fuzzing/dictionaries/fbs.dict \
33 fuzzing/dictionaries/html.dict \
34 fuzzing/dictionaries/jinja2.dict \
35 fuzzing/dictionaries/js.dict \
36 fuzzing/dictionaries/json.dict \
[all …]
/external/tensorflow/tensorflow/python/framework/
Dpython_api_parameter_converter_test.py205 dict(
208 input_specs=dict(x="int32", y="float32"),
213 dict(
216 input_specs=dict(x="T"),
217 attr_specs=dict(T="type"),
220 inferred=dict(T=dtypes.string)),
221 dict(
224 input_specs=dict(x="T"),
225 attr_specs=dict(T="{int32, float, string}"),
228 inferred=dict(T=dtypes.string)),
[all …]

12345678910>>...137