Home
last modified time | relevance | path

Searched refs:PrecomputedText (Results 1 – 14 of 14) sorted by relevance

/frameworks/base/apct-tests/perftests/core/src/android/text/
DPrecomputedTextPerfTest.java56 final PrecomputedText.Params param = new PrecomputedText.Params.Builder(PAINT) in testCreate_NoStyled_Hyphenation()
66 PrecomputedText.create(text, param); in testCreate_NoStyled_Hyphenation()
73 final PrecomputedText.Params param = new PrecomputedText.Params.Builder(PAINT) in testCreate_NoStyled_NoHyphenation()
83 PrecomputedText.create(text, param); in testCreate_NoStyled_NoHyphenation()
90 final PrecomputedText.Params param = new PrecomputedText.Params.Builder(PAINT) in testCreate_NoStyled_Hyphenation_WidthOnly()
100 PrecomputedText.create(text, param); in testCreate_NoStyled_Hyphenation_WidthOnly()
107 final PrecomputedText.Params param = new PrecomputedText.Params.Builder(PAINT) in testCreate_NoStyled_NoHyphenation_WidthOnly()
117 PrecomputedText.create(text, param); in testCreate_NoStyled_NoHyphenation_WidthOnly()
124 final PrecomputedText.Params param = new PrecomputedText.Params.Builder(PAINT) in testCreate_Styled_Hyphenation()
134 PrecomputedText.create(text, param); in testCreate_Styled_Hyphenation()
[all …]
DPrecomputedTextMemoryUsageTest.java65 final PrecomputedText.Params param = new PrecomputedText.Params.Builder(paint) in testMemoryUsage_Latin_NoHyphenation()
72 memories[i] = PrecomputedText.create( in testMemoryUsage_Latin_NoHyphenation()
83 final PrecomputedText.Params param = new PrecomputedText.Params.Builder(paint) in testMemoryUsage_Latin_Hyphenation()
90 memories[i] = PrecomputedText.create( in testMemoryUsage_Latin_Hyphenation()
101 final PrecomputedText.Params param = new PrecomputedText.Params.Builder(paint) in testMemoryUsage_CJK_NoHyphenation()
108 memories[i] = PrecomputedText.create( in testMemoryUsage_CJK_NoHyphenation()
119 final PrecomputedText.Params param = new PrecomputedText.Params.Builder(paint) in testMemoryUsage_CJK_Hyphenation()
126 memories[i] = PrecomputedText.create( in testMemoryUsage_CJK_Hyphenation()
138 final PrecomputedText.Params param = new PrecomputedText.Params.Builder(paint) in testMemoryUsage_Arabic_NoHyphenation()
145 memories[i] = PrecomputedText.create( in testMemoryUsage_Arabic_NoHyphenation()
[all …]
DStaticLayoutPerfTest.java56 private PrecomputedText makeMeasured(CharSequence text, TextPaint paint) { in makeMeasured()
57 PrecomputedText.Params param = new PrecomputedText.Params.Builder(paint).build(); in makeMeasured()
58 return PrecomputedText.create(text, param); in makeMeasured()
61 private PrecomputedText makeMeasured(CharSequence text, TextPaint paint, int strategy, in makeMeasured()
63 PrecomputedText.Params param = new PrecomputedText.Params.Builder(paint) in makeMeasured()
65 return PrecomputedText.create(text, param); in makeMeasured()
160 final PrecomputedText text = makeMeasured( in testCreate_PrecomputedText_NoStyled_Greedy_NoHyphenation()
177 final PrecomputedText text = makeMeasured( in testCreate_PrecomputedText_NoStyled_Greedy_NoHyphenation_DirDifferent()
196 final PrecomputedText text = makeMeasured( in testCreate_PrecomputedText_NoStyled_Greedy_Hyphenation()
213 final PrecomputedText text = makeMeasured( in testCreate_PrecomputedText_NoStyled_Balanced_NoHyphenation()
[all …]
/frameworks/base/apct-tests/perftests/core/src/android/widget/
DTextViewPrecomputedTextPerfTest.java29 import android.text.PrecomputedText;
129 final PrecomputedText.Params params = new PrecomputedText.Params.Builder(PAINT) in testNewLayout_PrecomputedText()
132 final CharSequence text = PrecomputedText.create( in testNewLayout_PrecomputedText()
151 final PrecomputedText.Params params = new PrecomputedText.Params.Builder(PAINT) in testNewLayout_PrecomputedText_Selectable()
154 final CharSequence text = PrecomputedText.create( in testNewLayout_PrecomputedText_Selectable()
209 final PrecomputedText.Params params = new PrecomputedText.Params.Builder(PAINT) in testSetText_PrecomputedText()
212 final CharSequence text = PrecomputedText.create( in testSetText_PrecomputedText()
229 final PrecomputedText.Params params = new PrecomputedText.Params.Builder(PAINT) in testSetText_PrecomputedText_Selectable()
232 final CharSequence text = PrecomputedText.create( in testSetText_PrecomputedText_Selectable()
292 final PrecomputedText.Params params = new PrecomputedText.Params.Builder(PAINT) in testOnMeasure_PrecomputedText()
[all …]
/frameworks/base/core/java/android/text/
DPrecomputedText.java75 public class PrecomputedText implements Spannable { class
364 public static PrecomputedText create(@NonNull CharSequence text, @NonNull Params params) { in create()
366 if (text instanceof PrecomputedText) { in create()
367 final PrecomputedText hintPct = (PrecomputedText) text; in create()
368 final PrecomputedText.Params hintParams = hintPct.getParams(); in create()
395 return new PrecomputedText(text, 0, text.length(), params, paraInfo); in create()
399 @NonNull PrecomputedText pct, @NonNull Params params, boolean computeLayout) { in createMeasuredParagraphsFromPrecomputedText()
445 private PrecomputedText(@NonNull CharSequence text, @IntRange(from = 0) int start, in PrecomputedText() method in PrecomputedText
714 return PrecomputedText.create(mText.subSequence(start, end), mParams); in subSequence()
DStaticLayout.java653 PrecomputedText.ParagraphInfo[] paragraphInfo = null; in generate()
655 if (source instanceof PrecomputedText) { in generate()
656 PrecomputedText precomputed = (PrecomputedText) source; in generate()
657 final @PrecomputedText.Params.CheckResultUsableResult int checkResult = in generate()
661 case PrecomputedText.Params.UNUSABLE: in generate()
663 case PrecomputedText.Params.NEED_RECOMPUTE: in generate()
664 final PrecomputedText.Params newParams = in generate()
665 new PrecomputedText.Params.Builder(paint) in generate()
670 precomputed = PrecomputedText.create(precomputed, newParams); in generate()
673 case PrecomputedText.Params.USABLE: in generate()
[all …]
DDynamicLayout.java711 if (text instanceof PrecomputedText) { in contentMayProtrudeFromLineTopOrBottom()
712 PrecomputedText precomputed = (PrecomputedText) text; in contentMayProtrudeFromLineTopOrBottom()
DTextLine.java70 private PrecomputedText mComputed;
197 if (text instanceof PrecomputedText) { in set()
200 mComputed = (PrecomputedText) text; in set()
/frameworks/base/core/tests/coretests/src/android/widget/
DTextViewTest.java32 import android.text.PrecomputedText;
256 PrecomputedText precomputed = in testUseDynamicLayout()
257 PrecomputedText.create(text, mTextView.getTextMetricsParams()); in testUseDynamicLayout()
281 PrecomputedText precomputed = in testUseDynamicLayout_SPANNABLE()
282 PrecomputedText.create(text, mTextView.getTextMetricsParams()); in testUseDynamicLayout_SPANNABLE()
307 PrecomputedText precomputed = in testUseDynamicLayout_EDITABLE()
308 PrecomputedText.create(text, mTextView.getTextMetricsParams()); in testUseDynamicLayout_EDITABLE()
/frameworks/base/graphics/java/android/graphics/
DBaseRecordingCanvas.java27 import android.text.PrecomputedText;
523 if (text instanceof PrecomputedText) { in drawTextRun()
524 final PrecomputedText pt = (PrecomputedText) text; in drawTextRun()
DBaseCanvas.java29 import android.text.PrecomputedText;
558 if (text instanceof PrecomputedText) { in drawTextRun()
559 final PrecomputedText pt = (PrecomputedText) text; in drawTextRun()
/frameworks/base/core/java/android/widget/
DTextView.java93 import android.text.PrecomputedText;
695 private @Nullable PrecomputedText mPrecomputed;
1738 mPrecomputed = (text instanceof PrecomputedText) ? (PrecomputedText) text : null; in setTextInternal()
4618 public @NonNull PrecomputedText.Params getTextMetricsParams() { in getTextMetricsParams()
4619 return new PrecomputedText.Params(new TextPaint(mTextPaint), getTextDirectionHeuristic(), in getTextMetricsParams()
4629 public void setTextMetricsParams(@NonNull PrecomputedText.Params params) { in setTextMetricsParams()
6154 PrecomputedText precomputed = in setText()
6155 (text instanceof PrecomputedText) ? (PrecomputedText) text : null; in setText()
6169 final @PrecomputedText.Params.CheckResultUsableResult int checkResult = in setText()
6173 case PrecomputedText.Params.UNUSABLE: in setText()
[all …]
/frameworks/base/config/
Dpreloaded-classes3467 android.text.PrecomputedText$ParagraphInfo
3468 android.text.PrecomputedText$Params
3469 android.text.PrecomputedText
/frameworks/base/tools/aapt2/integration-tests/CommandTests/
Dandroid-28.jarMETA-INF/ META-INF/MANIFEST.MF javax/ javax/net/ javax/ ...