Home
last modified time | relevance | path

Searched refs:MeasuredParagraph (Results 1 – 9 of 9) sorted by relevance

/frameworks/base/core/tests/coretests/src/android/text/
DMeasuredParagraphTest.java65 MeasuredParagraph mt = null; in buildForBidi()
67 mt = MeasuredParagraph.buildForBidi("XXX", 0, 3, LTR, null); in buildForBidi()
80 MeasuredParagraph mt2 = MeasuredParagraph.buildForBidi("_VVV_", 1, 4, RTL, mt); in buildForBidi()
96 MeasuredParagraph mt = null; in buildForMeasurement()
98 mt = MeasuredParagraph.buildForMeasurement(PAINT, "XXX", 0, 3, LTR, null); in buildForMeasurement()
114 MeasuredParagraph mt2 = in buildForMeasurement()
115 MeasuredParagraph.buildForMeasurement(PAINT, "_VVV_", 1, 4, RTL, mt); in buildForMeasurement()
135 MeasuredParagraph mt = null; in buildForStaticLayout()
137 mt = MeasuredParagraph.buildForStaticLayout( in buildForStaticLayout()
152 MeasuredParagraph mt2 = MeasuredParagraph.buildForStaticLayout( in buildForStaticLayout()
[all …]
/frameworks/base/core/java/android/text/
DMeasuredParagraph.java59 public class MeasuredParagraph { class
62 private MeasuredParagraph() {} // Use build static functions instead. in MeasuredParagraph() method in MeasuredParagraph
64 private static final SynchronizedPool<MeasuredParagraph> sPool = new SynchronizedPool<>(1);
66 private static @NonNull MeasuredParagraph obtain() { // Use build static functions instead. in obtain()
67 final MeasuredParagraph mt = sPool.acquire(); in obtain()
68 return mt != null ? mt : new MeasuredParagraph(); in obtain()
311 public static @NonNull MeasuredParagraph buildForBidi(@NonNull CharSequence text, in buildForBidi()
315 @Nullable MeasuredParagraph recycle) { in buildForBidi()
316 final MeasuredParagraph mt = recycle == null ? obtain() : recycle; in buildForBidi()
336 public static @NonNull MeasuredParagraph buildForMeasurement(@NonNull TextPaint paint, in buildForMeasurement()
[all …]
DPrecomputedText.java322 public final @NonNull MeasuredParagraph measured;
328 public ParagraphInfo(@IntRange(from = 0) int paraEnd, @NonNull MeasuredParagraph measured) { in ParagraphInfo()
406 result.add(new ParagraphInfo(paraEnd, MeasuredParagraph.buildForStaticLayout( in createMeasuredParagraphsFromPrecomputedText()
436 result.add(new ParagraphInfo(paraEnd, MeasuredParagraph.buildForStaticLayout( in createMeasuredParagraphs()
510 public @NonNull MeasuredParagraph getMeasuredParagraph(@IntRange(from = 0) int paraIndex) { in getMeasuredParagraph()
DStaticLayout.java754 final MeasuredParagraph measuredPara = paragraphInfo[paraIndex].measured; in generate()
897 final MeasuredParagraph measuredPara = in generate()
898 MeasuredParagraph.buildForBidi(source, bufEnd, bufEnd, textDir, null); in generate()
917 @NonNull final MeasuredParagraph measured,
1061 MeasuredParagraph measured, int widthStart,
DTextUtils.java1322 MeasuredParagraph mt = null; in ellipsize()
1324 mt = MeasuredParagraph.buildForMeasurement(paint, text, 0, text.length(), textDir, mt); in ellipsize()
1517 MeasuredParagraph mt = null; in commaEllipsize()
1518 MeasuredParagraph tempMt = null; in commaEllipsize()
1521 mt = MeasuredParagraph.buildForMeasurement(p, text, 0, len, textDir, mt); in commaEllipsize()
1561 tempMt = MeasuredParagraph.buildForMeasurement( in commaEllipsize()
DLayout.java2146 MeasuredParagraph mt = null;
2149 mt = MeasuredParagraph.buildForBidi(text, start, end, textDir, mt);
/frameworks/base/graphics/java/android/graphics/
DBaseRecordingCanvas.java26 import android.text.MeasuredParagraph;
528 final MeasuredParagraph mp = pt.getMeasuredParagraph(paraIndex); in drawTextRun()
DBaseCanvas.java28 import android.text.MeasuredParagraph;
563 final MeasuredParagraph mp = pt.getMeasuredParagraph(paraIndex); in drawTextRun()
/frameworks/base/config/
Dpreloaded-classes3461 android.text.MeasuredParagraph