/third_party/vk-gl-cts/external/vulkan-docs/src/scripts/spec_tools/ |
H A D | entity_db.py | 135 self.addEntity(name, 'code', elem=info.elem, generates=False) 138 protect = info.elem.get('protect') 143 alias = info.elem.get('alias') 147 cat = info.elem.get('category') 149 self.addEntity(name, 'slink', elem=info.elem) 153 self.addEntity(name, 'slink', elem=info.elem) 157 name, 'elink', elem [all...] |
H A D | util.py | 7 def getElemName(elem, default=None): 9 name_elem = elem.find('name') 13 return elem.get('name', default) 16 def getElemType(elem, default=None): 18 type_elem = elem.find('type') 22 return elem.get('type', default) 41 return findFirstWithPredicate(elems, lambda elem: getElemName(elem) == name) 49 return findFirstWithPredicate(elems, lambda elem: getElemType(elem) [all...] |
/third_party/python/Lib/test/ |
H A D | test_xml_etree_c.py | 93 elem = cET.Element('elem') 96 elem.text 97 elem.tail 98 elem.clear() 100 elem.text = X() 101 elem.clear() # shouldn't crash 103 elem.tail = X() 104 elem.clear() # shouldn't crash 106 elem [all...] |
/third_party/vk-gl-cts/external/vulkan-docs/src/scripts/ |
H A D | xml_consistency.py | 124 result_elem = reg.groupdict[enum_type].elem 275 if info.elem.get('tasks') is None: 300 elem = info.elem 301 params = [(getElemName(elt), elt) for elt in elem.findall('param')] 353 self.record_warning('(Allowed exception)', message, elem=param) 355 self.record_error(message, elem=param) 361 self.record_error(message, elem=param) 369 self.record_warning('(Allowed exception)', message, elem=param) 371 self.record_error(message, elem [all...] |
H A D | reg.py | 33 def matchAPIProfile(api, profile, elem): 39 - elem - Element which (may) have 'api' and 'profile' 72 elem_api = elem.get('api') 80 elem_profile = elem.get('profile') 201 def __init__(self, elem): 209 self.elem = elem 219 """Return True if self.elem and info.elem have the same attribute 224 if required and key not in self.elem [all...] |
H A D | check_html_xrefs.py | 20 def find_parent_ids(elem, href): 26 elem - this node 27 href - href link text of elem""" 30 parent = elem.getparent() 58 for elem in id_elems: 59 id = elem.get('id') 72 for elem in ref_elems: 73 href = elem.get('href') 80 refs.append((elem, href)) 84 refs.append((elem, hre [all...] |
H A D | schema_generator.py | 169 typeElem = typeinfo.elem 182 for elem in typeElem: 183 if elem.tag == 'name': 184 body += " \"" + elem.text + "\": {\"$ref\": \"#/definitions/uint64_t" + "\"}," 190 for elem in typeElem: 191 if elem.tag == 'type': 192 storeType = elem.text 194 if elem.tag == 'name': 195 if elem.text == "VkBool32": 196 body += " \"" + elem [all...] |
/third_party/vulkan-headers/registry/spec_tools/ |
H A D | util.py | 7 def getElemName(elem, default=None): 9 name_elem = elem.find('name') 13 return elem.get('name', default) 16 def getElemType(elem, default=None): 18 type_elem = elem.find('type') 22 return elem.get('type', default) 41 return findFirstWithPredicate(elems, lambda elem: getElemName(elem) == name) 49 return findFirstWithPredicate(elems, lambda elem: getElemType(elem) [all...] |
/third_party/alsa-lib/include/ |
H A D | mixer_abst.h | 81 int (*is)(snd_mixer_elem_t *elem, int dir, int cmd, int val); 82 int (*get_range)(snd_mixer_elem_t *elem, int dir, long *min, long *max); 83 int (*set_range)(snd_mixer_elem_t *elem, int dir, long min, long max); 84 int (*get_dB_range)(snd_mixer_elem_t *elem, int dir, long *min, long *max); 85 int (*ask_vol_dB)(snd_mixer_elem_t *elem, int dir, long value, long *dbValue); 86 int (*ask_dB_vol)(snd_mixer_elem_t *elem, int dir, long dbValue, long *value, int xdir); 87 int (*get_volume)(snd_mixer_elem_t *elem, int dir, snd_mixer_selem_channel_id_t channel, long *value); 88 int (*get_dB)(snd_mixer_elem_t *elem, int dir, snd_mixer_selem_channel_id_t channel, long *value); 89 int (*set_volume)(snd_mixer_elem_t *elem, int dir, snd_mixer_selem_channel_id_t channel, long value); 90 int (*set_dB)(snd_mixer_elem_t *elem, in [all...] |
/third_party/python/Modules/_decimal/tests/ |
H A D | formathelper.py | 242 for elem in active: 243 if elem == 0: # fill+align 247 elif elem == 1: # sign 249 elif elem == 2 and not have_align: # zeropad 251 elif elem == 3: # width 253 elif elem == 4: # thousands separator 255 elif elem == 5: # prec 258 elif elem == 6: 300 for elem in active: 301 if elem [all...] |
/third_party/vulkan-headers/registry/ |
H A D | reg.py | 33 def matchAPIProfile(api, profile, elem): 39 - elem - Element which (may) have 'api' and 'profile' 72 elem_api = elem.get('api') 80 elem_profile = elem.get('profile') 201 def __init__(self, elem): 209 self.elem = elem 219 """Return True if self.elem and info.elem have the same attribute 224 if required and key not in self.elem [all...] |
/third_party/mesa3d/src/freedreno/rnn/ |
H A D | headergen2.c | 234 static void printdelem (struct rnndelem *elem, uint64_t offset, const char *str) { in printdelem() argument 238 if (elem->varinfo.dead) in printdelem() 241 use_offset_fxn = elem->offsets || elem->doffset || elem->doffsets; in printdelem() 242 assert((!!elem->offsets + !!elem->doffset + !!elem->doffsets) <= 1); in printdelem() 245 asprintf(&offsetfn, "__offset_%s", elem->name); in printdelem() 247 if (elem in printdelem() [all...] |
/third_party/skia/src/xml/ |
H A D | SkXMLWriter.cpp | 58 void SkXMLWriter::doEnd(Elem* elem) { in doEnd() argument 59 delete elem; in doEnd() 68 Elem** elem = fElems.push(); in doStart() local 69 *elem = new Elem(name, length); in doStart() 74 Elem* elem; in getEnd() local 75 fElems.pop(&elem); in getEnd() 76 return elem; in getEnd() 146 void SkXMLWriter::startElementLen(const char elem[], size_t length) { in startElementLen() argument 147 this->onStartElementLen(elem, length); in startElementLen() 154 const char* elem in write_dom() local 211 Elem* elem = fElems.top(); onAddText() local 224 Elem* elem = getEnd(); onEndElement() local 294 Elem* elem = this->getEnd(); onEndElement() local [all...] |
/third_party/python/Lib/unittest/ |
H A D | util.py | 122 'Returns list of (cnt_act, cnt_exp, elem) triples where the counts differ' 128 for i, elem in enumerate(s): 129 if elem is NULL: 133 if s[j] == elem: 137 if other_elem == elem: 141 diff = _Mismatch(cnt_s, cnt_t, elem) 144 for i, elem in enumerate(t): 145 if elem is NULL: 149 if t[j] == elem: 152 diff = _Mismatch(0, cnt_t, elem) [all...] |
/third_party/vk-gl-cts/framework/delibs/decpp/ |
H A D | deThreadSafeRingBuffer.hpp | 45 void pushFront (const T& elem); 46 bool tryPushFront (const T& elem); 51 void pushFrontInternal (const T& elem); 83 inline void ThreadSafeRingBuffer<T>::pushFrontInternal (const T& elem) in pushFrontInternal() argument 85 m_elements[m_front] = elem; in pushFrontInternal() 98 void ThreadSafeRingBuffer<T>::pushFront (const T& elem) in pushFront() argument 102 pushFrontInternal(elem); in pushFront() 108 bool ThreadSafeRingBuffer<T>::tryPushFront (const T& elem) in tryPushFront() argument 117 pushFrontInternal(elem); in tryPushFront() 130 T elem in popBack() local [all...] |
/third_party/python/Lib/xml/etree/ |
H A D | ElementInclude.py | 101 # @param elem Root element. 116 def include(elem, loader=None, base_url=None, 123 if hasattr(elem, 'getroot'): 124 elem = elem.getroot() 128 _include(elem, loader, base_url, max_depth, set()) 131 def _include(elem, loader, base_url, max_depth, _parent_hrefs): 134 while i < len(elem): 135 e = elem[i] 159 elem[ [all...] |
/third_party/alsa-utils/alsamixer/ |
H A D | mixer_widget.c | 61 static int elem_callback(snd_mixer_elem_t *elem ATTRIBUTE_UNUSED, unsigned int mask) in elem_callback() 76 static int mixer_callback(snd_mixer_t *mixer ATTRIBUTE_UNUSED, unsigned int mask, snd_mixer_elem_t *elem) in mixer_callback() argument 79 snd_mixer_elem_set_callback(elem, elem_callback); in mixer_callback() 233 snd_mixer_selem_get_id(controls[focus_control_index].elem, current_selem_id); in refocus_control() 260 err = snd_mixer_selem_get_enum_item(control->elem, i, &index); in change_enum_to_percent() 267 items = snd_mixer_selem_get_enum_items(control->elem); in change_enum_to_percent() 276 snd_mixer_selem_set_enum_item(control->elem, i, new_index); in change_enum_to_percent() 287 items = snd_mixer_selem_get_enum_items(control->elem); in change_enum_relative() 290 err = snd_mixer_selem_get_enum_item(control->elem, 0, &index); in change_enum_relative() 302 snd_mixer_selem_set_enum_item(control->elem, in change_enum_relative() [all...] |
/third_party/ffmpeg/libavutil/ |
H A D | tree.c | 28 void *elem; member 43 unsigned int v = cmp(key, t->elem); in av_tree_find() 46 next[v >> 31] = t->elem; in av_tree_find() 53 return t->elem; in av_tree_find() 64 unsigned int v = cmp(t->elem, key); in av_tree_insert() 68 return t->elem; in av_tree_insert() 73 key = t->elem = next_elem[i]; in av_tree_insert() 139 (*tp)->elem = key; in av_tree_insert() 156 int (*cmp)(void *opaque, void *elem), in av_tree_enumerate() 157 int (*enu)(void *opaque, void *elem)) in av_tree_enumerate() 155 av_tree_enumerate(AVTreeNode *t, void *opaque, int (*cmp)(void *opaque, void *elem), int (*enu)(void *opaque, void *elem)) av_tree_enumerate() argument [all...] |
/third_party/alsa-lib/src/topology/ |
H A D | text.c | 26 static int parse_text_values(snd_config_t *cfg, struct tplg_elem *elem) in parse_text_values() argument 28 struct tplg_texts *texts = elem->texts; in parse_text_values() 34 tplg_dbg(" Text Values: %s", elem->id); in parse_text_values() 67 struct tplg_elem *elem; in tplg_parse_text() local 69 elem = tplg_elem_new_common(tplg, cfg, NULL, SND_TPLG_TYPE_TEXT); in tplg_parse_text() 70 if (!elem) in tplg_parse_text() 80 err = parse_text_values(n, elem); in tplg_parse_text() 94 struct tplg_elem *elem, in tplg_save_text() 97 struct tplg_texts *texts = elem->texts; in tplg_save_text() 103 err = tplg_save_printf(dst, pfx, "'%s'.values [\n", elem in tplg_save_text() 93 tplg_save_text(snd_tplg_t *tplg ATTRIBUTE_UNUSED, struct tplg_elem *elem, struct tplg_buf *dst, const char *pfx) tplg_save_text() argument [all...] |
/third_party/EGL/api/ |
H A D | reg.py | 29 # elem - Element which (may) have 'api' and 'profile' 53 def matchAPIProfile(api, profile, elem): 57 if ('api' in elem.attrib): 60 elem.get('api') + "'") 61 elif (api != elem.get('api')): 64 if ('profile' in elem.attrib): 67 elem.get('profile') + "'") 68 elif (profile != elem.get('profile')): 78 # elem - lxml.etree Element for this feature 83 def __init__(self, elem) [all...] |
/third_party/openGLES/xml/ |
H A D | reg.py | 28 # elem - Element which (may) have 'api' and 'profile' 52 def matchAPIProfile(api, profile, elem): 56 if ('api' in elem.attrib): 59 elem.get('api') + "'") 60 elif (api != elem.get('api')): 63 if ('profile' in elem.attrib): 66 elem.get('profile') + "'") 67 elif (profile != elem.get('profile')): 77 # elem - lxml.etree Element for this feature 82 def __init__(self, elem) [all...] |
/third_party/skia/third_party/externals/opengl-registry/xml/ |
H A D | reg.py | 39 # elem - Element which (may) have 'api' and 'profile' 63 def matchAPIProfile(api, profile, elem): 67 if ('api' in elem.attrib): 70 elem.get('api') + "'") 71 elif (api != elem.get('api')): 74 if ('profile' in elem.attrib): 77 elem.get('profile') + "'") 78 elif (profile != elem.get('profile')): 88 # elem - lxml.etree Element for this feature 93 def __init__(self, elem) [all...] |
/third_party/skia/third_party/externals/egl-registry/api/ |
H A D | reg.py | 40 # elem - Element which (may) have 'api' and 'profile' 64 def matchAPIProfile(api, profile, elem): 68 if ('api' in elem.attrib): 71 elem.get('api') + "'") 72 elif (api != elem.get('api')): 75 if ('profile' in elem.attrib): 78 elem.get('profile') + "'") 79 elif (profile != elem.get('profile')): 89 # elem - lxml.etree Element for this feature 94 def __init__(self, elem) [all...] |
/third_party/pulseaudio/src/pulsecore/ |
H A D | flist.c | 137 pa_flist_elem *elem; in pa_flist_free() local 138 while((elem = stack_pop(l, &l->stored))) in pa_flist_free() 139 free_cb(pa_atomic_ptr_load(&elem->ptr)); in pa_flist_free() 147 pa_flist_elem *elem; in pa_flist_push() local 151 elem = stack_pop(l, &l->empty); in pa_flist_push() 152 if (elem == NULL) { in pa_flist_push() 157 pa_atomic_ptr_store(&elem->ptr, p); in pa_flist_push() 158 stack_push(l, &l->stored, elem); in pa_flist_push() 164 pa_flist_elem *elem; in pa_flist_pop() local 168 elem in pa_flist_pop() [all...] |
/third_party/skia/third_party/externals/abseil-cpp/absl/ |
H A D | abseil.podspec.gen.py | 54 def get_elem_value(elem, name): 56 for child in elem: 75 def parse_rule(elem, package): 78 type=elem.attrib["class"], 79 name=get_elem_value(elem, "name"), 81 srcs=normalize_paths(get_elem_value(elem, "srcs") or []), 82 hdrs=normalize_paths(get_elem_value(elem, "hdrs") or []), 83 textual_hdrs=normalize_paths(get_elem_value(elem, "textual_hdrs") or []), 84 deps=get_elem_value(elem, "deps") or [], 85 visibility=get_elem_value(elem, "visibilit [all...] |