/packages/apps/PhoneCommon/src/com/android/phone/common/widget/ |
H A D | ResizingTextEditText.java | 28 * EditText which resizes dynamically with respect to text length. 44 protected void onTextChanged(CharSequence text, int start, int lengthBefore, int lengthAfter) { argument 45 super.onTextChanged(text, start, lengthBefore, lengthAfter);
|
H A D | ResizingTextTextView.java | 28 * TextView which resizes dynamically with respect to text length. 44 protected void onTextChanged(CharSequence text, int start, int lengthBefore, int lengthAfter) { argument 45 super.onTextChanged(text, start, lengthBefore, lengthAfter);
|
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/ui/ |
H A D | DefaultSuggestionView.java | 29 import android.text.Html; 30 import android.text.Spannable; 31 import android.text.SpannableString; 32 import android.text.TextUtils; 33 import android.text.style.TextAppearanceSpan; 97 // If there is no text for the second line, allow the first line to be up to two lines 119 SpannableString text = new SpannableString(url); 121 text.setSpan(new TextAppearanceSpan(null, 0, 0, colors, null), 124 return text;
|
H A D | QueryTextView.java | 26 * The query text field. 48 * Sets the text selection in the query text view. 62 protected void replaceText(CharSequence text) { argument 64 setText(text);
|
/packages/apps/Settings/src/com/android/settings/applications/ |
H A D | ProcessStatsPreference.java | 22 import android.text.TextUtils; 23 import android.text.format.Formatter;
|
/packages/apps/Settings/src/com/android/settings/bluetooth/ |
H A D | Utf8ByteLengthFilter.java | 19 import android.text.InputFilter; 20 import android.text.Spanned; 23 * This filter will constrain edits so that the text length is not
|
/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/support/ |
H A D | SupportPhone.java | 23 import android.text.TextUtils; 25 import java.text.ParseException;
|
/packages/apps/Stk/src/com/android/stk/ |
H A D | StkMenuAdapter.java | 55 ((TextView) convertView.findViewById(R.id.text)).setText(item.text);
|
/packages/apps/TV/tests/func/src/com/android/tv/tests/ui/ |
H A D | ChannelSourcesTest.java | 53 Until.hasObject(ByResource.text(mTargetResources, R.string.setup_sources_text))); 67 Until.hasObject(ByResource.text(mTargetResources, R.string.setup_sources_text)));
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/ |
H A D | KeyboardActionListener.java | 64 * @param text the string of characters to be registered. 66 public void onTextInput(String text); argument 114 public void onTextInput(String text) {} argument
|
/packages/services/Telephony/src/com/android/phone/ |
H A D | IccNetworkDepersonalizationPanel.java | 26 import android.text.Editable; 27 import android.text.Spannable; 28 import android.text.TextUtils; 29 import android.text.TextWatcher; 30 import android.text.method.DialerKeyListener; 89 //private textwatcher to control text entry. 143 // PIN entry text field 149 CharSequence text = mPinEntry.getText(); 150 Spannable span = (Spannable) text; 151 span.setSpan(mPinEntryWatcher, 0, text [all...] |
/packages/apps/Dialer/java/com/android/incallui/answer/impl/ |
H A D | SmsBottomSheetFragment.java | 86 private TextView newTextViewItem(@Nullable final CharSequence text) { argument 95 textView.setText(text == null ? getString(R.string.call_incoming_message_custom) : text); 111 .smsSelected(text); 132 void smsSelected(@Nullable CharSequence text); argument
|
/packages/apps/Messaging/src/com/android/messaging/util/ |
H A D | AccessibilityUtil.java | 22 import android.text.TextUtils; 57 final String text = Factory.get().getApplicationContext().getResources().getString( 59 announceForAccessibilityCompat(view, accessibilityManager, text); 64 final CharSequence text) { 75 // Jelly Bean added support for speaking text verbatim 82 event.getText().add(text); 62 announceForAccessibilityCompat( final View view, @Nullable AccessibilityManager accessibilityManager, final CharSequence text) argument
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/support/ |
H A D | SupportDisclaimerDialogFragmentTest.java | 10 import android.text.Spannable; 11 import android.text.style.URLSpan; 108 Spannable text = Spannable.Factory.getInstance() 110 text.setSpan(new URLSpan("https://google.com"), 0, 1, 112 return text;
|
/packages/apps/TV/src/com/android/tv/dialog/ |
H A D | DvrHistoryDialogFragment.java | 26 import android.text.TextUtils; 85 private void setText(View view, int id, CharSequence text) { 86 ((TextView) view.findViewById(id)).setText(text); 89 private void setText(View view, int id, int text) { 90 ((TextView) view.findViewById(id)).setText(text);
|
/packages/apps/TV/src/com/android/tv/tuner/cc/ |
H A D | CaptionWindowLayout.java | 23 import android.text.Layout.Alignment; 24 import android.text.SpannableStringBuilder; 25 import android.text.Spanned; 26 import android.text.TextUtils; 27 import android.text.style.CharacterStyle; 28 import android.text.style.RelativeSizeSpan; 29 import android.text.style.StyleSpan; 30 import android.text.style.SubscriptSpan; 31 import android.text.style.SuperscriptSpan; 32 import android.text 530 setText(String text) argument 534 appendText(String text) argument 543 updateText(String text, boolean appended) argument [all...] |
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/accessibility/ |
H A D | AccessibilityUtils.java | 25 import android.text.TextUtils; 199 * Sends the specified text to the {@link AccessibilityManager} to be 203 * @param text The text to speak. 205 public void announceForAccessibility(final View view, final CharSequence text) { argument 220 event.getText().add(text); 250 final CharSequence text = mContext.getText(R.string.spoken_use_headphones); 251 announceForAccessibility(view, text);
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/ |
H A D | GestureFloatingTextDrawingPreview.java | 25 import android.text.TextUtils; 35 * The class for single gesture preview text. The class for multiple gesture preview text will be 137 * Draws gesture preview text 138 * @param canvas The canvas where preview text is drawn. 149 final String text = mSuggestedWords.getWord(0); 150 canvas.drawText(text, mPreviewTextX, mPreviewTextY, mParams.getTextPaint()); 154 * Updates gesture preview text position based on mLastPointerCoords. 161 final String text = mSuggestedWords.getWord(0); 166 final float textWidth = mParams.getTextPaint().measureText(text); [all...] |
/packages/apps/Messaging/src/com/android/messaging/widget/ |
H A D | WidgetConversationListService.java | 26 import android.text.Spannable; 27 import android.text.SpannableStringBuilder; 28 import android.text.TextPaint; 29 import android.text.TextUtils; 30 import android.text.style.ForegroundColorSpan; 31 import android.text.style.StyleSpan; 177 final String text = resources.getString( 179 SpannableStringBuilder builder = new SpannableStringBuilder(text); 180 builder.setSpan(new StyleSpan(Typeface.ITALIC), 0, text.length(), 184 0, text [all...] |
/packages/apps/UnifiedEmail/src/com/google/android/mail/common/html/parser/ |
H A D | HtmlTree.java | 18 import android.text.Spanned; 35 * HtmlTree represents a parsed and well-formed html text, it provides 36 * methods to convert to plain text. It also provides methods to find 37 * well-formed blocks of text, for quote detection. 52 // http://www.w3.org/TR/html4/struct/text.html#h-9.1 72 * Adds the given node {@code n} to plain text. 74 * @param n The node to convert to text. 82 * Returns the current length of the plain text. 108 /** Plain text (lazy creation) */ 117 /** textPositions[node pos] = the text positio 735 appendNormalText(String text) argument 763 appendPreText(String text) argument 796 appendTextDirect(String text) argument [all...] |
/packages/apps/Car/Overview/src/com/android/car/overview/ |
H A D | MediaStreamViewHolder.java | 20 import android.text.TextUtils; 210 * Ellipsize text and append "..." to the end if its length exceeds the {@code maxLen}. 215 private static CharSequence ellipsizeText(CharSequence text, int maxLen) { argument 216 if (text == null || text.length() <= maxLen) { 217 return text; 222 return text; 226 sb.append(text.subSequence(0, maxLen - ELLIPSIS.length()));
|
/packages/apps/Contacts/src/com/android/contacts/util/ |
H A D | ContactDisplayUtils.java | 24 import android.text.Spannable; 25 import android.text.SpannableString; 26 import android.text.TextUtils; 27 import android.text.style.TtsSpan; 200 * Whether the given text could be a phone number. 205 public static boolean isPossiblePhoneNumber(CharSequence text) { argument 206 return text == null ? false : Patterns.PHONE.matcher(text.toString()).matches(); 211 * the given phone number text wherever it is found within the message.
|
/packages/apps/Dialer/java/com/android/contacts/common/util/ |
H A D | ContactDisplayUtils.java | 24 import android.text.Spannable; 25 import android.text.SpannableString; 26 import android.text.TextUtils; 27 import android.text.style.TtsSpan; 200 * Whether the given text could be a phone number. 205 public static boolean isPossiblePhoneNumber(CharSequence text) { argument 206 return text != null && Patterns.PHONE.matcher(text.toString()).matches(); 211 * phone number text wherever it is found within the message.
|
/packages/apps/Dialer/java/com/android/dialer/app/voicemail/error/ |
H A D | VoicemailErrorMessage.java | 55 private final CharSequence text; field in class:VoicemailErrorMessage.Action 59 public Action(CharSequence text, View.OnClickListener listener) { argument 60 this(text, listener, false); 63 public Action(CharSequence text, View.OnClickListener listener, boolean raised) { argument 64 this.text = text; 70 return text;
|