Home
last modified time | relevance | path

Searched refs:dict (Results 26 - 50 of 876) sorted by relevance

12345678910>>...36

/third_party/python/Modules/_ctypes/
H A Dstgdict.c515 StgDictObject *dict; in PyCStructUnionType_update_stgdict() local
526 dict = PyType_stgdict(desc); in PyCStructUnionType_update_stgdict()
527 if (dict == NULL) { in PyCStructUnionType_update_stgdict()
534 stgdict->ffi_type_pointer.elements[ffi_ofs + i] = &dict->ffi_type_pointer; in PyCStructUnionType_update_stgdict()
535 if (dict->flags & (TYPEFLAG_ISPOINTER | TYPEFLAG_HASPOINTER)) in PyCStructUnionType_update_stgdict()
537 stgdict->flags |= dict->flags & (TYPEFLAG_HASUNION | TYPEFLAG_HASBITFIELD); in PyCStructUnionType_update_stgdict()
538 dict->flags |= DICTFLAG_FINAL; /* mark field type final */ in PyCStructUnionType_update_stgdict()
541 switch(dict->ffi_type_pointer.type) { in PyCStructUnionType_update_stgdict()
552 if (dict->getfunc != _ctypes_get_fielddesc("c")->getfunc in PyCStructUnionType_update_stgdict()
553 && dict in PyCStructUnionType_update_stgdict()
734 StgDictObject *dict; PyCStructUnionType_update_stgdict() local
823 StgDictObject *dict; PyCStructUnionType_update_stgdict() local
[all...]
H A Dcallproc.c145 PyObject *dict = PyThreadState_GetDict(); in _ctypes_get_errobj() local
148 if (dict == NULL) { in _ctypes_get_errobj()
158 errobj = PyDict_GetItemWithError(dict, error_object_name); in _ctypes_get_errobj()
176 if (-1 == PyDict_SetItem(dict, error_object_name, in _ctypes_get_errobj()
650 StgDictObject *dict; in ConvParam() local
653 dict = PyObject_stgdict(obj); in ConvParam()
654 if (dict) { in ConvParam()
656 assert(dict->paramfunc); in ConvParam()
658 carg = dict->paramfunc((CDataObject *)obj); in ConvParam()
768 StgDictObject *dict; in _ctypes_get_ffi_type() local
971 StgDictObject *dict; GetResult() local
1668 StgDictObject *dict; sizeof_func() local
1689 StgDictObject *dict; align_func() local
1807 StgDictObject *dict; resize() local
1978 StgDictObject *dict = PyType_stgdict(arg); buffer_info() local
[all...]
H A Dcallbacks.c125 TryAddRef(StgDictObject *dict, CDataObject *obj) in TryAddRef() argument
130 int r = _PyDict_ContainsId((PyObject *)dict, &PyId__needs_com_addref_); in TryAddRef()
171 StgDictObject *dict; in _CallPythonObject() local
172 dict = PyType_stgdict(cnv); in _CallPythonObject()
174 if (dict && dict->getfunc && !_ctypes_simple_instance(cnv)) { in _CallPythonObject()
175 PyObject *v = dict->getfunc(*pArgs, dict->size); in _CallPythonObject()
182 We have the problem that c_byte or c_short have dict->size of in _CallPythonObject()
186 } else if (dict) { in _CallPythonObject()
383 StgDictObject *dict = PyType_stgdict(restype); _ctypes_alloc_callback() local
[all...]
/third_party/python/Objects/
H A Dmoduleobject.c517 Py_DECREF(name); /* module dict has still a reference */ in PyModule_GetName()
553 Py_DECREF(fileobj); /* module dict has still a reference */ in PyModule_GetFilename()
670 PyObject *dict = self->md_dict; in module___init___impl() local
671 if (dict == NULL) { in module___init___impl()
672 dict = PyDict_New(); in module___init___impl()
673 if (dict == NULL) in module___init___impl()
675 self->md_dict = dict; in module___init___impl()
677 if (module_init_dict(self, dict, name, doc) < 0) in module___init___impl()
853 PyObject *dict = PyObject_GetAttr(self, &_Py_ID(__dict__)); in module_dir() local
855 if (dict ! in module_dir()
883 PyObject *dict = PyObject_GetAttr((PyObject *)m, &_Py_ID(__dict__)); module_get_annotations() local
921 PyObject *dict = PyObject_GetAttr((PyObject *)m, &_Py_ID(__dict__)); module_set_annotations() local
[all...]
/third_party/python/Lib/test/
H A Dtest_dict.py17 class Custom(dict):
21 dict(**invalid)
27 self.assertEqual(dict(), {})
28 self.assertIsNot(dict(), {})
39 self.assertEqual(eval(dictliteral), dict(items))
90 self.assertEqual(repr(dict(a=1).keys()), "dict_keys(['a'])")
98 self.assertEqual(repr(dict(a=1).values()), "dict_values([1])")
107 self.assertEqual(repr(dict(a=1).items()), "dict_items([('a', 1)])")
111 class Dict(dict):
113 for cls in [dict, Dic
[all...]
H A Dtest_getpath.py33 expected = dict(
58 expected = dict(
94 expected = dict(
132 expected = dict(
149 expected = dict(
172 expected = dict(
199 expected = dict(
226 expected = dict(
254 expected = dict(
279 expected = dict(
[all...]
H A Dtest_collections.py62 self._superset_test(UserDict, dict)
89 self.assertEqual(d.items(), dict(a=1, b=20, c=30).items()) # check items/iter/getitem
93 for k, v in dict(a=1, b=20, c=30, z=100).items(): # check get
98 self.assertEqual(d.items(), dict(a=1, b=2, c=30).items()) # check items/iter/getitem
102 for k, v in dict(a=1, b=2, c=30, z=100).items(): # check get
142 # Combined order matches a series of dict updates from last to first.
156 self.assertEqual(ChainMap().maps, [{}]) # no-args --> one new dict
169 d = DefaultChainMap(dict(a=1, b=2), dict(b=20, c=30))
170 for k, v in dict(
[all...]
/third_party/ffmpeg/libavfilter/
H A Dvf_libvmaf.c168 AVDictionary **dict = NULL; in delimited_dict_parse() local
183 dict = av_calloc(cnt2, sizeof(*dict)); in delimited_dict_parse()
184 if (!dict) in delimited_dict_parse()
196 err = av_dict_parse_string(&dict[(*cnt)++], s, "=", ":", 0); in delimited_dict_parse()
202 return dict; in delimited_dict_parse()
205 if (dict) { in delimited_dict_parse()
207 if (dict[i]) in delimited_dict_parse()
208 av_dict_free(&dict[i]); in delimited_dict_parse()
210 av_free(dict); in delimited_dict_parse()
221 AVDictionary **dict = NULL; parse_features() local
276 AVDictionary **dict; parse_models() local
[all...]
/third_party/python/Tools/demo/
H A Deiffel.py14 def __new__(meta, name, bases, dict):
15 meta.convert_methods(dict)
17 meta, name, bases, dict)
20 def convert_methods(cls, dict):
21 """Replace functions in dict with EiffelMethod wrappers.
23 The dict is modified in place.
25 If a method ends in _pre or _post, it is removed from the dict
30 for k, v in dict.items():
36 pre = dict.get("%s_pre" % m)
37 post = dict
[all...]
/third_party/skia/third_party/externals/freetype/src/cff/
H A Dcffdrivr.c476 CFF_FontRecDict dict = &cff->top_font.font_dict; in cff_ps_get_font_info() local
485 dict->version ); in cff_ps_get_font_info()
487 dict->notice ); in cff_ps_get_font_info()
489 dict->full_name ); in cff_ps_get_font_info()
491 dict->family_name ); in cff_ps_get_font_info()
493 dict->weight ); in cff_ps_get_font_info()
494 font_info->italic_angle = dict->italic_angle; in cff_ps_get_font_info()
495 font_info->is_fixed_pitch = dict->is_fixed_pitch; in cff_ps_get_font_info()
496 font_info->underline_position = (FT_Short)dict->underline_position; in cff_ps_get_font_info()
497 font_info->underline_thickness = (FT_UShort)dict in cff_ps_get_font_info()
520 CFF_FontRecDict dict = &cff->top_font.font_dict; cff_ps_get_font_extra() local
706 CFF_FontRecDict dict = &cff->top_font.font_dict; cff_get_ros() local
763 CFF_FontRecDict dict = &cff->top_font.font_dict; cff_get_is_cid() local
788 CFF_FontRecDict dict = &cff->top_font.font_dict; cff_get_cid_from_glyph_index() local
[all...]
/third_party/python/Modules/_io/
H A Dbytesio.c17 PyObject *dict; member
788 PyObject *dict; in bytesio_getstate() local
793 if (self->dict == NULL) { in bytesio_getstate()
795 dict = Py_None; in bytesio_getstate()
798 dict = PyDict_Copy(self->dict); in bytesio_getstate()
799 if (dict == NULL) { in bytesio_getstate()
805 state = Py_BuildValue("(OnN)", initvalue, self->pos, dict); in bytesio_getstate()
815 PyObject *dict; in bytesio_setstate() local
863 dict in bytesio_setstate()
[all...]
H A Dstringio.c45 PyObject *dict; member
585 Py_VISIT(self->dict); in stringio_traverse()
592 Py_CLEAR(self->dict); in stringio_clear()
609 Py_CLEAR(self->dict); in stringio_dealloc()
819 PyObject *dict; in stringio_getstate() local
824 if (self->dict == NULL) { in stringio_getstate()
826 dict = Py_None; in stringio_getstate()
829 dict = PyDict_Copy(self->dict); in stringio_getstate()
830 if (dict in stringio_getstate()
848 PyObject *dict; stringio_setstate() local
[all...]
/third_party/lz4/ossfuzz/
H A Ddecompress_fuzzer.c26 char* const dict = (char*)malloc(dictSize + size); in LLVMFuzzerTestOneInput() local
27 char* const largeDict = dict; in LLVMFuzzerTestOneInput()
28 char* const dataAfterDict = dict + dictSize; in LLVMFuzzerTestOneInput()
32 FUZZ_ASSERT(dict); in LLVMFuzzerTestOneInput()
35 memset(dict, 0, dictSize); in LLVMFuzzerTestOneInput()
74 free(dict); in LLVMFuzzerTestOneInput()
/third_party/python/Lib/idlelib/
H A Dwindow.py8 self.dict = {}
13 self.dict[str(window)] = window
17 del self.dict[str(window)]
25 for key in self.dict:
26 window = self.dict[key]
73 if not registry.dict:
/third_party/EGL/sdk/docs/man/html/
H A Dmakeindex.py94 def addkey(dict, feature):
96 if (key in dict.keys()):
99 dict[key] = feature
238 def sortedKeys(dict, whichKeys):
240 for key in dict.keys():
242 (whichKeys == 'api' and dict[key].apiCommand) or
243 (whichKeys == 'glsl' and not dict[key].apiCommand)):
255 def genDict(dict, title, whichKeys, fp):
269 keys = sortedKeys(dict, whichKeys)
283 addMenuLink(key, dict[ke
[all...]
/third_party/skia/third_party/externals/egl-registry/sdk/docs/man/html/
H A Dmakeindex.py94 def addkey(dict, feature):
96 if (key in dict.keys()):
99 dict[key] = feature
238 def sortedKeys(dict, whichKeys):
240 for key in dict.keys():
242 (whichKeys == 'api' and dict[key].apiCommand) or
243 (whichKeys == 'glsl' and not dict[key].apiCommand)):
255 def genDict(dict, title, whichKeys, fp):
269 keys = sortedKeys(dict, whichKeys)
283 addMenuLink(key, dict[ke
[all...]
/kernel/linux/linux-6.6/tools/perf/tests/shell/lib/
H A Dperf_metric_validation.py21 self.allresults = dict() # metric results of all workload
22 self.allignoremetrics = dict() # metrics with no results or negative results
23 self.allfailtests = dict()
24 self.alltotalcnt = dict()
25 self.allpassedcnt = dict()
26 self.allerrlist = dict()
28 self.results = dict() # metric results of current workload
31 self.failtests = dict()
51 def read_json(self, filename: str) -> dict:
147 negmetric = dict()
[all...]
/third_party/cups-filters/filter/pdftopdf/
H A Dqpdf_xobject.cc45 /Resources dict -> copy
49 [/BoxColorInfo dict] (used for guidelines that may be shown by viewer)
51 [/Contents asfd] -> concatenate into stream data of the XObject (page is a dict, XObject a stream)
56 [/Group dict] -> copy
87 QPDFObjectHandle dict=ret.getDict(); in makeXObject() local
89 dict.replaceKey("/Type",QPDFObjectHandle::newName("/XObject")); // optional in makeXObject()
90 dict.replaceKey("/Subtype",QPDFObjectHandle::newName("/Form")); // required in makeXObject()
91 // dict.replaceKey("/FormType",QPDFObjectHandle::newInteger(1)); // optional in makeXObject()
94 dict.replaceKey("/BBox",box); // reqd in makeXObject()
118 dict in makeXObject()
[all...]
/third_party/vk-gl-cts/external/vulkan-docs/src/scripts/
H A Dinterfacedocgenerator.py43 dict = self.featureDictionary[feature][key]
49 if dict:
54 for required in sorted(dict, key = interfaceDocSortKey):
75 for api in sorted(dict[required]):
80 for parent in sorted(dict[required], key = interfaceDocSortKey):
85 for api in sorted(dict[required][parent]):
88 for api in sorted(dict[required][parent]):
/third_party/skia/src/pdf/
H A DSkPDFResourceDict.cpp89 auto dict = SkPDFMakeDict(); in SkPDFMakeResourceDict() local
90 dict->insertObject("ProcSet", make_proc_set()); in SkPDFMakeResourceDict()
91 add_subdict(graphicStateResources, SkPDFResourceType::kExtGState, dict.get()); in SkPDFMakeResourceDict()
92 add_subdict(shaderResources, SkPDFResourceType::kPattern, dict.get()); in SkPDFMakeResourceDict()
93 add_subdict(xObjectResources, SkPDFResourceType::kXObject, dict.get()); in SkPDFMakeResourceDict()
94 add_subdict(fontResources, SkPDFResourceType::kFont, dict.get()); in SkPDFMakeResourceDict()
95 return dict; in SkPDFMakeResourceDict()
/third_party/node/deps/v8/third_party/test262-harness/src/
H A D_monkeyYaml.py21 dict = None
36 if not dict:
37 dict = {}
41 dict[key] = value
43 if dict and key and key in dict:
45 dict[key] += c + line.strip()
49 return lines, dict
/third_party/cups-filters/filter/
H A Drastertopdf.cpp441 std::map<std::string,QPDFObjectHandle> dict; in embedIccProfile() local
625 std::map<std::string,QPDFObjectHandle> dict; in makePclmStrips() local
627 dict["/Type"]=QPDFObjectHandle::newName("/XObject"); in makePclmStrips()
628 dict["/Subtype"]=QPDFObjectHandle::newName("/Image"); in makePclmStrips()
629 dict["/Width"]=QPDFObjectHandle::newInteger(width); in makePclmStrips()
630 dict["/BitsPerComponent"]=QPDFObjectHandle::newInteger(bpc); in makePclmStrips()
638 dict["/ColorSpace"]=QPDFObjectHandle::newName("/DeviceGray"); in makePclmStrips()
645 dict["/ColorSpace"]=QPDFObjectHandle::newName("/DeviceRGB"); in makePclmStrips()
674 dict["/Height"]=QPDFObjectHandle::newInteger(strip_height[i]); in makePclmStrips()
675 ret[i].replaceDict(QPDFObjectHandle::newDictionary(dict)); in makePclmStrips()
714 std::map<std::string,QPDFObjectHandle> dict; makeImage() local
[all...]
/third_party/typescript/tests/baselines/reference/
H A DoptionalPropertyAssignableToStringIndexSignature.js14 let dict: { [key: string]: string } = optionalUndefined; // error
18 let dict: { [key: string]: T | number } = optional; // ok
27 var dict = optionalUndefined; // error variable
30 var dict = optional; // ok
/kernel/linux/linux-6.6/tools/perf/util/scripting-engines/
H A Dtrace-event-python.c143 static void pydict_set_item_string_decref(PyObject *dict, const char *key, PyObject *val) in pydict_set_item_string_decref() argument
145 PyDict_SetItemString(dict, key, val); in pydict_set_item_string_decref()
720 static void set_sample_datasrc_in_dict(PyObject *dict, in set_sample_datasrc_in_dict() argument
726 pydict_set_item_string_decref(dict, "datasrc", in set_sample_datasrc_in_dict()
731 pydict_set_item_string_decref(dict, "datasrc_decode", in set_sample_datasrc_in_dict()
757 static void set_regs_in_dict(PyObject *dict, in set_regs_in_dict() argument
776 pydict_set_item_string_decref(dict, "iregs", in set_regs_in_dict()
781 pydict_set_item_string_decref(dict, "uregs", in set_regs_in_dict()
786 static void set_sym_in_dict(PyObject *dict, struct addr_location *al, in set_sym_in_dict() argument
796 pydict_set_item_string_decref(dict, dso_fiel in set_sym_in_dict()
813 set_sample_flags(PyObject *dict, u32 flags) set_sample_flags() argument
842 PyObject *dict, *dict_sample, *brstack, *brstacksym; get_perf_sample_dict() local
936 PyObject *dict = NULL, *all_entries_dict = NULL; python_process_tracepoint() local
1459 PyObject *handler, *t, *dict, *callchain; python_process_general_event() local
1730 PyObject *dict; perf_script_context_init() local
[all...]
/third_party/icu/tools/unicodetools/com/ibm/rbm/
H A DRBManager.java169 Bundle dict = new Bundle(encodings[0]); in RBManager()
170 bundles.addElement(dict); in RBManager()
172 BundleGroup group = new BundleGroup(dict, "Ungrouped Items"); in RBManager()
174 dict.addBundleGroup(group); in RBManager()
199 o = descriptors.get("file"); if (o != null) dict.name = ((String) o); in RBManager()
200 o = descriptors.get("fileComment"); if (o != null) dict.comment = ((String) o); in RBManager()
201 o = descriptors.get("fileLanguage"); if (o != null) dict.language = ((String) o); in RBManager()
202 o = descriptors.get("fileCountry"); if (o != null) dict.country = ((String) o); in RBManager()
203 o = descriptors.get("fileVariant"); if (o != null) dict.variant = ((String) o); in RBManager()
204 o = descriptors.get("fileManager"); if (o != null) dict in RBManager()
[all...]

Completed in 20 milliseconds

12345678910>>...36