Searched refs:html (Results 1 - 24 of 24) sorted by relevance

/packages/apps/UnifiedEmail/tests/src/com/android/mail/utils/
H A DNotificationUtilsTest.java22 import com.google.android.mail.common.html.parser.HtmlTree;
30 final String html = "<body style=3D=22margin:0; padding:0;=22>"
34 + " html =7B -webkit-text-size-adjust:none; =7D</style>"
37 // Get the html "tree" for this message body
38 final HtmlTree htmlTree = Utils.getHtmlTree(html);
56 final String html = "<body style=3D=22margin:0; padding:0;=22>"
60 + " html =7B -webkit-text-size-adjust:none; =7D"
61 + " <style>html =7B -webkit-text-size-adjust:none; =7D</style></style>"
64 // Get the html "tree" for this message body
65 final HtmlTree htmlTree = Utils.getHtmlTree(html);
[all...]
/packages/apps/UnifiedEmail/src/com/android/mail/lib/html/parser/
H A DHtmlWhitelist.java16 package com.android.mail.lib.html.parser;
H A DHtmlParser.java16 package com.android.mail.lib.html.parser;
37 * HtmlParser is a simple but efficient html parser.
39 * parser. It assumes that the entire html text is available.
57 // The html text
58 private String html; field in class:HtmlParser
184 * @param html String to parse
187 public HtmlDocument parse(String html) { argument
188 this.html = html;
195 int end = html
387 private final String html; field in class:HtmlParser.TagNameScanner
392 TagNameScanner(String html) argument
434 private final String html; field in class:HtmlParser.AttributeScanner
447 AttributeScanner(String html) argument
[all...]
H A DHtmlTreeBuilder.java16 package com.android.mail.lib.html.parser;
19 import com.android.mail.lib.html.parser.HtmlDocument.EndTag;
44 /** Gets the built html tree */
298 String html = new String(ByteStreams.toByteArray(System.in));
300 HtmlDocument doc = parser.parse(html);
H A DHTML.java16 package com.android.mail.lib.html.parser;
H A DHtmlTree.java16 package com.android.mail.lib.html.parser;
32 * HtmlTree represents a parsed and well-formed html text, it provides
36 * We don't really build a html tree data structure. Instead, for
96 /** Contains html nodes */
106 /** The html string (lazy creation) */
107 private String html; field in class:HtmlTree
153 * Gets the entire html.
160 * Gets the entire html, if wrapSize is > 0, it tries to do wrapping at the
164 if (html == null) {
165 html
[all...]
H A DHtmlDocument.java16 package com.android.mail.lib.html.parser;
32 * HtmlDocument is a container for a list of html nodes, and represents the
33 * entire html document. It contains toHTML() method which prints out the html
45 * @param nodes list of html nodes
338 private String html; field in class:HtmlDocument.Text
400 if (html == null) {
401 html = CharEscapers.asciiHtmlEscaper().escape(getText());
403 sb.append(html);
796 * This value must be in plain-text, not html
[all...]
H A DHTML4.java16 package com.android.mail.lib.html.parser;
29 * See http://www.w3.org/TR/html401/index/elements.html
30 * See http://www.w3.org/TR/html401/index/attributes.html
45 * @see com.google.common.html.parser.HtmlWhitelist#lookupElement(String)
52 * @see com.google.common.html.parser.HtmlWhitelist#lookupAttribute(String)
156 * http://www.w3.org/TR/REC-html40/sgml/dtd.html#block
157 * http://www.w3.org/TR/REC-html40/sgml/dtd.html#inline
164 * http://www.w3.org/TR/REC-html40/index/elements.html
/packages/apps/UnifiedEmail/src/com/google/android/mail/common/html/parser/
H A DHtmlWhitelist.java17 package com.google.android.mail.common.html.parser;
H A DHtmlParser.java16 package com.google.android.mail.common.html.parser;
37 * HtmlParser is a simple but efficient html parser.
39 * parser. It assumes that the entire html text is available.
57 // The html text
58 private String html; field in class:HtmlParser
184 * @param html String to parse
187 public HtmlDocument parse(String html) { argument
188 this.html = html;
195 int end = html
387 private final String html; field in class:HtmlParser.TagNameScanner
392 TagNameScanner(String html) argument
434 private final String html; field in class:HtmlParser.AttributeScanner
447 AttributeScanner(String html) argument
[all...]
H A DHtmlTreeBuilder.java16 package com.google.android.mail.common.html.parser;
19 import com.google.android.mail.common.html.parser.HtmlDocument.EndTag;
44 /** Gets the built html tree */
298 String html = new String(ByteStreams.toByteArray(System.in));
300 HtmlDocument doc = parser.parse(html);
H A DHTML.java17 package com.google.android.mail.common.html.parser;
H A DHtmlTree.java16 package com.google.android.mail.common.html.parser;
33 * HtmlTree represents a parsed and well-formed html text, it provides
37 * We don't really build a html tree data structure. Instead, for
50 // http://www.w3.org/TR/html4/struct/text.html#h-9.1
100 /** Contains html nodes */
110 /** The html string (lazy creation) */
111 private String html; field in class:HtmlTree
186 * Gets the entire html.
193 * Gets the entire html, if wrapSize is > 0, it tries to do wrapping at the
197 if (html
[all...]
H A DHtmlDocument.java17 package com.google.android.mail.common.html.parser;
33 * HtmlDocument is a container for a list of html nodes, and represents the
34 * entire html document. It contains toHTML() method which prints out the html
46 * @param nodes list of html nodes
339 private String html; field in class:HtmlDocument.Text
401 if (html == null) {
402 html = CharEscapers.asciiHtmlEscaper().escape(getText());
404 sb.append(html);
797 * This value must be in plain-text, not html
[all...]
H A DHTML4.java17 package com.google.android.mail.common.html.parser;
30 * See http://www.w3.org/TR/html401/index/elements.html
31 * See http://www.w3.org/TR/html401/index/attributes.html
46 * @see com.google.common.html.parser.HtmlWhitelist#lookupElement(String)
53 * @see com.google.common.html.parser.HtmlWhitelist#lookupAttribute(String)
157 * http://www.w3.org/TR/REC-html40/sgml/dtd.html#block
158 * http://www.w3.org/TR/REC-html40/sgml/dtd.html#inline
165 * http://www.w3.org/TR/REC-html40/index/elements.html
/packages/apps/Email/emailcommon/src/com/android/emailcommon/internet/
H A DRfc822Output.java80 /*package*/ static String getHtmlBody(String html) { argument
81 Matcher match = BODY_PATTERN.matcher(html);
85 return html; // Body not found; return the full HTML and hope for the best
368 boolean html = false;
372 html = true;
378 String mimeType = "text/" + (html ? "html" : "plain");
/packages/apps/UnifiedEmail/src/com/android/mail/ui/
H A DHtmlConversationTemplates.java132 static String replaceAbsoluteImgUrls(final String html) { argument
133 return sAbsoluteImgUrlPattern.matcher(html).replaceAll(IMG_URL_REPLACEMENT);
/packages/apps/Email/emailcommon/src/com/android/emailcommon/utility/
H A DAttachmentUtilities.java462 String html = body.mHtmlContent;
466 html = html.replaceAll(contentIdRe, srcContentUri);
467 cv.put(BodyColumns.HTML_CONTENT, html);
/packages/apps/UnifiedEmail/src/com/android/emailcommon/utility/
H A DTextUtilities.java57 // see http://www.w3.org/TR/REC-html40/sgml/entities.html
315 * Code to generate a short 'snippet' from either plain text or html text
562 * @param html whether or not the text to be processed is HTML
567 public static CharSequence highlightTerms(String text, String query, boolean html) argument
584 final Appendable sb = html ? new StringBuilder() : new SpannableStringBuilder();
594 if (html) {
658 if (html) {
/packages/apps/UnifiedEmail/src/com/android/mail/compose/
H A DQuotedTextView.java198 String html = "<head><style type=\"text/css\">* body { background-color: "
201 mQuotedTextWebView.loadDataWithBaseURL(null, html, "text/html", "utf-8", null);
206 // message after stripping the html.
/packages/apps/UnifiedEmail/src/com/android/mail/utils/
H A DNotificationUtils.java63 import com.google.android.mail.common.html.parser.HTML;
64 import com.google.android.mail.common.html.parser.HTML4;
65 import com.google.android.mail.common.html.parser.HtmlDocument;
66 import com.google.android.mail.common.html.parser.HtmlTree;
1399 public static String getMessageBodyWithoutElidedText(String html) { argument
1400 if (TextUtils.isEmpty(html)) {
1403 // Get the html "tree" for this message body
1404 final HtmlTree htmlTree = com.android.mail.utils.Utils.getHtmlTree(html);
1502 // Strings for parsing html message bodies
H A DUtils.java19 import com.google.android.mail.common.html.parser.HtmlDocument;
20 import com.google.android.mail.common.html.parser.HtmlParser;
21 import com.google.android.mail.common.html.parser.HtmlTree;
22 import com.google.android.mail.common.html.parser.HtmlTreeBuilder;
83 * longest extension we recognize is 4 characters (e.g. "html", "docx")
273 * <li><em>literal html to be included in the output</em></li>
/packages/apps/UnifiedEmail/src/com/android/mail/providers/protos/mock/
H A DMockUiProvider.java256 String html = "<html><body><b><i>This is some html!!!</i></b></body></html>";
257 messageMap.put(MessageColumns.BODY_HTML, html);
258 messageMap.put(MessageColumns.BODY_TEXT, Html.fromHtml(html));
/packages/apps/UnifiedEmail/tests/src/com/android/mail/compose/
H A DComposeActivityTest.java422 String html = "<html><body><b><i>This is some html!!!</i></b></body></html>";
423 messageValues[UIProvider.MESSAGE_BODY_HTML_COLUMN] = html;
424 messageValues[UIProvider.MESSAGE_BODY_TEXT_COLUMN] = Html.fromHtml(html);

Completed in 318 milliseconds