Home
last modified time | relevance | path

Searched refs:textBuffer (Results 1 – 8 of 8) sorted by relevance

/frameworks/minikin/libs/minikin/
DLineBreaker.cpp24 LineBreakResult breakIntoLines(const U16StringPiece& textBuffer, BreakStrategy strategy, in breakIntoLines() argument
28 if (strategy == BreakStrategy::Greedy || textBuffer.hasChar(CHAR_TAB)) { in breakIntoLines()
29 return breakLineGreedy(textBuffer, measuredText, lineWidth, tabStops, in breakIntoLines()
32 return breakLineOptimal(textBuffer, measuredText, lineWidth, strategy, frequency, in breakIntoLines()
/frameworks/base/core/jni/
Dandroid_text_MeasuredParagraph.cpp91 const minikin::U16StringPiece textBuffer(text.get(), text.size()); in nBuildNativeMeasuredParagraph() local
94 return toJLong(toBuilder(builderPtr)->build(textBuffer, computeHyphenation, in nBuildNativeMeasuredParagraph()
117 const minikin::U16StringPiece textBuffer(text.get(), text.size()); in nGetBounds() local
120 minikin::MinikinRect rect = toMeasuredParagraph(ptr)->getBounds(textBuffer, range); in nGetBounds()
/frameworks/support/media/src/main/java/androidx/media/subtitle/
DClosedCaptionRenderer.java335 void update(SpannableStringBuilder[] textBuffer) { in update() argument
337 if (textBuffer[i] != null) { in update()
338 mLineBoxes[i].setText(textBuffer[i], TextView.BufferType.SPANNABLE); in update()
/frameworks/minikin/include/minikin/
DLineBreaker.h121 LineBreakResult breakIntoLines(const U16StringPiece& textBuffer, BreakStrategy strategy,
/frameworks/minikin/tests/unittest/
DGreedyLineBreakerTest.cpp59 LineBreakResult doLineBreak(const U16StringPiece& textBuffer, bool doHyphenation, in doLineBreak() argument
61 return doLineBreak(textBuffer, doHyphenation, charWidth, "en-US", lineWidth); in doLineBreak()
64 LineBreakResult doLineBreak(const U16StringPiece& textBuffer, bool doHyphenation, in doLineBreak() argument
67 builder.addCustomRun<ConstantRun>(Range(0, textBuffer.size()), lang, charWidth); in doLineBreak()
69 textBuffer, false /* compute hyphenation */, false /* compute full layout */); in doLineBreak()
72 return breakLineGreedy(textBuffer, *measuredText, rectangleLineWidth, tabStops, in doLineBreak()
DOptimalLineBreakerTest.cpp59 LineBreakResult doLineBreak(const U16StringPiece& textBuffer, BreakStrategy strategy, in doLineBreak() argument
61 return doLineBreak(textBuffer, strategy, frequency, charWidth, "en-US", lineWidth); in doLineBreak()
64 LineBreakResult doLineBreak(const U16StringPiece& textBuffer, BreakStrategy strategy, in doLineBreak() argument
68 builder.addCustomRun<ConstantRun>(Range(0, textBuffer.size()), lang, charWidth); in doLineBreak()
70 textBuffer, true /* compute hyphenation */, false /* compute full layout */); in doLineBreak()
71 return doLineBreak(textBuffer, *measuredText, strategy, frequency, lineWidth); in doLineBreak()
74 LineBreakResult doLineBreak(const U16StringPiece& textBuffer, const MeasuredText& measuredText, in doLineBreak() argument
78 return breakLineOptimal(textBuffer, measuredText, rectangleLineWidth, strategy, frequency, in doLineBreak()
/frameworks/av/packages/MediaComponents/src/com/android/media/subtitle/
DClosedCaptionRenderer.java1435 void update(SpannableStringBuilder[] textBuffer) { in update() argument
1437 if (textBuffer[i] != null) { in update()
1438 mLineBoxes[i].setText(textBuffer[i], TextView.BufferType.SPANNABLE); in update()
/frameworks/base/media/java/android/media/
DClosedCaptionRenderer.java1444 void update(SpannableStringBuilder[] textBuffer) { in update() argument
1446 if (textBuffer[i] != null) { in update()
1447 mLineBoxes[i].setText(textBuffer[i], TextView.BufferType.SPANNABLE); in update()