Searched refs:getAdvance (Results 1 – 6 of 6) sorted by relevance
/frameworks/minikin/tests/unittest/ |
D | MeasurementTests.cpp | 23 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 …]
|
D | LayoutTest.cpp | 82 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/ |
D | MinikinUtils.cpp | 84 return layout.getAdvance() * -0.5f; in xOffsetForTextAlign() 87 return -layout.getAdvance(); in xOffsetForTextAlign() 109 return align * (layout.getAdvance() - measure.getLength()); in hOffsetForTextAlign()
|
D | Canvas.cpp | 181 DrawTextFunctor f(layout, this, paint, x, y, bounds, layout.getAdvance()); in drawText()
|
/frameworks/minikin/include/minikin/ |
D | Layout.h | 90 float getAdvance() const;
|
/frameworks/minikin/libs/minikin/ |
D | Layout.cpp | 657 advance = layoutForWord.getAdvance(); in doLayoutWord() 666 advance = layoutForWord->getAdvance(); in doLayoutWord() 1083 float Layout::getAdvance() const { in getAdvance() function in minikin::Layout
|