/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/services/Car/car-lib/src/android/car/app/menu/ |
H A D | SearchBoxEditListener.java | 22 public abstract void onSearch(String text); argument 25 * The user changed the text in the search box with the keyboard. 27 public abstract void onEdit(String text); argument
|
/packages/apps/DeskClock/src/com/android/deskclock/ |
H A D | FormattedTextUtils.java | 19 import android.text.Spannable; 20 import android.text.SpannableString; 31 * Applies a span over the length of the given text. 33 * @param text the {@link CharSequence} to be formatted 35 * @return the text with the span applied 37 public static CharSequence formatText(CharSequence text, Object span) { argument 38 if (text == null) { 42 final SpannableString formattedText = SpannableString.valueOf(text);
|
/packages/apps/Dialer/java/com/android/contacts/common/format/ |
H A D | TextHighlighter.java | 19 import android.text.SpannableString; 20 import android.text.style.CharacterStyle; 21 import android.text.style.StyleSpan; 24 /** Highlights the text in a text field. */ 37 * Sets the text on the given text view, highlighting the word that matches the given prefix. 39 * @param view the view on which to set the text 40 * @param text the string to use as the text 43 setPrefixText(TextView view, String text, String prefix) argument 58 applyMaskingHighlight(SpannableString text, int start, int end) argument 69 applyPrefixHighlight(CharSequence text, String prefix) argument 100 indexOfWordPrefix(CharSequence text, String prefix) argument [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/Contacts/src/com/android/contacts/format/ |
H A D | TextHighlighter.java | 19 import android.text.SpannableString; 20 import android.text.style.CharacterStyle; 21 import android.text.style.StyleSpan; 25 * Highlights the text in a text field. 41 * Sets the text on the given text view, highlighting the word that matches the given prefix. 43 * @param view the view on which to set the text 44 * @param text the string to use as the text 47 setPrefixText(TextView view, String text, String prefix) argument 61 applyMaskingHighlight(SpannableString text, int start, int end) argument 72 applyPrefixHighlight(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/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;
|
/packages/apps/Dialer/java/com/android/dialer/widget/ |
H A D | TextViewPreference.java | 21 import android.text.method.LinkMovementMethod; 27 * Provides a {@link TextView} inside a preference. Useful for displaying static text which may 33 * The resource ID of the text to be populated in the {@link TextView} when a resource ID is used. 37 /** The text to be populated in the {@link TextView} when a {@link CharSequence} is used. */ 38 private CharSequence text; field in class:TextViewPreference 40 /** The {@link TextView} containing the text. */ 106 textView = (TextView) view.findViewById(R.id.text); 109 } else if (text != null) { 110 setTitle(text); 117 * @param text Th 120 setTitle(CharSequence text) argument [all...] |
/packages/apps/TV/tests/common/src/com/android/tv/testing/uihelper/ |
H A D | ByResource.java | 36 * Creates a BySelector for the text of {@code stringRes} from {@code resources}. 38 * @see By#text(String) 40 public static BySelector text(Resources resources, int stringRes) { method in class:ByResource 41 String text = resources.getString(stringRes); 42 return By.text(text);
|
/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/DocumentsUI/src/com/android/documentsui/inspector/ |
H A D | HeaderTextSelector.java | 20 import android.text.Spannable; 34 public HeaderTextSelector(TextView text, Selector selector) { argument 35 checkArgument(text != null); 37 mText = text; 41 // An action mode is created when the user selects text. This method is called where 74 private static int getLengthOfFilename(CharSequence text) { argument 75 String title = text.toString(); 83 return text.length(); 87 void select(Spannable text, int start, int stop); 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/Settings/tests/robotests/src/com/android/settings/testutils/shadow/ |
H A D | ShadowBidiFormatter.java | 19 import android.support.v4.text.BidiFormatter; 20 import android.support.v4.text.TextDirectionHeuristicCompat;
|
/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/Traceur/uitests/src/com/android/settings/ui/ |
H A D | TraceurAppTests.java | 75 mDevice.wait(Until.findObject(By.text("Record trace")), 78 mDevice.wait(Until.findObject(By.text("Trace debuggable applications")), 81 mDevice.wait(Until.findObject(By.text("Categories")), 84 mDevice.wait(Until.findObject(By.text("Restore default categories")), 87 mDevice.wait(Until.findObject(By.text("Buffer size")), 90 mDevice.wait(Until.findObject(By.text("Clear saved traces")), 93 mDevice.wait(Until.findObject(By.text("Show Quick Settings tile")), 105 mDevice.wait(Until.findObject(By.text("Record trace")), TIMEOUT); 107 mDevice.findObject(By.text("Record trace")).click(); 108 mDevice.findObject(By.text("Recor [all...] |