Home
last modified time | relevance | path

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

/frameworks/minikin/tests/unittest/
DMeasurementTests.cpp23 float getAdvance(const float* advances, const char* src) { in getAdvance() function
35 EXPECT_EQ(0.0, getAdvance(unligated, "| 'f' 'i'")); in TEST()
36 EXPECT_EQ(30.0, getAdvance(unligated, "'f' | 'i'")); in TEST()
37 EXPECT_EQ(50.0, getAdvance(unligated, "'f' 'i' |")); in TEST()
40 EXPECT_EQ(0.0, getAdvance(ligated, "| 'f' 'i'")); in TEST()
41 EXPECT_EQ(20.0, getAdvance(ligated, "'f' | 'i'")); in TEST()
42 EXPECT_EQ(40.0, getAdvance(ligated, "'f' 'i' |")); in TEST()
48 EXPECT_EQ(0.0, getAdvance(unligated, "| U+0915 U+094D U+0915")); in TEST()
49 EXPECT_EQ(30.0, getAdvance(unligated, "U+0915 | U+094D U+0915")); in TEST()
50 EXPECT_EQ(30.0, getAdvance(unligated, "U+0915 U+094D | U+0915")); in TEST()
[all …]
DLayoutTest.cpp82 EXPECT_EQ(70.0f, layout.getAdvance()); in TEST_F()
101 EXPECT_EQ(90.0f, layout.getAdvance()); in TEST_F()
120 EXPECT_EQ(160.0f, layout.getAdvance()); in TEST_F()
139 EXPECT_EQ(110.0f, layout.getAdvance()); in TEST_F()
173 EXPECT_EQ(70.0f, layout.getAdvance()); in TEST_F()
192 EXPECT_EQ(95.0f, layout.getAdvance()); in TEST_F()
215 EXPECT_EQ(170.0f, layout.getAdvance()); in TEST_F()
236 EXPECT_EQ(120.0f, layout.getAdvance()); in TEST_F()
272 EXPECT_EQ(70.0f, layout.getAdvance()); in TEST_F()
291 EXPECT_EQ(85.0f, layout.getAdvance()); in TEST_F()
[all …]
/frameworks/base/libs/hwui/hwui/
DMinikinUtils.cpp84 return layout.getAdvance() * -0.5f; in xOffsetForTextAlign()
87 return -layout.getAdvance(); in xOffsetForTextAlign()
109 return align * (layout.getAdvance() - measure.getLength()); in hOffsetForTextAlign()
DCanvas.cpp181 DrawTextFunctor f(layout, this, paint, x, y, bounds, layout.getAdvance()); in drawText()
/frameworks/minikin/include/minikin/
DLayout.h90 float getAdvance() const;
/frameworks/minikin/libs/minikin/
DLayout.cpp657 advance = layoutForWord.getAdvance(); in doLayoutWord()
666 advance = layoutForWord->getAdvance(); in doLayoutWord()
1083 float Layout::getAdvance() const { in getAdvance() function in minikin::Layout