/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.Spannable; 24 import android.text.SpannableString; 25 import android.text.Spanned; 26 import android.text.style.StyleSpan; 72 final SpannableString text = new SpannableString("0123456789"); 73 LocaleSpanCompatUtils.updateLocaleSpan(text, 1, 5, Locale.JAPANESE); 74 assertSpanCount(1, text); 75 assertLocaleSpan(text, 0, 1, 5, Locale.JAPANESE, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); 80 final SpannableString text = new SpannableString("0123456789"); 82 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/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; 76 public static CharSequence concatWithNonParagraphSuggestionSpansOnly(CharSequence... text) { argument 77 if (text.length == 0) { 81 if (text 117 hasUrlSpans(final CharSequence text, final int startIndex, final int endIndex) argument [all...] |
H A D | StringUtils.java | 21 import android.text.Spanned; 22 import android.text.TextUtils; 52 public static int codePointCount(final String text) { argument 53 if (TextUtils.isEmpty(text)) return 0; 54 return text.codePointCount(0, text.length()); 67 public static boolean containsInArray(final String text, final String[] array) { argument 69 if (text.equals(element)) return true; 76 * Unlike CSV, Comma-Splittable Text has no escaping mechanism, so that the text can't contain 81 public static boolean containsInCommaSplittableText(final String text, argument 89 removeFromCommaSplittableTextIfExists(final String text, final String extraValues) argument 242 getCapitalizationType(final String text) argument 278 isIdenticalAfterUpcase(final String text) argument 291 isIdenticalAfterDowncase(final String text) argument 304 isIdenticalAfterCapitalizeEachWord(final String text, final int[] sortedSeparators) argument 324 capitalizeEachWord(final String text, final int[] sortedSeparators, final Locale locale) argument 359 lastPartLooksLikeURL(final CharSequence text) argument 423 isInsideDoubleQuoteOrAfterDigit(final CharSequence text) argument 492 toUpperCaseOfStringForLocale(final String text, final boolean needsToUpperCase, final Locale locale) argument 612 hasLineBreakCharacter(final String text) argument [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; 37 private StringTexture(String text, TextPaint paint, argument 40 mText = text; 55 String text, float textSize, int color) { 56 return newInstance(text, getDefaultPaint(textSize, color)); 60 String text, float textSize, int color, 67 text = TextUtils.ellipsize( 68 text, paint, lengthLimit, TextUtils.TruncateAt.END).toString(); 70 return newInstance(text, pain 54 newInstance( String text, float textSize, int color) argument 59 newInstance( String text, float textSize, int color, float lengthLimit, boolean isBold) argument 73 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 | 36 public void setSubmitButton(CharSequence text); argument 37 public void setForgetButton(CharSequence text); argument 38 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/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/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/"; 39 // Resource name to text map. 69 final String text = mResourceNameToTextsMap.get(name); 70 return (text != null) ? text : KeyboardTextsTable.getText(name, mTextsTable); 73 private static int searchTextNameEnd(final String text, final int start) { argument 74 final int size = text.length(); 76 final char c = text.charAt(pos); 86 // TODO: Resolve text referenc [all...] |
/packages/apps/Mms/src/com/android/mms/ |
H A D | MmsConfig.java | 30 import android.text.TextUtils; 334 String text = null; 336 text = parser.getText(); 341 text); 347 mMmsEnabled = "true".equalsIgnoreCase(text) ? 1 : 0; 349 mTransIdEnabled = "true".equalsIgnoreCase(text); 351 mNotifyWapMMSC = "true".equalsIgnoreCase(text); 353 mAliasEnabled = "true".equalsIgnoreCase(text); 355 mAllowAttachAudio = "true".equalsIgnoreCase(text); 357 mEnableMultipartSMS = "true".equalsIgnoreCase(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);
|