Home
last modified time | relevance | path

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

12345678910>>...13

/external/skia/src/views/
DSkParsePaint.cpp14 static SkShader* inflate_shader(const SkDOM& dom, const SkDOM::Node* node) in inflate_shader() argument
16 if ((node = dom.getFirstChild(node, "shader")) == NULL) in inflate_shader()
21 if (dom.hasAttr(node, "type", "linear-gradient")) in inflate_shader()
27 if ((str = dom.findAttr(node, "c0")) != NULL && in inflate_shader()
29 (str = dom.findAttr(node, "c1")) != NULL && in inflate_shader()
31 dom.findScalars(node, "p0", &pts[0].fX, 2) && in inflate_shader()
32 dom.findScalars(node, "p1", &pts[1].fX, 2)) in inflate_shader()
37 if ((index = dom.findList(node, "tile-mode", "clamp,repeat,mirror")) >= 0) in inflate_shader()
42 else if (dom.hasAttr(node, "type", "bitmap")) in inflate_shader()
44 if ((str = dom.findAttr(node, "src")) == NULL) in inflate_shader()
[all …]
DSkViewInflate.cpp20 void SkViewInflate::rInflate(const SkDOM& dom, const SkDOM::Node* node, SkView* parent) in rInflate() argument
22 const char* str = dom.findAttr(node, "id"); in rInflate()
26 const SkDOM::Node* child = dom.getFirstChild(node); in rInflate()
29 SkView* view = this->createView(dom, child); in rInflate()
32 this->rInflate(dom, child, view); in rInflate()
37 const char* name = dom.getName(child); in rInflate()
40 if (!strcmp(name, "listenTo") && (target = dom.findAttr(child, "target")) != NULL) in rInflate()
43 if (!strcmp(name, "broadcastTo") && (target = dom.findAttr(child, "target")) != NULL) in rInflate()
46 child = dom.getNextSibling(child); in rInflate()
50 this->inflateView(parent, dom, node); in rInflate()
[all …]
DSkWidgets.cpp18 static void assert_no_attr(const SkDOM& dom, const SkDOM::Node* node, const char attr[])
20 const char* value = dom.findAttr(node, attr);
25 #define assert_no_attr(dom, node, attr)
129 void SkWidget::onInflate(const SkDOM& dom, const SkDOM::Node* node)
131 this->INHERITED::onInflate(dom, node);
133 if ((node = dom.getFirstChild(node, "event")) != NULL)
134 fEvent.inflate(dom, node);
177 void SkHasLabelWidget::onInflate(const SkDOM& dom, const SkDOM::Node* node)
179 this->INHERITED::onInflate(dom, node);
181 const char* text = dom.findAttr(node, "label");
[all …]
DSkStackViewLayout.cpp188 static void assert_no_attr(const SkDOM& dom, const SkDOM::Node* node, const char attr[]) in assert_no_attr() argument
190 const char* value = dom.findAttr(node, attr); in assert_no_attr()
195 #define assert_no_attr(dom, node, attr) argument
198 void SkStackViewLayout::onInflate(const SkDOM& dom, const SkDOM::Node* node) in onInflate() argument
203 if ((index = dom.findList(node, "orient", "horizontal,vertical")) >= 0) in onInflate()
206 assert_no_attr(dom, node, "orient"); in onInflate()
209 if (dom.findScalars(node, "margin", value, 4)) in onInflate()
216 assert_no_attr(dom, node, "margin"); in onInflate()
219 if (dom.findScalar(node, "spacer", value)) in onInflate()
222 assert_no_attr(dom, node, "spacer"); in onInflate()
[all …]
DSkEvent.cpp124 void SkEvent::inflate(const SkDOM& dom, const SkDOM::Node* node) in inflate() argument
126 const char* name = dom.findAttr(node, "type"); in inflate()
131 if ((value = dom.findAttr(node, "fast32")) != NULL) in inflate()
138 for (node = dom.getFirstChild(node); node; node = dom.getNextSibling(node)) in inflate()
140 if (strcmp(dom.getName(node), "data")) in inflate()
142 … SkDEBUGCODE(SkDebugf("SkEvent::inflate unrecognized subelement <%s>\n", dom.getName(node));) in inflate()
146 name = dom.findAttr(node, "name"); in inflate()
153 if ((value = dom.findAttr(node, "s32")) != NULL) in inflate()
159 else if ((value = dom.findAttr(node, "scalar")) != NULL) in inflate()
165 else if ((value = dom.findAttr(node, "string")) != NULL) in inflate()
/external/skia/tests/
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/skia/src/views/animated/
DSkStaticTextView.cpp12 static void assert_no_attr(const SkDOM& dom, const SkDOM::Node* node, const char attr[]) in assert_no_attr() argument
14 const char* value = dom.findAttr(node, attr); in assert_no_attr()
19 #define assert_no_attr(dom, node, attr) argument
151 void SkStaticTextView::onInflate(const SkDOM& dom, const SkDOM::Node* node) in onInflate() argument
154 this->INHERITED::onInflate(dom, node); in onInflate()
157 if ((index = dom.findList(node, "mode", "fixed,auto-width,auto-height")) >= 0) { in onInflate()
160 assert_no_attr(dom, node, "mode"); in onInflate()
163 if ((index = dom.findList(node, "spacing-align", "start,center,end")) >= 0) { in onInflate()
166 assert_no_attr(dom, node, "spacing-align"); in onInflate()
170 if (dom.findScalars(node, "margin", s, 2)) { in onInflate()
[all …]
DSkWidgetViews.cpp73 void inflate_paint(const SkDOM& dom, const SkDOM::Node* node, SkPaint* paint) in inflate_paint() argument
80 if (!anim.decodeDOM(dom, node)) in inflate_paint()
83 SkDEBUGCODE(dom.dump(node);) in inflate_paint()
148 /*virtual*/ void SkWidgetView::onInflate(const SkDOM& dom, const SkDOM::Node* node) in onInflate() argument
150 this->INHERITED::onInflate(dom, node); in onInflate()
152 const char* label = dom.findAttr(node, "label"); in onInflate()
156 if ((node = dom.getFirstChild(node, "event")) != NULL) in onInflate()
157 fEvent.inflate(dom, node); in onInflate()
214 /*virtual*/ void SkCheckButtonView::onInflate(const SkDOM& dom, const SkDOM::Node* node) in onInflate() argument
216 this->INHERITED::onInflate(dom, node); in onInflate()
[all …]
/external/skia/samplecode/
DSampleAnimator.cpp63 static const SkDOMNode* find_nodeID(const SkDOM& dom, in find_nodeID() argument
66 node = dom.getRootNode(); in find_nodeID()
69 const char* idval = dom.findAttr(node, "id"); in find_nodeID()
73 const SkDOMNode* child = dom.getFirstChild(node); in find_nodeID()
75 const SkDOMNode* found = find_nodeID(dom, child, name); in find_nodeID()
80 } while ((node = dom.getNextSibling(node)) != NULL); in find_nodeID()
98 SkDOM dom; in decodeStream() local
99 const SkDOM::Node* root = dom.build(text, len); in decodeStream()
103 if (!fAnimator->decodeDOM(dom, root)) { in decodeStream()
111 const SkDOM::Node* node = find_nodeID(dom, NULL, name.c_str()); in decodeStream()
[all …]
/external/skia/src/xml/
DSkDOM.cpp17 bool SkXMLParser::parse(const SkDOM& dom, const SkDOMNode* node) in parse() argument
19 const char* elemName = dom.getName(node); in parse()
24 SkDOM::AttrIter iter(dom, node); in parse()
31 if ((node = dom.getFirstChild(node)) != NULL) in parse()
33 if (!this->parse(dom, node)) in parse()
35 } while ((node = dom.getNextSibling(node)) != NULL); in parse()
330 static void walk_dom(const SkDOM& dom, const SkDOM::Node* node, SkXMLParser* parser) in walk_dom() argument
332 const char* elem = dom.getName(node); in walk_dom()
333 if (dom.getType(node) == SkDOM::kText_Type) { in walk_dom()
334 SkASSERT(dom.countChildren(node) == 0); in walk_dom()
[all …]
DSkXMLWriter.cpp168 static void write_dom(const SkDOM& dom, const SkDOM::Node* node, SkXMLWriter* w, bool skipRoot) in write_dom() argument
172 const char* elem = dom.getName(node); in write_dom()
173 if (dom.getType(node) == SkDOM::kText_Type) { in write_dom()
174 SkASSERT(dom.countChildren(node) == 0); in write_dom()
181 SkDOM::AttrIter iter(dom, node); in write_dom()
188 node = dom.getFirstChild(node, NULL); in write_dom()
191 write_dom(dom, node, w, false); in write_dom()
192 node = dom.getNextSibling(node, NULL); in write_dom()
199 void SkXMLWriter::writeDOM(const SkDOM& dom, const SkDOM::Node* node, bool skipRoot) in writeDOM() argument
202 write_dom(dom, node, this, skipRoot); in writeDOM()
/external/parameter-framework/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/eclipse-basebuilder/basebuilder-3.6.2/org.eclipse.releng.basebuilder/configuration/org.eclipse.osgi/bundles/93/1/.cp/
Dconvert.jar ... .dom.LogDocumentNode process (org.w3c.dom.Document) org.w3c.dom.Document ...
/external/owasp/sanitizer/tools/findbugs/lib/
Ddom4j-1.6.1.jar ... org/dom4j/datatype/ org/dom4j/dom/ org/dom4j/dtd/ org/dom4j ...
/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/include/views/
DSkWidget.h40 virtual void onInflate(const SkDOM& dom, const SkDOM::Node* node);
64 virtual void onInflate(const SkDOM& dom, const SkDOM::Node*);
90 virtual void onInflate(const SkDOM& dom, const SkDOM::Node*);
122 virtual void onInflate(const SkDOM& dom, const SkDOM::Node*);
163 virtual void onInflate(const SkDOM& dom, const SkDOM::Node*);
212 virtual void onInflate(const SkDOM& dom, const SkDOM::Node*);
223 virtual void onInflate(const SkDOM& dom, const SkDOM::Node*);
242 virtual void onInflate(const SkDOM& dom, const SkDOM::Node*);
263 virtual void onInflate(const SkDOM& dom, const SkDOM::Node* node);
284 static SkListSource* CreateFromDOM(const SkDOM& dom, const SkDOM::Node* node);
[all …]
DSkViewInflate.h29 SkView* inflate(const SkDOM& dom, const SkDOM::Node* node, SkView* root = NULL);
46 virtual SkView* createView(const SkDOM& dom, const SkDOM::Node* node);
51 virtual void inflateView(SkView* view, const SkDOM& dom, const SkDOM::Node* node);
68 void rInflate(const SkDOM& dom, const SkDOM::Node* node, SkView* parent);
/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/icu/icu4c/source/i18n/
Dgregoimp.h168 static double fieldsToDay(int32_t year, int32_t month, int32_t dom);
181 int32_t& dom, int32_t& dow, int32_t& doy);
193 int32_t& dom, int32_t& dow);
207 int32_t& dom, int32_t& dow, int32_t& doy, int32_t& mid);
224 static int32_t dayOfWeekInMonth(int32_t year, int32_t month, int32_t dom);
274 int32_t& dom, int32_t& dow) { in dayToFields() argument
276 dayToFields(day,year,month,dom,dow,doy_unused); in dayToFields()
Dgregoimp.cpp85 double Grego::fieldsToDay(int32_t year, int32_t month, int32_t dom) { in fieldsToDay() argument
91 DAYS_BEFORE[month + (isLeapYear(year) ? 12 : 0)] + dom; // => month/dom in fieldsToDay()
97 int32_t& dom, int32_t& dow, int32_t& doy) { in dayToFields() argument
130 dom = doy - DAYS_BEFORE[month + (isLeap ? 12 : 0)] + 1; // one-based DOM in dayToFields()
135 int32_t& dom, int32_t& dow, int32_t& doy, int32_t& mid) { in timeToFields() argument
139 dayToFields(day, year, month, dom, dow, doy); in timeToFields()
148 int32_t Grego::dayOfWeekInMonth(int32_t year, int32_t month, int32_t dom) { in dayOfWeekInMonth() argument
149 int32_t weekInMonth = (dom + 6)/7; in dayOfWeekInMonth()
151 if (dom + 7 > monthLength(year, month)) { in dayOfWeekInMonth()
/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/apache-xml/src/main/java/org/apache/xpath/objects/
DXObjectFactory.java140 else if (val instanceof org.w3c.dom.Node) in create()
142 result = new XNodeSetForDOM((org.w3c.dom.Node)val, xctxt); in create()
146 else if (val instanceof org.w3c.dom.NodeList) in create()
148 result = new XNodeSetForDOM((org.w3c.dom.NodeList)val, xctxt); in create()
150 else if (val instanceof org.w3c.dom.traversal.NodeIterator) in create()
152 result = new XNodeSetForDOM((org.w3c.dom.traversal.NodeIterator)val, xctxt); in create()
/external/mdnsresponder/Clients/
Ddns-sd.c984 …const char *nam, const char *typ, const char *dom, const char *host, const char *port, int argc, c… in RegisterService() argument
993 …if (dom[0] == '.' && dom[1] == 0) dom = ""; // We allow '.' on the command line as a synonym for… in RegisterService()
995 printf("Registering Service %s.%s%s%s", nam[0] ? nam : "<<Default>>", typ, dom[0] ? "." : "", dom); in RegisterService()
1021 …return(DNSServiceRegister(sdref, flags, opinterface, nam, typ, dom, host, registerPort.NotAnIntege… in RegisterService()
1035 char buffer[TypeBufferSize], *typ, *dom; in main() local
1121dom = (argc < opi+2) ? "" : argv[opi+1]; // Missing domain argument is the same as empty string i… in main()
1123 …if (dom[0] == '.' && dom[1] == 0) dom[0] = 0; // We allow '.' on the command line as a synonym f… in main()
1124 printf("Browsing for %s%s%s\n", typ, dom[0] ? "." : "", dom); in main()
1125 err = DNSServiceBrowse(&client, flags, opinterface, typ, dom, browse_reply, NULL); in main()
1129dom = (argc < opi+2) ? "" : argv[opi+1]; // Missing domain argument is the same as empty string i… in main()
[all …]
/external/apache-xml/src/main/java/org/apache/xml/dtm/ref/
DDTMNodeIterator.java27 import org.w3c.dom.DOMException;
28 import org.w3c.dom.Node;
29 import org.w3c.dom.traversal.NodeFilter;
59 public class DTMNodeIterator implements org.w3c.dom.traversal.NodeIterator
/external/antlr/antlr-3.4/runtime/ActionScript/project/lib/
DFlexAntTasks.jar ... xpp/ org/jaxen/ org/jaxen/dom/ org/jaxen/dom/html/ org ...

12345678910>>...13