/frameworks/minikin/tests/unittest/ |
D | MeasurementTests.cpp | 25 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 …]
|
D | LayoutTest.cpp | 73 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 …]
|
D | MeasuredTextTest.cpp | 244 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 …]
|
D | LayoutLetterSpacingTest.cpp | 72 EXPECT_EQ(width, layout.getAdvance()); in LayoutTest()
|
/frameworks/base/libs/hwui/hwui/ |
D | MinikinUtils.cpp | 134 return layout.getAdvance() * -0.5f; in xOffsetForTextAlign() 137 return -layout.getAdvance(); in xOffsetForTextAlign() 159 return align * (layout.getAdvance() - measure.getLength()); in hOffsetForTextAlign()
|
D | Canvas.cpp | 110 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/ |
D | UnderlineTest.cpp | 107 DrawTextFunctor f(layout, &canvas, *paint, 0, 0, layout.getAdvance()); in processFunctor()
|
/frameworks/base/graphics/java/android/graphics/text/ |
D | PositionedGlyphs.java | 70 public float getAdvance() { in getAdvance() method in PositionedGlyphs
|
/frameworks/base/libs/hwui/jni/text/ |
D | TextShaper.cpp | 114 return layout->layout.getAdvance(); in TextShaper_Result_getTotalAdvance()
|
/frameworks/minikin/include/minikin/ |
D | Layout.h | 140 float getAdvance() const { return mAdvance; } in getAdvance() function
|
/frameworks/base/core/api/ |
D | current.txt | 18164 method public float getAdvance();
|