/packages/inputmethods/LatinIME/tools/dicttool/compat/android/text/ |
H A D | Spanned.java | 17 package android.text;
|
/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/Contacts/src/com/android/contacts/ |
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/Dialer/java/com/android/contacts/common/ |
H A D | ClipboardUtils.java | 22 import android.text.TextUtils; 30 * Copy a text to clipboard. 34 * @param text Text to copy. 38 Context context, CharSequence label, CharSequence text, boolean showToast) { 39 if (TextUtils.isEmpty(text)) { 45 ClipData clipData = ClipData.newPlainText(label == null ? "" : label, text); 37 copyText( Context context, CharSequence label, CharSequence text, boolean showToast) 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/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/TV/src/com/android/tv/util/ |
H A D | ToastUtils.java | 35 public static void show(Context context, CharSequence text, int duration) { argument 39 Toast toast = Toast.makeText(context, text, duration);
|
/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/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/Camera2/tests/exiftool_parser/ |
H A D | parser.py | 19 text = sys.stdin.read() variable 39 tags = p.findall(text)
|
/packages/apps/Car/libs/car-stream-ui-lib/src/com/android/car/view/ |
H A D | CarListItemViewHolder.java | 36 public final TextView text; field in class:CarListItemViewHolder 47 text = (TextView) v.findViewById(R.id.text);
|
/packages/apps/Dialer/java/com/android/dialer/contactactions/ |
H A D | IntentModule.java | 33 private final @StringRes int text; field in class:IntentModule 36 public IntentModule(Context context, Intent intent, @StringRes int text, @DrawableRes int image) { argument 39 this.text = text; 45 return text;
|
/packages/apps/Dialer/java/com/android/voicemail/impl/ |
H A D | TelephonyMangerCompat.java | 36 String text, 48 return (String) method.invoke(telephonyManager, number, port, text, sentIntent); 68 method.invoke(null, context, phoneAccountHandle, number, (short) port, text, sentIntent); 31 sendVisualVoicemailSms( Context context, PhoneAccountHandle phoneAccountHandle, String number, int port, String text, PendingIntent sentIntent) argument
|
/packages/apps/Gallery2/src/com/android/gallery3d/glrenderer/ |
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/Messaging/src/com/android/messaging/util/ |
H A D | TextUtil.java | 59 * Appends text to the stringBuilder. 63 * @param text The text to append 64 * @param separator The separator to add if there is already text, typically "," or "\n" 66 public static void appendWithSeparator(final StringBuilder stringBuilder, final String text, argument 71 stringBuilder.append(text);
|
/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/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/Settings/src/com/android/settings/notification/ |
H A D | EmptyTextSettings.java | 47 protected void setEmptyText(int text) { argument 48 mEmpty.setText(text);
|
/packages/apps/Settings/src/com/android/settings/wifi/ |
H A D | WifiDetailPreference.java | 22 import android.text.TextUtils; 29 * A Preference to be used with the Wifi Network Detail Fragment that allows a summary text to be 40 public void setDetailText(String text) { argument 41 if (TextUtils.equals(mDetailText, text)) return; 42 mDetailText = text;
|
/packages/apps/TV/tests/common/src/com/android/tv/testing/uihelper/ |
H A D | ByResource.java | 38 * 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/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 | EmailAddressSpan.java | 18 package com.android.mail.text; 20 import android.text.TextPaint; 21 import android.text.style.URLSpan; 44 * Makes the text in the link color and not underlined.
|
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/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/UnifiedEmail/src/com/android/mail/utils/ |
H A D | ViewUtils.java | 61 * Sets the text alignment of the view. Prior to API 17, will no-op. 78 * @param text The announcement text. 80 public static void announceForAccessibility(View view, CharSequence text) { argument 88 event.getText().add(text);
|