Home
last modified time | relevance | path

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

/packages/apps/Contacts/tests/src/com/android/contacts/format/
DTextHighlighterTest.java90 final SpannableString testString1 = new SpannableString("alongtest"); in testSetMask_Highlight() local
91 mTextHighlighter.applyMaskingHighlight(testString1, 2, 4); in testSetMask_Highlight()
92 assertEquals(2, SpannedTestUtils.getNextTransition(testString1, 0)); in testSetMask_Highlight()
93 assertEquals(4, SpannedTestUtils.getNextTransition(testString1, 2)); in testSetMask_Highlight()
95 mTextHighlighter.applyMaskingHighlight(testString1, 3, 6); in testSetMask_Highlight()
96 assertEquals(2, SpannedTestUtils.getNextTransition(testString1, 0)); in testSetMask_Highlight()
97 assertEquals(4, SpannedTestUtils.getNextTransition(testString1, 3)); in testSetMask_Highlight()
99 mTextHighlighter.applyMaskingHighlight(testString1, 4, 5); in testSetMask_Highlight()
100 assertEquals(3, SpannedTestUtils.getNextTransition(testString1, 2)); in testSetMask_Highlight()
102 mTextHighlighter.applyMaskingHighlight(testString1, 7, 8); in testSetMask_Highlight()
[all …]
/packages/modules/ImsMedia/tests/native/service/src/com/android/telephony/imsmedia/lib/libimsmedia/core/text/nodes/
DTextRendererNodeTest.cpp197 String8 testString1 = String8(kBomString); in TEST_F() local
199 testString1.append(testString2); in TEST_F()
201 std::unique_ptr<char> tempBuffer(new char[testString1.length()]); in TEST_F()
202 memcpy(tempBuffer.get(), testString1.c_str(), testString1.length()); in TEST_F()
205 testString1.length(), 1, true, 1); in TEST_F()
217 String8 testString1 = String8("hello"); in TEST_F() local
220 std::unique_ptr<char> tempBuffer1(new char[testString1.length()]); in TEST_F()
221 memcpy(tempBuffer1.get(), testString1.c_str(), testString1.length()); in TEST_F()
224 reinterpret_cast<uint8_t*>(tempBuffer1.get()), testString1.length(), 1, false, 1); in TEST_F()
234 EXPECT_EQ(mFakeCallback->getReceivedText(), testString1); in TEST_F()
[all …]
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/
DContactsDictionaryUtilsTest.java40 final String testString1 = "Larry Page"; in testGetWordEndPosition() local
42 testString1, testString1.length(), 0 /* startIndex */)); in testGetWordEndPosition()
45 testString1, testString1.length(), 6 /* startIndex */)); in testGetWordEndPosition()
49 testString2, testString1.length(), 0 /* startIndex */)); in testGetWordEndPosition()
53 testString3, testString1.length(), 0 /* startIndex */)); in testGetWordEndPosition()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/internal/util/
DArrayUtilsTest.java454 String testString1 = new String("abcd"); in testReferenceEquals() local
456 array1.add(testString1); in testReferenceEquals()
464 array2.set(0, testString1); in testReferenceEquals()