/frameworks/minikin/tests/unittest/ |
D | MeasuredTextTest.cpp | 176 EXPECT_EQ(MinikinExtent(0.0f, 0.0f), mt->getExtent(text, Range(0, 0))); in TEST() 177 EXPECT_EQ(MinikinExtent(-80.0f, 20.0f), mt->getExtent(text, Range(0, 1))); in TEST() 178 EXPECT_EQ(MinikinExtent(-80.0f, 20.0f), mt->getExtent(text, Range(0, 2))); in TEST() 179 EXPECT_EQ(MinikinExtent(-80.0f, 20.0f), mt->getExtent(text, Range(1, 2))); in TEST() 180 EXPECT_EQ(MinikinExtent(-80.0f, 20.0f), mt->getExtent(text, Range(0, text.size()))); in TEST() 204 EXPECT_EQ(MinikinExtent(0.0f, 0.0f), mt->getExtent(text, Range(0, 0))); in TEST() 205 EXPECT_EQ(MinikinExtent(-80.0f, 20.0f), mt->getExtent(text, Range(0, 1))); in TEST() 206 EXPECT_EQ(MinikinExtent(-80.0f, 20.0f), mt->getExtent(text, Range(0, 2))); in TEST() 207 EXPECT_EQ(MinikinExtent(-80.0f, 20.0f), mt->getExtent(text, Range(1, 2))); in TEST() 208 EXPECT_EQ(MinikinExtent(0.0f, 0.0f), mt->getExtent(text, Range(7, 7))); in TEST() [all …]
|
D | LineBreakerTestHelper.h | 72 virtual MinikinExtent getExtent(const U16StringPiece& /* text */, const Range& /* range */, in getExtent() function 80 return LineMetrics(getExtent(text, range, pieces), rect, adv); in getLineMetrics()
|
/frameworks/minikin/include/minikin/ |
D | MeasuredText.h | 85 virtual MinikinExtent getExtent(const U16StringPiece& text, const Range& range, 159 MinikinExtent getExtent(const U16StringPiece& text, const Range& range, 211 MinikinExtent getExtent(const U16StringPiece& /* text */, const Range& /* range */, in getExtent() function
|
/frameworks/minikin/libs/minikin/ |
D | MeasuredText.cpp | 309 MinikinExtent StyleRun::getExtent(const U16StringPiece& textBuf, const Range& range, in getExtent() function in minikin::StyleRun 391 MinikinExtent MeasuredText::getExtent(const U16StringPiece& textBuf, const Range& range) const { in getExtent() function in minikin::MeasuredText 399 run->getExtent(textBuf, Range::intersection(runRange, range), layoutPieces)); in getExtent()
|
D | GreedyLineBreaker.cpp | 521 MinikinExtent extent = mMeasuredText.getExtent(mTextBuf, range); in getResult() 533 mMeasuredText.getExtent(mTextBuf, Range(prevBreakOffset, breakPoint.offset)); in getResult()
|
D | OptimalLineBreaker.cpp | 386 MinikinExtent extent = measured.getExtent(textBuf, range); in finishBreaksOptimal() 398 MinikinExtent extent = measured.getExtent(textBuf, Range(prev.offset, cand.offset)); in finishBreaksOptimal()
|
/frameworks/base/libs/hwui/jni/text/ |
D | MeasuredText.cpp | 143 minikin::MinikinExtent extent = toMeasuredParagraph(ptr)->getExtent(textBuffer, range); in nGetExtent()
|