/packages/inputmethods/LatinIME/tools/dicttool/compat/android/text/ |
H A D | Spanned.java | 17 package android.text;
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/compat/ |
H A D | LocaleSpanCompatUtilsTests.java | 23 import android.text.SpannableString; 24 import android.text.Spanned; 25 import android.text.style.StyleSpan; 71 final SpannableString text = new SpannableString("0123456789"); 72 LocaleSpanCompatUtils.updateLocaleSpan(text, 1, 5, Locale.JAPANESE); 73 assertSpanCount(1, text); 74 assertLocaleSpan(text, 0, 1, 5, Locale.JAPANESE, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); 79 final SpannableString text = new SpannableString("0123456789"); 81 text.setSpan(styleSpan, 0, 7, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); 82 LocaleSpanCompatUtils.updateLocaleSpan(text, [all...] |
H A D | TextInfoCompatUtilsTests.java | 23 import android.text.SpannableString; 24 import android.text.Spanned; 25 import android.text.TextUtils; 26 import android.text.style.StyleSpan; 27 import android.text.style.URLSpan; 49 final SpannableString text = new SpannableString(TEST_TEXT); 50 text.setSpan(TEST_STYLE_SPAN, TEST_STYLE_SPAN_START, TEST_STYLE_SPAN_END, 52 text.setSpan(TEST_URL_SPAN_URL, TEST_URL_SPAN_START, TEST_URL_SPAN_END, 55 final TextInfo textInfo = TextInfoCompatUtils.newInstance(text, 58 final Spanned expectedSpanned = (Spanned) text [all...] |
/packages/inputmethods/LatinIME/tools/make-keyboard-text/src/com/android/inputmethod/keyboard/tools/ |
H A D | LocaleUtils.java | 26 * for the make-keyboard-text tool. 65 final String text = localeElements[INDEX_LANGUAGE]; 66 if (isValidLanguage(text)) { 67 builder.setLanguage(text); 73 final String text = localeElements[INDEX_SCRIPT]; 74 if (isValidScript(text)) { 75 builder.setScript(text); 76 } else if (isValidRegion(text)) { 77 builder.setRegion(text); 84 final String text 104 isValidLanguage(final String text) argument 108 isValidScript(final String text) argument 112 isValidRegion(final String text) argument 117 isAlphabetSequence(final String text, final int lower, final int upper) argument 130 isDigitSequence(final String text, final int lower, final int upper) argument [all...] |
/packages/apps/ContactsCommon/src/com/android/contacts/common/format/ |
H A D | TextHighlighter.java | 20 import android.text.SpannableString; 21 import android.text.style.CharacterStyle; 22 import android.text.style.ForegroundColorSpan; 23 import android.text.style.StyleSpan; 29 * Highlights the text in a text field. 45 * Sets the text on the given text view, highlighting the word that matches the given prefix. 47 * @param view the view on which to set the text 48 * @param text th 51 setPrefixText(TextView view, String text, String prefix) argument 65 applyMaskingHighlight(SpannableString text, int start, int end) argument 76 applyPrefixHighlight(CharSequence text, String prefix) argument [all...] |
H A D | FormatUtils.java | 20 import android.text.SpannableString; 21 import android.text.style.StyleSpan; 28 * Assorted utility methods related to text formatting in Contacts. 99 * @param flags Bitmask for configuring behavior of the span. See {@link android.text.Spanned}. 107 SpannableString text = new SpannableString(input); 108 text.setSpan(new StyleSpan(style), start, end, flags); 109 return text; 113 public static void copyToCharArrayBuffer(String text, CharArrayBuffer buffer) { argument 114 if (text != null) { 116 if (data == null || data.length < text 141 indexOfWordPrefix(CharSequence text, String prefix) argument [all...] |
/packages/apps/Settings/src/com/android/settings/ |
H A D | LinkifyUtils.java | 19 import android.text.Spannable; 20 import android.text.TextPaint; 21 import android.text.method.LinkMovementMethod; 22 import android.text.style.ClickableSpan; 43 * Applies the text into the {@link TextView} and part of it a clickable link. 44 * The text surrounded with "LINK_BEGIN" and "LINK_END" will become a clickable link. Only 46 * @return true if the link has been successfully applied, or false if the original text 49 public static boolean linkify(TextView textView, StringBuilder text, argument 52 final int beginIndex = text.indexOf(PLACE_HOLDER_LINK_BEGIN); 54 textView.setText(text); [all...] |
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/ |
H A D | SuggestionFormatter.java | 19 import android.text.Spannable; 38 * @return Formatted suggestion text. 42 protected void applyQueryTextStyle(Spannable text, int start, int end) { argument 44 setSpans(text, start, end, mSpanFactory.createSuggestionQueryTextAppearance()); 47 protected void applySuggestedTextStyle(Spannable text, int start, int end) { argument 49 setSpans(text, start, end, mSpanFactory.createSuggestionSuggestedTextAppearance()); 52 private void setSpans(Spannable text, int start, int end, Object[] spans) { argument 54 text.setSpan(span, start, end, 0);
|
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ |
H A D | EllipsizedMultilineTextView.java | 21 import android.text.Layout; 22 import android.text.Layout.Alignment; 23 import android.text.SpannableStringBuilder; 24 import android.text.Spanned; 25 import android.text.StaticLayout; 26 import android.text.TextUtils; 32 * line of text, such that the last line may be shorter than any previous lines. 54 * Ellipsize just the last line of text in this view and set the text to the 56 * @param text Tex 62 setText(final CharSequence text, int avail) argument [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/glrenderer/ |
H A D | StringTexture.java | 24 import android.text.TextPaint; 25 import android.text.TextUtils; 36 private StringTexture(String text, TextPaint paint, argument 39 mText = text; 54 String text, float textSize, int color) { 55 return newInstance(text, getDefaultPaint(textSize, color)); 59 String text, float textSize, int color, 66 text = TextUtils.ellipsize( 67 text, paint, lengthLimit, TextUtils.TruncateAt.END).toString(); 69 return newInstance(text, pain 53 newInstance( String text, float textSize, int color) argument 58 newInstance( String text, float textSize, int color, float lengthLimit, boolean isBold) argument 72 newInstance(String text, TextPaint paint) argument [all...] |
H A D | MultiLineTexture.java | 21 import android.text.Layout; 22 import android.text.StaticLayout; 23 import android.text.TextPaint; 39 String text, int maxWidth, float textSize, int color, 42 Layout layout = new StaticLayout(text, 0, text.length(), paint, 38 newInstance( String text, int maxWidth, float textSize, int color, Layout.Alignment alignment) argument
|
/packages/apps/Email/tests/src/com/android/emailcommon/utility/ |
H A D | TextUtilitiesTests.java | 28 import android.text.SpannableStringBuilder; 29 import android.text.style.BackgroundColorSpan; 139 * We pass in HTML text in which an ampersand (@) is two chars ahead of the correct end position 141 * correct position. HTML text not containing an ampersand should generate a calculated end of 143 * @param text the HTML text to test 145 private void findTagEnd(String text, String tag) { argument 146 int calculatedEnd = TextUtilities.findTagEnd(text , tag, 0); 147 int knownEnd = text.indexOf('@') + 2; 160 findTagEnd("<tag foo=\"bar\">some text [all...] |
/packages/apps/Settings/src/com/android/settings/wifi/ |
H A D | WifiConfigUiBase.java | 35 public void setSubmitButton(CharSequence text); argument 36 public void setForgetButton(CharSequence text); argument 37 public void setCancelButton(CharSequence text); argument
|
/packages/apps/UnifiedEmail/src/com/android/mail/text/ |
H A D | ChangeLabelsSpan.java | 1 package com.android.mail.text; 3 import android.text.TextPaint; 4 import android.text.style.ClickableSpan;
|
H A D | LinkStyleSpan.java | 18 package com.android.mail.text; 20 import android.text.TextPaint; 21 import android.text.style.ClickableSpan; 25 * A span that makes text look like a link. It uses link color and 29 * saves and restores its text since TextView can only save 30 * and restore {@link android.text.ParcelableSpan}s which 52 * Makes the text in the link color and not underlined.
|
/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/ |
H A D | LetterConverter.java | 31 * Convert the layer #0 text(pressed key sequence) to layer #1 text(pre converted string). 38 * @param text The text data includes input sequence(layer #0) and output area(layer #1) 41 public boolean convert(ComposingText text); argument
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/ |
H A D | SpannableStringUtils.java | 19 import android.text.Spannable; 20 import android.text.SpannableString; 21 import android.text.Spanned; 22 import android.text.SpannedString; 23 import android.text.TextUtils; 24 import android.text.style.SuggestionSpan; 25 import android.text.style.URLSpan; 82 public static CharSequence concatWithNonParagraphSuggestionSpansOnly(CharSequence... text) { argument 83 if (text.length == 0) { 87 if (text 123 hasUrlSpans(final CharSequence text, final int startIndex, final int endIndex) argument [all...] |
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/ |
H A D | KeyboardTextsSet.java | 21 import android.text.TextUtils; 32 public static final String PREFIX_TEXT = "!text/"; 66 private static int searchTextNameEnd(final String text, final int start) { argument 67 final int size = text.length(); 69 final char c = text.charAt(pos); 79 // TODO: Resolve text reference when creating {@link KeyboardTextsTable} class. 85 String text = rawText; 91 " reference indirection: " + text); 95 final int size = text.length(); 102 final char c = text 131 expandReference(final String text, final int pos, final String prefix, final StringBuilder sb) argument [all...] |
/packages/apps/Email/src/com/android/email/ |
H A D | EmailAddressValidator.java | 30 public boolean isValid(CharSequence text) { argument 31 return Address.parse(text.toString()).length == 1;
|
/packages/apps/UnifiedEmail/src/com/android/emailcommon/utility/ |
H A D | ConversionUtilities.java | 24 import android.text.TextUtils; 30 * Helper function to append text to a StringBuffer, creating it if necessary. 62 * Parse body text (plain and/or HTML) from MimeMessage to {@link BodyFieldData}. 71 String text = MimeUtility.getTextFromPart(viewable); 72 // Deploy text as marked by the various tags 73 boolean isHtml = "text/html".equalsIgnoreCase(viewable.getMimeType()); 77 sbHtml = appendTextPart(sbHtml, text); 79 sbText = appendTextPart(sbText, text); 85 String text = sbText.toString(); 86 data.textContent = text; [all...] |
/packages/apps/Email/src/com/android/email/mail/internet/ |
H A D | EmailHtmlUtil.java | 31 * @param text Text to be displayed using WebView. 34 public static String escapeCharacterToDisplay(String text) { argument 36 Matcher match = pattern.matcher(text); 43 out.append(text.substring(end, start)); 45 int c = text.codePointAt(start); 62 out.append(text.substring(end)); 63 text = out.toString(); 65 return text;
|
/packages/apps/Tag/src/com/android/apps/tag/record/ |
H A D | UnknownRecord.java | 31 TextView text = (TextView) inflater.inflate(R.layout.tag_text, parent, false); 32 text.setText(R.string.tag_unknown); 33 return text;
|
/packages/apps/Contacts/src/com/android/contacts/util/ |
H A D | PhonebookCollatorFactory.java | 19 import java.text.Collator;
|
/packages/apps/ContactsCommon/src/com/android/contacts/common/ |
H A D | ClipboardUtils.java | 22 import android.text.TextUtils; 31 * Copy a text to clipboard. 35 * @param text Text to copy. 38 public static void copyText(Context context, CharSequence label, CharSequence text, argument 40 if (TextUtils.isEmpty(text)) return; 44 ClipData clipData = ClipData.newPlainText(label == null ? "" : label, text);
|
/packages/apps/UnifiedEmail/src/com/android/mail/utils/ |
H A D | StyleUtils.java | 20 import android.text.Spannable; 21 import android.text.Spanned; 22 import android.text.style.URLSpan; 26 import com.android.mail.text.LinkStyleSpan; 33 * Removes any {@link android.text.style.URLSpan}s from the text view and replaces them with a 43 * Removes any {@link android.text.style.URLSpan}s from the Spannable and replaces them with a 60 * Removes any {@link android.text.style.URLSpan}s from the text view and replaces them with a
|