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
72 if (!run.getRange().contains(contextRange) || !contextRange.contains(hyphenationTargetRange)) { in populateHyphenationPoints()
84 auto hyphenPart = contextRange.split(i); in populateHyphenationPoints()
136 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.cpp155 populateHyphenationPoints(textBuf, *run, *proc.hyphenator, proc.contextRange(), in measure()
277 const Range& contextRange, const MinikinPaint& paint, in buildLayout() argument
290 run->appendLayout(textBuf, targetRange, contextRange, layoutPieces, paint, range.getStart(), in buildLayout()
/frameworks/base/libs/hwui/hwui/
DMinikinUtils.cpp60 const minikin::Range contextRange(contextStart, contextStart + contextCount); in doLayout() local
65 return minikin::Layout(textBuf.substr(contextRange), range - contextStart, bidiFlags, in doLayout()
68 return mt->buildLayout(textBuf, range, contextRange, minikinPaint, startHyphen, endHyphen); in doLayout()
/frameworks/minikin/include/minikin/
DMeasuredText.h57 const Range& contextRange, const LayoutPieces& pieces,
102 void appendLayout(const U16StringPiece& text, const Range& range, const Range& contextRange,
194 Layout buildLayout(const U16StringPiece& textBuf, const Range& range, const Range& contextRange,