Home
last modified time | relevance | path

Searched refs:new_dict (Results 1 – 14 of 14) sorted by relevance

/external/python/cpython3/Lib/test/
Dtest_dict_version.py40 def new_dict(self, *args, **kw): member in DictVersionTests
47 empty1 = self.new_dict()
48 empty2 = self.new_dict()
49 empty3 = self.new_dict()
52 nonempty1 = self.new_dict(x='x')
53 nonempty2 = self.new_dict(x='x', y='y')
56 d = self.new_dict(a=1, b=2)
64 d = self.new_dict()
76 d = self.new_dict()
89 d2 = self.new_dict(key=value)
[all …]
/external/pdfium/core/fpdfapi/parser/
Dfpdf_parser_utility_unittest.cpp70 CPDF_Dictionary* new_dict = dict->SetNewFor<CPDF_Dictionary>("f1"); in TEST() local
71 new_dict->SetNewFor<CPDF_Name>("Type", "foo"); in TEST()
72 new_dict = dict->SetNewFor<CPDF_Dictionary>("f2"); in TEST()
73 new_dict->SetNewFor<CPDF_Name>("Type", "foo"); in TEST()
79 new_dict = dict->SetNewFor<CPDF_Dictionary>("f3"); in TEST()
80 new_dict->SetNewFor<CPDF_Name>("Type", "bar"); in TEST()
85 new_dict->SetNewFor<CPDF_Name>("Type", "foo"); in TEST()
99 CPDF_Dictionary* new_dict = doc->NewIndirect<CPDF_Dictionary>(); in TEST() local
100 new_dict->SetNewFor<CPDF_Name>("Type", "foo"); in TEST()
101 dict->SetNewFor<CPDF_Reference>("f1", doc.get(), new_dict->GetObjNum()); in TEST()
/external/skia/tools/
Djsondiff.py141 def _DictionaryDiff(self, old_dict, new_dict): argument
145 all_keys = set(old_dict.keys() + new_dict.keys())
147 if old_dict.get(key) != new_dict.get(key):
150 new_entry['new'] = new_dict.get(key)
/external/skqp/tools/
Djsondiff.py141 def _DictionaryDiff(self, old_dict, new_dict): argument
145 all_keys = set(old_dict.keys() + new_dict.keys())
147 if old_dict.get(key) != new_dict.get(key):
150 new_entry['new'] = new_dict.get(key)
/external/toolchain-utils/crosperf/
Dresults_organizer.py54 new_dict = {}
57 new_dict['retval'] = retval
59 new_dict[''] = pass_fail
60 return new_dict
/external/icu/icu4c/source/python/icutools/databuilder/
Dutils.py70 new_dict = {}
72 new_dict.update(dict)
73 return new_dict
/external/autotest/frontend/afe/json_rpc/
DserviceHandler.py52 new_dict = {}
56 new_dict[new_key] = new_val
57 return new_dict
/external/python/pybind11/include/pybind11/detail/
Dclass.h421 extern "C" inline int pybind11_set_dict(PyObject *self, PyObject *new_dict, void *) { in pybind11_set_dict() argument
422 if (!PyDict_Check(new_dict)) { in pybind11_set_dict()
424 Py_TYPE(new_dict)->tp_name); in pybind11_set_dict()
428 Py_INCREF(new_dict); in pybind11_set_dict()
430 dict = new_dict; in pybind11_set_dict()
/external/swiftshader/third_party/llvm-7.0/llvm/tools/opt-viewer/
Doptrecord.py89 new_dict = dict()
99 new_dict[k] = v
100 return tuple(new_dict.items())
/external/autotest/client/common_lib/
Dtest.py99 new_dict = {}
102 new_dict[new_key] = value
103 return new_dict
/external/pdfium/fpdfsdk/
Dfpdf_editpage.cpp124 auto new_dict = pDoc->New<CPDF_Dictionary>(); in GetOrCreateMarkParamsDict() local
125 pParams = new_dict.Get(); in GetOrCreateMarkParamsDict()
126 pMarkItem->SetDirectDict(std::move(new_dict)); in GetOrCreateMarkParamsDict()
/external/v8/src/objects/
Dordered-hash-table.cc1273 MaybeHandle<SmallOrderedNameDictionary> new_dict = in Add() local
1276 if (!new_dict.is_null()) return new_dict.ToHandleChecked(); in Add()
/external/tensorflow/tensorflow/python/training/tracking/
Ddata_structures_test.py714 new_dict = {}
721 new_dict.update(model.d)
722 self.assertEqual({1: 3}, new_dict)
/external/python/cpython3/Objects/
Ddictobject.c598 new_dict(PyDictKeysObject *keys, PyObject **values) in new_dict() function
642 return new_dict(keys, values); in new_dict_with_shared_keys()
676 PyDictObject *new = (PyDictObject *)new_dict(keys, NULL); in clone_combined_dict()
702 return new_dict(Py_EMPTY_KEYS, empty_values); in PyDict_New()
1342 return new_dict(new_keys, NULL); in _PyDict_NewPresized()