Searched defs:text (Results 276 - 300 of 555) sorted by relevance

<<11121314151617181920>>

/frameworks/base/core/java/android/text/
H A DSelection.java17 package android.text;
19 import java.text.BreakIterator;
37 public static final int getSelectionStart(CharSequence text) { argument
38 if (text instanceof Spanned)
39 return ((Spanned) text).getSpanStart(SELECTION_START);
48 public static final int getSelectionEnd(CharSequence text) { argument
49 if (text instanceof Spanned)
50 return ((Spanned) text).getSpanStart(SELECTION_END);
67 public static void setSelection(Spannable text, int start, int stop) { argument
68 // int len = text
86 setSelection(Spannable text, int index) argument
93 selectAll(Spannable text) argument
100 extendSelection(Spannable text, int index) argument
108 removeSelection(Spannable text) argument
122 moveUp(Spannable text, Layout layout) argument
168 moveDown(Spannable text, Layout layout) argument
213 moveLeft(Spannable text, Layout layout) argument
238 moveRight(Spannable text, Layout layout) argument
261 extendUp(Spannable text, Layout layout) argument
290 extendDown(Spannable text, Layout layout) argument
319 extendLeft(Spannable text, Layout layout) argument
335 extendRight(Spannable text, Layout layout) argument
347 extendToLeftEdge(Spannable text, Layout layout) argument
353 extendToRightEdge(Spannable text, Layout layout) argument
359 moveToLeftEdge(Spannable text, Layout layout) argument
365 moveToRightEdge(Spannable text, Layout layout) argument
380 moveToPreceding( Spannable text, PositionIterator iter, boolean extendSelection) argument
394 moveToFollowing( Spannable text, PositionIterator iter, boolean extendSelection) argument
407 findEdge(Spannable text, Layout layout, int dir) argument
[all...]
H A DAlteredCharSequence.java17 package android.text;
29 * Create an AlteredCharSequence whose text (and possibly spans)
H A DAutoText.java17 package android.text;
105 * of text. Returns null if no correction can be found.
114 * Returns the size of the auto text dictionary. The return value can be zero if there is
117 * @return the number of entries in the auto text dictionary
H A DHyphenator.java17 package android.text;
248 * on the UI thread when drawing text in different locales.
H A DPackedIntVector.java17 package android.text;
H A DSpanned.java17 package android.text;
20 * This is the interface for text that has markup objects attached to
21 * ranges of it. Not all text classes have mutable markup or text;
23 * mutable text.
45 * independent from the visual representation of the text (left-to-right or right-to-left).
50 * 0-length spans with type SPAN_MARK_MARK behave like text marks:
51 * they remain at their original offset when text is inserted
52 * at that offset. Conceptually, the text is added after the mark.
66 * they are pushed forward by the length of the insertion when text
[all...]
H A DTextDirectionHeuristics.java17 package android.text;
31 * you can use the support library's {@link android.support.v4.text.TextDirectionHeuristicsCompat}
66 * If the text contains any strong right to left non-format character, determines that the
131 * Computes the text direction based on an algorithm. Subclasses implement
133 * direction from the text alone.
143 * Return true if the default text direction is rtl.
191 * Interface for an algorithm to guess the direction of a paragraph of text.
195 * Returns whether the range of text is RTL according to the algorithm.
234 * in the constructor parameter to determine the direction of text.
/frameworks/base/core/java/android/text/method/
H A DBaseMovementMethod.java17 package android.text.method;
19 import android.text.Layout;
20 import android.text.Spannable;
36 public void initialize(TextView widget, Spannable text) { argument
40 public boolean onKeyDown(TextView widget, Spannable text, int keyCode, KeyEvent event) { argument
41 final int movementMetaState = getMovementMetaState(text, event);
42 boolean handled = handleMovementKey(widget, text, keyCode, movementMetaState, event);
44 MetaKeyKeyListener.adjustMetaAfterKeypress(text);
45 MetaKeyKeyListener.resetLockedMeta(text);
51 public boolean onKeyOther(TextView widget, Spannable text, KeyEven argument
74 onKeyUp(TextView widget, Spannable text, int keyCode, KeyEvent event) argument
79 onTakeFocus(TextView widget, Spannable text, int direction) argument
83 onTouchEvent(TextView widget, Spannable text, MotionEvent event) argument
88 onTrackballEvent(TextView widget, Spannable text, MotionEvent event) argument
93 onGenericMotionEvent(TextView widget, Spannable text, MotionEvent event) argument
[all...]
H A DMultiTapKeyListener.java17 package android.text.method;
21 import android.text.Editable;
22 import android.text.Selection;
23 import android.text.SpanWatcher;
24 import android.text.Spannable;
25 import android.text.method.TextKeyListener.Capitalize;
158 // or the text no longer matches, so move the selection over
H A DNumberKeyListener.java17 package android.text.method;
21 import android.icu.text.DecimalFormatSymbols;
22 import android.text.Editable;
23 import android.text.InputFilter;
24 import android.text.Selection;
25 import android.text.Spannable;
26 import android.text.SpannableStringBuilder;
27 import android.text.Spanned;
28 import android.text.format.DateFormat;
38 * For numeric text entr
[all...]
H A DReplacementTransformationMethod.java17 package android.text.method;
20 import android.text.Editable;
21 import android.text.GetChars;
22 import android.text.Spannable;
23 import android.text.Spanned;
24 import android.text.SpannedString;
25 import android.text.TextUtils;
57 * Short circuit for faster display if the text will never change.
61 * Check whether the text does not contain any of the
78 * The text contain
[all...]
H A DWordIterator.java17 package android.text.method;
22 import android.icu.text.BreakIterator;
23 import android.text.CharSequenceCharacterIterator;
24 import android.text.Selection;
53 * @param locale The locale to be used for analyzing the text.
/frameworks/base/core/java/android/text/util/
H A DLinkify.java17 package android.text.util;
23 import android.text.Spannable;
24 import android.text.SpannableString;
25 import android.text.Spanned;
26 import android.text.method.LinkMovementMethod;
27 import android.text.method.MovementMethod;
28 import android.text.style.URLSpan;
51 * Linkify take a piece of text and a regular expression and turns all of the
52 * regex matches in the text into clickable links. This is particularly
58 * will have the scheme prepended to the matched text whe
223 addLinks(@onNull Spannable text, @LinkifyMask int mask) argument
280 addLinks(@onNull TextView text, @LinkifyMask int mask) argument
329 addLinks(@onNull TextView text, @NonNull Pattern pattern, @Nullable String scheme) argument
348 addLinks(@onNull TextView text, @NonNull Pattern pattern, @Nullable String scheme, @Nullable MatchFilter matchFilter, @Nullable TransformFilter transformFilter) argument
371 addLinks(@onNull TextView text, @NonNull Pattern pattern, @Nullable String defaultScheme, @Nullable String[] schemes, @Nullable MatchFilter matchFilter, @Nullable TransformFilter transformFilter) argument
393 addLinks(@onNull Spannable text, @NonNull Pattern pattern, @Nullable String scheme) argument
475 applyLink(String url, int start, int end, Spannable text) argument
[all...]
/frameworks/base/core/tests/coretests/src/android/text/
H A DStaticLayoutTest.java17 package android.text;
19 import static android.text.Layout.Alignment.ALIGN_NORMAL;
25 import android.text.Layout.Alignment;
26 import android.text.method.EditorState;
117 * large text. See effect of leading. Currently, we don't expect there to
237 String text = "This is a test"; field in class:StaticLayoutTest.LayoutBuilder
245 LayoutBuilder setText(String text) { argument
246 this.text = text;
281 return new StaticLayout(text, pain
[all...]
H A DTextUtilsTest.java17 package android.text;
33 import android.text.style.StyleSpan;
34 import android.text.util.Rfc822Token;
35 import android.text.util.Rfc822Tokenizer;
147 /** Fail unless text+spans contains a span 'spanName' with the given start and end. */
148 private void checkContains(Spanned text, String[] spans, String spanName, argument
152 assertEquals(start, text.getSpanStart(i));
153 assertEquals(end, text.getSpanEnd(i));
365 CharSequence text = TextUtils.CHAR_SEQUENCE_CREATOR.createFromParcel(p);
366 assertNull("null CharSequence should generate null from parcel", text);
[all...]
/frameworks/support/core-utils/java/android/support/v4/text/
H A DBidiFormatter.java17 package android.support.v4.text;
20 import android.text.SpannableStringBuilder;
24 import static android.support.v4.text.TextDirectionHeuristicsCompat.FIRSTSTRONG_LTR;
27 * Utility class for formatting text for display in a potentially opposite-directionality context
29 * directionality of the text can be either estimated or passed in when known. Provides the
33 * When text in one language is mixed into a document in another, opposite-directionality language,
35 * and the text surrounding it may be displayed incorrectly unless the inserted string is explicitly
36 * separated from the surrounding text in a "wrapper" that:
46 * separate opposite-direction text that happens to follow it in-line (even if separated by
48 * happen there, but only with more opposite-direction text, no
594 private final CharSequence text; field in class:BidiFormatter.DirectionalityEstimator
627 DirectionalityEstimator(CharSequence text, boolean isHtml) argument
[all...]
/frameworks/base/core/java/android/accounts/
H A DChooseAccountActivity.java154 TextView text; field in class:ChooseAccountActivity.ViewHolder
175 holder.text = (TextView) convertView.findViewById(R.id.account_row_text);
182 holder.text.setText(mInfos[position].name);
/frameworks/base/core/java/android/app/
H A DListFragment.java77 * android:text=&quot;No data&quot;/&gt;
287 * shown, call this method to supply the text it should use.
289 public void setEmptyText(CharSequence text) { argument
294 mStandardEmptyView.setText(text);
298 mEmptyText = text;
/frameworks/base/core/java/android/content/pm/
H A DSignature.java83 * Create Signature from a text representation previously returned by
87 * @param text hex-encoded string representing the signature
90 public Signature(String text) { argument
91 final byte[] input = text.getBytes();
95 throw new IllegalArgumentException("text size " + N + " is not even");
111 * Encode the Signature as ASCII text.
118 * Encode the Signature as ASCII text in to an existing array.
131 char[] text = existingArray == null || N2 > existingArray.length
136 text[j*2] = (char)(d >= 10 ? ('a' + d - 10) : ('0' + d));
138 text[
[all...]
/frameworks/base/core/java/android/inputmethodservice/
H A DExtractEditText.java27 * extracted text in a full-screen input method.
72 * Implement just to keep track of when we are setting text from the
75 @Override public void setExtractedText(ExtractedText text) { argument
78 super.setExtractedText(text);
85 * Report to the underlying text editor about selection changes.
106 // Select all and Replace text shouldn't be handled by the original edit text, but by the
113 // Cut will change the text, which stops selection mode.
129 * Return true if the edit text is currently showing a scroll bar.
196 protected void replaceText_internal(int start, int end, CharSequence text) { argument
[all...]
/frameworks/base/core/java/android/preference/
H A DEditTextPreference.java25 import android.text.TextUtils;
47 * The edit text shown in the dialog.
84 * Saves the text to the {@link SharedPreferences}.
86 * @param text The text to save
88 public void setText(String text) { argument
90 final boolean changed = !TextUtils.equals(mText, text);
92 mText = text;
94 persistString(text);
103 * Gets the text fro
211 String text; field in class:EditTextPreference.SavedState
[all...]
/frameworks/base/core/java/android/speech/tts/
H A DSynthesisRequest.java23 * <li>The text to synthesize</li>
35 * Any additional parameters sent to the text to speech service are passed in
50 public SynthesisRequest(String text, Bundle params) { argument
51 mText = text;
56 public SynthesisRequest(CharSequence text, Bundle params) { argument
57 mText = text;
63 * Gets the text which should be synthesized.
72 * Gets the text which should be synthesized.
/frameworks/base/core/java/android/text/style/
H A DTextAppearanceSpan.java17 package android.text.style;
24 import android.text.ParcelableSpan;
25 import android.text.TextPaint;
26 import android.text.TextUtils;
29 * Sets the text color, size, style, and typeface to match a TextAppearance
41 * text appearance. The <code>appearance</code> should be, for example,
50 * text appearance, and the specified text color resource
110 * Makes text be drawn with the specified typeface, size, style,
183 * Returns the text colo
[all...]
/frameworks/base/core/java/android/view/
H A DAccessibilityIterators.java21 import java.text.BreakIterator;
25 * This class contains the implementation of text segment iterators
52 public void initialize(String text) { argument
53 mText = text;
88 public void initialize(String text) { argument
89 super.initialize(text);
90 mImpl.setText(text);
/frameworks/base/core/java/android/view/inputmethod/
H A DInputMethodSession.java40 * receiving text input.
48 * @param oldSelStart The previous text offset of the cursor selection
50 * @param oldSelEnd The previous text offset of the cursor selection
52 * @param newSelStart The new text offset of the cursor selection
54 * @param newSelEnd The new text offset of the cursor selection
56 * @param candidatesStart The text offset of the current candidate
57 * text start position.
58 * @param candidatesEnd The text offset of the current candidate
59 * text end position.
66 * This method is called when the user tapped a text vie
105 updateExtractedText(int token, ExtractedText text) argument
[all...]

Completed in 4752 milliseconds

<<11121314151617181920>>