Home
last modified time | relevance | path

Searched refs:MeasuredText (Results 1 – 25 of 34) sorted by relevance

12

/frameworks/minikin/include/minikin/
DMeasuredText.h201 class MeasuredText {
227 MeasuredText(MeasuredText&&) = default;
228 MeasuredText& operator=(MeasuredText&&) = default;
230 MINIKIN_PREVENT_COPY_AND_ASSIGN(MeasuredText);
236 bool ignoreHyphenKerning, MeasuredText* hint);
239 MeasuredText(const U16StringPiece& textBuf, std::vector<std::unique_ptr<Run>>&& runs, in MeasuredText() function
241 MeasuredText* hint) in MeasuredText()
267 std::unique_ptr<MeasuredText> build(const U16StringPiece& textBuf, bool computeHyphenation, in build()
269 MeasuredText* hint) { in build()
271 return std::unique_ptr<MeasuredText>(new MeasuredText(textBuf, std::move(mRuns), in build()
DLineBreaker.h120 const MeasuredText& measuredText, const LineWidth& lineWidth,
DAndroidLineBreakerHelper.h83 LineBreakResult computeBreaks(const U16StringPiece& textBuf, const MeasuredText& measuredText, in computeBreaks()
/frameworks/base/graphics/java/android/graphics/text/
DMeasuredText.java57 public class MeasuredText { class
68 private MeasuredText(long ptr, @NonNull char[] chars, boolean computeHyphenation, in MeasuredText() method in MeasuredText
213 MeasuredText.class.getClassLoader(), nGetReleaseFunc());
222 private @Nullable MeasuredText mHintMt = null;
249 public Builder(@NonNull MeasuredText text) { in Builder()
446 public @NonNull MeasuredText build() { in build()
459 final MeasuredText res = new MeasuredText(ptr, mText, mComputeHyphenation, in build()
DLineBreaker.java475 @NonNull MeasuredText measuredPara, in computeLineBreaks()
/frameworks/base/core/java/android/text/
DMeasuredParagraph.java26 import android.graphics.text.MeasuredText;
126 private @Nullable MeasuredText mMeasuredText;
250 public MeasuredText getMeasuredText() { in getMeasuredText()
414 final MeasuredText.Builder builder; in buildForStaticLayout()
416 builder = new MeasuredText.Builder(mt.mCopiedBuffer) in buildForStaticLayout()
420 builder = new MeasuredText.Builder(hint.mMeasuredText); in buildForStaticLayout()
522 @Nullable MeasuredText.Builder builder) { in applyReplacementRun()
544 @Nullable MeasuredText.Builder builder) { in applyStyleRun()
587 @Nullable MeasuredText.Builder builder) { in applyMetricsAffectingSpan()
DPrecomputedText.java27 import android.graphics.text.MeasuredText;
458 ? MeasuredText.Builder.HYPHENATION_MODE_FAST : in createMeasuredParagraphsFromPrecomputedText()
459 MeasuredText.Builder.HYPHENATION_MODE_NORMAL; in createMeasuredParagraphsFromPrecomputedText()
461 hyphenationMode = MeasuredText.Builder.HYPHENATION_MODE_NONE; in createMeasuredParagraphsFromPrecomputedText()
488 ? MeasuredText.Builder.HYPHENATION_MODE_FAST : in createMeasuredParagraphs()
489 MeasuredText.Builder.HYPHENATION_MODE_NORMAL; in createMeasuredParagraphs()
491 hyphenationMode = MeasuredText.Builder.HYPHENATION_MODE_NONE; in createMeasuredParagraphs()
/frameworks/minikin/libs/minikin/
DOptimalLineBreaker.cpp164 std::vector<DesperateBreak> populateDesperatePoints(const MeasuredText& measured, in populateDesperatePoints()
207 OptimizeContext populateCandidates(const U16StringPiece& textBuf, const MeasuredText& measured, in populateCandidates()
278 const MeasuredText& measuredText, const LineWidth& lineWidth,
288 LineBreakResult finishBreaksOptimal(const U16StringPiece& textBuf, const MeasuredText& measured,
295 const U16StringPiece& textBuf, const MeasuredText& measured, in finishBreaksOptimal()
322 const MeasuredText& measured, in computeBreaks()
407 LineBreakResult breakLineOptimal(const U16StringPiece& textBuf, const MeasuredText& measured, in breakLineOptimal()
DGreedyLineBreaker.h28 LineBreakResult breakLineGreedy(const U16StringPiece& textBuf, const MeasuredText& measured,
DOptimalLineBreaker.h26 LineBreakResult breakLineOptimal(const U16StringPiece& textBuf, const MeasuredText& measured,
DMeasuredText.cpp158 void MeasuredText::measure(const U16StringPiece& textBuf, bool computeHyphenation, in measure()
159 bool computeLayout, bool ignoreHyphenKerning, MeasuredText* hint) { in measure()
318 Layout MeasuredText::buildLayout(const U16StringPiece& textBuf, const Range& range, in buildLayout()
338 MinikinRect MeasuredText::getBounds(const U16StringPiece& textBuf, const Range& range) const { in getBounds()
356 MinikinExtent MeasuredText::getExtent(const U16StringPiece& textBuf, const Range& range) const { in getExtent()
DLineBreaker.cpp26 const MeasuredText& measuredText, const LineWidth& lineWidth, in breakIntoLines()
DGreedyLineBreaker.cpp41 GreedyLineBreaker(const U16StringPiece& textBuf, const MeasuredText& measured, in GreedyLineBreaker()
120 const MeasuredText& mMeasuredText;
389 LineBreakResult breakLineGreedy(const U16StringPiece& textBuf, const MeasuredText& measured, in breakLineGreedy()
DAndroid.bp51 "MeasuredText.cpp",
/frameworks/base/libs/hwui/jni/text/
DMeasuredText.cpp49 static inline minikin::MeasuredText* toMeasuredParagraph(jlong ptr) { in toMeasuredParagraph()
50 return reinterpret_cast<minikin::MeasuredText*>(ptr); in toMeasuredParagraph()
105 minikin::MeasuredText* mt = toMeasuredParagraph(ptr); in nGetWidth()
DLineBreaker.cpp92 minikin::MeasuredText* measuredText = reinterpret_cast<minikin::MeasuredText*>(measuredTextPtr); in nComputeLineBreaks()
/frameworks/base/core/tests/coretests/src/android/text/
DMeasuredParagraphTest.java26 import android.graphics.text.MeasuredText;
140 MeasuredText.Builder.HYPHENATION_MODE_NONE, false, null /* no hint */, null); in buildForStaticLayout()
156 MeasuredText.Builder.HYPHENATION_MODE_NONE, false, null /* no hint */, mt); in buildForStaticLayout()
/frameworks/base/libs/hwui/hwui/
DMinikinUtils.h35 class MeasuredText; variable
49 minikin::MeasuredText* mt);
DCanvas.h40 class MeasuredText; variable
258 const Paint& origPaint, const Typeface* typeface, minikin::MeasuredText* mt);
DMinikinUtils.cpp56 minikin::MeasuredText* mt) { in doLayout()
DCanvas.cpp163 const Paint& origPaint, const Typeface* typeface, minikin::MeasuredText* mt) { in drawText()
/frameworks/minikin/tests/unittest/
DOptimalLineBreakerTest.cpp80 std::unique_ptr<MeasuredText> measuredText = in doLineBreak()
86 LineBreakResult doLineBreak(const U16StringPiece& textBuffer, const MeasuredText& measuredText, in doLineBreak()
760 std::unique_ptr<MeasuredText> measuredText = builder.build( in TEST_F()
779 std::unique_ptr<MeasuredText> measuredText = builder.build( in TEST_F()
810 std::unique_ptr<MeasuredText> measuredText = builder.build( in TEST_F()
829 std::unique_ptr<MeasuredText> measuredText = builder.build( in TEST_F()
904 std::unique_ptr<MeasuredText> measured = builder.build( in TEST_F()
947 std::unique_ptr<MeasuredText> measured = builder.build( in TEST_F()
1102 std::unique_ptr<MeasuredText> measuredText = builder.build( in TEST_F()
1195 std::unique_ptr<MeasuredText> measuredText = builder.build( in TEST_F()
[all …]
DGreedyLineBreakerTest.cpp84 std::unique_ptr<MeasuredText> measuredText = builder.build( in doLineBreak()
114 std::unique_ptr<MeasuredText> measuredText = builder.build( in TEST_F()
708 std::unique_ptr<MeasuredText> measuredText = builder.build( in TEST_F()
728 std::unique_ptr<MeasuredText> measuredText = builder.build( in TEST_F()
759 std::unique_ptr<MeasuredText> measuredText = builder.build( in TEST_F()
780 std::unique_ptr<MeasuredText> measuredText = builder.build( in TEST_F()
844 std::unique_ptr<MeasuredText> measuredText = builder.build( in TEST_F()
867 std::unique_ptr<MeasuredText> measuredText = builder.build( in TEST_F()
898 std::unique_ptr<MeasuredText> measuredText = builder.build( in TEST_F()
1067 std::unique_ptr<MeasuredText> measuredText = builder.build( in TEST_F()
[all …]
/frameworks/base/libs/hwui/jni/
Dandroid_graphics_Canvas.cpp41 class MeasuredText;
625 minikin::MeasuredText* mt = reinterpret_cast<minikin::MeasuredText*>(mtHandle); in drawTextRunChars()
/frameworks/base/graphics/java/android/graphics/
DBaseRecordingCanvas.java26 import android.graphics.text.MeasuredText;
585 public void drawTextRun(@NonNull MeasuredText measuredText, int start, int end, in drawTextRun()

12