/packages/apps/UnifiedEmail/src/com/android/mail/lib/html/parser/ |
H A D | HtmlWhitelist.java | 16 package com.android.mail.lib.html.parser;
|
H A D | HTML.java | 16 package com.android.mail.lib.html.parser;
|
H A D | HtmlParser.java | 16 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 D | HtmlTree.java | 16 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 D | HtmlTreeBuilder.java | 16 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 D | HtmlDocument.java | 16 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 D | HTML4.java | 16 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 D | HtmlWhitelist.java | 17 package com.google.android.mail.common.html.parser;
|
H A D | HTML.java | 17 package com.google.android.mail.common.html.parser;
|
H A D | HtmlParser.java | 16 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 D | HtmlTree.java | 16 package com.google.android.mail.common.html.parser; 35 * HtmlTree represents a parsed and well-formed html text, it provides 39 * We don't really build a html tree data structure. Instead, for 52 // http://www.w3.org/TR/html4/struct/text.html#h-9.1 101 /** Contains html nodes */ 114 /** The html string (lazy creation) */ 115 private String html; field in class:HtmlTree 190 * Gets the entire html. 197 * Gets the entire html, if wrapSize is > 0, it tries to do wrapping at the 201 if (html [all...] |
H A D | HtmlTreeBuilder.java | 16 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 D | HtmlDocument.java | 17 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 D | HTML4.java | 17 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 D | Rfc822Output.java | 80 /*package*/ static String getHtmlBody(String html) { argument 81 final Matcher match = BODY_PATTERN.matcher(html); 85 return html; // Body not found; return the full HTML and hope for the best 367 boolean html = false; 371 html = true; 377 final String mimeType = "text/" + (html ? "html" : "plain");
|
/packages/apps/UnifiedEmail/src/com/android/emailcommon/utility/ |
H A D | TextUtilities.java | 57 // 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/print/ |
H A D | PrintUtils.java | 84 * Prints the html provided using the framework printing APIs. 89 private static void printHtml(Context context, String html, argument 95 webView.loadDataWithBaseURL(baseUri, html, 96 "text/html", "utf-8", null); 107 * Builds an html document that is suitable for printing and returns it as a {@link String}. 121 // for each message in the conversation, add message html 134 * Builds an html document suitable for printing and returns it as a {@link String}. 143 // add message html 153 * Adds the html for a single message to the 169 * Builds html fo [all...] |
/packages/apps/UnifiedEmail/src/com/android/mail/utils/ |
H A D | HtmlUtils.java | 33 import com.google.android.mail.common.html.parser.HTML; 34 import com.google.android.mail.common.html.parser.HTML4; 35 import com.google.android.mail.common.html.parser.HtmlDocument; 36 import com.google.android.mail.common.html.parser.HtmlTree; 47 * @param html 50 public static Spanned htmlToSpan(String html, HtmlTree.ConverterFactory factory) { argument 52 // Get the html "tree" 53 final HtmlTree htmlTree = com.android.mail.utils.Utils.getHtmlTree(html); 58 LogUtils.v(LOG_TAG, "htmlToSpan completed, input: %d, result: %d", html.length(), 64 * Class that handles converting the html int [all...] |
H A D | NotificationUtils.java | 73 import com.google.android.mail.common.html.parser.HTML; 74 import com.google.android.mail.common.html.parser.HTML4; 75 import com.google.android.mail.common.html.parser.HtmlDocument; 76 import com.google.android.mail.common.html.parser.HtmlTree; 1844 public static String getMessageBodyWithoutElidedText(String html) { argument 1845 if (TextUtils.isEmpty(html)) { 1848 // Get the html "tree" for this message body 1849 final HtmlTree htmlTree = com.android.mail.utils.Utils.getHtmlTree(html); 1951 // Strings for parsing html message bodies
|
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ |
H A D | HtmlConversationTemplates.java | 110 static String replaceAbsoluteImgUrls(final String html) { argument 111 return sAbsoluteImgUrlPattern.matcher(html).replaceAll(IMG_URL_REPLACEMENT);
|
/packages/apps/UnifiedEmail/src/com/android/mail/compose/ |
H A D | ComposeActivity.java | 114 import com.google.android.mail.common.html.parser.HtmlTree; 170 * Expected to be html formatted text. 1365 protected String onHtmlifyEnd(String html, Object extras) { argument 1366 return html; 1511 // Find the offset in the html text of the actual quoted text and strip it out. 3102 // Only take refMessage into account if either one of its html/text is not empty. 3106 // between text/html and text/plain parts and they should be stored seperately and 3107 // the right version should be used in the UI. text/html should have preference 3109 // properly handle the existing of both text/html and text/plain parts and to verify 3110 // that we are not making some assumptions that break if there is no text/html par [all...] |