Home
last modified time | relevance | path

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

/frameworks/minikin/tests/unittest/
DBidiUtilsTest.cpp36 BidiText bidiText(text, Range(0, ltrLength), Bidi::LTR); in TEST() local
37 auto it = bidiText.begin(); in TEST()
38 EXPECT_NE(bidiText.end(), it); in TEST()
42 EXPECT_EQ(bidiText.end(), it); in TEST()
45 BidiText bidiText(text, Range(0, ltrLength), Bidi::RTL); in TEST() local
46 auto it = bidiText.begin(); in TEST()
47 EXPECT_NE(bidiText.end(), it); in TEST()
51 EXPECT_EQ(bidiText.end(), it); in TEST()
54 BidiText bidiText(text, Range(0, ltrLength), Bidi::DEFAULT_LTR); in TEST() local
55 auto it = bidiText.begin(); in TEST()
[all …]
/frameworks/base/core/tests/coretests/src/android/graphics/
DPaintTest.java277 String bidiText = "abc \u0644\u063A\u0629 def"; in testMeasureTextBidi() local
279 float width = p.measureText(bidiText, 0, 4); in testMeasureTextBidi()
281 width += p.measureText(bidiText, 4, 7); in testMeasureTextBidi()
283 width += p.measureText(bidiText, 7, bidiText.length()); in testMeasureTextBidi()
284 assertEquals(width, p.measureText(bidiText), 1.0f); in testMeasureTextBidi()
287 String bidiText = "abc \u0644\u063A\u0629 def"; in testMeasureTextBidi() local
289 float width = p.measureText(bidiText, 0, 4); in testMeasureTextBidi()
290 width += p.measureText(bidiText, 4, 7); in testMeasureTextBidi()
291 width += p.measureText(bidiText, 7, bidiText.length()); in testMeasureTextBidi()
292 assertEquals(width, p.measureText(bidiText), 1.0f); in testMeasureTextBidi()
[all …]