/external/python/cpython3/Lib/test/ |
test_xml_etree.py | 106 def serialize(elem, to_string=True, encoding='unicode', **options): 111 tree = ET.ElementTree(elem) 120 return [elem.tag for elem in seq] 160 def serialize_check(self, elem, expected): 161 self.assertEqual(serialize(elem), expected) 200 for elem in element: 201 check_element(elem) 281 elem = ET.XML("<body><tag/></body>") 282 self.serialize_check(elem, '<body><tag /></body>' [all...] |
/external/vulkan-validation-layers/scripts/ |
reg.py | 25 # elem - Element which (may) have 'api' and 'profile' 49 def matchAPIProfile(api, profile, elem): 53 if ('api' in elem.attrib): 56 elem.get('api') + "'") 57 elif (api != elem.get('api')): 60 if ('profile' in elem.attrib): 63 elem.get('profile') + "'") 64 elif (profile != elem.get('profile')): 74 # elem - etree Element for this feature 79 def __init__(self, elem) [all...] |
cgenerator.py | 223 typeElem = typeinfo.elem 234 for elem in typeElem: 235 if (elem.tag == 'apientry'): 236 s += self.genOpts.apientry + noneStr(elem.tail) 238 s += noneStr(elem.text) + noneStr(elem.tail) 263 body = 'typedef ' + typeinfo.elem.get('category') + ' ' + typeName + ' {\n' 264 # paramdecl = self.makeCParamDecl(typeinfo.elem, self.genOpts.alignFuncParam) 266 for member in typeinfo.elem.findall('.//member'): 268 for member in typeinfo.elem.findall('.//member') [all...] |
/prebuilts/ndk/r16/sources/third_party/vulkan/src/ |
reg.py | 24 # elem - Element which (may) have 'api' and 'profile' 48 def matchAPIProfile(api, profile, elem): 52 if ('api' in elem.attrib): 55 elem.get('api') + "'") 56 elif (api != elem.get('api')): 59 if ('profile' in elem.attrib): 62 elem.get('profile') + "'") 63 elif (profile != elem.get('profile')): 73 # elem - etree Element for this feature 78 def __init__(self, elem) [all...] |
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/ |
collections.py | 373 >>> for elem in 'shazam': # update counts from an iterable
374 ... c[elem] += 1 # by adding 1 to each element's count
493 for elem, count in iterable.iteritems():
494 self[elem] = self_get(elem, 0) + count
499 for elem in iterable:
500 self[elem] = self_get(elem, 0) + 1
523 for elem, count in iterable.items():
524 self[elem] = self_get(elem, 0) - count [all...] |
/external/tensorflow/tensorflow/contrib/input_pipeline/python/ops/ |
input_pipeline_ops_test.py | 49 elem = input_pipeline_ops.seek_next(string_list) 51 self.assertEqual(b"a", session.run(elem)) 52 self.assertEqual(b"b", session.run(elem)) 53 self.assertEqual(b"c", session.run(elem)) 55 self.assertEqual(b"a", session.run(elem)) 69 elem = input_pipeline_ops.seek_next(string_list, num_epochs=1) 74 self._assert_output([b"a", b"b", b"c"], session, elem) 79 elem = input_pipeline_ops.seek_next(string_list, num_epochs=3) 85 self._assert_output([b"a", b"b", b"c"] * 3, session, elem)
|
/prebuilts/gdb/darwin-x86/lib/python2.7/ |
collections.py | 399 >>> for elem in 'shazam': # update counts from an iterable 400 ... c[elem] += 1 # by adding 1 to each element's count 519 for elem, count in iterable.iteritems(): 520 self[elem] = self_get(elem, 0) + count 525 for elem in iterable: 526 self[elem] = self_get(elem, 0) + 1 549 for elem, count in iterable.items(): 550 self[elem] = self_get(elem, 0) - coun [all...] |
/prebuilts/gdb/linux-x86/lib/python2.7/ |
collections.py | 399 >>> for elem in 'shazam': # update counts from an iterable 400 ... c[elem] += 1 # by adding 1 to each element's count 519 for elem, count in iterable.iteritems(): 520 self[elem] = self_get(elem, 0) + count 525 for elem in iterable: 526 self[elem] = self_get(elem, 0) + 1 549 for elem, count in iterable.items(): 550 self[elem] = self_get(elem, 0) - coun [all...] |
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/ |
collections.py | 399 >>> for elem in 'shazam': # update counts from an iterable 400 ... c[elem] += 1 # by adding 1 to each element's count 519 for elem, count in iterable.iteritems(): 520 self[elem] = self_get(elem, 0) + count 525 for elem in iterable: 526 self[elem] = self_get(elem, 0) + 1 549 for elem, count in iterable.items(): 550 self[elem] = self_get(elem, 0) - coun [all...] |
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/ |
collections.py | 399 >>> for elem in 'shazam': # update counts from an iterable 400 ... c[elem] += 1 # by adding 1 to each element's count 519 for elem, count in iterable.iteritems(): 520 self[elem] = self_get(elem, 0) + count 525 for elem in iterable: 526 self[elem] = self_get(elem, 0) + 1 549 for elem, count in iterable.items(): 550 self[elem] = self_get(elem, 0) - coun [all...] |
/frameworks/native/opengl/tools/glgen2/ |
glgen.py | 59 def parseProto(elem): 60 type = nonestr(elem.text) 62 for subelem in elem: 71 def parseParam(elem): 72 name = elem.find('name').text 73 declaration = ''.join(elem.itertext()) 124 rtype, fname = parseProto(cmd.elem.find('proto')) 125 params = [parseParam(p) for p in cmd.elem.findall('param')] 150 rtype, fname = parseProto(cmd.elem.find('proto')) 151 params = [parseParam(p) for p in cmd.elem.findall('param') [all...] |
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Modules/ |
_heapqmodule.c | 293 PyObject *heap=NULL, *elem, *iterable, *sol, *it, *oldelem;
local 309 elem = PyIter_Next(it);
310 if (elem == NULL) {
316 if (PyList_Append(heap, elem) == -1) {
317 Py_DECREF(elem);
320 Py_DECREF(elem);
331 elem = PyIter_Next(it);
332 if (elem == NULL) {
338 cmp = cmp_lt(sol, elem);
340 Py_DECREF(elem);
462 PyObject *heap=NULL, *elem, *iterable, *los, *it, *oldelem; local [all...] |
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Modules/ |
_heapqmodule.c | 294 PyObject *heap=NULL, *elem, *iterable, *sol, *it, *oldelem;
local 310 elem = PyIter_Next(it);
311 if (elem == NULL) {
317 if (PyList_Append(heap, elem) == -1) {
318 Py_DECREF(elem);
321 Py_DECREF(elem);
332 elem = PyIter_Next(it);
333 if (elem == NULL) {
339 cmp = cmp_lt(sol, elem);
341 Py_DECREF(elem);
463 PyObject *heap=NULL, *elem, *iterable, *los, *it, *oldelem; local [all...] |
/external/python/cpython2/Mac/BuildScript/scripts/ |
postflight.patch-profile | 37 for elem in `echo $P | tr ':' ' '` 39 if [ "${elem}" = "${PYTHON_ROOT}/bin" ]; then 42 elif [ "${elem}" = "/usr/bin" ]; then
|
/external/python/cpython2/Modules/ |
_heapqmodule.c | 298 PyObject *heap=NULL, *elem, *iterable, *sol, *it, *oldelem; local 314 elem = PyIter_Next(it); 315 if (elem == NULL) { 321 if (PyList_Append(heap, elem) == -1) { 322 Py_DECREF(elem); 325 Py_DECREF(elem); 336 elem = PyIter_Next(it); 337 if (elem == NULL) { 343 cmp = cmp_lt(sol, elem); 345 Py_DECREF(elem); 467 PyObject *heap=NULL, *elem, *iterable, *los, *it, *oldelem; local [all...] |
/external/python/cpython3/Mac/BuildScript/scripts/ |
postflight.patch-profile | 37 for elem in `echo $P | tr ':' ' '` 39 if [ "${elem}" = "${PYTHON_ROOT}/bin" ]; then 42 elif [ "${elem}" = "/usr/bin" ]; then
|
/frameworks/rs/driver/ |
rsdMeshObj.cpp | 56 bool RsdMeshObj::isValidGLComponent(const Element *elem, uint32_t fieldIdx) { 59 RsDataType dt = elem->mHal.state.fields[fieldIdx]->mHal.state.dataType; 67 uint32_t arraySize = elem->mHal.state.fieldArraySizes[fieldIdx]; 82 const Element *elem = mRSMesh->mHal.state.vertexBuffers[ct]->getType()->getElement(); local 83 for (uint32_t ct=0; ct < elem->mHal.state.fieldsCount; ct++) { 84 if (isValidGLComponent(elem, ct)) { 105 const Element *elem = mRSMesh->mHal.state.vertexBuffers[ct]->getType()->getElement(); local 106 uint32_t stride = elem->mHal.state.elementSizeBytes; 107 for (uint32_t fieldI=0; fieldI < elem->mHal.state.fieldsCount; fieldI++) { 108 const Element *f = elem->mHal.state.fields[fieldI] [all...] |
/prebuilts/go/darwin-x86/src/runtime/ |
iface.go | 273 func convT2E(t *_type, elem unsafe.Pointer) (e eface) { 275 raceReadObjectPC(t, elem, getcallerpc(), funcPC(convT2E)) 278 msanread(elem, t.size) 283 typedmemmove(t, x, elem) 289 func convT2E16(t *_type, elem unsafe.Pointer) (e eface) { 291 raceReadObjectPC(t, elem, getcallerpc(), funcPC(convT2E16)) 294 msanread(elem, t.size) 297 if *(*uint16)(elem) == 0 { 301 *(*uint16)(x) = *(*uint16)(elem) 308 func convT2E32(t *_type, elem unsafe.Pointer) (e eface) [all...] |
/prebuilts/go/linux-x86/src/runtime/ |
iface.go | 273 func convT2E(t *_type, elem unsafe.Pointer) (e eface) { 275 raceReadObjectPC(t, elem, getcallerpc(), funcPC(convT2E)) 278 msanread(elem, t.size) 283 typedmemmove(t, x, elem) 289 func convT2E16(t *_type, elem unsafe.Pointer) (e eface) { 291 raceReadObjectPC(t, elem, getcallerpc(), funcPC(convT2E16)) 294 msanread(elem, t.size) 297 if *(*uint16)(elem) == 0 { 301 *(*uint16)(x) = *(*uint16)(elem) 308 func convT2E32(t *_type, elem unsafe.Pointer) (e eface) [all...] |
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Other/Maintained/Tools/Pccts/sorcerer/lib/ |
sstack.c | 57 p->elem = e;
74 r = p->elem;
|
/external/apache-xml/src/main/java/org/apache/xalan/processor/ |
ProcessorGlobalParamDecl.java | 41 * @param elem The non-null reference to the ElemParam element. 47 StylesheetHandler handler, ElemTemplateElement elem) 52 handler.pushElemTemplateElement(elem);
|
ProcessorGlobalVariableDecl.java | 41 * @param elem The non-null reference to the ElemVariable element. 47 StylesheetHandler handler, ElemTemplateElement elem) 52 handler.pushElemTemplateElement(elem);
|
/external/icu/icu4c/source/common/ |
uvectr32.h | 100 void addElement(int32_t elem, UErrorCode &status); 102 void setElementAt(int32_t elem, int32_t index); 104 void insertElementAt(int32_t elem, int32_t index, UErrorCode &status); 112 int32_t indexOf(int32_t elem, int32_t startIndex = 0) const; 114 UBool contains(int32_t elem) const; 161 void sortedInsert(int32_t elem, UErrorCode& ec); 228 inline void UVector32::addElement(int32_t elem, UErrorCode &status) { 230 elements[count] = elem;
|
/external/libcxx/test/std/experimental/filesystem/class.directory_iterator/directory_iterator.nonmembers/ |
begin_end.pass.cpp | 55 for (auto& elem : it) { 56 TEST_CHECK(dir_contents.erase(elem) == 1);
|
/external/libcxx/test/std/experimental/filesystem/class.rec.dir.itr/rec.dir.itr.nonmembers/ |
begin_end.pass.cpp | 55 for (auto& elem : it) { 56 TEST_CHECK(dir_contents.erase(elem) == 1);
|