/frameworks/minikin/libs/minikin/ |
D | LineBreaker.cpp | 24 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/ |
D | android_text_MeasuredParagraph.cpp | 91 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/ |
D | ClosedCaptionRenderer.java | 335 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/ |
D | LineBreaker.h | 121 LineBreakResult breakIntoLines(const U16StringPiece& textBuffer, BreakStrategy strategy,
|
/frameworks/minikin/tests/unittest/ |
D | GreedyLineBreakerTest.cpp | 59 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()
|
D | OptimalLineBreakerTest.cpp | 59 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/ |
D | ClosedCaptionRenderer.java | 1435 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/ |
D | ClosedCaptionRenderer.java | 1444 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()
|