Home
last modified time | relevance | path

Searched refs:testText (Results 1 – 20 of 20) sorted by relevance

/external/icu/icu4c/source/samples/citer/
Dciter.cpp48 const UChar *testText = testString.getTerminatedBuffer(); in TestUChariter() local
50 UCharCharacterIterator iter(testText, u_strlen(testText)); in TestUChariter()
76 if (iter.startIndex() != 0 || iter.endIndex() != u_strlen(testText)) { in TestUChariter()
83 if (c == CharacterIterator::DONE && i != u_strlen(testText)) { in TestUChariter()
86 else if (c != testText[i]) { in TestUChariter()
115 const UChar *testText = testString.getTerminatedBuffer(); in TestStringiter() local
117 StringCharacterIterator iter(testText, u_strlen(testText)); in TestStringiter()
140 if (iter.startIndex() != 0 || iter.endIndex() != u_strlen(testText)) { in TestStringiter()
149 else if (c != testText[i]) { in TestStringiter()
/external/icu/icu4c/source/test/intltest/
Dcitrtest.cpp162 … UnicodeString testText("Now is the time for all good men to come to the aid of their country."); in TestCoverage() local
165 SCharacterIterator* test = new SCharacterIterator(testText); in TestCoverage()
172 if(test->getLength()!=testText.length()){ in TestCoverage()
180 if(test->getIndex()!=testText.length()){ in TestCoverage()
195 … UnicodeString testText("Now is the time for all good men to come to the aid of their country."); in TestConstructionAndEquality() local
199 CharacterIterator* test1 = new StringCharacterIterator(testText); in TestConstructionAndEquality()
200 CharacterIterator* test1b= new StringCharacterIterator(testText, -1); in TestConstructionAndEquality()
201 CharacterIterator* test1c= new StringCharacterIterator(testText, 100); in TestConstructionAndEquality()
202 CharacterIterator* test1d= new StringCharacterIterator(testText, -2, 100, 5); in TestConstructionAndEquality()
203 CharacterIterator* test1e= new StringCharacterIterator(testText, 100, 20, 5); in TestConstructionAndEquality()
[all …]
Drbbitst.cpp4124 UnicodeString testText; in RunMonkey() local
4171 testText.truncate(0); in RunMonkey()
4181 testText.append(c); in RunMonkey()
4185 mk.setText(testText); in RunMonkey()
4195 if (breakPos > testText.length()) { in RunMonkey()
4199 U_ASSERT(expectedCount<testText.length()); in RunMonkey()
4209 UText *testUText = utext_openReplaceable(NULL, &testText, &status); in RunMonkey()
4217 bi->setText(testText); in RunMonkey()
4221 if (i < 0 || i > testText.length()) { in RunMonkey()
4231 if (i < 0 || i > testText.length()) { in RunMonkey()
[all …]
Dregcoll.cpp1084 UnicodeString testText = "church church catcatcher runcrunchynchy"; in Test4179216() local
1085 CollationElementIterator *iter = coll.createCollationElementIterator(testText); in Test4179216()
1152 nextElements[count++] = testText.tempSubStringBetween(lastPos, iter->getOffset()); in Test4179216()
1158 for (int32_t i = 0; i < testText.length(); ) { in Test4179216()
1162 setOffsetElements[count++] = testText.tempSubStringBetween(lastPos, iter->getOffset()); in Test4179216()
Dregextst.cpp2340 UText testText = UTEXT_INITIALIZER; in API_Match_UTF8() local
2343 regextst_openUTF8FromInvariant(&testText, "This is test data", -1, &status); in API_Match_UTF8()
2344 REGEX_VERBOSE_TEXT(&testText); in API_Match_UTF8()
2346 RegexMatcher m(&testPattern, &testText, 0, status); in API_Match_UTF8()
2364 regextst_openUTF8FromInvariant(&testText, "short", -1, &status); in API_Match_UTF8()
2365 REGEX_VERBOSE_TEXT(&testText); in API_Match_UTF8()
2366 m.reset(&testText); in API_Match_UTF8()
2392 utext_close(&testText); in API_Match_UTF8()
2402 UText testText = UTEXT_INITIALIZER; in API_Match_UTF8() local
2406 utext_openUTF8(&testText, str_aabb, -1, &status); in API_Match_UTF8()
[all …]
/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/
DSmsManagerTest.java23 private String testText = "testSmsBodyText"; field in SmsManagerTest
46 smsManager.sendTextMessage(testDestinationAddress, testScAddress, testText, null, null); in shouldStoreLastSentTextMessageParameters()
52 Assert.assertEquals(testText, lastParams.getText()); in shouldStoreLastSentTextMessageParameters()
57 smsManager.sendTextMessage(testDestinationAddress, testScAddress, testText, null, null); in shouldClearLastSentTestMessageParameters()
64 smsManager.sendTextMessage("", testScAddress, testText, null, null); in sendTextMessage_shouldThrowExceptionWithEmptyDestination()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/rbbi/
DSimpleBITest.java48 public static final String testText = field in SimpleBITest
192 bi.setText(testText); in doTest()
201 fragment = testText.substring(lastP, p); in doTest()
203 fragment = testText.substring(lastP); in doTest()
DRBBITestMonkey.java1656 StringBuffer testText = new StringBuffer(); in RunMonkey() local
1720 testText.setLength(0); in RunMonkey()
1733 UTF16.appendCodePoint(testText, c); in RunMonkey()
1751 mk.setText(testText); in RunMonkey()
1763 if (breakPos > testText.length()) { in RunMonkey()
1778 bi.setText(testText.toString()); in RunMonkey()
1780 if (i < 0 || i > testText.length()) { in RunMonkey()
1795 if (i < 0 || i > testText.length()) { in RunMonkey()
1803 for (i=0; i<=testText.length(); i++) { in RunMonkey()
1810 for (i=0; i<testText.length(); i++) { in RunMonkey()
[all …]
DRBBITest.java461 private void doMultipleSelectionTest(RuleBasedBreakIterator iterator, String testText) in doMultipleSelectionTest() argument
DBreakIteratorTest.java242 private void doMultipleSelectionTest(BreakIterator iterator, String testText) in doMultipleSelectionTest() argument
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/rbbi/
DSimpleBITest.java52 public static final String testText = field in SimpleBITest
196 bi.setText(testText); in doTest()
205 fragment = testText.substring(lastP, p); in doTest()
207 fragment = testText.substring(lastP); in doTest()
DRBBITestMonkey.java1660 StringBuffer testText = new StringBuffer(); in RunMonkey() local
1724 testText.setLength(0); in RunMonkey()
1737 UTF16.appendCodePoint(testText, c); in RunMonkey()
1755 mk.setText(testText); in RunMonkey()
1767 if (breakPos > testText.length()) { in RunMonkey()
1782 bi.setText(testText.toString()); in RunMonkey()
1784 if (i < 0 || i > testText.length()) { in RunMonkey()
1799 if (i < 0 || i > testText.length()) { in RunMonkey()
1807 for (i=0; i<=testText.length(); i++) { in RunMonkey()
1814 for (i=0; i<testText.length(); i++) { in RunMonkey()
[all …]
DRBBITest.java465 private void doMultipleSelectionTest(RuleBasedBreakIterator iterator, String testText) in doMultipleSelectionTest() argument
DBreakIteratorTest.java246 private void doMultipleSelectionTest(BreakIterator iterator, String testText) in doMultipleSelectionTest() argument
/external/skia/tests/
DSurfaceTest.cpp555 SkString testText("Hello World"); in test_copy_on_write() local
591 EXPECT_COPY_ON_WRITE(drawText(testText.c_str(), testText.size(), 0, 1, testPaint)) in test_copy_on_write()
592 EXPECT_COPY_ON_WRITE(drawPosText(testText.c_str(), testText.size(), testPoints2, \ in test_copy_on_write()
594 EXPECT_COPY_ON_WRITE(drawTextOnPath(testText.c_str(), testText.size(), testPath, nullptr, \ in test_copy_on_write()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/collator/
DCollationRegressionTest.java910 String testText = "church church catcatcher runcrunchynchy"; in Test4179216() local
912 testText); in Test4179216()
979 nextElements[count++] = testText.substring(lastPos, iter.getOffset()); in Test4179216()
984 for (int i = 0; i < testText.length(); ) { in Test4179216()
988 setOffsetElements[count++] = testText.substring(lastPos, iter.getOffset()); in Test4179216()
/external/icu/icu4j/main/tests/collate/src/com/ibm/icu/dev/test/collator/
DCollationRegressionTest.java906 String testText = "church church catcatcher runcrunchynchy"; in Test4179216() local
908 testText); in Test4179216()
975 nextElements[count++] = testText.substring(lastPos, iter.getOffset()); in Test4179216()
980 for (int i = 0; i < testText.length(); ) { in Test4179216()
984 setOffsetElements[count++] = testText.substring(lastPos, iter.getOffset()); in Test4179216()
/external/jacoco/org.jacoco.report.test/src/org/jacoco/report/internal/xml/
DXMLElementTest.java80 public void testText() throws IOException { in testText() method in XMLElementTest
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/charsetdet/
DTestCharsetDetector.java365 StringBuffer testText = new StringBuffer(); in TestDetection() local
377 testText.append(node.getNodeValue()); in TestDetection()
399 String testString = testText.toString(); in TestDetection()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/charsetdet/
DTestCharsetDetector.java369 StringBuffer testText = new StringBuffer(); in TestDetection() local
381 testText.append(node.getNodeValue()); in TestDetection()
403 String testString = testText.toString(); in TestDetection()