Home
last modified time | relevance | path

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

/frameworks/base/libs/hwui/hwui/
DMinikinUtils.h76 size_t nGlyphs = layout.nGlyphs(); in forFontRun() local
77 for (size_t i = 0; i < nGlyphs; i++) { in forFontRun()
89 if (nGlyphs > start) { in forFontRun()
92 f(start, nGlyphs); in forFontRun()
/frameworks/minikin/tests/unittest/
DLayoutTest.cpp345 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 …]
DMeasuredTextTest.cpp236 EXPECT_EQ(0u, layout.nGlyphs()); in TEST()
240 ASSERT_EQ(1u, layout.nGlyphs()); in TEST()
253 ASSERT_EQ(2u, layout.nGlyphs()); in TEST()
269 ASSERT_EQ(1u, layout.nGlyphs()); in TEST()
282 ASSERT_EQ(text.size(), layout.nGlyphs()); in TEST()
324 EXPECT_EQ(0u, layout.nGlyphs()); in TEST()
328 ASSERT_EQ(1u, layout.nGlyphs()); in TEST()
341 ASSERT_EQ(2u, layout.nGlyphs()); in TEST()
357 ASSERT_EQ(1u, layout.nGlyphs()); in TEST()
370 EXPECT_EQ(0u, layout.nGlyphs()); in TEST()
[all …]
DLayoutLetterSpacingTest.cpp83 EXPECT_EQ(expect_glyph_offsets.size(), layout.nGlyphs()); in LayoutTest()
/frameworks/base/libs/hwui/jni/text/
DTextShaper.cpp58 for (int i = 0; i < layout.nGlyphs(); ++i) { in shapeTextRun()
108 return layout->layout.nGlyphs(); in TextShaper_Result_getGlyphCount()
/frameworks/base/libs/hwui/jni/
DPaint.cpp316 size_t nGlyphs = layout.nGlyphs(); in getTextPath() local
317 uint16_t* glyphs = new uint16_t[nGlyphs]; in getTextPath()
318 SkPoint* pos = new SkPoint[nGlyphs]; in getTextPath()
402 for (size_t i = 0; i < layout.nGlyphs(); i++) { in layoutContainsNotdef()
417 for (size_t i = 0; i < layout.nGlyphs(); i++) { in countNonSpaceGlyphs()
475 size_t nGlyphs = countNonSpaceGlyphs(layout); in hasGlyph() local
476 if (nGlyphs != 1 && nChars > 1) { in hasGlyph()
483 if (nGlyphs == 0 || layoutContainsNotdef(layout)) { in hasGlyph()
499 if (zzLayout.nGlyphs() != 1 || layoutContainsNotdef(zzLayout)) { in hasGlyph()
/frameworks/minikin/include/minikin/
DLayout.h132 size_t nGlyphs() const { return mGlyphs.size(); } in nGlyphs() function