/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, "text/html", "utf-8", null); 108 * Builds an html document that is suitable for printing and returns it as a {@link String}. 122 // for each message in the conversation, add message html 135 * Builds an html document suitable for printing and returns it as a {@link String}. 144 // add message html 154 * Adds the html for a single message to the 171 * 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.i(LOG_TAG, "htmlToSpan completed, input: %d, result: %d", html.length(), 64 * Class that handles converting the html int [all...] |
H A D | NotificationUtils.java | 66 import com.google.android.mail.common.html.parser.HTML; 67 import com.google.android.mail.common.html.parser.HTML4; 68 import com.google.android.mail.common.html.parser.HtmlDocument; 69 import com.google.android.mail.common.html.parser.HtmlTree; 1815 public static String getMessageBodyWithoutElidedText(String html) { argument 1816 if (TextUtils.isEmpty(html)) { 1819 // Get the html "tree" for this message body 1820 final HtmlTree htmlTree = com.android.mail.utils.Utils.getHtmlTree(html); 1944 // 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 | 118 import com.google.android.mail.common.html.parser.HtmlTree; 180 * Expected to be html formatted text. 1105 // On configuration changes, we don't actually need to parse the body html ourselves because 1140 // Fallback to use the text version if html conversion fails for whatever the reason. 1434 protected String onHtmlifyEnd(String html, Object extras) { argument 1435 return html; 1596 // Find the offset in the html text of the actual quoted text and strip it out. 3170 // Only take refMessage into account if either one of its html/text is not empty. 3175 // between text/html and text/plain parts and they should be stored seperately and 3176 // the right version should be used in the UI. text/html shoul [all...] |