Home
last modified time | relevance | path

Searched refs:contextRange (Results 1 – 6 of 6) sorted by relevance

/frameworks/minikin/libs/minikin/
DLineBreakerUtil.h68 const Range& contextRange, // A context range for measuring hyphenated piece. in populateHyphenationPoints() argument
74 if (!run.getRange().contains(contextRange) || !contextRange.contains(hyphenationTargetRange)) { in populateHyphenationPoints()
87 auto hyphenPart = contextRange.split(i); in populateHyphenationPoints()
103 for (uint32_t j = contextRange.getStart(); j < i; ++j) { in populateHyphenationPoints()
106 for (uint32_t j = i; j < contextRange.getEnd(); ++j) { in populateHyphenationPoints()
164 inline Range contextRange() const { return Range(prevWordBreak, nextWordBreak); } in contextRange() function
DGreedyLineBreaker.cpp186 Range contextRange = range; in tryLineBreakWithHyphenation() local
198 targetRun->measureHyphenPiece(mTextBuf, contextRange.split(i).first, in tryLineBreakWithHyphenation()
211 doLineBreakWithGraphemeBounds(contextRange); in tryLineBreakWithHyphenation()
217 mTextBuf, contextRange.split(prevOffset).second, nextLineStartHyphenEdit, in tryLineBreakWithHyphenation()
233 contextRange.setStart(i); // Update the hyphenation start point. in tryLineBreakWithHyphenation()
241 doLineBreakWithGraphemeBounds(contextRange); in tryLineBreakWithHyphenation()
246 mTextBuf, contextRange.split(prevOffset).second, nextLineStartHyphenEdit, in tryLineBreakWithHyphenation()
DOptimalLineBreaker.cpp247 const Range contextRange = proc.contextRange(); in populateCandidates() local
251 hyIter->offset < contextRange.getEnd()) { in populateCandidates()
255 desperateBreaks = populateDesperatePoints(measured, contextRange); in populateCandidates()
DMeasuredText.cpp186 populateHyphenationPoints(textBuf, *run, *proc.hyphenator, proc.contextRange(), in measure()
319 const Range& contextRange, const MinikinPaint& paint, in buildLayout() argument
332 run->appendLayout(textBuf, targetRange, contextRange, layoutPieces, paint, range.getStart(), in buildLayout()
/frameworks/base/libs/hwui/hwui/
DMinikinUtils.cpp61 const minikin::Range contextRange(contextStart, contextStart + contextCount); in doLayout() local
66 return minikin::Layout(textBuf.substr(contextRange), range - contextStart, bidiFlags, in doLayout()
69 return mt->buildLayout(textBuf, range, contextRange, minikinPaint, startHyphen, endHyphen); in doLayout()
/frameworks/minikin/include/minikin/
DMeasuredText.h64 const Range& contextRange, const LayoutPieces& pieces,
122 void appendLayout(const U16StringPiece& text, const Range& range, const Range& contextRange,
221 Layout buildLayout(const U16StringPiece& textBuf, const Range& range, const Range& contextRange,