Home
last modified time | relevance | path

Searched refs:element (Results 1 – 25 of 46) sorted by relevance

12

/packages/apps/UnifiedEmail/src/com/google/android/mail/common/html/parser/
DHtmlTreeBuilder.java72 HTML.Element element = t.getElement(); in visitTag() local
73 if (element.isEmpty()) { in visitTag()
82 tree.addStartTag(HtmlDocument.createTag(element, in visitTag()
85 EndTag end = HtmlDocument.createEndTag(element); in visitTag()
90 push(element); // Track the open tags in visitTag()
98 HTML.Element element = t.getElement(); in visitEndTag() local
99 int pos = findStartTag(element); in visitEndTag()
113 logger.finest("Ignoring end tag: " + element.getName()); in visitEndTag()
129 private int findStartTag(HTML.Element element) { in findStartTag() argument
132 if (e == element) { in findStartTag()
[all …]
DHtmlDocument.java100 public static Tag createTag(HTML.Element element, List<TagAttribute> attributes) { in createTag() argument
101 return createTag(element, attributes, null, null); in createTag()
108 public static Tag createTag(HTML.Element element, in createTag() argument
111 return new Tag(element, attributes, false, originalHtmlBeforeAttributes, in createTag()
119 public static Tag createSelfTerminatingTag(HTML.Element element, in createSelfTerminatingTag() argument
121 return createSelfTerminatingTag(element, attributes, null, null); in createSelfTerminatingTag()
128 public static Tag createSelfTerminatingTag(HTML.Element element, in createSelfTerminatingTag() argument
131 return new Tag(element, attributes, true, originalHtmlBeforeAttributes, in createSelfTerminatingTag()
138 public static EndTag createEndTag(HTML.Element element) { in createEndTag() argument
139 return createEndTag(element, null); in createEndTag()
[all …]
DHtmlParser.java665 HTML.Element element = null; in scanTag() local
679 element = lookupUnknownElement(""); in scanTag()
682 element = lookupElement(tagName); in scanTag()
683 if (element == null) { in scanTag()
689 element = lookupUnknownElement(tagName); in scanTag()
719 if (element != null) { in scanTag()
720 addEndTag(element, start, allAttributesStartPos, pos); in scanTag()
740 if (element != null) { in scanTag()
777 if (element != null) { in scanTag()
779 addEndTag(element, start, allAttributesStartPos, pos); in scanTag()
[all …]
DHtmlTree.java872 HTML.Element element = tag.getElement();
874 if (BLANK_LINE_ELEMENTS.contains(element)) {
877 } else if (HTML4.BR_ELEMENT.equals(element)) {
881 } else if (element.breaksFlow()) {
885 if (HTML4.HR_ELEMENT.equals(element)) {
891 if (HTML4.BLOCKQUOTE_ELEMENT.equals(element)) {
894 } else if (HTML4.PRE_ELEMENT.equals(element)) {
896 } else if (HTML4.STYLE_ELEMENT.equals(element)) {
904 HTML.Element element = endTag.getElement();
906 if (BLANK_LINE_ELEMENTS.contains(element)) {
[all …]
/packages/apps/UnifiedEmail/src/com/android/mail/lib/html/parser/
DHtmlTreeBuilder.java72 HTML.Element element = t.getElement(); in visitTag() local
73 if (element.isEmpty()) { in visitTag()
82 tree.addStartTag(HtmlDocument.createTag(element, in visitTag()
85 EndTag end = HtmlDocument.createEndTag(element); in visitTag()
90 push(element); // Track the open tags in visitTag()
98 HTML.Element element = t.getElement(); in visitEndTag() local
99 int pos = findStartTag(element); in visitEndTag()
113 logger.finest("Ignoring end tag: " + element.getName()); in visitEndTag()
129 private int findStartTag(HTML.Element element) { in findStartTag() argument
132 if (e == element) { in findStartTag()
[all …]
DHtmlDocument.java99 public static Tag createTag(HTML.Element element, List<TagAttribute> attributes) { in createTag() argument
100 return createTag(element, attributes, null, null); in createTag()
107 public static Tag createTag(HTML.Element element, in createTag() argument
110 return new Tag(element, attributes, false, originalHtmlBeforeAttributes, in createTag()
118 public static Tag createSelfTerminatingTag(HTML.Element element, in createSelfTerminatingTag() argument
120 return createSelfTerminatingTag(element, attributes, null, null); in createSelfTerminatingTag()
127 public static Tag createSelfTerminatingTag(HTML.Element element, in createSelfTerminatingTag() argument
130 return new Tag(element, attributes, true, originalHtmlBeforeAttributes, in createSelfTerminatingTag()
137 public static EndTag createEndTag(HTML.Element element) { in createEndTag() argument
138 return createEndTag(element, null); in createEndTag()
[all …]
DHtmlParser.java665 HTML.Element element = null; in scanTag() local
679 element = lookupUnknownElement(""); in scanTag()
682 element = lookupElement(tagName); in scanTag()
683 if (element == null) { in scanTag()
689 element = lookupUnknownElement(tagName); in scanTag()
719 if (element != null) { in scanTag()
720 addEndTag(element, start, allAttributesStartPos, pos); in scanTag()
740 if (element != null) { in scanTag()
777 if (element != null) { in scanTag()
779 addEndTag(element, start, allAttributesStartPos, pos); in scanTag()
[all …]
DHtmlTree.java834 HTML.Element element = tag.getElement();
836 if (BLANK_LINE_ELEMENTS.contains(element)) {
839 } else if (HTML4.BR_ELEMENT.equals(element)) {
843 } else if (element.breaksFlow()) {
847 if (HTML4.HR_ELEMENT.equals(element)) {
853 if (HTML4.BLOCKQUOTE_ELEMENT.equals(element)) {
856 } else if (HTML4.PRE_ELEMENT.equals(element)) {
864 HTML.Element element = endTag.getElement();
866 if (BLANK_LINE_ELEMENTS.contains(element)) {
869 } else if (element.breaksFlow()) {
[all …]
DHTML4.java121 HTML.Element element = new HTML.Element(tag, type, empty, optionalEndTag, breaksFlow, flow); in addElement() local
122 elements.put(tag, element); in addElement()
123 return element; in addElement()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/
DPointerTrackerQueue.java74 final Element element = expandableArray.get(index); in remove() local
75 if (element == pointer) { in remove()
83 expandableArray.set(newIndex, element); in remove()
106 final Element element = expandableArray.get(index); in releaseAllPointersOlderThan() local
107 if (element == pointer) { in releaseAllPointersOlderThan()
110 if (!element.isModifier()) { in releaseAllPointersOlderThan()
111 element.onPhantomUpEvent(eventTime); in releaseAllPointersOlderThan()
116 expandableArray.set(newIndex, element); in releaseAllPointersOlderThan()
123 final Element element = expandableArray.get(index); in releaseAllPointersOlderThan() local
124 if (element == pointer) { in releaseAllPointersOlderThan()
[all …]
/packages/apps/Mms/src/com/android/mms/dom/smil/
DSmilPlayer.java205 private static ArrayList<TimelineEntry> getTimeline(ElementTime element, in getTimeline() argument
207 if (element instanceof ElementParallelTimeContainer) { in getTimeline()
208 return getParTimeline((ElementParallelTimeContainer) element, offset, maxOffset); in getTimeline()
209 } else if (element instanceof ElementSequentialTimeContainer) { in getTimeline()
210 return getSeqTimeline((ElementSequentialTimeContainer) element, offset, maxOffset); in getTimeline()
215 TimeList beginList = element.getBegin(); in getTimeline()
222 element, TimelineEntry.ACTION_BEGIN); in getTimeline()
228 TimeList endList = element.getEnd(); in getTimeline()
235 element, TimelineEntry.ACTION_END); in getTimeline()
397 private synchronized double getOffsetTime(ElementTime element) { in getOffsetTime() argument
[all …]
DElementTimeContainerImpl.java30 ElementTimeContainerImpl(SMILElement element) { in ElementTimeContainerImpl() argument
31 super(element); in ElementTimeContainerImpl()
DElementSequentialTimeContainerImpl.java37 ElementSequentialTimeContainerImpl(SMILElement element) { in ElementSequentialTimeContainerImpl() argument
38 super(element); in ElementSequentialTimeContainerImpl()
/packages/apps/Nfc/nci/jni/
DRouteDataSet.cpp334 void RouteDataSet::importProtocolRoute (xmlNodePtr& element, Database& database) in importProtocolRoute() argument
346 ALOGD_IF (sDebug, "%s: element=%s", fn, element->name); in importProtocolRoute()
347 value = xmlGetProp (element, id); in importProtocolRoute()
362 value = xmlGetProp (element, secElem); in importProtocolRoute()
371 value = xmlGetProp (element, switchOn); in importProtocolRoute()
378 value = xmlGetProp (element, switchOff); in importProtocolRoute()
385 value = xmlGetProp (element, batteryOff); in importProtocolRoute()
406 void RouteDataSet::importTechnologyRoute (xmlNodePtr& element, Database& database) in importTechnologyRoute() argument
418 ALOGD_IF (sDebug, "%s: element=%s", fn, element->name); in importTechnologyRoute()
419 value = xmlGetProp (element, id); in importTechnologyRoute()
[all …]
DRouteDataSet.h292 void importProtocolRoute (xmlNodePtr& element, Database& database);
306 void importTechnologyRoute (xmlNodePtr& element, Database& database);
/packages/inputmethods/LatinIME/tools/make-keyboard-text/src/com/android/inputmethod/keyboard/tools/
DArrayInitializerFormatter.java68 public void outElement(String element) { in outElement() argument
69 if (!element.equals(mFixedElement)) { in outElement()
73 final int nextLen = mBufferedLen + " ".length() + element.length(); in outElement()
76 mBuffer.append(element); in outElement()
83 mBuffer.append(element); in outElement()
84 mBufferedLen = element.length(); in outElement()
87 mFixedElement = element; in outElement()
/packages/apps/Mms/src/com/android/mms/dom/smil/parser/
DSmilXmlSerializer.java47 private static void writeElement(Writer writer, Element element) in writeElement() argument
50 writer.write(element.getTagName()); in writeElement()
52 if (element.hasAttributes()) { in writeElement()
53 NamedNodeMap attributes = element.getAttributes(); in writeElement()
62 SMILElement childElement = (SMILElement) element.getFirstChild(); in writeElement()
73 writer.write(element.getTagName()); in writeElement()
DSmilContentHandler.java60 Element element = mSmilDocument.createElement(localName); in startElement() local
68 element.setAttribute(attributes.getLocalName(i), in startElement()
75 mCurrentNode.appendChild(element); in startElement()
77 mCurrentNode = element; in startElement()
/packages/apps/Bluetooth/src/com/android/bluetooth/map/
DBluetoothMapMessageListing.java37 public void add(BluetoothMapMessageListingElement element) { in add() argument
38 list.add(element); in add()
40 if (element.getRead().equalsIgnoreCase("no")) in add()
84 for (BluetoothMapMessageListingElement element : list) { in encode()
85 element.encode(xmlMsgElement); // Append the list element in encode()
DBluetoothMapbMessage.java821 for(vCard element : originator) in encodeGeneric()
822 element.encode(sb); in encodeGeneric()
830 for(vCard element : recipient) in encodeGeneric()
831 element.encode(sb); in encodeGeneric()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/
DStringUtils.java62 for (final String element : array) { in containsInArray()
63 if (text.equals(element)) return true; in containsInArray()
104 for (final String element : elements) { in removeFromCommaSplittableTextIfExists()
105 if (!text.equals(element)) { in removeFromCommaSplittableTextIfExists()
106 result.add(element); in removeFromCommaSplittableTextIfExists()
/packages/apps/Gallery2/src/android/util/
DPools.java159 public boolean release(T element) { in release() argument
161 return super.release(element); in release()
/packages/apps/Launcher3/WallpaperPicker/src/android/util/
DPools.java159 public boolean release(T element) { in release() argument
161 return super.release(element); in release()
/packages/apps/Camera2/src/android/util/
DPools.java159 public boolean release(T element) { in release() argument
161 return super.release(element); in release()
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/decoder/
DUnboundedFifoByteBuffer.java176 byte element = buffer[head]; in remove()
183 return element; in remove()

12