Home
last modified time | relevance | path

Searched refs:ellipsized (Results 1 – 2 of 2) sorted by relevance

/cts/tests/tests/text/src/android/text/cts/
DTextUtilsTest.java153 final String ellipsized = TextUtils.listEllipsize( in testListEllipsize() local
156 assertFalse(fullString.equals(ellipsized)); in testListEllipsize()
158 if (!ellipsized.isEmpty()) { in testListEllipsize()
159 assertTrue(ellipsized.endsWith(" more")); in testListEllipsize()
162 final int lastSpace = ellipsized.lastIndexOf(' '); in testListEllipsize()
163 final int penultimateSpace = ellipsized.lastIndexOf(' ', lastSpace - 1); in testListEllipsize()
164 assertEquals(',', ellipsized.charAt(penultimateSpace - 1)); in testListEllipsize()
165 final String moreCountString = ellipsized.substring( in testListEllipsize()
169 final int commaCount = countChars(ellipsized, ','); in testListEllipsize()
590 public void ellipsized(final int start, final int end) { in testEllipsizeCallback()
DBoringLayoutTest.java152 mBoringLayout.ellipsized(0, 1); in testPreconditions()
154 mBoringLayout.ellipsized(1, 2); in testPreconditions()