Home
last modified time | relevance | path

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

/frameworks/minikin/tests/unittest/
DMeasurementTests.cpp25 float getAdvance(const float* advances, const char* src) { in getAdvance() function
46 EXPECT_EQ(0.0, getAdvance(unligated, "| 'f' 'i'")); in TEST()
47 EXPECT_EQ(30.0, getAdvance(unligated, "'f' | 'i'")); in TEST()
48 EXPECT_EQ(50.0, getAdvance(unligated, "'f' 'i' |")); in TEST()
51 EXPECT_EQ(0.0, getAdvance(ligated, "| 'f' 'i'")); in TEST()
52 EXPECT_EQ(20.0, getAdvance(ligated, "'f' | 'i'")); in TEST()
53 EXPECT_EQ(40.0, getAdvance(ligated, "'f' 'i' |")); in TEST()
58 EXPECT_EQ(0.0, getAdvance(unligated, "| 'f' 'i' U+2066 U+202C")); in TEST()
59 EXPECT_EQ(30.0, getAdvance(unligated, "'f' | 'i' U+2066 U+202C")); in TEST()
60 EXPECT_EQ(50.0, getAdvance(unligated, "'f' 'i' | U+2066 U+202C")); in TEST()
[all …]
DLayoutTest.cpp73 EXPECT_EQ(70.0f, layout.getAdvance()); in TEST_F()
92 EXPECT_EQ(90.0f, layout.getAdvance()); in TEST_F()
111 EXPECT_EQ(160.0f, layout.getAdvance()); in TEST_F()
130 EXPECT_EQ(110.0f, layout.getAdvance()); in TEST_F()
161 EXPECT_EQ(70.0f, layout.getAdvance()); in TEST_F()
180 EXPECT_EQ(95.0f, layout.getAdvance()); in TEST_F()
200 EXPECT_EQ(170.0f, layout.getAdvance()); in TEST_F()
221 EXPECT_EQ(120.0f, layout.getAdvance()); in TEST_F()
255 EXPECT_EQ(70.0f, layout.getAdvance()); in TEST_F()
274 EXPECT_EQ(85.0f, layout.getAdvance()); in TEST_F()
[all …]
DMeasuredTextTest.cpp244 EXPECT_EQ(10.0f, layout.getAdvance()); in TEST()
259 EXPECT_EQ(20.0f, layout.getAdvance()); in TEST()
273 EXPECT_EQ(10.0f, layout.getAdvance()); in TEST()
290 EXPECT_EQ(130.0f, layout.getAdvance()); in TEST()
332 EXPECT_EQ(10.0f, layout.getAdvance()); in TEST()
347 EXPECT_EQ(20.0f, layout.getAdvance()); in TEST()
361 EXPECT_EQ(10.0f, layout.getAdvance()); in TEST()
380 EXPECT_EQ(20.0f, layout.getAdvance()); in TEST()
418 EXPECT_EQ(20.0f, layout.getAdvance()); in TEST()
433 EXPECT_EQ(40.0f, layout.getAdvance()); in TEST()
[all …]
DLayoutLetterSpacingTest.cpp72 EXPECT_EQ(width, layout.getAdvance()); in LayoutTest()
/frameworks/base/libs/hwui/hwui/
DMinikinUtils.cpp134 return layout.getAdvance() * -0.5f; in xOffsetForTextAlign()
137 return -layout.getAdvance(); in xOffsetForTextAlign()
159 return align * (layout.getAdvance() - measure.getLength()); in hOffsetForTextAlign()
DCanvas.cpp110 DrawTextFunctor f(layout, this, paint, x, y, layout.getAdvance()); in drawText()
123 const SkScalar right = x + layout.getAdvance(); in drawText()
/frameworks/base/libs/hwui/tests/unit/
DUnderlineTest.cpp107 DrawTextFunctor f(layout, &canvas, *paint, 0, 0, layout.getAdvance()); in processFunctor()
/frameworks/base/graphics/java/android/graphics/text/
DPositionedGlyphs.java70 public float getAdvance() { in getAdvance() method in PositionedGlyphs
/frameworks/base/libs/hwui/jni/text/
DTextShaper.cpp114 return layout->layout.getAdvance(); in TextShaper_Result_getTotalAdvance()
/frameworks/minikin/include/minikin/
DLayout.h140 float getAdvance() const { return mAdvance; } in getAdvance() function
/frameworks/base/core/api/
Dcurrent.txt18164 method public float getAdvance();