Home
last modified time | relevance | path

Searched refs:TextUtils (Results 1 – 25 of 31) sorted by relevance

12

/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/
DTextUtilsTest.java3 import android.text.TextUtils;
18 (String) TextUtils.expandTemplate("a^1b^2c^3d", "A", "B", "C", "D"), in testExpandTemplate()
24 assertThat(TextUtils.isEmpty(null), equalTo(true)); in testIsEmpty()
25 assertThat(TextUtils.isEmpty(""), equalTo(true)); in testIsEmpty()
26 assertThat(TextUtils.isEmpty(" "), equalTo(false)); in testIsEmpty()
27 assertThat(TextUtils.isEmpty("123"), equalTo(false)); in testIsEmpty()
31 assertThat(TextUtils.join(",", new String[] { "1" }), equalTo("1")); in testJoin()
32 assertThat(TextUtils.join(",", new String[] { "1", "2", "3" }), equalTo("1,2,3")); in testJoin()
33 assertThat(TextUtils.join(",", Arrays.asList("1", "2", "3")), equalTo("1,2,3")); in testJoin()
38 assertThat(TextUtils.isDigitsOnly("123456"), equalTo(true)); in testIsDigitsOnly()
[all …]
/external/smali/util/src/test/java/org/jf/util/
DTextUtilsTest.java40 Assert.assertEquals("", TextUtils.stripComments("#world")); in testStripComments()
41 Assert.assertEquals("hello", TextUtils.stripComments("hello#world")); in testStripComments()
42 … Assert.assertEquals("multi\nline", TextUtils.stripComments("multi#hello world\nline#world")); in testStripComments()
47 Assert.assertEquals("", TextUtils.normalizeWhitespace(" ")); in testNormalizeWhitespace()
48 Assert.assertEquals("hello", TextUtils.normalizeWhitespace("hello ")); in testNormalizeWhitespace()
49 Assert.assertEquals("hello", TextUtils.normalizeWhitespace(" hello")); in testNormalizeWhitespace()
50 Assert.assertEquals("hello", TextUtils.normalizeWhitespace(" hello ")); in testNormalizeWhitespace()
51 Assert.assertEquals("hello\nworld", TextUtils.normalizeWhitespace("hello \n \n world")); in testNormalizeWhitespace()
/external/glide/library/src/main/java/com/bumptech/glide/load/model/
DGlideUrl.java4 import android.text.TextUtils;
39 if (TextUtils.isEmpty(url)) { in GlideUrl()
67 if (TextUtils.isEmpty(stringUrl)) { in toString()
/external/droiddriver/src/io/appium/droiddriver/validators/
DDefaultAccessibilityValidator.java20 import android.text.TextUtils;
88 return !TextUtils.isEmpty(element.getContentDescription()) in hasContentDescriptionOrText()
89 || !TextUtils.isEmpty(element.getText()); in hasContentDescriptionOrText()
DExemptedClassesValidator.java19 import android.text.TextUtils;
37 if (TextUtils.isEmpty(className)) { in isApplicable()
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/
DShadowSmsManager.java5 import android.text.TextUtils;
30 if (TextUtils.isEmpty(destinationAddress)) in sendTextMessage()
33 if (TextUtils.isEmpty(text)) in sendTextMessage()
DShadowAccount.java6 import android.text.TextUtils;
54 … if (TextUtils.isEmpty(name) || TextUtils.isEmpty(type)) throw new IllegalArgumentException(); in set()
DShadowEditText.java5 import android.text.TextUtils;
33 if ( !TextUtils.isEmpty(str) && str.length() > maxLength) { in setText()
DShadowPreferenceGroup.java7 import android.text.TextUtils;
67 if (TextUtils.equals(getKey(), key)) { in findPreference()
DShadowTextUtils.java3 import android.text.TextUtils;
11 @Implements(TextUtils.class)
/external/smali/baksmali/src/test/java/org/jf/baksmali/
DAnalysisTest.java43 import org.jf.util.TextUtils;
109 Assert.assertEquals(TextUtils.normalizeWhitespace(smaliContents), in runTest()
110 TextUtils.normalizeWhitespace((stringWriter.toString()))); in runTest()
DBaksmaliTestUtils.java42 import org.jf.util.TextUtils;
78 smaliText = TextUtils.stripComments(smaliText); in normalizeSmali()
80 return TextUtils.normalizeWhitespace(smaliText); in normalizeSmali()
/external/droiddriver/src/io/appium/droiddriver/finders/
DXPaths.java19 import android.text.TextUtils;
134 sb.append(TextUtils.join("\",'\"',\"", value.split("\""))); in quoteXPathLiteral()
DPredicates.java19 import android.text.TextUtils;
115 return "allOf(" + TextUtils.join(", ", components) + ")";
141 return "anyOf(" + TextUtils.join(", ", components) + ")";
/external/droiddriver/src/io/appium/droiddriver/util/
DLogs.java19 import android.text.TextUtils;
37 TextUtils.join(", ", args))); in call()
/external/glide/library/src/main/java/com/bumptech/glide/load/model/stream/
DBaseGlideUrlLoader.java4 import android.text.TextUtils;
50 if (TextUtils.isEmpty(stringURL)) { in getResourceFetcher()
/external/glide/library/src/main/java/com/bumptech/glide/load/data/
DHttpUrlFetcher.java3 import android.text.TextUtils;
74 if (TextUtils.isEmpty(redirectUrlString)) { in loadDataWithRedirects()
DMediaStoreThumbFetcher.java8 import android.text.TextUtils;
139 if (!TextUtils.isEmpty(path)) { in open()
/external/sl4a/ScriptingLayerForAndroid/src/com/googlecode/android_scripting/provider/
DTelephonyTestProvider.java24 import android.text.TextUtils;
88 int mode = (TextUtils.equals(fileMode, "r") ? ParcelFileDescriptor.MODE_READ_ONLY : in openFile()
/external/opencv3/platforms/android/service/engine/src/org/opencv/engine/
DHardwareDetector.java12 import android.text.TextUtils;
36 return Arrays.asList(TextUtils.split(f, " ")); in getFlags()
DOpenCVEngineService.java10 import android.text.TextUtils;
85 return TextUtils.join(";", files); in getFileList()
/external/opencv3/platforms/android/service/engine/src/org/opencv/engine/manager/
DManagerActivity.java16 import android.text.TextUtils;
64 + TextUtils.join(";", HardwareDetector.getFlags()) in onCreate()
/external/droiddriver/src/io/appium/droiddriver/base/
DBaseUiElement.java21 import android.text.TextUtils;
216 if (TextUtils.isEmpty(text)) { in setText()
225 if (TextUtils.isEmpty(text)) { in clearText()
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/res/
DMenuLoader.java15 import android.text.TextUtils;
87 return TextUtils.isEmpty(nodei.getNodeName()) in childToIgnore()
/external/smali/util/src/main/java/org/jf/util/
DTextUtils.java38 public class TextUtils { class

12