Searched defs:dict (Results 1 - 25 of 170) sorted by relevance

1234567

/external/skia/tests/
H A DRefDictTest.cpp20 SkRefDict dict; local
22 REPORTER_ASSERT(reporter, nullptr == dict.find(nullptr));
23 REPORTER_ASSERT(reporter, nullptr == dict.find("foo"));
24 REPORTER_ASSERT(reporter, nullptr == dict.find("bar"));
26 dict.set("foo", &data0);
27 REPORTER_ASSERT(reporter, &data0 == dict.find("foo"));
30 dict.set("foo", &data0);
31 REPORTER_ASSERT(reporter, &data0 == dict.find("foo"));
34 dict.set("foo", &data1);
35 REPORTER_ASSERT(reporter, &data1 == dict
[all...]
/external/libbrillo/brillo/
H A Dvalue_conversion.cc33 const base::DictionaryValue* dict = nullptr; local
34 if (!in_value.GetAsDictionary(&dict))
36 out_value->reset(dict->DeepCopy());
H A Dvalue_conversion.h88 const base::DictionaryValue* dict = nullptr; local
89 if (!in_value.GetAsDictionary(&dict))
92 for (base::DictionaryValue::Iterator it(*dict); !it.IsAtEnd(); it.Advance()) {
H A Dvalue_conversion_unittest.cc108 const base::DictionaryValue* dict = nullptr; local
110 EXPECT_TRUE(FromValue(*in_value, &dict));
111 EXPECT_JSON_EQ("{'foo':'bar','baz': 1}", *dict);
121 std::unique_ptr<base::DictionaryValue> dict; local
122 EXPECT_TRUE(FromValue(*ParseValue("{'foo':'bar','baz': 1}"), &dict));
123 EXPECT_JSON_EQ("{'foo':'bar','baz': 1}", *dict);
/external/libmojo/mojo/public/tools/bindings/generators/
H A Drun_cpp_generator.py19 dict = ast.literal_eval(s)
20 return dict
22 dict = ReadDict(sys.argv[1]) variable
23 module = mojom.generate.data.ModuleFromData(dict)
/external/python/cpython2/Lib/test/crashers/
H A Dnasty_eq_vs_dict.py22 # leave dict alone
37 dict.clear()
39 dict[i] = i
40 dict[self] = "OK!"
43 dict = {y: "OK!"} variable
47 print dict[z]
/external/python/cpython2/Modules/_io/
H A D_iomodule.h76 PyObject *dict; member in struct:__anon17519
/external/skia/src/pdf/
H A DSkPDFResourceDict.cpp76 auto dict = sk_make_sp<SkPDFDict>(); local
85 dict->insertObject("ProcSets", std::move(procSets));
88 add_subdict(*gStateResources, kExtGState_ResourceType, dict.get());
91 add_subdict(*patternResources, kPattern_ResourceType, dict.get());
94 add_subdict(*xObjectResources, kXObject_ResourceType, dict.get());
97 add_subdict(*fontResources, kFont_ResourceType, dict.get());
99 return dict;
/external/libchrome/base/json/
H A Djson_writer.cc157 const DictionaryValue* dict = NULL; local
159 bool result = node.GetAsDictionary(&dict);
161 for (DictionaryValue::Iterator itr(*dict); !itr.IsAtEnd();
H A Djson_parser_unittest.cc84 base::DictionaryValue* dict; local
85 EXPECT_TRUE(value->GetAsDictionary(&dict));
87 EXPECT_TRUE(dict->GetString("abc", &str));
H A Djson_reader_unittest.cc620 DictionaryValue* dict = nullptr; local
623 ASSERT_TRUE(root_dict->GetDictionary("test", &dict));
626 ASSERT_TRUE(dict->Remove("foo", &dict_literal_0));
627 ASSERT_TRUE(dict->Remove("bar", &dict_literal_1));
628 ASSERT_TRUE(dict->Remove("baz", &dict_string_0));
629 ASSERT_TRUE(dict->Remove("moo", &dict_string_1));
/external/libchrome/base/trace_event/
H A Dtrace_config_unittest.cc299 DictionaryValue dict; local
300 TraceConfig tc_dict(dict);
345 DictionaryValue dict; local
346 TraceConfig tc(dict);
/external/python/cpython2/Modules/_sqlite/
H A Dmicroprotocols.c41 pysqlite_microprotocols_init(PyObject *dict) argument
48 return PyDict_SetItemString(dict, "adapters", psyco_adapters);
/external/antlr/antlr-3.4/runtime/ObjC/Framework/
H A DACBTree.h41 __strong AMutableDictionary *dict; /* The dictionary that this node belongs to */ variable
59 @property (retain) AMutableDictionary *dict; variable
/external/autotest/client/site_tests/graphics_dEQP/scripts/
H A Dfailure_matrix.py62 def get_problem_count(dict, gpu):
63 if gpu in dict:
64 if not dict[gpu]:
67 for status in dict[gpu]:
69 count = count + len((dict[gpu])[status])
76 if status in dict[gpu]:
77 count = count + len((dict[gpu])[status])
79 print 'Warning: %s not found in dict!' % gpu
83 def get_problem_tests(dict):
85 for gpu in dict
107 dict = {} variable
[all...]
/external/google-breakpad/src/common/
H A Dsimple_string_dictionary_unittest.cc65 SimpleStringDictionary dict; local
68 dict.SetKeyValue("key1", "value1");
69 dict.SetKeyValue("key2", "value2");
70 dict.SetKeyValue("key3", "value3");
72 EXPECT_NE(dict.GetValueForKey("key1"), "value1");
73 EXPECT_NE(dict.GetValueForKey("key2"), "value2");
74 EXPECT_NE(dict.GetValueForKey("key3"), "value3");
75 EXPECT_EQ(dict.GetCount(), 3u);
77 EXPECT_FALSE(dict.GetValueForKey("key4"));
80 dict
128 SimpleStringDictionary* dict = new SimpleStringDictionary(); local
[all...]
/external/libbrillo/brillo/dbus/
H A Dexported_object_manager_unittest.cc34 void WriteTestPropertyDict(VariantDictionary* dict) { argument
35 dict->insert(std::make_pair(kTestPropertyName, Any(kTestPropertyValue)));
H A Dexported_property_set.cc76 VariantDictionary* dict) {
77 *dict = GetInterfaceProperties(interface_name);
74 WritePropertiesToDict( const std::string& interface_name, VariantDictionary* dict) argument
/external/libmojo/mojo/common/
H A Dcommon_custom_types_unittest.cc186 base::DictionaryValue dict; local
187 dict.SetBoolean("bool", false);
188 dict.SetInteger("int", 2);
189 dict.SetString("string", "some string");
190 dict.SetBoolean("nested.bool", true);
191 dict.SetInteger("nested.int", 9);
192 dict.Set("some_binary", base::BinaryValue::CreateWithCopiedBuffer("mojo", 4));
197 dict.Set("list", std::move(dict_list));
202 dict, ExpectResponse(&dict, run_loo
[all...]
/external/libxml2/os400/
H A Dtranscode.c15 #include "libxml/dict.h"
24 xmlZapDict(xmlDictPtr * dict) argument
27 if (dict && *dict) {
28 xmlDictFree(*dict);
29 *dict = (xmlDictPtr) NULL;
47 xmlDictPtr * dict, void (*freeproc)(const void *))
71 if (!l && dict)
74 if (dict && !*dict)
46 xmlTranscodeResult(const xmlChar * s, const char * encoding, xmlDictPtr * dict, void (*freeproc)(const void *)) argument
136 inTranscode(const char * s, size_t l, const char * encoding, xmlDictPtr * dict) argument
205 xmlTranscodeString(const char * s, const char * encoding, xmlDictPtr * dict) argument
220 xmlTranscodeWString(const char * s, const char * encoding, xmlDictPtr * dict) argument
240 xmlTranscodeHString(const char * s, const char * encoding, xmlDictPtr * dict) argument
260 xmlVasprintf(xmlDictPtr * dict, const char * encoding, const xmlChar * fmt, va_list args) argument
[all...]
/external/libxml2/
H A Dtestdict.c3 #include <libxml/dict.h>
151 xmlDictPtr dict; local
157 dict = xmlDictCreateSub(parent);
158 if (dict == NULL) {
171 test2[i] = xmlDictLookup(dict, strings2[i], -1);
181 test2[j] = xmlDictLookup(dict, strings2[j], xmlStrlen(strings2[j]));
191 test2[j] = xmlDictLookup(dict, strings2[j], xmlStrlen(strings2[j]));
207 test2[i] = xmlDictLookup(dict, strings2[i], -1);
217 * the dict, and that none of them was actually allocated in the parent
220 if (!xmlDictOwns(dict, test
314 xmlDictPtr dict; local
[all...]
/external/pdfium/third_party/freetype/src/cid/
H A Dcidobjs.c142 CID_FaceDict dict = face->cid.font_dicts + face->root.face_index; local
143 PS_Private priv = &dict->private_dict;
/external/python/cpython2/Lib/test/
H A Dtest_mutants.py5 # From SF bug #422121: Insecurities in dict comparison.
23 # So the dict comparison test here uses a black-box approach instead,
35 # lists to make it easy to pick a dict key at random.
42 # If global mutate is true, consider mutating a dict. May or may not
43 # mutate a dict even if mutate is true. If it does decide to mutate a
44 # dict, it picks one of {dict1, dict2} at random, and deletes a random
108 # Fill dict d with numentries (Horrid(i), Horrid(j)) key-value pairs,
120 # Note that dict comparison is trivial if they don't have the same number
121 # of entires (then the "shorter" dict is instantly considered to be the
197 dict variable
229 dict = {} variable
255 dict = {} variable
[all...]
/external/python/cpython2/PC/
H A Dwinsound.c151 add_define(PyObject *dict, const char *key, long value) argument
156 PyDict_SetItem(dict, k, v);
162 #define ADD_DEFINE(tok) add_define(dict,#tok,tok)
167 PyObject *dict; local
173 dict = PyModule_GetDict(module);
/external/brotli/enc/
H A Dstatic_dict.c53 const uint8_t* dict = &dictionary->data[offset]; local
57 TO_BROTLI_BOOL(FindMatchLengthWithLimit(dict, data, w.len) == w.len);
61 return TO_BROTLI_BOOL(dict[0] >= 'a' && dict[0] <= 'z' &&
62 (dict[0] ^ 32) == data[0] &&
63 FindMatchLengthWithLimit(&dict[1], &data[1], w.len - 1u) ==
70 if (dict[i] >= 'a' && dict[i] <= 'z') {
71 if ((dict[i] ^ 32) != data[i]) return BROTLI_FALSE;
73 if (dict[
[all...]

Completed in 834 milliseconds

1234567