Searched refs:nGlyphs (Results 1 – 5 of 5) sorted by relevance
/frameworks/minikin/tests/unittest/ |
D | MeasuredTextTest.cpp | 163 EXPECT_EQ(0u, layout.nGlyphs()); in TEST() 167 ASSERT_EQ(1u, layout.nGlyphs()); in TEST() 178 ASSERT_EQ(2u, layout.nGlyphs()); in TEST() 192 ASSERT_EQ(1u, layout.nGlyphs()); in TEST() 203 ASSERT_EQ(text.size(), layout.nGlyphs()); in TEST() 237 EXPECT_EQ(0u, layout.nGlyphs()); in TEST() 241 ASSERT_EQ(1u, layout.nGlyphs()); in TEST() 252 ASSERT_EQ(2u, layout.nGlyphs()); in TEST() 266 ASSERT_EQ(1u, layout.nGlyphs()); in TEST() 277 EXPECT_EQ(0u, layout.nGlyphs()); in TEST() [all …]
|
D | LayoutTest.cpp | 326 ASSERT_EQ(ltrLayout.nGlyphs(), rtlLayout.nGlyphs()); in TEST_F() 327 ASSERT_EQ(6u, ltrLayout.nGlyphs()); in TEST_F() 329 size_t nGlyphs = ltrLayout.nGlyphs(); in TEST_F() local 330 for (size_t i = 0; i < nGlyphs; ++i) { in TEST_F() 331 EXPECT_EQ(ltrLayout.getFont(i), rtlLayout.getFont(nGlyphs - i - 1)); in TEST_F() 332 EXPECT_EQ(ltrLayout.getGlyphId(i), rtlLayout.getGlyphId(nGlyphs - i - 1)); in TEST_F() 352 const size_t nGlyphs = ltrLayout.nGlyphs(); in TEST_F() local 353 ASSERT_EQ(3u, nGlyphs); in TEST_F() 355 ASSERT_EQ(nGlyphs, rtlLayout.nGlyphs()); in TEST_F() 356 ASSERT_EQ(nGlyphs, defaultRtlLayout.nGlyphs()); in TEST_F() [all …]
|
/frameworks/base/libs/hwui/hwui/ |
D | MinikinUtils.h | 70 size_t nGlyphs = layout.nGlyphs(); in forFontRun() local 71 for (size_t i = 0; i < nGlyphs; i++) { in forFontRun() 83 if (nGlyphs > start) { in forFontRun() 86 f(start, nGlyphs); in forFontRun()
|
/frameworks/base/libs/hwui/jni/ |
D | Paint.cpp | 321 size_t nGlyphs = layout.nGlyphs(); in getTextPath() local 322 uint16_t* glyphs = new uint16_t[nGlyphs]; in getTextPath() 323 SkPoint* pos = new SkPoint[nGlyphs]; in getTextPath() 412 for (size_t i = 0; i < layout.nGlyphs(); i++) { in layoutContainsNotdef() 427 for (size_t i = 0; i < layout.nGlyphs(); i++) { in countNonSpaceGlyphs() 485 size_t nGlyphs = countNonSpaceGlyphs(layout); in hasGlyph() local 486 if (nGlyphs != 1 && nChars > 1) { in hasGlyph() 493 if (nGlyphs == 0 || layoutContainsNotdef(layout)) { in hasGlyph() 509 if (zzLayout.nGlyphs() != 1 || layoutContainsNotdef(zzLayout)) { in hasGlyph()
|
/frameworks/minikin/include/minikin/ |
D | Layout.h | 86 size_t nGlyphs() const { return mGlyphs.size(); } in nGlyphs() function
|