Home
last modified time | relevance | path

Searched refs:measuredText (Results 1 – 10 of 10) sorted by relevance

/frameworks/minikin/libs/minikin/
DLineBreaker.cpp26 const MeasuredText& measuredText, const LineWidth& lineWidth, in breakIntoLines() argument
29 return breakLineGreedy(textBuffer, measuredText, lineWidth, tabStops, in breakIntoLines()
32 return breakLineOptimal(textBuffer, measuredText, lineWidth, strategy, frequency, in breakIntoLines()
DOptimalLineBreaker.cpp275 const MeasuredText& measuredText, const LineWidth& lineWidth,
/frameworks/minikin/tests/unittest/
DGreedyLineBreakerTest.cpp83 std::unique_ptr<MeasuredText> measuredText = in doLineBreak() local
88 return breakLineGreedy(textBuffer, *measuredText, rectangleLineWidth, tabStops, in doLineBreak()
679 std::unique_ptr<MeasuredText> measuredText = in TEST_F() local
685 breakLineGreedy(textBuf, *measuredText, rectangleLineWidth, tabStops, DO_HYPHEN); in TEST_F()
699 std::unique_ptr<MeasuredText> measuredText = in TEST_F() local
705 breakLineGreedy(textBuf, *measuredText, rectangleLineWidth, tabStops, DO_HYPHEN); in TEST_F()
730 std::unique_ptr<MeasuredText> measuredText = in TEST_F() local
737 breakLineGreedy(textBuf, *measuredText, rectangleLineWidth, tabStops, DO_HYPHEN); in TEST_F()
751 std::unique_ptr<MeasuredText> measuredText = in TEST_F() local
758 breakLineGreedy(textBuf, *measuredText, rectangleLineWidth, tabStops, DO_HYPHEN); in TEST_F()
[all …]
DOptimalLineBreakerTest.cpp84 std::unique_ptr<MeasuredText> measuredText = in doLineBreak() local
87 return doLineBreak(textBuffer, *measuredText, strategy, frequency, lineWidth); in doLineBreak()
90 LineBreakResult doLineBreak(const U16StringPiece& textBuffer, const MeasuredText& measuredText, in doLineBreak() argument
94 return breakLineOptimal(textBuffer, measuredText, rectangleLineWidth, strategy, frequency, in doLineBreak()
945 std::unique_ptr<MeasuredText> measuredText = in TEST_F() local
950 doLineBreak(textBuf, *measuredText, HIGH_QUALITY, NORMAL_HYPHENATION, LINE_WIDTH); in TEST_F()
964 std::unique_ptr<MeasuredText> measuredText = in TEST_F() local
969 doLineBreak(textBuf, *measuredText, HIGH_QUALITY, NORMAL_HYPHENATION, LINE_WIDTH); in TEST_F()
995 std::unique_ptr<MeasuredText> measuredText = in TEST_F() local
1000 doLineBreak(textBuf, *measuredText, HIGH_QUALITY, NORMAL_HYPHENATION, LINE_WIDTH); in TEST_F()
[all …]
DMeasuredTextTest.cpp47 std::unique_ptr<MeasuredText> measuredText = in TEST() local
51 ASSERT_TRUE(measuredText); in TEST()
57 EXPECT_EQ(expectedWidths, measuredText->widths); in TEST()
/frameworks/minikin/include/minikin/
DAndroidLineBreakerHelper.h83 LineBreakResult computeBreaks(const U16StringPiece& textBuf, const MeasuredText& measuredText, in computeBreaks() argument
92 return breakIntoLines(textBuf, mStrategy, mFrequency, mIsJustified, measuredText, lineWidth, in computeBreaks()
DLineBreaker.h117 const MeasuredText& measuredText, const LineWidth& lineWidth,
/frameworks/base/core/jni/android/graphics/text/
DLineBreaker.cpp92 minikin::MeasuredText* measuredText = reinterpret_cast<minikin::MeasuredText*>(measuredTextPtr); in nComputeLineBreaks() local
96 u16Text, *measuredText, firstWidth, firstWidthLineCount, restWidth, indentsOffset, in nComputeLineBreaks()
/frameworks/base/graphics/java/android/graphics/
DBaseCanvas.java585 public void drawTextRun(@NonNull MeasuredText measuredText, int start, int end, in drawTextRun() argument
588 nDrawTextRun(mNativeCanvasWrapper, measuredText.getChars(), start, end - start, in drawTextRun()
590 measuredText.getNativePtr()); in drawTextRun()
DBaseRecordingCanvas.java551 public void drawTextRun(@NonNull MeasuredText measuredText, int start, int end, in drawTextRun() argument
554 nDrawTextRun(mNativeCanvasWrapper, measuredText.getChars(), start, end - start, in drawTextRun()
556 measuredText.getNativePtr()); in drawTextRun()