Home
last modified time | relevance | path

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

/packages/apps/ContactsCommon/tests/src/com/android/contacts/common/format/
DTextHighlighterTest.java92 final SpannableString testString1 = new SpannableString("alongtest"); in testSetMask_Highlight() local
93 mTextHighlighter.applyMaskingHighlight(testString1, 2, 4); in testSetMask_Highlight()
94 assertEquals(2, SpannedTestUtils.getNextTransition(testString1, 0)); in testSetMask_Highlight()
95 assertEquals(4, SpannedTestUtils.getNextTransition(testString1, 2)); in testSetMask_Highlight()
97 mTextHighlighter.applyMaskingHighlight(testString1, 3, 6); in testSetMask_Highlight()
98 assertEquals(2, SpannedTestUtils.getNextTransition(testString1, 0)); in testSetMask_Highlight()
99 assertEquals(4, SpannedTestUtils.getNextTransition(testString1, 3)); in testSetMask_Highlight()
101 mTextHighlighter.applyMaskingHighlight(testString1, 4, 5); in testSetMask_Highlight()
102 assertEquals(3, SpannedTestUtils.getNextTransition(testString1, 2)); in testSetMask_Highlight()
104 mTextHighlighter.applyMaskingHighlight(testString1, 7, 8); in testSetMask_Highlight()
[all …]
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/
DContactsDictionaryUtilsTest.java37 final String testString1 = "Larry Page"; in testGetWordEndPosition() local
39 testString1, testString1.length(), 0 /* startIndex */)); in testGetWordEndPosition()
42 testString1, testString1.length(), 6 /* startIndex */)); in testGetWordEndPosition()
46 testString2, testString1.length(), 0 /* startIndex */)); in testGetWordEndPosition()
50 testString3, testString1.length(), 0 /* startIndex */)); in testGetWordEndPosition()