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

1 2 3 4

  /external/chromium_org/third_party/WebKit/Source/devtools/front_end/common/
TextUtils.js 31 WebInspector.TextUtils = {
51 return !WebInspector.TextUtils.isStopChar(char) && !WebInspector.TextUtils.isSpaceChar(char);
60 return WebInspector.TextUtils._SpaceCharRegex.test(char);
70 if (!WebInspector.TextUtils.isWordChar(word.charAt(i)))
100 return WebInspector.TextUtils.isOpeningBraceChar(char) || WebInspector.TextUtils.isClosingBraceChar(char);
165 while (indentation < line.length && WebInspector.TextUtils.isSpaceChar(line.charAt(indentation)))
189 WebInspector.TextUtils._SpaceCharRegex = /\s/;
194 WebInspector.TextUtils.Indent =
    [all...]
  /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);
  /packages/inputmethods/LatinIME/tools/dicttool/compat/android/text/
TextUtils.java 19 public class TextUtils {
20 private TextUtils() { /* cannot be instantiated */ }
  /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);
  /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);
  /packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/compat/
TextInfoCompatUtilsTests.java 25 import android.text.TextUtils;
64 assertTrue(TextUtils.equals(expectedSpanned, actualCharSequence));
77 TextUtils.writeToParcel(cahrSequence, parcel, 0);
  /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 25 import android.text.TextUtils;
306 TextUtils.writeToParcel(nonLocalizedLabel, dest, parcelableFlags);
319 = TextUtils.CHAR_SEQUENCE_CREATOR.createFromParcel(source);
PermissionInfo.java 21 import android.text.TextUtils;
221 TextUtils.writeToParcel(nonLocalizedDescription, dest, parcelableFlags);
240 nonLocalizedDescription = 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/base/core/java/android/view/textservice/
TextInfo.java 23 import android.text.TextUtils;
56 return TextUtils.isEmpty(text) ? 0 : text.length();
69 if (TextUtils.isEmpty(charSequence)) {
88 mCharSequence = TextUtils.CHAR_SEQUENCE_CREATOR.createFromParcel(source);
101 TextUtils.writeToParcel(mCharSequence, dest, flags);
  /frameworks/base/packages/DocumentsUI/src/com/android/documentsui/
PickFragment.java 23 import android.text.TextUtils;
85 mPick.setText(TextUtils.expandTemplate(raw, displayName));
  /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(
  /packages/apps/Settings/src/com/android/settings/dashboard/
DashboardCategory.java 23 import android.text.TextUtils;
109 TextUtils.writeToParcel(title, dest, flags);
122 title = TextUtils.CHAR_SEQUENCE_CREATOR.createFromParcel(in);
DashboardTile.java 24 import android.text.TextUtils;
135 TextUtils.writeToParcel(title, dest, flags);
137 TextUtils.writeToParcel(summary, dest, flags);
153 title = TextUtils.CHAR_SEQUENCE_CREATOR.createFromParcel(in);
155 summary = TextUtils.CHAR_SEQUENCE_CREATOR.createFromParcel(in);
  /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);

Completed in 525 milliseconds

1 2 3 4