Home
last modified time | relevance | path

Searched refs:textDir (Results 1 – 7 of 7) sorted by relevance

/frameworks/base/core/java/android/text/
DMeasuredParagraph.java314 @NonNull TextDirectionHeuristic textDir, in buildForBidi() argument
317 mt.resetAndAnalyzeBidi(text, start, end, textDir); in buildForBidi()
340 @NonNull TextDirectionHeuristic textDir, in buildForMeasurement() argument
343 mt.resetAndAnalyzeBidi(text, start, end, textDir); in buildForMeasurement()
392 @NonNull TextDirectionHeuristic textDir, in buildForStaticLayout() argument
398 mt.resetAndAnalyzeBidi(text, start, end, textDir); in buildForStaticLayout()
448 @NonNull TextDirectionHeuristic textDir) { in resetAndAnalyzeBidi() argument
473 if ((textDir == TextDirectionHeuristics.LTR in resetAndAnalyzeBidi()
474 || textDir == TextDirectionHeuristics.FIRSTSTRONG_LTR in resetAndAnalyzeBidi()
475 || textDir == TextDirectionHeuristics.ANYRTL_LTR) in resetAndAnalyzeBidi()
[all …]
DPrecomputedText.java173 public Builder setTextDirection(@NonNull TextDirectionHeuristic textDir) { in setTextDirection() argument
174 mTextDir = textDir; in setTextDirection()
191 public Params(@NonNull TextPaint paint, @NonNull TextDirectionHeuristic textDir, in Params() argument
194 mTextDir = textDir; in Params()
263 @NonNull TextDirectionHeuristic textDir, @Layout.BreakStrategy int strategy, in checkResultUsable() argument
267 return mTextDir == textDir ? USABLE : NEED_RECOMPUTE; in checkResultUsable()
524 @IntRange(from = 0) int end, @NonNull TextDirectionHeuristic textDir, in checkResultUsable() argument
530 return mParams.checkResultUsable(paint, textDir, strategy, frequency); in checkResultUsable()
DStaticLayout.java213 public Builder setTextDirection(@NonNull TextDirectionHeuristic textDir) { in setTextDirection() argument
214 mTextDir = textDir; in setTextDirection()
495 Alignment align, TextDirectionHeuristic textDir, in StaticLayout() argument
504 paint, outerwidth, align, textDir, spacingmult, spacingadd); in StaticLayout() local
508 .setTextDirection(textDir) in StaticLayout()
600 TextDirectionHeuristic textDir = b.mTextDir; in generate() local
658 precomputed.checkResultUsable(bufStart, bufEnd, textDir, paint, in generate()
668 .setTextDirection(textDir) in generate()
681 final PrecomputedText.Params param = new PrecomputedText.Params(paint, textDir, in generate()
898 MeasuredParagraph.buildForBidi(source, bufEnd, bufEnd, textDir, null); in generate()
DBoringLayout.java338 TextDirectionHeuristic textDir, Metrics metrics) { in isBoring() argument
343 if (textDir != null && textDir.isRtl(text, 0, textLength)) { in isBoring()
DDynamicLayout.java139 public Builder setTextDirection(@NonNull TextDirectionHeuristic textDir) { in setTextDirection() argument
140 mTextDir = textDir; in setTextDirection()
362 @NonNull Alignment align, @NonNull TextDirectionHeuristic textDir, in DynamicLayout() argument
370 paint, width, align, textDir, spacingmult, spacingadd); in DynamicLayout() local
374 .setTextDirection(textDir) in DynamicLayout()
DLayout.java177 TextDirectionHeuristic textDir) { in getDesiredWidth() argument
178 return getDesiredWidthWithLimit(source, start, end, paint, textDir, Float.MAX_VALUE); in getDesiredWidth()
188 TextPaint paint, TextDirectionHeuristic textDir, float upperLimit) { in getDesiredWidthWithLimit() argument
199 float w = measurePara(paint, source, i, next, textDir); in getDesiredWidthWithLimit()
249 int width, Alignment align, TextDirectionHeuristic textDir, in Layout() argument
271 mTextDir = textDir; in Layout()
2145 TextDirectionHeuristic textDir) {
2149 mt = MeasuredParagraph.buildForBidi(text, start, end, textDir, mt);
DTextUtils.java1318 TextDirectionHeuristic textDir, String ellipsis) { in ellipsize() argument
1324 mt = MeasuredParagraph.buildForMeasurement(paint, text, 0, text.length(), textDir, mt); in ellipsize()
1515 float avail, String oneMore, String more, TextDirectionHeuristic textDir) { in commaEllipsize() argument
1521 mt = MeasuredParagraph.buildForMeasurement(p, text, 0, len, textDir, mt); in commaEllipsize()
1562 p, format, 0, format.length(), textDir, tempMt); in commaEllipsize()