Searched refs:contextRange (Results 1 – 6 of 6) sorted by relevance
/frameworks/minikin/libs/minikin/ |
D | LineBreakerUtil.h | 79 const Range& contextRange, // A context range for measuring hyphenated piece. in populateHyphenationPoints() argument 85 if (!run.getRange().contains(contextRange) || !contextRange.contains(hyphenationTargetRange)) { in populateHyphenationPoints() 98 auto hyphenPart = contextRange.split(i); in populateHyphenationPoints() 114 for (uint32_t j = contextRange.getStart(); j < i; ++j) { in populateHyphenationPoints() 117 for (uint32_t j = i; j < contextRange.getEnd(); ++j) { in populateHyphenationPoints() 231 inline Range contextRange() const { return Range(prevWordBreak, nextWordBreak); } in contextRange() function
|
D | GreedyLineBreaker.cpp | 205 Range contextRange = range; in tryLineBreakWithHyphenation() local 217 targetRun->measureHyphenPiece(mTextBuf, contextRange.split(i).first, in tryLineBreakWithHyphenation() 230 doLineBreakWithGraphemeBounds(contextRange); in tryLineBreakWithHyphenation() 236 mTextBuf, contextRange.split(prevOffset).second, nextLineStartHyphenEdit, in tryLineBreakWithHyphenation() 252 contextRange.setStart(i); // Update the hyphenation start point. in tryLineBreakWithHyphenation() 260 doLineBreakWithGraphemeBounds(contextRange); in tryLineBreakWithHyphenation() 265 mTextBuf, contextRange.split(prevOffset).second, nextLineStartHyphenEdit, in tryLineBreakWithHyphenation()
|
D | OptimalLineBreaker.cpp | 315 const Range contextRange = proc.contextRange(); in populateCandidates() local 319 hyIter->offset < contextRange.getEnd()) { in populateCandidates() 323 desperateBreaks = populateDesperatePoints(textBuf, measured, contextRange, *run); in populateCandidates()
|
D | MeasuredText.cpp | 200 populateHyphenationPoints(textBuf, *run, *proc.hyphenator, proc.contextRange(), in measure() 355 const Range& contextRange, const MinikinPaint& paint, in buildLayout() argument 368 run->appendLayout(textBuf, targetRange, contextRange, layoutPieces, paint, range.getStart(), in buildLayout()
|
/frameworks/base/libs/hwui/hwui/ |
D | MinikinUtils.cpp | 72 const minikin::Range contextRange(contextStart, contextStart + contextCount); in doLayout() local 80 return minikin::Layout(textBuf.substr(contextRange), range - contextStart, bidiFlags, in doLayout() 83 return mt->buildLayout(textBuf, range, contextRange, minikinPaint, startHyphen, endHyphen); in doLayout()
|
/frameworks/minikin/include/minikin/ |
D | MeasuredText.h | 92 const Range& contextRange, const LayoutPieces& pieces, 165 void appendLayout(const U16StringPiece& text, const Range& range, const Range& contextRange,
|