Searched refs:text (Results 1 - 25 of 1920) sorted by relevance

1234567891011>>

/packages/inputmethods/LatinIME/tools/dicttool/compat/android/text/
H A DSpanned.java17 package android.text;
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/compat/
H A DLocaleSpanCompatUtilsTests.java23 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 DTextInfoCompatUtilsTests.java23 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 DSearchBoxEditListener.java22 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 DFormattedTextUtils.java19 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 DTextHighlighter.java19 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 DLocaleUtils.java26 * 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 DTextHighlighter.java19 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...]
H A DFormatUtils.java20 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 DLinkifyUtils.java19 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 DSuggestionFormatter.java19 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 DEllipsizedMultilineTextView.java21 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 DStringTexture.java24 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 DMultiLineTexture.java21 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 DTextUtilitiesTests.java28 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 DChangeLabelsSpan.java1 package com.android.mail.text;
3 import android.text.TextPaint;
4 import android.text.style.ClickableSpan;
/packages/apps/TV/tests/common/src/com/android/tv/testing/uihelper/
H A DByResource.java38 * Creates a BySelector for the text of {@code stringRes} from {@code resources}.
40 * @see By#text(String)
42 public static BySelector text(Resources resources, int stringRes) { method in class:ByResource
43 String text = resources.getString(stringRes);
44 return By.text(text);
/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/
H A DLetterConverter.java31 * 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 DSpannableStringUtils.java19 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 DKeyboardTextsSet.java21 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 DEmailAddressValidator.java30 public boolean isValid(CharSequence text) { argument
31 return Address.parse(text.toString()).length == 1;
/packages/apps/UnifiedEmail/src/com/android/emailcommon/utility/
H A DConversionUtilities.java24 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 DEmailHtmlUtil.java31 * @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/Settings/src/com/android/settings/wifi/
H A DWifiConfigUiBase.java53 public void setSubmitButton(CharSequence text); argument
54 public void setForgetButton(CharSequence text); argument
55 public void setCancelButton(CharSequence text); argument
/packages/apps/Tag/src/com/android/apps/tag/record/
H A DUnknownRecord.java31 TextView text = (TextView) inflater.inflate(R.layout.tag_text, parent, false);
32 text.setText(R.string.tag_unknown);
33 return text;

Completed in 859 milliseconds

1234567891011>>