/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 | 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 | 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 | HTML.java | 16 package com.android.mail.lib.html.parser;
|
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 | 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...] |
/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 | 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 | 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 | HTML.java | 17 package com.google.android.mail.common.html.parser;
|
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 | 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...] |
/packages/apps/UnifiedEmail/tests/src/com/android/mail/utils/ |
H A D | NotificationUtilsTest.java | 23 import com.google.android.mail.common.html.parser.HtmlTree; 32 final String html = "<body style=3D=22margin:0; padding:0;=22>" 36 + " html =7B -webkit-text-size-adjust:none; =7D</style>" 39 // Get the html "tree" for this message body 40 final HtmlTree htmlTree = Utils.getHtmlTree(html); 58 final String html = "<body style=3D=22margin:0; padding:0;=22>" 62 + " html =7B -webkit-text-size-adjust:none; =7D" 63 + " <style>html =7B -webkit-text-size-adjust:none; =7D</style></style>" 66 // Get the html "tree" for this message body 67 final HtmlTree htmlTree = Utils.getHtmlTree(html); [all...] |
/packages/apps/UnifiedEmail/src/com/android/mail/utils/ |
H A D | HtmlSanitizer.java | 25 import org.owasp.html.AttributePolicy; 26 import org.owasp.html.CssSchema; 27 import org.owasp.html.ElementPolicy; 28 import org.owasp.html.FilterUrlByProtocolAttributePolicy; 29 import org.owasp.html.Handler; 30 import org.owasp.html.HtmlPolicyBuilder; 31 import org.owasp.html.HtmlStreamRenderer; 32 import org.owasp.html.PolicyFactory; 340 * @param rawHtml the unsanitized, suspicious html 370 final org.owasp.html [all...] |
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 | Utils.java | 67 import com.google.android.mail.common.html.parser.HtmlDocument; 68 import com.google.android.mail.common.html.parser.HtmlParser; 69 import com.google.android.mail.common.html.parser.HtmlTree; 70 import com.google.android.mail.common.html.parser.HtmlTreeBuilder; 82 * longest extension we recognize is 4 characters (e.g. "html", "docx")
|
/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/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/OMA-DM/engine/dmlib/dmt-tools/ |
H A D | generateDMT | 288 rm -f *.html 2> /dev/null 314 mv -f *.html $OUTPUTDIR/docs 2> /dev/$OUT
|
/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/ |
H A D | Android.mk | 45 LOCAL_STATIC_JAVA_LIBRARIES += owasp-html-sanitizer
|
/packages/apps/UnifiedEmail/src/com/android/mail/compose/ |
H A D | QuotedTextView.java | 192 String html = "<head><style type=\"text/css\">* body { color: " + 194 mQuotedTextWebView.loadDataWithBaseURL(null, html, "text/html", "utf-8", null); 199 // message after stripping the 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/Email/ |
H A D | Android.mk | 55 LOCAL_STATIC_JAVA_LIBRARIES += owasp-html-sanitizer
|
/packages/apps/UnifiedEmail/src/com/android/mail/providers/protos/mock/ |
H A D | MockUiProvider.java | 255 String html = "<html><body><b><i>This is some html!!!</i></b></body></html>"; 256 messageMap.put(MessageColumns.BODY_HTML, html); 257 messageMap.put(MessageColumns.BODY_TEXT, Html.fromHtml(html));
|