Home
last modified time | relevance | path

Searched refs:LineBreakResult (Results 1 – 11 of 11) sorted by relevance

/frameworks/minikin/include/minikin/
DLineBreaker.h88 struct LineBreakResult { struct
90 LineBreakResult() = default;
100 LineBreakResult(LineBreakResult&&) = default; argument
101 LineBreakResult& operator=(LineBreakResult&&) = default; argument
112 MINIKIN_PREVENT_COPY_AND_ASSIGN(LineBreakResult); argument
115 LineBreakResult breakIntoLines(const U16StringPiece& textBuffer, BreakStrategy strategy,
DAndroidLineBreakerHelper.h83 LineBreakResult computeBreaks(const U16StringPiece& textBuf, const MeasuredText& measuredText, in computeBreaks()
/frameworks/base/libs/hwui/jni/text/
DLineBreaker.cpp94 std::unique_ptr<minikin::LineBreakResult> result = in nComputeLineBreaks()
95 std::make_unique<minikin::LineBreakResult>(builder->computeBreaks( in nComputeLineBreaks()
102 return reinterpret_cast<minikin::LineBreakResult*>(ptr)->breakPoints.size(); in nGetLineCount()
106 return reinterpret_cast<minikin::LineBreakResult*>(ptr)->breakPoints[i]; in nGetLineBreakOffset()
110 return reinterpret_cast<minikin::LineBreakResult*>(ptr)->widths[i]; in nGetLineWidth()
114 return reinterpret_cast<minikin::LineBreakResult*>(ptr)->ascents[i]; in nGetLineAscent()
118 return reinterpret_cast<minikin::LineBreakResult*>(ptr)->descents[i]; in nGetLineDescent()
122 return reinterpret_cast<minikin::LineBreakResult*>(ptr)->flags[i]; in nGetLineFlag()
126 delete reinterpret_cast<minikin::LineBreakResult*>(ptr); in nReleaseResult()
/frameworks/minikin/libs/minikin/
DOptimalLineBreaker.cpp277 LineBreakResult computeBreaks(const OptimizeContext& context, const U16StringPiece& textBuf,
288 LineBreakResult finishBreaksOptimal(const U16StringPiece& textBuf, const MeasuredText& measured,
294 LineBreakResult LineBreakOptimizer::finishBreaksOptimal( in finishBreaksOptimal()
298 LineBreakResult result; in finishBreaksOptimal()
320 LineBreakResult LineBreakOptimizer::computeBreaks(const OptimizeContext& context, in computeBreaks()
407 LineBreakResult breakLineOptimal(const U16StringPiece& textBuf, const MeasuredText& measured, in breakLineOptimal()
411 return LineBreakResult(); in breakLineOptimal()
DGreedyLineBreaker.cpp53 LineBreakResult getResult() const;
361 LineBreakResult GreedyLineBreaker::getResult() const { in getResult()
364 LineBreakResult out; in getResult()
388 LineBreakResult breakLineGreedy(const U16StringPiece& textBuf, const MeasuredText& measured, in breakLineGreedy()
392 return LineBreakResult(); in breakLineGreedy()
DGreedyLineBreaker.h28 LineBreakResult breakLineGreedy(const U16StringPiece& textBuf, const MeasuredText& measured,
DOptimalLineBreaker.h26 LineBreakResult breakLineOptimal(const U16StringPiece& textBuf, const MeasuredText& measured,
DLineBreaker.cpp24 LineBreakResult breakIntoLines(const U16StringPiece& textBuffer, BreakStrategy strategy, in breakIntoLines()
/frameworks/minikin/tests/unittest/
DLineBreakerTestHelper.h112 const LineBreakResult& actual) { in sameLineBreak()
177 static std::string toString(const U16StringPiece& textBuf, const LineBreakResult& lines) { in toString()
DOptimalLineBreakerTest.cpp67 LineBreakResult doLineBreak(const U16StringPiece& textBuffer, BreakStrategy strategy, in doLineBreak()
72 LineBreakResult doLineBreak(const U16StringPiece& textBuffer, BreakStrategy strategy, in doLineBreak()
90 LineBreakResult doLineBreak(const U16StringPiece& textBuffer, const MeasuredText& measuredText, in doLineBreak()
DGreedyLineBreakerTest.cpp67 LineBreakResult doLineBreak(const U16StringPiece& textBuffer, bool doHyphenation, in doLineBreak()
72 LineBreakResult doLineBreak(const U16StringPiece& textBuffer, bool doHyphenation, in doLineBreak()