Home
last modified time | relevance | path

Searched refs:HtmlDocument (Results 1 – 7 of 7) sorted by relevance

/packages/apps/UnifiedEmail/src/com/google/android/mail/common/html/parser/
DHtmlParser.java61 private List<HtmlDocument.Node> nodes;
187 public HtmlDocument parse(String html) { in parse()
237 HtmlDocument doc = new HtmlDocument(nodes); in parse()
251 static List<HtmlDocument.Node> coalesceTextNodes( in coalesceTextNodes()
252 List<HtmlDocument.Node> nodes) { in coalesceTextNodes()
253 List<HtmlDocument.Node> out = in coalesceTextNodes()
254 new ArrayList<HtmlDocument.Node>(nodes.size()); in coalesceTextNodes()
255 LinkedList<HtmlDocument.Text> textNodes = Lists.newLinkedList(); in coalesceTextNodes()
257 for (HtmlDocument.Node node : nodes) { in coalesceTextNodes()
258 if (node instanceof HtmlDocument.Text) { in coalesceTextNodes()
[all …]
DHtmlTree.java79 void addNode(HtmlDocument.Node n, int nodeNum, int endNum); in addNode()
102 private final List<HtmlDocument.Node> nodes = new ArrayList<HtmlDocument.Node>();
149 public List<HtmlDocument.Node> getNodesList() { in getNodesList()
223 HtmlDocument.Node node = nodes.get(n); in getHtml()
232 if ((node instanceof HtmlDocument.Tag && in getHtml()
233 ((HtmlDocument.Tag) node).getElement().breaksFlow()) || in getHtml()
234 (node instanceof HtmlDocument.EndTag && in getHtml()
235 ((HtmlDocument.EndTag) node).getElement().breaksFlow())) { in getHtml()
273 HtmlDocument.Node node = nodes.get(n); in getHtmlChunks()
276 if (node instanceof HtmlDocument.Tag) { in getHtmlChunks()
[all …]
DHtmlTreeBuilder.java19 import com.google.android.mail.common.html.parser.HtmlDocument.EndTag;
34 public class HtmlTreeBuilder implements HtmlDocument.Visitor {
69 public void visitTag(HtmlDocument.Tag t) { in visitTag()
82 tree.addStartTag(HtmlDocument.createTag(element, in visitTag()
85 EndTag end = HtmlDocument.createEndTag(element); in visitTag()
95 public void visitEndTag(HtmlDocument.EndTag t) { in visitEndTag()
118 public void visitText(HtmlDocument.Text t) { in visitText()
124 public void visitComment(HtmlDocument.Comment n) { in visitComment()
146 HtmlDocument.EndTag endTag = HtmlDocument.createEndTag(element); in addMissingEndTag()
195 void seeTag(HtmlDocument.Tag tag) { in seeTag()
[all …]
DHtmlDocument.java40 public class HtmlDocument { class
48 public HtmlDocument(List<Node> nodes) { in HtmlDocument() method in HtmlDocument
217 public HtmlDocument filter(MultiplexFilter filter) { in filter()
224 return new HtmlDocument(newNodes); in filter()
1168 private HtmlDocument doc;
1204 doc = new HtmlDocument(nodes); in finish()
1208 public HtmlDocument getDocument() { in getDocument()
/packages/apps/UnifiedEmail/src/com/android/mail/utils/
DHtmlUtils.java35 import com.google.android.mail.common.html.parser.HtmlDocument;
90 public void addNode(HtmlDocument.Node n, int nodeNum, int endNum) { in addNode()
93 if (n instanceof HtmlDocument.Tag) { in addNode()
94 handleStart((HtmlDocument.Tag) n); in addNode()
95 } else if (n instanceof HtmlDocument.EndTag) { in addNode()
96 handleEnd((HtmlDocument.EndTag) n); in addNode()
112 protected void handleStart(HtmlDocument.Tag tag) { in handleStart()
122 protected void handleEnd(HtmlDocument.EndTag tag) { in handleEnd()
145 HtmlDocument.TagAttribute attr = lastSeen.tag.getAttribute(HTML4.HREF_ATTRIBUTE); in handleEnd()
175 HtmlDocument.TagAttribute attr = wrapper.tag.getAttribute(HTML4.COLOR_ATTRIBUTE); in handleFont()
[all …]
DNotificationUtils.java68 import com.google.android.mail.common.html.parser.HtmlDocument;
1952 private static final HtmlDocument.Node ELIDED_TEXT_REPLACEMENT_NODE =
1953 HtmlDocument.createSelfTerminatingTag(HTML4.BR_ELEMENT, null, null, null);
1958 public void addNode(HtmlDocument.Node n, int nodeNum, int endNum) { in addNode()
1968 if (n instanceof HtmlDocument.Tag) { in addNode()
1970 final HtmlDocument.Tag htmlTag = (HtmlDocument.Tag)n; in addNode()
1974 final List<HtmlDocument.TagAttribute> attributes = in addNode()
1976 for (HtmlDocument.TagAttribute attribute : attributes) { in addNode()
DUtils.java65 import com.google.android.mail.common.html.parser.HtmlDocument;
371 final HtmlDocument doc = parser.parse(htmlText); in getHtmlTree()