Home
last modified time | relevance | path

Searched refs:nGlyphs (Results 1 – 5 of 5) sorted by relevance

/frameworks/base/libs/hwui/hwui/
DMinikinUtils.h69 size_t nGlyphs = layout.nGlyphs(); in forFontRun() local
70 for (size_t i = 0; i < nGlyphs; i++) { in forFontRun()
81 if (nGlyphs > start) { in forFontRun()
83 f(start, nGlyphs); in forFontRun()
/frameworks/minikin/tests/unittest/
DLayoutTest.cpp393 ASSERT_EQ(ltrLayout.nGlyphs(), rtlLayout.nGlyphs()); in TEST_F()
394 ASSERT_EQ(6u, ltrLayout.nGlyphs()); in TEST_F()
396 size_t nGlyphs = ltrLayout.nGlyphs(); in TEST_F() local
397 for (size_t i = 0; i < nGlyphs; ++i) { in TEST_F()
398 EXPECT_EQ(ltrLayout.getFont(i), rtlLayout.getFont(nGlyphs - i - 1)); in TEST_F()
399 EXPECT_EQ(ltrLayout.getGlyphId(i), rtlLayout.getGlyphId(nGlyphs - i - 1)); in TEST_F()
422 const size_t nGlyphs = ltrLayout.nGlyphs(); in TEST_F() local
423 ASSERT_EQ(3u, nGlyphs); in TEST_F()
425 ASSERT_EQ(nGlyphs, rtlLayout.nGlyphs()); in TEST_F()
426 ASSERT_EQ(nGlyphs, defaultRtlLayout.nGlyphs()); in TEST_F()
[all …]
/frameworks/minikin/include/minikin/
DLayout.h109 size_t nGlyphs() const;
140 return sizeof(LayoutGlyph) * nGlyphs() + sizeof(float) * mAdvances.size() + in getMemoryUsage()
/frameworks/base/core/jni/android/graphics/
DPaint.cpp313 size_t nGlyphs = layout.nGlyphs(); in getTextPath() local
314 uint16_t* glyphs = new uint16_t[nGlyphs]; in getTextPath()
315 SkPoint* pos = new SkPoint[nGlyphs]; in getTextPath()
401 for (size_t i = 0; i < layout.nGlyphs(); i++) { in layoutContainsNotdef()
416 for (size_t i = 0; i < layout.nGlyphs(); i++) { in countNonSpaceGlyphs()
471 size_t nGlyphs = countNonSpaceGlyphs(layout); in hasGlyph() local
472 if (nGlyphs != 1 && nChars > 1) { in hasGlyph()
479 if (nGlyphs == 0 || layoutContainsNotdef(layout)) { in hasGlyph()
492 if (zzLayout.nGlyphs() != 1 || layoutContainsNotdef(zzLayout)) { in hasGlyph()
/frameworks/minikin/libs/minikin/
DLayout.cpp796 size_t Layout::nGlyphs() const { in nGlyphs() function in minikin::Layout