Home
last modified time | relevance | path

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

/frameworks/minikin/tests/unittest/
DMeasuredTextTest.cpp163 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 …]
DLayoutTest.cpp326 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/
DMinikinUtils.h70 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/core/jni/android/graphics/
DPaint.cpp322 size_t nGlyphs = layout.nGlyphs(); in getTextPath() local
323 uint16_t* glyphs = new uint16_t[nGlyphs]; in getTextPath()
324 SkPoint* pos = new SkPoint[nGlyphs]; in getTextPath()
413 for (size_t i = 0; i < layout.nGlyphs(); i++) { in layoutContainsNotdef()
428 for (size_t i = 0; i < layout.nGlyphs(); i++) { in countNonSpaceGlyphs()
486 size_t nGlyphs = countNonSpaceGlyphs(layout); in hasGlyph() local
487 if (nGlyphs != 1 && nChars > 1) { in hasGlyph()
494 if (nGlyphs == 0 || layoutContainsNotdef(layout)) { in hasGlyph()
510 if (zzLayout.nGlyphs() != 1 || layoutContainsNotdef(zzLayout)) { in hasGlyph()
/frameworks/minikin/include/minikin/
DLayout.h86 size_t nGlyphs() const { return mGlyphs.size(); } in nGlyphs() function