Searched refs:getAdvance (Results 1 – 6 of 6) sorted by relevance
/frameworks/minikin/tests/unittest/ |
D | MeasurementTests.cpp | 25 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 …]
|
D | LayoutTest.cpp | 66 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 …]
|
D | MeasuredTextTest.cpp | 171 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/ |
D | MinikinUtils.cpp | 93 return layout.getAdvance() * -0.5f; in xOffsetForTextAlign() 96 return -layout.getAdvance(); in xOffsetForTextAlign() 118 return align * (layout.getAdvance() - measure.getLength()); in hOffsetForTextAlign()
|
D | Canvas.cpp | 173 DrawTextFunctor f(layout, this, paint, x, y, bounds, layout.getAdvance()); in drawText()
|
/frameworks/minikin/include/minikin/ |
D | Layout.h | 92 float getAdvance() const { return mAdvance; } in getAdvance() function
|