/frameworks/minikin/include/minikin/ |
D | LineBreaker.h | 91 struct LineBreakResult { struct 93 LineBreakResult() = default; 104 LineBreakResult(LineBreakResult&&) = default; argument 105 LineBreakResult& operator=(LineBreakResult&&) = default; argument 117 MINIKIN_PREVENT_COPY_AND_ASSIGN(LineBreakResult); argument 120 LineBreakResult breakIntoLines(const U16StringPiece& textBuffer, BreakStrategy strategy,
|
D | AndroidLineBreakerHelper.h | 89 LineBreakResult computeBreaks(const U16StringPiece& textBuf, const MeasuredText& measuredText, in computeBreaks()
|
/frameworks/base/libs/hwui/jni/text/ |
D | LineBreaker.cpp | 90 std::unique_ptr<minikin::LineBreakResult> result = in nComputeLineBreaks() 91 std::make_unique<minikin::LineBreakResult>(builder->computeBreaks( in nComputeLineBreaks() 98 return reinterpret_cast<minikin::LineBreakResult*>(ptr)->breakPoints.size(); in nGetLineCount() 102 return reinterpret_cast<minikin::LineBreakResult*>(ptr)->breakPoints[i]; in nGetLineBreakOffset() 106 return reinterpret_cast<minikin::LineBreakResult*>(ptr)->widths[i]; in nGetLineWidth() 110 return reinterpret_cast<minikin::LineBreakResult*>(ptr)->ascents[i]; in nGetLineAscent() 114 return reinterpret_cast<minikin::LineBreakResult*>(ptr)->descents[i]; in nGetLineDescent() 118 return reinterpret_cast<minikin::LineBreakResult*>(ptr)->flags[i]; in nGetLineFlag() 122 delete reinterpret_cast<minikin::LineBreakResult*>(ptr); in nReleaseResult()
|
/frameworks/minikin/libs/minikin/ |
D | OptimalLineBreaker.cpp | 350 LineBreakResult computeBreaks(const OptimizeContext& context, const U16StringPiece& textBuf, 361 LineBreakResult finishBreaksOptimal(const U16StringPiece& textBuf, const MeasuredText& measured, 368 LineBreakResult LineBreakOptimizer::finishBreaksOptimal( in finishBreaksOptimal() 372 LineBreakResult result; in finishBreaksOptimal() 413 LineBreakResult LineBreakOptimizer::computeBreaks(const OptimizeContext& context, in computeBreaks() 523 LineBreakResult breakLineOptimal(const U16StringPiece& textBuf, const MeasuredText& measured, in breakLineOptimal() 528 return LineBreakResult(); in breakLineOptimal() 535 LineBreakResult res = optimizer.computeBreaks(context, textBuf, measured, lineWidth, strategy, in breakLineOptimal() 557 LineBreakResult res2 = optimizer.computeBreaks(phContext, textBuf, measured, lineWidth, in breakLineOptimal()
|
D | GreedyLineBreaker.cpp | 54 LineBreakResult getResult() const; 504 LineBreakResult GreedyLineBreaker::getResult() const { in getResult() 507 LineBreakResult out; in getResult() 551 LineBreakResult breakLineGreedy(const U16StringPiece& textBuf, const MeasuredText& measured, in breakLineGreedy() 555 return LineBreakResult(); in breakLineGreedy() 560 LineBreakResult res = lineBreaker.getResult(); in breakLineGreedy() 581 LineBreakResult res2 = phLineBreaker.getResult(); in breakLineGreedy()
|
D | GreedyLineBreaker.h | 28 LineBreakResult breakLineGreedy(const U16StringPiece& textBuf, const MeasuredText& measured,
|
D | OptimalLineBreaker.h | 26 LineBreakResult breakLineOptimal(const U16StringPiece& textBuf, const MeasuredText& measured,
|
D | LineBreaker.cpp | 24 LineBreakResult breakIntoLines(const U16StringPiece& textBuffer, BreakStrategy strategy, in breakIntoLines()
|
/frameworks/minikin/tests/unittest/ |
D | LineBreakerTestHelper.h | 128 const LineBreakResult& actual) { in sameLineBreak() 193 static std::string toString(const U16StringPiece& textBuf, const LineBreakResult& lines) { in toString()
|
D | GreedyLineBreakerTest.cpp | 80 LineBreakResult doLineBreak(const U16StringPiece& textBuffer, bool doHyphenation, in doLineBreak() 85 LineBreakResult doLineBreakForJapanese(const U16StringPiece& textBuffer, in doLineBreakForJapanese() 106 LineBreakResult doLineBreakForKorean(const U16StringPiece& textBuffer, in doLineBreakForKorean() 127 LineBreakResult doLineBreak(const U16StringPiece& textBuffer, bool doHyphenation, in doLineBreak() 148 LineBreakResult doLineBreakWithNoHyphenSpan(const U16StringPiece& textBuffer, in doLineBreakWithNoHyphenSpan() 187 LineBreakResult doLineBreakForBounds(const U16StringPiece& textBuffer, bool doHyphenation, in doLineBreakForBounds() 208 LineBreakResult doLineBreakForLetterSpacing(const U16StringPiece& textBuffer, in doLineBreakForLetterSpacing() 258 LineBreakResult r = breakLineGreedy(textBuffer, *measuredText, rectangleLineWidth, tabStops, in TEST_F()
|
D | OptimalLineBreakerTest.cpp | 75 LineBreakResult doLineBreak(const U16StringPiece& textBuffer, BreakStrategy strategy, in doLineBreak() 94 LineBreakResult doLineBreakForJapanese(const U16StringPiece& textBuffer, in doLineBreakForJapanese() 111 LineBreakResult doLineBreakWithNoHyphenSpan(const U16StringPiece& textBuffer, in doLineBreakWithNoHyphenSpan() 144 LineBreakResult doLineBreakForBounds(const U16StringPiece& textBuffer, BreakStrategy strategy, in doLineBreakForBounds() 164 LineBreakResult doLineBreak(const U16StringPiece& textBuffer, const MeasuredText& measuredText, in doLineBreak() 199 LineBreakResult doLineBreakWithLetterSpacing(const U16StringPiece& textBuffer, in doLineBreakWithLetterSpacing() 1968 LineBreakResult r = doLineBreak(textBuffer, *measuredText, BreakStrategy::Balanced, in TEST_F()
|