Home
last modified time | relevance | path

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

/frameworks/minikin/tests/unittest/
DMeasuredTextTest.cpp176 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 …]
DLineBreakerTestHelper.h72 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/
DMeasuredText.h85 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/
DMeasuredText.cpp309 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()
DGreedyLineBreaker.cpp521 MinikinExtent extent = mMeasuredText.getExtent(mTextBuf, range); in getResult()
533 mMeasuredText.getExtent(mTextBuf, Range(prevBreakOffset, breakPoint.offset)); in getResult()
DOptimalLineBreaker.cpp386 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/
DMeasuredText.cpp143 minikin::MinikinExtent extent = toMeasuredParagraph(ptr)->getExtent(textBuffer, range); in nGetExtent()