/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; 52 * Test {@link TextUtils}. 79 String re = TextUtils.ellipsize(text, p, width, TruncateAt.START).toString(); 92 TextUtils.commaEllipsize(text, p, textWidth - 1.4f, "plus 1", "%d plus").toString()); 95 TextUtils.commaEllipsize(text, p, textWidth, "plus 1", "%d plus").toString()); 100 TextUtils.commaEllipsize(text, p, textWidth, "more 1", "%d more").toString()); 105 TextUtils.commaEllipsize(text, p, textWidth, "more 1", "%d more").toString()); 108 assertEquals("long, string, to, more 1", TextUtils.commaEllipsize( 112 assertEquals("", TextUtils.commaEllipsize(text, p, -1f, "plus 1", "%d plus").toString()) [all...] |
/external/robolectric/v1/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...] |
/external/smali/util/src/main/java/org/jf/util/ |
TextUtils.java | 38 public class TextUtils {
|
/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);
|
/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);
|
PermissionInfo.java | 22 import android.text.TextUtils; 294 TextUtils.writeToParcel(nonLocalizedDescription, dest, parcelableFlags); 313 nonLocalizedDescription = TextUtils.CHAR_SEQUENCE_CREATOR.createFromParcel(source);
|
/frameworks/base/media/java/android/media/ |
AudioRoutesInfo.java | 21 import android.text.TextUtils; 47 bluetoothName = TextUtils.CHAR_SEQUENCE_CREATOR.createFromParcel(src); 59 + (TextUtils.isEmpty(bluetoothName) ? "" : ", bluetoothName=" + bluetoothName) 75 TextUtils.writeToParcel(bluetoothName, dest, flags);
|
/frameworks/base/tests/UiBench/src/com/android/test/uibench/ |
TextUtils.java | 20 public class TextUtils {
|
/packages/apps/Settings/src/com/android/settings/deviceinfo/ |
PrivateVolumeFormat.java | 24 import android.text.TextUtils; 57 body.setText(TextUtils.expandTemplate(getText(R.string.storage_internal_format_details),
|
PrivateVolumeUnmount.java | 23 import android.text.TextUtils; 57 body.setText(TextUtils.expandTemplate(getText(R.string.storage_internal_unmount_details),
|
/external/smali/baksmali/src/test/java/org/jf/baksmali/ |
AnalysisTest.java | 43 import org.jf.util.TextUtils; 109 Assert.assertEquals(TextUtils.normalizeWhitespace(smaliContents), 110 TextUtils.normalizeWhitespace((stringWriter.toString())));
|
/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/SettingsLib/src/com/android/settingslib/drawer/ |
DashboardCategory.java | 21 import android.text.TextUtils; 84 TextUtils.writeToParcel(title, dest, flags); 98 title = 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 | 37 * TextUtilsTest tests {@link TextUtils}. 43 assertEquals("", TextUtils.concat()); 44 assertEquals("foo", TextUtils.concat("foo")); 45 assertEquals("foobar", TextUtils.concat("foo", "bar")); 46 assertEquals("foobarbaz", TextUtils.concat("foo", "bar", "baz")); 57 assertEquals("foo", TextUtils.concat(foo).toString()); 58 assertEquals("foobar", TextUtils.concat(foo, bar).toString()); 59 assertEquals("foobarbaz", TextUtils.concat(foo, bar, baz).toString()); 61 assertEquals(1, ((Spanned) TextUtils.concat(foo)).getSpanStart("foo")); 63 assertEquals(1, ((Spanned) TextUtils.concat(foo, bar)).getSpanStart("foo")) [all...] |
/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/content/ |
ClipDescription.java | 22 import android.text.TextUtils; 295 TextUtils.writeToParcel(mLabel, dest, flags); 301 mLabel = TextUtils.CHAR_SEQUENCE_CREATOR.createFromParcel(in);
|
/frameworks/base/core/java/android/service/quicksettings/ |
Tile.java | 23 import android.text.TextUtils; 197 TextUtils.writeToParcel(mLabel, dest, flags); 198 TextUtils.writeToParcel(mContentDescription, dest, flags); 208 mLabel = TextUtils.CHAR_SEQUENCE_CREATOR.createFromParcel(source); 209 mContentDescription = TextUtils.CHAR_SEQUENCE_CREATOR.createFromParcel(source);
|