/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/dialer/clipboard/ |
H A D | ClipboardUtils.java | 22 import android.text.TextUtils; 25 /** Copies provided label and text to the clipboard and optionally shows a "text copied" toast. */ 31 * Copy a text to clipboard. 35 * @param text Text to copy. 39 Context context, CharSequence label, CharSequence text, boolean showToast) { 40 if (TextUtils.isEmpty(text)) { 46 ClipData clipData = ClipData.newPlainText(label == null ? "" : label, text); 38 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 | 30 public static void show(Context context, CharSequence text, int duration) { argument 34 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/Dialer/src/com/android/car/dialer/ |
H A D | CallLogViewHolder.java | 34 public final TextView text; field in class:CallLogViewHolder 47 text = v.findViewById(R.id.text);
|
/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/Dialer/java/com/android/newbubble/ |
H A D | NewBubble.java | 72 * Display text. The bubble's drawer is not expandable while text is showing, and the drawer will 75 * @param text the text to display to the user 77 void showText(@NonNull CharSequence text); argument
|
/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/DocumentsUI/tests/unit/com/android/documentsui/inspector/ |
H A D | GpsCoordinatesTextClassifierTest.java | 87 private void assertClassifiedGeo(CharSequence text, boolean expectClassified) { argument 90 text, 92 text.length(),
|
/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/Launcher3/src/com/android/launcher3/compat/ |
H A D | AccessibilityManagerCompat.java | 35 public static void sendCustomAccessibilityEvent(View target, int type, String text) { argument 39 event.getText().add(text);
|
/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 | 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/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.
|