HomeSort by relevance Sort by last modified time
    Searched defs:TextUtils (Results 1 - 25 of 68) sorted by null

1 2 3

  /frameworks/base/core/java/android/text/
InputFilter.java 40 * {@link TextUtils#copySpansFrom} can be used for convenience.
55 TextUtils.getChars(source, start, end, v, 0);
60 TextUtils.copySpansFrom((Spanned) source,
AlteredCharSequence.java 106 TextUtils.getChars(mSource, start, end, dest, off);
BoringLayout.java 38 public class BoringLayout extends Layout implements TextUtils.EllipsizeCallback {
54 TextUtils.TruncateAt ellipsize, int ellipsizedWidth) {
92 TextUtils.TruncateAt ellipsize,
96 if (ellipsize == null || ellipsize == TextUtils.TruncateAt.MARQUEE) {
105 replaceWith(TextUtils.ellipsize(source, paint, ellipsizedWidth,
139 TextUtils.TruncateAt ellipsize, int ellipsizedWidth) {
149 if (ellipsize == null || ellipsize == TextUtils.TruncateAt.MARQUEE) {
155 replaceWith(TextUtils.ellipsize(source, paint, ellipsizedWidth,
259 char[] temp = TextUtils.obtain(500);
270 TextUtils.getChars(text, i, j, temp, 0)
    [all...]
MeasuredText.java 106 TextUtils.getChars(text, start, end, mChars, 0);
128 TextUtils.doesNotNeedBidi(mChars, 0, len)) {
  /cts/tests/tests/text/src/android/text/cts/
TextUtilsTest.java 38 import android.text.TextUtils;
39 import android.text.TextUtils.TruncateAt;
55 * Test {@link TextUtils}.
82 String re = TextUtils.ellipsize(text, p, width, TruncateAt.START).toString();
95 TextUtils.commaEllipsize(text, p, textWidth - 1.4f, "plus 1", "%d plus").toString());
98 TextUtils.commaEllipsize(text, p, textWidth, "plus 1", "%d plus").toString());
103 TextUtils.commaEllipsize(text, p, textWidth, "more 1", "%d more").toString());
108 TextUtils.commaEllipsize(text, p, textWidth, "more 1", "%d more").toString());
111 assertEquals("long, string, to, more 1", TextUtils.commaEllipsize(
115 assertEquals("", TextUtils.commaEllipsize(text, p, -1f, "plus 1", "%d plus").toString())
    [all...]
  /external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/
TextUtilsTest.java 3 import android.text.TextUtils;
18 (String) TextUtils.expandTemplate("a^1b^2c^3d", "A", "B", "C", "D"),
24 assertThat(TextUtils.isEmpty(null), equalTo(true));
25 assertThat(TextUtils.isEmpty(""), equalTo(true));
26 assertThat(TextUtils.isEmpty(" "), equalTo(false));
27 assertThat(TextUtils.isEmpty("123"), equalTo(false));
31 assertThat(TextUtils.join(",", new String[] { "1" }), equalTo("1"));
32 assertThat(TextUtils.join(",", new String[] { "1", "2", "3" }), equalTo("1,2,3"));
33 assertThat(TextUtils.join(",", Arrays.asList("1", "2", "3")), equalTo("1,2,3"));
38 assertThat(TextUtils.isDigitsOnly("123456"), equalTo(true))
    [all...]
  /frameworks/base/core/java/android/view/inputmethod/
CorrectionInfo.java 21 import android.text.TextUtils;
45 mOldText = TextUtils.CHAR_SEQUENCE_CREATOR.createFromParcel(source);
46 mNewText = TextUtils.CHAR_SEQUENCE_CREATOR.createFromParcel(source);
84 TextUtils.writeToParcel(mOldText, dest, flags);
85 TextUtils.writeToParcel(mNewText, dest, flags);
CompletionInfo.java 21 import android.text.TextUtils;
97 mText = TextUtils.CHAR_SEQUENCE_CREATOR.createFromParcel(source);
98 mLabel = TextUtils.CHAR_SEQUENCE_CREATOR.createFromParcel(source);
149 TextUtils.writeToParcel(mText, dest, flags);
150 TextUtils.writeToParcel(mLabel, dest, flags);
ExtractedText.java 21 import android.text.TextUtils;
96 TextUtils.writeToParcel(text, dest, flags);
112 res.text = TextUtils.CHAR_SEQUENCE_CREATOR.createFromParcel(source);
EditorInfo.java 23 import android.text.TextUtils;
240 * {@link TextUtils#CAP_MODE_CHARACTERS TextUtils.CAP_MODE_CHARACTERS},
241 * {@link TextUtils#CAP_MODE_WORDS TextUtils.CAP_MODE_WORDS}, and
242 * {@link TextUtils#CAP_MODE_SENTENCES TextUtils.CAP_MODE_SENTENCES}, though
355 TextUtils.writeToParcel(actionLabel, dest, flags);
360 TextUtils.writeToParcel(hintText, dest, flags);
361 TextUtils.writeToParcel(label, dest, flags)
    [all...]
  /frameworks/base/media/java/android/media/
AudioRoutesInfo.java 21 import android.text.TextUtils;
46 mBluetoothName = TextUtils.CHAR_SEQUENCE_CREATOR.createFromParcel(src);
57 TextUtils.writeToParcel(mBluetoothName, dest, flags);
  /frameworks/base/core/java/android/content/pm/
PermissionGroupInfo.java 21 import android.text.TextUtils;
109 TextUtils.writeToParcel(nonLocalizedDescription, dest, parcelableFlags);
127 nonLocalizedDescription = TextUtils.CHAR_SEQUENCE_CREATOR.createFromParcel(source);
LabeledIntent.java 22 import android.text.TextUtils;
166 TextUtils.writeToParcel(mNonLocalizedLabel, dest, parcelableFlags);
179 mNonLocalizedLabel = TextUtils.CHAR_SEQUENCE_CREATOR.createFromParcel(in);
PackageItemInfo.java 24 import android.text.TextUtils;
242 TextUtils.writeToParcel(nonLocalizedLabel, dest, parcelableFlags);
253 = TextUtils.CHAR_SEQUENCE_CREATOR.createFromParcel(source);
PermissionInfo.java 21 import android.text.TextUtils;
211 TextUtils.writeToParcel(nonLocalizedDescription, dest, parcelableFlags);
230 nonLocalizedDescription = TextUtils.CHAR_SEQUENCE_CREATOR.createFromParcel(source);
ResolveInfo.java 23 import android.text.TextUtils;
281 TextUtils.writeToParcel(nonLocalizedLabel, dest, parcelableFlags);
321 = TextUtils.CHAR_SEQUENCE_CREATOR.createFromParcel(source);
  /frameworks/base/core/java/android/content/
ClipDescription.java 21 import android.text.TextUtils;
231 TextUtils.writeToParcel(mLabel, dest, flags);
236 mLabel = TextUtils.CHAR_SEQUENCE_CREATOR.createFromParcel(in);
  /frameworks/opt/vcard/tests/src/com/android/vcard/tests/
VCardUtilsTests.java 18 import android.text.TextUtils;
93 assertTrue(TextUtils.isEmpty(VCardUtils.toStringAsV30ParamValue("")));
94 assertTrue(TextUtils.isEmpty(VCardUtils.toStringAsV30ParamValue(null)));
95 assertTrue(TextUtils.isEmpty(VCardUtils.toStringAsV30ParamValue(" \t")));
109 assertTrue(TextUtils.isEmpty(
  /frameworks/base/core/tests/coretests/src/android/text/
TextUtilsTest.java 35 * TextUtilsTest tests {@link TextUtils}.
41 assertEquals("", TextUtils.concat());
42 assertEquals("foo", TextUtils.concat("foo"));
43 assertEquals("foobar", TextUtils.concat("foo", "bar"));
44 assertEquals("foobarbaz", TextUtils.concat("foo", "bar", "baz"));
55 assertEquals("foo", TextUtils.concat(foo).toString());
56 assertEquals("foobar", TextUtils.concat(foo, bar).toString());
57 assertEquals("foobarbaz", TextUtils.concat(foo, bar, baz).toString());
59 assertEquals(1, ((Spanned) TextUtils.concat(foo)).getSpanStart("foo"));
61 assertEquals(1, ((Spanned) TextUtils.concat(foo, bar)).getSpanStart("foo"))
    [all...]
SpannedTest.java 76 TextUtils.writeToParcel(s, p, 0);
79 Spanned s2 = (Spanned) TextUtils.CHAR_SEQUENCE_CREATOR.
  /cts/tests/tests/view/src/android/view/cts/
KeyCharacterMapTest.java 21 import android.text.TextUtils;
320 TextUtils.getChars(mCharSequence, 1, len, charsArray, 0);
  /frameworks/base/core/java/android/text/method/
ReplacementTransformationMethod.java 25 import android.text.TextUtils;
67 if (TextUtils.indexOf(source, original[i]) >= 0) {
151 TextUtils.getChars(mSource, start, end, dest, off);
PasswordTransformationMethod.java 26 import android.text.TextUtils;
190 TextUtils.getChars(mSource, start, end, dest, off);
  /cts/tests/tests/widget/src/android/widget/cts/
MultiAutoCompleteTextViewTest.java 30 import android.text.TextUtils;
244 TextUtils.copySpansFrom((Spanned)text, 0, text.length(), Object.class, sp, 0);
  /frameworks/base/core/java/android/widget/
MultiAutoCompleteTextView.java 23 import android.text.TextUtils;
151 if (TextUtils.isEmpty(sub)) {
194 String original = TextUtils.substring(editable, start, end);
277 TextUtils.copySpansFrom((Spanned) text, 0, text.length(),

Completed in 972 milliseconds

1 2 3