/frameworks/ex/common/java/com/android/common/ |
H A D | Rfc822Validator.java | 19 import android.text.TextUtils; 20 import android.text.util.Rfc822Token; 21 import android.text.util.Rfc822Tokenizer; 35 * text in ways they did not intend. Meanwhile, hide this 96 public boolean isValid(CharSequence text) { argument 97 Rfc822Token[] tokens = Rfc822Tokenizer.tokenize(text); 158 String text = tokens[i].getAddress(); 160 if (mRemoveInvalid && !isValid(text)) { 163 int index = text.indexOf('@'); 167 tokens[i].setAddress(removeIllegalCharacters(text) [all...] |
/frameworks/base/core/java/android/widget/ |
H A D | EditText.java | 21 import android.text.Editable; 22 import android.text.Selection; 23 import android.text.Spannable; 24 import android.text.TextUtils; 25 import android.text.method.ArrowKeyMovementMethod; 26 import android.text.method.MovementMethod; 41 * <p>See the <a href="{@docRoot}guide/topics/ui/controls/text.html">Text Fields</a> 88 public void setText(CharSequence text, BufferType type) { argument 89 super.setText(text, BufferType.EDITABLE); 121 * Causes words in the text tha [all...] |
H A D | DialerFilter.java | 21 import android.text.Editable; 22 import android.text.InputFilter; 23 import android.text.Selection; 24 import android.text.Spannable; 25 import android.text.Spanned; 26 import android.text.TextWatcher; 27 import android.text.method.DialerKeyListener; 28 import android.text.method.KeyListener; 29 import android.text.method.TextKeyListener; 320 public void append(String text) { argument [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
H A D | SysUIToast.java | 24 public static Toast makeText(Context context, CharSequence text, int duration) { argument 25 Toast toast = Toast.makeText(context, text, duration);
|
/frameworks/support/v4/jellybean-mr1/android/support/v4/text/ |
H A D | TextUtilsCompatJellybeanMr1.java | 17 package android.support.v4.text; 21 import android.text.TextUtils;
|
/frameworks/base/core/tests/coretests/src/android/widget/ |
H A D | TextViewActivityTest.java | 52 import android.text.Selection; 53 import android.text.Spannable; 54 import android.text.InputType; 91 // Delete text at specified index and see if we got the right one. 98 // Arabic text. The expected cursorable boundary is 100 final String text = "\u0623\u064F\u067A\u0633\u0652"; 102 onView(withId(R.id.textview)).perform(replaceText(text)); 120 // Devanagari text. The expected cursorable boundary is | \u0915 \u093E | 121 final String text = "\u0915\u093E"; 123 onView(withId(R.id.textview)).perform(replaceText(text)); [all...] |
/frameworks/base/core/java/android/text/style/ |
H A D | LeadingMarginSpan.java | 17 package android.text.style; 22 import android.text.Layout; 23 import android.text.ParcelableSpan; 24 import android.text.TextUtils; 57 * is to the right of the text, otherwise it is to the left. 61 * @param text the text 70 CharSequence text, int start, int end, 157 CharSequence text, int start, int end, 67 drawLeadingMargin(Canvas c, Paint p, int x, int dir, int top, int baseline, int bottom, CharSequence text, int start, int end, boolean first, Layout layout) argument 154 drawLeadingMargin(Canvas c, Paint p, int x, int dir, int top, int baseline, int bottom, CharSequence text, int start, int end, boolean first, Layout layout) argument
|
H A D | DrawableMarginSpan.java | 17 package android.text.style; 22 import android.text.Spanned; 23 import android.text.Layout; 43 CharSequence text, int start, int end, 45 int st = ((Spanned) text).getSpanStart(this); 57 public void chooseHeight(CharSequence text, int start, int end, argument 60 if (end == ((Spanned) text).getSpanEnd(this)) { 41 drawLeadingMargin(Canvas c, Paint p, int x, int dir, int top, int baseline, int bottom, CharSequence text, int start, int end, boolean first, Layout layout) argument
|
H A D | QuoteSpan.java | 17 package android.text.style; 23 import android.text.Layout; 24 import android.text.ParcelableSpan; 25 import android.text.TextUtils; 80 CharSequence text, int start, int end, 78 drawLeadingMargin(Canvas c, Paint p, int x, int dir, int top, int baseline, int bottom, CharSequence text, int start, int end, boolean first, Layout layout) argument
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/ |
H A D | TextViewTransformState.java | 19 import android.text.Layout; 20 import android.text.TextUtils; 56 private int getInnerHeight(TextView text) { argument 57 return text.getHeight() - text.getPaddingTop() - text.getPaddingBottom();
|
/frameworks/base/core/java/android/text/util/ |
H A D | Rfc822Tokenizer.java | 17 package android.text.util; 45 public static void tokenize(CharSequence text, Collection<Rfc822Token> out) { argument 51 int cursor = text.length(); 54 char c = text.charAt(i); 59 while (i < cursor && text.charAt(i) == ' ') { 82 c = text.charAt(i); 89 name.append(text.charAt(i + 1)); 102 c = text.charAt(i); 117 comment.append(text.charAt(i + 1)); 129 c = text 171 tokenize(CharSequence text) argument 210 findTokenStart(CharSequence text, int cursor) argument 241 findTokenEnd(CharSequence text, int cursor) argument 311 terminateToken(CharSequence text) argument [all...] |
/frameworks/base/packages/Shell/tests/src/com/android/shell/ |
H A D | UiBot.java | 48 * @param text Notificaton's text as displayed by the UI. 51 public UiObject getNotification(String text) { argument 57 return getObject(text); 63 * @param text Notificaton's text as displayed by the UI. 65 public void clickOnNotification(String text) { argument 66 UiObject notification = getNotification(text); 73 * @param text Object's text a 75 getObject(String text) argument 97 getVisibleObject(String text) argument [all...] |
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
H A D | ViewPropertyAlphaActivity.java | 27 import android.text.Spannable; 28 import android.text.SpannableStringBuilder; 29 import android.text.style.BackgroundColorSpan; 30 import android.text.style.ForegroundColorSpan; 31 import android.text.style.ImageSpan; 32 import android.text.style.SuggestionSpan; 33 import android.text.style.UnderlineSpan; 79 SpannableStringBuilder text = 80 new SpannableStringBuilder("Now this is a short text message with spans"); 82 text [all...] |
/frameworks/base/services/core/java/com/android/server/am/ |
H A D | LockTaskNotify.java | 49 String text = null; 51 text = mContext.getString(R.string.lock_to_app_toast_locked); 53 text = mContext.getString(R.string.lock_to_app_toast); 55 if (text == null) { 61 mLastToast = makeAllUserToastAndShow(text); 72 private Toast makeAllUserToastAndShow(String text) { argument 73 Toast toast = Toast.makeText(mContext, text, Toast.LENGTH_LONG);
|
/frameworks/base/core/java/com/android/internal/widget/ |
H A D | EditableInputConnection.java | 20 import android.text.Editable; 21 import android.text.Spanned; 22 import android.text.method.KeyListener; 23 import android.text.style.SuggestionSpan; 115 public boolean commitCompletion(CompletionInfo text) { argument 116 if (DEBUG) Log.v(TAG, "commitCompletion " + text); 118 mTextView.onCommitCompletion(text); 172 public boolean commitText(CharSequence text, int newCursorPosition) { argument 174 return super.commitText(text, newCursorPosition); 176 if (text instanceo [all...] |
/frameworks/opt/calendar/src/com/android/calendarcommon2/ |
H A D | ICalendar.java | 396 public String line; // TODO: just point to original text 405 // the text. 406 private static String normalizeText(String text) { argument 408 text = text.replaceAll("\r\n", "\n"); 409 text = text.replaceAll("\r", "\n"); 414 text = text.replaceAll("\n ", ""); 416 return text; 427 parseComponentImpl(Component component, String text) argument 611 parseCalendar(String text) argument 627 parseEvent(String text) argument 642 parseComponent(String text) argument 655 parseComponent(Component component, String text) argument [all...] |
/frameworks/support/v7/preference/src/android/support/v7/preference/ |
H A D | EditTextPreference.java | 24 import android.text.TextUtils; 59 * Saves the text to the {@link android.content.SharedPreferences}. 61 * @param text The text to save 63 public void setText(String text) { argument 66 mText = text; 68 persistString(text); 77 * Gets the text from the {@link android.content.SharedPreferences}. 109 myState.text = getText(); 123 setText(myState.text); 127 String text; field in class:EditTextPreference.SavedState [all...] |
/frameworks/base/core/java/android/view/inputmethod/ |
H A D | CompletionInfo.java | 21 import android.text.TextUtils; 24 * Information about a single text completion that an editor has reported to 58 * Create a simple completion with just text, no label. 63 * @param text The text that should be inserted into the editor when 66 public CompletionInfo(long id, int index, CharSequence text) { argument 69 mText = text; 74 * Create a full completion with both text and label. The text is 82 * @param text Th 87 CompletionInfo(long id, int index, CharSequence text, CharSequence label) argument [all...] |
/frameworks/base/core/java/com/google/android/util/ |
H A D | SmileyParser.java | 20 import android.text.Spannable; 21 import android.text.SpannableStringBuilder; 22 import android.text.style.ImageSpan; 27 * Parses a text message typed by the user looking for smileys. 33 public SmileyParser(String text, SmileyResources res) { argument 34 super(text, 40 false // me text 51 * Retrieves the parsed text as a spannable string object.
|
/frameworks/opt/chips/src/com/android/ex/chips/recipientchip/ |
H A D | InvisibleRecipientChip.java | 22 import android.text.style.ReplacementSpan; 85 public void setOriginalText(final String text) { argument 86 mDelegate.setOriginalText(text); 95 public void draw(final Canvas canvas, final CharSequence text, final int start, final int end, argument 101 public int getSize(final Paint paint, final CharSequence text, final int start, final int end, argument
|
H A D | SimpleRecipientChip.java | 21 import android.text.TextUtils; 98 public void setOriginalText(final String text) { argument 99 if (TextUtils.isEmpty(text)) { 100 mOriginalText = text; 102 mOriginalText = text.trim();
|
/frameworks/base/cmds/uiautomator/library/core-src/com/android/uiautomator/core/ |
H A D | UiScrollable.java | 111 * @param text Content-description to find in the children of 118 public UiObject getChildByDescription(UiSelector childPattern, String text) argument 120 Tracer.trace(childPattern, text); 121 return getChildByDescription(childPattern, text, true); 133 * @param text Content-description to find in the children of 140 public UiObject getChildByDescription(UiSelector childPattern, String text, argument 142 Tracer.trace(childPattern, text, allowScrollSearch); 143 if (text != null) { 145 scrollIntoView(new UiSelector().descriptionContains(text)); 147 return super.getChildByDescription(childPattern, text); 189 getChildByText(UiSelector childPattern, String text) argument 210 getChildByText(UiSelector childPattern, String text, boolean allowScrollSearch) argument 231 scrollDescriptionIntoView(String text) argument 336 scrollTextIntoView(String text) argument [all...] |
/frameworks/opt/setupwizard/library/eclair-mr1/src/com/android/setupwizardlib/util/ |
H A D | LinkAccessibilityHelper.java | 23 import android.text.Layout; 24 import android.text.Spanned; 25 import android.text.style.ClickableSpan; 33 * An accessibility delegate that allows {@link android.text.style.ClickableSpan} to be focused and 71 final CharSequence text = mView.getText(); 72 if (text instanceof Spanned) { 73 final Spanned spannedText = (Spanned) text; 86 final CharSequence text = mView.getText(); 87 if (text instanceof Spanned) { 88 final Spanned spannedText = (Spanned) text; [all...] |
/frameworks/base/core/tests/coretests/src/android/text/ |
H A D | SpannableTest.java | 17 package android.text; 22 import android.text.Spannable; 26 protected abstract Spannable newSpannableWithText(String text); argument
|
/frameworks/support/v4/jellybean/android/support/v4/view/accessibility/ |
H A D | AccessibilityNodeProviderCompatJellyBean.java | 32 public List<Object> findAccessibilityNodeInfosByText(String text, argument 47 String text, int virtualViewId) { 50 bridge.findAccessibilityNodeInfosByText(text, virtualViewId);
|