Searched defs:text (Results 76 - 100 of 608) sorted by relevance

1234567891011>>

/frameworks/base/core/java/android/text/style/
H A DDynamicDrawableSpan.java17 package android.text.style;
30 * Span that replaces the text it's attached to with a {@link Drawable} that can be aligned with
31 * the bottom or with the baseline of the surrounding text.
61 * <img src="{@docRoot}reference/android/images/text/style/dynamicdrawablespan.png" />
62 * <figcaption>Replacing text with a drawable.</figcaption>
68 * with the bottom of the surrounding text, i.e., at the same level as the
69 * lowest descender in the text.
75 * with the baseline of the surrounding text.
116 public int getSize(@NonNull Paint paint, CharSequence text, argument
134 public void draw(@NonNull Canvas canvas, CharSequence text, argument
[all...]
H A DIconMarginSpan.java17 package android.text.style;
25 import android.text.Layout;
26 import android.text.Spanned;
29 * Paragraph affecting span, that draws a bitmap at the beginning of a text. The span also allows
30 * setting a padding between the bitmap and the text. The default value of the padding is 0px. The
31 * span should be attached from the first character of the text.
40 * <img src="{@docRoot}reference/android/images/text/style/iconmarginspan.png" />
57 * @param bitmap bitmap to be rendered at the beginning of the text
66 * @param bitmap bitmap to be rendered at the beginning of the text
67 * @param pad padding width, in pixels, between the bitmap and the text
80 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
95 chooseHeight(CharSequence text, int start, int end, int istartv, int v, Paint.FontMetricsInt fm) argument
[all...]
H A DAlignmentSpan.java17 package android.text.style;
21 import android.text.Layout;
22 import android.text.ParcelableSpan;
23 import android.text.TextUtils;
26 * Span that allows defining the alignment of text at the paragraph level.
31 * Returns the alignment of the text.
33 * @return the text alignment
40 * For example, a text written in a left to right language, like English, which is by default
45 * <img src="{@docRoot}reference/android/images/text/style/ltralignmentspan.png" />
46 * <figcaption>Align left to right text opposit
[all...]
H A DCharacterStyle.java17 package android.text.style;
19 import android.text.TextPaint;
22 * The classes that affect character-level text formatting extend this
H A DClickableSpan.java17 package android.text.style;
20 import android.text.TextPaint;
24 * If an object of this type is attached to the text of a TextView
26 * text can be selected. If selected and clicked, the {@link #onClick} method will
29 * The text with a <code>ClickableSpan</code> attached will be underlined and the link color will be
30 * used as a text color. The default link color is the theme's accent color or
34 * <pre>{@code SpannableString string = new SpannableString("Text with clickable text");
36 * <img src="{@docRoot}reference/android/images/text/style/clickablespan.png" />
50 * Makes the text underlined and in the link color.
H A DMetricAffectingSpan.java17 package android.text.style;
20 import android.text.TextPaint;
23 * The classes that affect character-level text formatting in a way that
31 * Classes that extend MetricAffectingSpan implement this method to update the text formatting
34 * @param textPaint the paint used for drawing the text
H A DSpellCheckSpan.java17 package android.text.style;
20 import android.text.ParcelableSpan;
21 import android.text.TextUtils;
25 * annotate portions of the text that are about to or currently being spell checked. They are
/frameworks/base/core/tests/coretests/src/android/text/
H A DDynamicLayoutTest.java17 package android.text;
19 import static android.text.Layout.Alignment.ALIGN_NORMAL;
32 import android.text.style.ReplacementSpan;
61 public int getSize(Paint paint, CharSequence text, int start, int end, argument
66 public void draw(Canvas canvas, CharSequence text, int start, int end, float x, int top, argument
122 final SpannableStringBuilder text = new SpannableStringBuilder("a\nb\nc");
126 final StaticLayout staticLayout = StaticLayout.Builder.obtain(text, 0,
127 text.length(), textPaint, WIDTH)
133 final DynamicLayout dynamicLayout = new DynamicLayout(text,
150 final SpannableStringBuilder text
[all...]
H A DSpannedStringNoCopyTest.java17 package android.text;
26 import android.text.style.QuoteSpan;
27 import android.text.style.UnderlineSpan;
104 CustomSpanned(@NonNull Spannable text) { argument
105 mText = text;
H A DStaticLayoutBidiTest.java17 package android.text;
95 private void expectNativeBidi(int dir, String text, argument
97 char[] chs = text.toCharArray();
/frameworks/support/compat/src/main/java/androidx/core/text/
H A DHtmlCompat.java17 package androidx.core.text;
26 import android.text.Html;
27 import android.text.Html.ImageGetter;
28 import android.text.Html.TagHandler;
29 import android.text.Spanned;
30 import android.text.style.BulletSpan;
31 import android.text.style.ParagraphStyle;
46 * Option for {@link #fromHtml(String, int)}: Wrap consecutive lines of text delimited by '\n'
52 * Option for {@link #fromHtml(String, int)}: Wrap each line of text delimited by '\n' inside a
173 public static String toHtml(@NonNull Spanned text, argument
[all...]
/frameworks/support/emoji/core/src/main/java/androidx/emoji/text/
H A DEmojiSpan.java16 package androidx.emoji.text;
21 import android.text.style.ReplacementSpan;
77 public int getSize(@NonNull final Paint paint, final CharSequence text, final int start, argument
/frameworks/base/apct-tests/perftests/core/src/android/graphics/perftests/
H A DPaintMeasureTextTest.java23 import android.text.TextPaint;
63 public PaintMeasureTextTest(String key, int cacheMode, String text) { argument
64 mText = text;
/frameworks/base/apct-tests/perftests/core/src/android/text/
H A DPaintMeasureDrawPerfTest.java16 package android.text;
80 final String text = createRandomText();
81 if (mCached) mTextPaint.measureText(text);
89 mTextPaint.measureText(text);
103 final String text = createRandomText();
104 if (mCached) mTextPaint.measureText(text);
115 canvas.drawText(text, 0 /*x*/, 100 /*y*/, mTextPaint);
H A DTextPerfUtils.java17 package android.text;
19 import static android.text.TextDirectionHeuristics.LTR;
30 import android.text.Layout;
31 import android.text.style.TextAppearanceSpan;
86 24 + mRandom.nextInt(32), // text size. min 24 max 56
/frameworks/base/cmds/uiautomator/library/core-src/com/android/uiautomator/core/
H A DUiCollection.java20 * or targeting a sub elements by a child's text or description.
43 * a child UI element anywhere within its sub hierarchy that has content-description text.
48 * @param text String of the identifying child contents of of the <code>childPattern</code>
53 public UiObject getChildByDescription(UiSelector childPattern, String text) argument
55 Tracer.trace(childPattern, text);
56 if (text != null) {
61 if(nodeDesc != null && nodeDesc.contains(text)) {
64 UiObject item = row.getChild(new UiSelector().descriptionContains(text));
70 throw new UiObjectNotFoundException("for description= \"" + text + "\"");
100 * a child UI element anywhere within its sub hierarchy that has text attribut
111 getChildByText(UiSelector childPattern, String text) argument
[all...]
/frameworks/base/core/java/android/text/
H A DEmoji.java17 package android.text;
58 // keep them as emoji modifier bases since there are fonts and user-generated text out there
65 // TODO: Remove once emoji-data.text 11 is in ICU or update to 11.
78 // TODO: Remove once emoji-data.text 11 is in ICU or update to 11.
H A DSpannable.java17 package android.text;
20 * This is the interface for text to which markup objects can be
21 * attached and detached. Not all Spannable classes have mutable text;
29 * of the text, or move the object to that range if it was already
32 * within your application, or it can be one that the text system will
33 * use to affect text display or behavior. Some noteworthy ones are
34 * the subclasses of {@link android.text.style.CharacterStyle} and
35 * {@link android.text.style.ParagraphStyle}, and
36 * {@link android.text.TextWatcher} and
37 * {@link android.text
[all...]
H A DSpannableString.java17 package android.text;
20 * This is the class for text whose content is immutable but to which
22 * For mutable text, see {@link SpannableStringBuilder}.
39 * android.text.NoCopySpan}.
40 * @param source source text
H A DTextWatcher.java17 package android.text;
21 * be called when the text is changed.
27 * are about to be replaced by new text with length <code>after</code>.
36 * have just replaced old text that had length <code>before</code>.
44 * <code>s</code>, the text has been changed.
/frameworks/base/core/java/android/text/method/
H A DDateKeyListener.java17 package android.text.method;
21 import android.text.InputType;
32 * For entering dates in a text field.
H A DDateTimeKeyListener.java17 package android.text.method;
21 import android.text.InputType;
32 * For entering dates and times in the same text field.
H A DDialerKeyListener.java17 package android.text.method;
19 import android.text.InputType;
20 import android.text.Spannable;
25 * For dialing-only text entry
H A DTimeKeyListener.java17 package android.text.method;
21 import android.text.InputType;
32 * For entering times in a text field.
H A DTransformationMethod.java17 package android.text.method;
25 * from causing line breaks in single-line text fields.
30 * Returns a CharSequence that is a transformation of the source text --
32 * Beware that the returned text must be exactly the same length as
33 * the source text, and that if the source text is Editable, the returned
34 * text must mirror it dynamically instead of doing a one-time copy.

Completed in 305 milliseconds

1234567891011>>