Home
last modified time | relevance | path

Searched refs:nGlyphs (Results 1 – 4 of 4) 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/minikin/include/minikin/
DLayout.h86 size_t nGlyphs() const { return mGlyphs.size(); } in nGlyphs() function