/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...] |
/frameworks/support/core/ktx/src/main/java/androidx/core/text/ |
CharSequence.kt | 21 import android.text.TextUtils 26 * @see TextUtils.isDigitsOnly 28 inline fun CharSequence.isDigitsOnly() = TextUtils.isDigitsOnly(this) 34 * @see TextUtils.getTrimmedLength 36 inline fun CharSequence.trimmedLength() = TextUtils.getTrimmedLength(this)
|
String.kt | 21 import android.text.TextUtils 26 * @see TextUtils.htmlEncode 28 inline fun String.htmlEncode(): String = TextUtils.htmlEncode(this)
|
/external/smali/util/src/test/java/org/jf/util/ |
TextUtilsTest.java | 40 Assert.assertEquals("", TextUtils.stripComments("#world")); 41 Assert.assertEquals("hello", TextUtils.stripComments("hello#world")); 42 Assert.assertEquals("multi\nline", TextUtils.stripComments("multi#hello world\nline#world")); 47 Assert.assertEquals("", TextUtils.normalizeWhitespace(" ")); 48 Assert.assertEquals("hello", TextUtils.normalizeWhitespace("hello ")); 49 Assert.assertEquals("hello", TextUtils.normalizeWhitespace(" hello")); 50 Assert.assertEquals("hello", TextUtils.normalizeWhitespace(" hello ")); 51 Assert.assertEquals("hello\nworld", TextUtils.normalizeWhitespace("hello \n \n world"));
|
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/ |
ShadowTextUtilsTest.java | 7 import android.text.TextUtils; 17 assertThat(TextUtils.expandTemplate("a^1b^2c^3d", "A", "B", "C", "D").toString()).isEqualTo("aAbBcCd"); 22 assertThat(TextUtils.isEmpty(null)).isTrue(); 23 assertThat(TextUtils.isEmpty("")).isTrue(); 24 assertThat(TextUtils.isEmpty(" ")).isFalse(); 25 assertThat(TextUtils.isEmpty("123")).isFalse(); 29 assertThat(TextUtils.join(",", new String[]{"1"})).isEqualTo("1"); 30 assertThat(TextUtils.join(",", new String[]{"1", "2", "3"})).isEqualTo("1,2,3"); 31 assertThat(TextUtils.join(",", Arrays.asList("1", "2", "3"))).isEqualTo("1,2,3"); 36 assertThat(TextUtils.isDigitsOnly("123456")).isTrue() [all...] |
/frameworks/support/core/ktx/src/main/java/androidx/core/util/ |
Locale.kt | 19 import android.text.TextUtils 25 * @see TextUtils.getLayoutDirectionFromLocale 29 get() = TextUtils.getLayoutDirectionFromLocale(this)
|
/cts/tests/tests/text/src/android/text/cts/ |
TextUtilsTest.java | 51 import android.text.TextUtils; 52 import android.text.TextUtils.TruncateAt; 70 * Test {@link TextUtils}. 100 String re = TextUtils.ellipsize(text, p, width, TruncateAt.START).toString(); 124 final String fullString = TextUtils.join(separator, fullList); 127 TextUtils.listEllipsize(mContext, null, separator, paint, fullWidth, moreId)); 131 TextUtils.listEllipsize(mContext, emptyList, separator, paint, fullWidth, moreId)); 134 final String ellipsizedWithNull = TextUtils.listEllipsize( 140 TextUtils.listEllipsize(mContext, fullList, separator, paint, 1.0f, moreId)); 144 TextUtils.listEllipsize(mContext, fullList, separator, paint, fullWidth, moreId [all...] |
/cts/common/device-side/preconditions/src/com/android/compatibility/common/preconditions/ |
TelephonyHelper.java | 21 import android.text.TextUtils; 34 return !TextUtils.isEmpty(telephony.getLine1Number());
|
/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/ |
WifiTest.java | 19 import android.text.TextUtils; 35 TextUtils.isEmpty(macAddress));
|
/packages/apps/Messaging/src/com/android/messaging/datamodel/data/ |
ConversationMessageBubbleData.java | 18 import android.text.TextUtils; 33 final boolean changed = !TextUtils.equals(mMessageId, data.getMessageId());
|
/packages/apps/UnifiedEmail/src/com/android/mail/ui/settings/ |
SettingsUtils.java | 20 import android.text.TextUtils; 26 if (!TextUtils.isEmpty(summary)) {
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/ |
LegacyPasspointConfig.java | 19 import android.text.TextUtils; 50 return TextUtils.equals(mFqdn, that.mFqdn) 51 && TextUtils.equals(mFriendlyName, that.mFriendlyName) 53 && TextUtils.equals(mRealm, that.mRealm) 54 && TextUtils.equals(mImsi, that.mImsi);
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/ |
CapsModeUtils.java | 20 import android.text.TextUtils; 88 * This code is a straight copy of TextUtils.getCapsMode (modulo namespace and formatting 93 * {@link TextUtils#CAP_MODE_CHARACTERS}, {@link TextUtils#CAP_MODE_WORDS}, and 94 * {@link TextUtils#CAP_MODE_SENTENCES}. 100 * {@link TextUtils#CAP_MODE_CHARACTERS}, {@link TextUtils#CAP_MODE_WORDS}, and 101 * {@link TextUtils#CAP_MODE_SENTENCES}. 118 if ((reqModes & (TextUtils.CAP_MODE_WORDS | TextUtils.CAP_MODE_SENTENCES)) == 0) [all...] |
IntentUtils.java | 20 import android.text.TextUtils; 37 if (!TextUtils.isEmpty(inputMethodId)) {
|
/frameworks/base/packages/SystemUI/src/com/android/keyguard/ |
KeyguardClockAccessibilityDelegate.java | 20 import android.text.TextUtils; 39 if (TextUtils.isEmpty(mFancyColon)) { 43 if (!TextUtils.isEmpty(text)) { 50 if (TextUtils.isEmpty(mFancyColon)) { 54 if (!TextUtils.isEmpty(text)) { 63 if (TextUtils.isEmpty(mFancyColon)) { 66 if (!TextUtils.isEmpty(info.getText())) { 69 if (!TextUtils.isEmpty(info.getContentDescription())) { 75 if (TextUtils.isEmpty(mFancyColon)) { 82 return !TextUtils.isEmpty(context.getString(R.string.keyguard_fancy_colon)) [all...] |
/frameworks/base/core/tests/coretests/src/android/text/ |
TextUtilsTest.java | 48 * TextUtilsTest tests {@link TextUtils}. 57 assertEquals("", TextUtils.concat()); 58 assertEquals("foo", TextUtils.concat("foo")); 59 assertEquals("foobar", TextUtils.concat("foo", "bar")); 60 assertEquals("foobarbaz", TextUtils.concat("foo", "bar", "baz")); 71 assertEquals("foo", TextUtils.concat(foo).toString()); 72 assertEquals("foobar", TextUtils.concat(foo, bar).toString()); 73 assertEquals("foobarbaz", TextUtils.concat(foo, bar, baz).toString()); 75 assertEquals(1, ((Spanned) TextUtils.concat(foo)).getSpanStart("foo")); 77 assertEquals(1, ((Spanned) TextUtils.concat(foo, bar)).getSpanStart("foo")) [all...] |
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/ |
ShadowTextUtils.java | 4 import android.text.TextUtils; 5 import android.text.TextUtils.TruncateAt; 10 * Implement {@lint TextUtils#ellipsize} by truncating the text. 13 @Implements(TextUtils.class)
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/dictionarypack/ |
MetadataParser.java | 19 import android.text.TextUtils; 59 if (!TextUtils.isEmpty(name)) { 64 if (TextUtils.isEmpty(arguments.get(ID_FIELD_NAME)) 65 || TextUtils.isEmpty(arguments.get(LOCALE_FIELD_NAME)) 66 || TextUtils.isEmpty(arguments.get(DESCRIPTION_FIELD_NAME)) 67 || TextUtils.isEmpty(arguments.get(UPDATE_FIELD_NAME)) 68 || TextUtils.isEmpty(arguments.get(FILESIZE_FIELD_NAME)) 69 || TextUtils.isEmpty(arguments.get(CHECKSUM_FIELD_NAME)) 70 || TextUtils.isEmpty(arguments.get(REMOTE_FILENAME_FIELD_NAME)) 71 || TextUtils.isEmpty(arguments.get(VERSION_FIELD_NAME) [all...] |
/frameworks/opt/chips/src/com/android/ex/chips/ |
PhoneUtil.java | 20 import android.text.TextUtils; 45 if (TextUtils.isEmpty(number)) {
|
/packages/apps/Contacts/src/com/android/contacts/util/ |
NameConverter.java | 26 import android.text.TextUtils; 85 if (!TextUtils.isEmpty(value)) { 109 if (!TextUtils.isEmpty(phoneticName)) { 140 if (!TextUtils.isEmpty(family) || !TextUtils.isEmpty(middle) 141 || !TextUtils.isEmpty(given)) { 143 if (!TextUtils.isEmpty(family)) { 146 if (!TextUtils.isEmpty(middle)) { 149 if (!TextUtils.isEmpty(given)) {
|
/packages/apps/Dialer/java/com/android/dialer/phonenumbercache/ |
ContactInfo.java | 21 import android.text.TextUtils; 99 if (!TextUtils.equals(name, other.name)) { 102 if (!TextUtils.equals(nameAlternative, other.nameAlternative)) { 108 if (!TextUtils.equals(label, other.label)) { 111 if (!TextUtils.equals(number, other.number)) { 114 if (!TextUtils.equals(formattedNumber, other.formattedNumber)) { 117 if (!TextUtils.equals(normalizedNumber, other.normalizedNumber)) { 126 if (!TextUtils.equals(objectId, other.objectId)) { 135 if (!TextUtils.equals(geoDescription, other.geoDescription)) {
|
/frameworks/base/core/java/android/view/inputmethod/ |
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);
|
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);
|
ExtractedText.java | 21 import android.text.TextUtils; 105 TextUtils.writeToParcel(text, dest, flags); 112 TextUtils.writeToParcel(hint, dest, flags); 122 res.text = TextUtils.CHAR_SEQUENCE_CREATOR.createFromParcel(source); 129 res.hint = TextUtils.CHAR_SEQUENCE_CREATOR.createFromParcel(source);
|
/frameworks/support/leanback/src/main/java/androidx/leanback/widget/ |
GuidedActionDiffCallback.java | 18 import android.text.TextUtils; 58 && TextUtils.equals(oldItem.getTitle(), newItem.getTitle()) 59 && TextUtils.equals(oldItem.getDescription(), newItem.getDescription()) 61 && TextUtils.equals(oldItem.getEditTitle(), newItem.getEditTitle()) 62 && TextUtils.equals(oldItem.getEditDescription(), newItem.getEditDescription())
|