Searched refs:nGlyphs (Results 1 – 6 of 6) sorted by relevance
/frameworks/base/libs/hwui/hwui/ |
D | MinikinUtils.h | 77 size_t nGlyphs = layout.nGlyphs(); in forFontRun() local 78 for (size_t i = 0; i < nGlyphs; i++) { in forFontRun() 90 if (nGlyphs > start) { in forFontRun() 93 f(start, nGlyphs); in forFontRun()
|
/frameworks/minikin/tests/unittest/ |
D | LayoutTest.cpp | 345 ASSERT_EQ(ltrLayout.nGlyphs(), rtlLayout.nGlyphs()); in TEST_F() 346 ASSERT_EQ(6u, ltrLayout.nGlyphs()); in TEST_F() 348 size_t nGlyphs = ltrLayout.nGlyphs(); in TEST_F() local 349 for (size_t i = 0; i < nGlyphs; ++i) { in TEST_F() 350 EXPECT_EQ(ltrLayout.getFont(i), rtlLayout.getFont(nGlyphs - i - 1)); in TEST_F() 351 EXPECT_EQ(ltrLayout.getGlyphId(i), rtlLayout.getGlyphId(nGlyphs - i - 1)); in TEST_F() 371 const size_t nGlyphs = ltrLayout.nGlyphs(); in TEST_F() local 372 ASSERT_EQ(3u, nGlyphs); in TEST_F() 374 ASSERT_EQ(nGlyphs, rtlLayout.nGlyphs()); in TEST_F() 375 ASSERT_EQ(nGlyphs, defaultRtlLayout.nGlyphs()); in TEST_F() [all …]
|
D | MeasuredTextTest.cpp | 211 EXPECT_EQ(0u, layout.nGlyphs()); in TEST() 215 ASSERT_EQ(1u, layout.nGlyphs()); in TEST() 228 ASSERT_EQ(2u, layout.nGlyphs()); in TEST() 244 ASSERT_EQ(1u, layout.nGlyphs()); in TEST() 257 ASSERT_EQ(text.size(), layout.nGlyphs()); in TEST() 297 EXPECT_EQ(0u, layout.nGlyphs()); in TEST() 301 ASSERT_EQ(1u, layout.nGlyphs()); in TEST() 314 ASSERT_EQ(2u, layout.nGlyphs()); in TEST() 330 ASSERT_EQ(1u, layout.nGlyphs()); in TEST() 343 EXPECT_EQ(0u, layout.nGlyphs()); in TEST() [all …]
|
/frameworks/base/libs/hwui/jni/text/ |
D | TextShaper.cpp | 61 for (int i = 0; i < layout.nGlyphs(); ++i) { in shapeTextRun() 111 return layout->layout.nGlyphs(); in TextShaper_Result_getGlyphCount()
|
/frameworks/base/libs/hwui/jni/ |
D | Paint.cpp | 307 size_t nGlyphs = layout.nGlyphs(); in getTextPath() local 308 uint16_t* glyphs = new uint16_t[nGlyphs]; in getTextPath() 309 SkPoint* pos = new SkPoint[nGlyphs]; in getTextPath() 393 for (size_t i = 0; i < layout.nGlyphs(); i++) { in layoutContainsNotdef() 408 for (size_t i = 0; i < layout.nGlyphs(); i++) { in countNonSpaceGlyphs() 466 size_t nGlyphs = countNonSpaceGlyphs(layout); in hasGlyph() local 467 if (nGlyphs != 1 && nChars > 1) { in hasGlyph() 474 if (nGlyphs == 0 || layoutContainsNotdef(layout)) { in hasGlyph() 490 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
|