Home
last modified time | relevance | path

Searched refs:dom (Results 1 – 25 of 502) sorted by relevance

12345678910>>...21

/external/skia/tests/
DSkDOMTest.cpp15 static const SkDOM::Node* check_node(skiatest::Reporter* r, const SkDOM& dom, in check_node() argument
20 REPORTER_ASSERT(r, !strcmp(dom.getName(node), expectedName)); in check_node()
21 REPORTER_ASSERT(r, dom.getType(node) == expectedType); in check_node()
42 SkDOM dom; in DEF_TEST() local
43 REPORTER_ASSERT(r, !dom.getRootNode()); in DEF_TEST()
45 const SkDOM::Node* root = dom.build(docStream); in DEF_TEST()
46 REPORTER_ASSERT(r, root && dom.getRootNode() == root); in DEF_TEST()
48 const char* v = dom.findAttr(root, "a"); in DEF_TEST()
50 v = dom.findAttr(root, "b"); in DEF_TEST()
52 v = dom.findAttr(root, "c"); in DEF_TEST()
[all …]
DSVGDeviceTest.cpp22 const SkDOM& dom, in check_text_node() argument
32 const SkDOM::Node* textElem = dom.getFirstChild(root, "text"); in check_text_node()
37 REPORTER_ASSERT(reporter, dom.getType(textElem) == SkDOM::kElement_Type); in check_text_node()
39 const SkDOM::Node* textNode= dom.getFirstChild(textElem); in check_text_node()
42 REPORTER_ASSERT(reporter, dom.getType(textNode) == SkDOM::kText_Type); in check_text_node()
43 REPORTER_ASSERT(reporter, strcmp(expected, dom.getName(textNode)) == 0); in check_text_node()
48 const char* x = dom.findAttr(textElem, "x"); in check_text_node()
65 const char* y = dom.findAttr(textElem, "y"); in check_text_node()
88 SkDOM dom; in test_whitespace_pos() local
93 SkXMLParserWriter writer(dom.beginParsing()); in test_whitespace_pos()
[all …]
/external/swiftshader/third_party/subzero/bloat/
Dwebtreemap.js36 if (sibling.dom)
37 sibling.dom.style.zIndex = 0;
40 var width = root.dom.offsetWidth;
41 var height = root.dom.offsetHeight;
46 position(t.dom, -kBorderWidth, -kBorderWidth, width, height);
47 t.dom.style.zIndex = 1;
54 var dom = document.createElement('div');
55 dom.style.zIndex = 1;
56 dom.className = 'webtreemap-node webtreemap-level' + Math.min(level, 4);
58 dom.className += (' webtreemap-symbol-' +
[all …]
/external/python/cpython2/Lib/test/
Dtest_minidom.py9 import xml.dom
10 import xml.dom.minidom
13 from xml.dom.minidom import parse, Node, Document, parseString
14 from xml.dom.minidom import getDOMImplementation
36 notation = xml.dom.minidom.Notation("my-notation", None,
39 entity = xml.dom.minidom.Entity("my-entity", None,
64 dom = parse(StringIO(open(tstfile).read()))
65 dom.unlink()
66 self.confirm(isinstance(dom,Document))
69 dom = parse(tstfile)
[all …]
/external/skia/samplecode/
DSampleAnimator.cpp64 static const SkDOMNode* find_nodeID(const SkDOM& dom, in find_nodeID() argument
67 node = dom.getRootNode(); in find_nodeID()
70 const char* idval = dom.findAttr(node, "id"); in find_nodeID()
74 const SkDOMNode* child = dom.getFirstChild(node); in find_nodeID()
76 const SkDOMNode* found = find_nodeID(dom, child, name); in find_nodeID()
81 } while ((node = dom.getNextSibling(node)) != nullptr); in find_nodeID()
99 SkDOM dom; in decodeStream() local
100 const SkDOM::Node* root = dom.build(text, len); in decodeStream()
104 if (!fAnimator->decodeDOM(dom, root)) { in decodeStream()
112 const SkDOM::Node* node = find_nodeID(dom, nullptr, name.c_str()); in decodeStream()
[all …]
/external/python/cpython2/Lib/xml/dom/
Ddomreg.py5 from xml.dom.minicompat import * # isinstance, StringTypes
32 def _good_enough(dom, features): argument
35 if not dom.hasFeature(f,v):
68 dom = creator()
69 if _good_enough(dom, features):
70 return dom
74 dom = getDOMImplementation(name = creator)
77 if _good_enough(dom, features):
78 return dom
Dminidom.py18 import xml.dom
20 from xml.dom import EMPTY_NAMESPACE, EMPTY_PREFIX, XMLNS_NAMESPACE, domreg
21 from xml.dom.minicompat import *
22 from xml.dom.xmlbuilder import DOMImplementationLS, DocumentLS
29 _nodeTypes_with_children = (xml.dom.Node.ELEMENT_NODE,
30 xml.dom.Node.ENTITY_REFERENCE_NODE)
33 class Node(xml.dom.Node):
87 raise xml.dom.HierarchyRequestErr(
97 raise xml.dom.NotFoundErr()
119 raise xml.dom.HierarchyRequestErr(
[all …]
Dxmlbuilder.py4 import xml.dom
6 from xml.dom.NodeFilter import NodeFilter
81 raise xml.dom.NotSupportedErr(
87 raise xml.dom.NotFoundErr("unknown feature: " + repr(name))
178 raise xml.dom.NotFoundErr("feature %s not known" % repr(name))
203 import xml.dom.expatbuilder
204 builder = xml.dom.expatbuilder.makeBuilder(options)
343 raise xml.dom.NotSupportedErr(
362 raise xml.dom.WrongDocumentErr()
372 raise xml.dom.NotSupportedErr(
[all …]
/external/mesa3d/src/compiler/nir/
Dnir_phi_builder.c178 nir_block *dom = block; in nir_phi_builder_value_get_block_def() local
179 while (dom && val->defs[dom->index] == NULL) in nir_phi_builder_value_get_block_def()
180 dom = dom->imm_dom; in nir_phi_builder_value_get_block_def()
183 if (dom == NULL) { in nir_phi_builder_value_get_block_def()
195 } else if (val->defs[dom->index] == NEEDS_PHI) { in nir_phi_builder_value_get_block_def()
217 phi->instr.block = dom; in nir_phi_builder_value_get_block_def()
219 def = val->defs[dom->index] = &phi->dest.ssa; in nir_phi_builder_value_get_block_def()
225 def = val->defs[dom->index]; in nir_phi_builder_value_get_block_def()
235 for (dom = block; dom && val->defs[dom->index] == NULL; dom = dom->imm_dom) in nir_phi_builder_value_get_block_def()
236 val->defs[dom->index] = def; in nir_phi_builder_value_get_block_def()
/external/icu/tools/srcgen/src/main/java/com/android/icu4j/srcgen/checker/
DRecordPublicApiRules.java29 import org.eclipse.jdt.core.dom.ASTNode;
30 import org.eclipse.jdt.core.dom.ASTVisitor;
31 import org.eclipse.jdt.core.dom.AbstractTypeDeclaration;
32 import org.eclipse.jdt.core.dom.AnnotationTypeDeclaration;
33 import org.eclipse.jdt.core.dom.AnnotationTypeMemberDeclaration;
34 import org.eclipse.jdt.core.dom.BodyDeclaration;
35 import org.eclipse.jdt.core.dom.CompilationUnit;
36 import org.eclipse.jdt.core.dom.EnumConstantDeclaration;
37 import org.eclipse.jdt.core.dom.EnumDeclaration;
38 import org.eclipse.jdt.core.dom.FieldDeclaration;
[all …]
/external/icu/tools/srcgen/currysrc/src/main/java/com/google/currysrc/processors/
DMakeClassesPublic.java25 import org.eclipse.jdt.core.dom.AST;
26 import org.eclipse.jdt.core.dom.ASTVisitor;
27 import org.eclipse.jdt.core.dom.AbstractTypeDeclaration;
28 import org.eclipse.jdt.core.dom.ChildListPropertyDescriptor;
29 import org.eclipse.jdt.core.dom.CompilationUnit;
30 import org.eclipse.jdt.core.dom.EnumDeclaration;
31 import org.eclipse.jdt.core.dom.Modifier;
32 import org.eclipse.jdt.core.dom.TypeDeclaration;
33 import org.eclipse.jdt.core.dom.rewrite.ASTRewrite;
34 import org.eclipse.jdt.core.dom.rewrite.ListRewrite;
DBaseJavadocTagClasses.java23 import org.eclipse.jdt.core.dom.ASTVisitor;
24 import org.eclipse.jdt.core.dom.AbstractTypeDeclaration;
25 import org.eclipse.jdt.core.dom.CompilationUnit;
26 import org.eclipse.jdt.core.dom.EnumDeclaration;
27 import org.eclipse.jdt.core.dom.TypeDeclaration;
28 import org.eclipse.jdt.core.dom.rewrite.ASTRewrite;
DModifyQualifiedNames.java21 import org.eclipse.jdt.core.dom.ASTVisitor;
22 import org.eclipse.jdt.core.dom.CompilationUnit;
23 import org.eclipse.jdt.core.dom.Name;
24 import org.eclipse.jdt.core.dom.QualifiedName;
25 import org.eclipse.jdt.core.dom.rewrite.ASTRewrite;
/external/parameter-framework/upstream/tools/xmlGenerator/
DhostConfig.py32 import xml.dom.minidom
41 dom = xml.dom.minidom.parse(infile)
43 for node in dom.getElementsByTagName("ParameterFrameworkConfiguration"):
49 for node in dom.getElementsByTagName(tag):
55 for node in dom.getElementsByTagName("StructureDescriptionFileLocation"):
58 outfile.write(dom.toxml())
/external/icu/tools/srcgen/currysrc/src/main/java/com/google/currysrc/api/process/
DJavadocUtils.java20 import org.eclipse.jdt.core.dom.AST;
21 import org.eclipse.jdt.core.dom.ASTNode;
22 import org.eclipse.jdt.core.dom.BodyDeclaration;
23 import org.eclipse.jdt.core.dom.Javadoc;
24 import org.eclipse.jdt.core.dom.TagElement;
25 import org.eclipse.jdt.core.dom.rewrite.ASTRewrite;
26 import org.eclipse.jdt.core.dom.rewrite.ListRewrite;
/external/icu/icu4c/source/i18n/
Dgregoimp.cpp83 double Grego::fieldsToDay(int32_t year, int32_t month, int32_t dom) { in fieldsToDay() argument
89 DAYS_BEFORE[month + (isLeapYear(year) ? 12 : 0)] + dom; // => month/dom in fieldsToDay()
95 int32_t& dom, int32_t& dow, int32_t& doy) { in dayToFields() argument
128 dom = doy - DAYS_BEFORE[month + (isLeap ? 12 : 0)] + 1; // one-based DOM in dayToFields()
133 int32_t& dom, int32_t& dow, int32_t& doy, int32_t& mid) { in timeToFields() argument
137 dayToFields(day, year, month, dom, dow, doy); in timeToFields()
146 int32_t Grego::dayOfWeekInMonth(int32_t year, int32_t month, int32_t dom) { in dayOfWeekInMonth() argument
147 int32_t weekInMonth = (dom + 6)/7; in dayOfWeekInMonth()
149 if (dom + 7 > monthLength(year, month)) { in dayOfWeekInMonth()
Dgregoimp.h170 static double fieldsToDay(int32_t year, int32_t month, int32_t dom);
183 int32_t& dom, int32_t& dow, int32_t& doy);
195 int32_t& dom, int32_t& dow);
209 int32_t& dom, int32_t& dow, int32_t& doy, int32_t& mid);
226 static int32_t dayOfWeekInMonth(int32_t year, int32_t month, int32_t dom);
276 int32_t& dom, int32_t& dow) { in dayToFields() argument
278 dayToFields(day,year,month,dom,dow,doy_unused); in dayToFields()
/external/python/cpython2/Lib/email/test/data/
Dmsg_27.txt1 Return-Path: <aperson@dom.ain>
2 Received: by mail.dom.ain (Postfix, from userid 889)
4 Message-ID: <15613.28051.707126.569693@dom.ain>
12 From: aperson@dom.ain (Anne P. Erson)
13 To: bperson@dom.ain (Barney P. Erson)
Dmsg_34.txt1 From: aperson@dom.ain
2 To: bperson@dom.ain
14 From: cperson@dom.ain
15 To: dperson@dom.ain
/external/apache-xml/src/main/java/org/apache/xml/utils/
DUnImplNode.java26 import org.w3c.dom.Attr;
27 import org.w3c.dom.CDATASection;
28 import org.w3c.dom.Comment;
29 import org.w3c.dom.DOMException;
30 import org.w3c.dom.DOMImplementation;
31 import org.w3c.dom.Document;
32 import org.w3c.dom.DocumentFragment;
33 import org.w3c.dom.DocumentType;
34 import org.w3c.dom.Element;
35 import org.w3c.dom.EntityReference;
[all …]
/external/skia/src/xml/
DSkDOM.cpp14 bool SkXMLParser::parse(const SkDOM& dom, const SkDOMNode* node) { in parse() argument
15 const char* elemName = dom.getName(node); in parse()
21 SkDOM::AttrIter iter(dom, node); in parse()
30 if ((node = dom.getFirstChild(node)) != nullptr) { in parse()
32 if (!this->parse(dom, node)) { in parse()
35 } while ((node = dom.getNextSibling(node)) != nullptr); in parse()
309 static void walk_dom(const SkDOM& dom, const SkDOM::Node* node, SkXMLParser* parser) { in walk_dom() argument
310 const char* elem = dom.getName(node); in walk_dom()
311 if (dom.getType(node) == SkDOM::kText_Type) { in walk_dom()
312 SkASSERT(dom.countChildren(node) == 0); in walk_dom()
[all …]
/external/mdnsresponder/mDNSShared/
Ddnssd_clientlib.c56 static int DomainEndsInDot(const char *dom) in DomainEndsInDot() argument
58 while (dom[0] && dom[1]) in DomainEndsInDot()
60 if (dom[0] == '\\') // advance past escaped byte sequence in DomainEndsInDot()
62 if (mDNSIsDigit(dom[1]) && mDNSIsDigit(dom[2]) && mDNSIsDigit(dom[3])) in DomainEndsInDot()
63 dom += 4; // If "\ddd" then skip four in DomainEndsInDot()
64 else dom += 2; // else if "\x" then skip two in DomainEndsInDot()
66 else dom++; // else goto next character in DomainEndsInDot()
68 return (dom[0] == '.'); in DomainEndsInDot()
/external/apache-xml/src/main/java/org/apache/xml/dtm/ref/dom2dtm/
DDOM2DTMdefaultNamespaceDeclarationNode.java26 import org.w3c.dom.Attr;
27 import org.w3c.dom.Document;
28 import org.w3c.dom.Element;
29 import org.w3c.dom.NamedNodeMap;
30 import org.w3c.dom.Node;
31 import org.w3c.dom.NodeList;
32 import org.w3c.dom.TypeInfo;
33 import org.w3c.dom.UserDataHandler;
34 import org.w3c.dom.DOMException;
/external/python/cpython2/Doc/library/
Dxml.dom.minidom.rst1 :mod:`xml.dom.minidom` --- Minimal DOM implementation
4 .. module:: xml.dom.minidom
13 **Source code:** :source:`Lib/xml/dom/minidom.py`
17 :mod:`xml.dom.minidom` is a minimal implementation of the Document Object
26 The :mod:`xml.dom.minidom` module is not secure against
32 :mod:`xml.dom.minidom`, this is done through the parse functions::
34 from xml.dom.minidom import parse, parseString
75 :func:`getDOMImplementation` function in the :mod:`xml.dom` package or the
76 :mod:`xml.dom.minidom` module. Using the implementation from the
77 :mod:`xml.dom.minidom` module will always return a :class:`Document` instance
[all …]
/external/icu/tools/srcgen/src/main/java/com/android/icu4j/srcgen/
DTranslateJcite.java26 import org.eclipse.jdt.core.dom.AST;
27 import org.eclipse.jdt.core.dom.ASTNode;
28 import org.eclipse.jdt.core.dom.BodyDeclaration;
29 import org.eclipse.jdt.core.dom.Comment;
30 import org.eclipse.jdt.core.dom.IDocElement;
31 import org.eclipse.jdt.core.dom.LineComment;
32 import org.eclipse.jdt.core.dom.TagElement;
33 import org.eclipse.jdt.core.dom.rewrite.ASTRewrite;

12345678910>>...21