Home
last modified time | relevance | path

Searched refs:getAdvance (Results 1 – 6 of 6) sorted by relevance

/frameworks/minikin/tests/unittest/
DMeasurementTests.cpp25 float getAdvance(const float* advances, const char* src) { in getAdvance() function
37 EXPECT_EQ(0.0, getAdvance(unligated, "| 'f' 'i'")); in TEST()
38 EXPECT_EQ(30.0, getAdvance(unligated, "'f' | 'i'")); in TEST()
39 EXPECT_EQ(50.0, getAdvance(unligated, "'f' 'i' |")); in TEST()
42 EXPECT_EQ(0.0, getAdvance(ligated, "| 'f' 'i'")); in TEST()
43 EXPECT_EQ(20.0, getAdvance(ligated, "'f' | 'i'")); in TEST()
44 EXPECT_EQ(40.0, getAdvance(ligated, "'f' 'i' |")); in TEST()
50 EXPECT_EQ(0.0, getAdvance(unligated, "| U+0915 U+094D U+0915")); in TEST()
51 EXPECT_EQ(30.0, getAdvance(unligated, "U+0915 | U+094D U+0915")); in TEST()
52 EXPECT_EQ(30.0, getAdvance(unligated, "U+0915 U+094D | U+0915")); in TEST()
[all …]
DLayoutTest.cpp66 EXPECT_EQ(70.0f, layout.getAdvance()); in TEST_F()
84 EXPECT_EQ(90.0f, layout.getAdvance()); in TEST_F()
102 EXPECT_EQ(160.0f, layout.getAdvance()); in TEST_F()
120 EXPECT_EQ(110.0f, layout.getAdvance()); in TEST_F()
150 EXPECT_EQ(70.0f, layout.getAdvance()); in TEST_F()
168 EXPECT_EQ(95.0f, layout.getAdvance()); in TEST_F()
187 EXPECT_EQ(170.0f, layout.getAdvance()); in TEST_F()
207 EXPECT_EQ(120.0f, layout.getAdvance()); in TEST_F()
240 EXPECT_EQ(70.0f, layout.getAdvance()); in TEST_F()
258 EXPECT_EQ(85.0f, layout.getAdvance()); in TEST_F()
[all …]
DMeasuredTextTest.cpp171 EXPECT_EQ(10.0f, layout.getAdvance()); in TEST()
184 EXPECT_EQ(20.0f, layout.getAdvance()); in TEST()
196 EXPECT_EQ(10.0f, layout.getAdvance()); in TEST()
211 EXPECT_EQ(130.0f, layout.getAdvance()); in TEST()
245 EXPECT_EQ(10.0f, layout.getAdvance()); in TEST()
258 EXPECT_EQ(20.0f, layout.getAdvance()); in TEST()
270 EXPECT_EQ(10.0f, layout.getAdvance()); in TEST()
287 EXPECT_EQ(20.0f, layout.getAdvance()); in TEST()
318 EXPECT_EQ(20.0f, layout.getAdvance()); in TEST()
331 EXPECT_EQ(40.0f, layout.getAdvance()); in TEST()
[all …]
/frameworks/base/libs/hwui/hwui/
DMinikinUtils.cpp93 return layout.getAdvance() * -0.5f; in xOffsetForTextAlign()
96 return -layout.getAdvance(); in xOffsetForTextAlign()
118 return align * (layout.getAdvance() - measure.getLength()); in hOffsetForTextAlign()
DCanvas.cpp173 DrawTextFunctor f(layout, this, paint, x, y, bounds, layout.getAdvance()); in drawText()
/frameworks/minikin/include/minikin/
DLayout.h92 float getAdvance() const { return mAdvance; } in getAdvance() function