Home
last modified time | relevance | path

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

/frameworks/base/apct-tests/perftests/core/src/android/text/
DPrecomputedTextPerfTest.java69 final PrecomputedText.Params param = new PrecomputedText.Params.Builder(PAINT) in testCreate_NoStyled_Hyphenation()
79 PrecomputedText.create(text, param); in testCreate_NoStyled_Hyphenation()
86 final PrecomputedText.Params param = new PrecomputedText.Params.Builder(PAINT) in testCreate_NoStyled_NoHyphenation()
96 PrecomputedText.create(text, param); in testCreate_NoStyled_NoHyphenation()
103 final PrecomputedText.Params param = new PrecomputedText.Params.Builder(PAINT) in testCreate_NoStyled_Hyphenation_WidthOnly()
113 PrecomputedText.create(text, param); in testCreate_NoStyled_Hyphenation_WidthOnly()
120 final PrecomputedText.Params param = new PrecomputedText.Params.Builder(PAINT) in testCreate_NoStyled_NoHyphenation_WidthOnly()
130 PrecomputedText.create(text, param); in testCreate_NoStyled_NoHyphenation_WidthOnly()
137 final PrecomputedText.Params param = new PrecomputedText.Params.Builder(PAINT) in testCreate_Styled_Hyphenation()
147 PrecomputedText.create(text, param); in testCreate_Styled_Hyphenation()
[all …]
DPrecomputedTextMemoryUsageTest.java80 final PrecomputedText.Params param = new PrecomputedText.Params.Builder(PAINT) in testMemoryUsage_NoHyphenation()
87 memories[i] = PrecomputedText.create( in testMemoryUsage_NoHyphenation()
97 final PrecomputedText.Params param = new PrecomputedText.Params.Builder(PAINT) in testMemoryUsage_Hyphenation()
104 memories[i] = PrecomputedText.create( in testMemoryUsage_Hyphenation()
114 final PrecomputedText.Params param = new PrecomputedText.Params.Builder(PAINT) in testMemoryUsage_NoHyphenation_WidthOnly()
122 PrecomputedText.ParagraphInfo[] paragraphInfo = in testMemoryUsage_NoHyphenation_WidthOnly()
123 PrecomputedText.createMeasuredParagraphs(cs, param, 0, cs.length(), false); in testMemoryUsage_NoHyphenation_WidthOnly()
125 for (PrecomputedText.ParagraphInfo info : paragraphInfo) { in testMemoryUsage_NoHyphenation_WidthOnly()
135 final PrecomputedText.Params param = new PrecomputedText.Params.Builder(PAINT) in testMemoryUsage_Hyphenatation_WidthOnly()
143 PrecomputedText.ParagraphInfo[] paragraphInfo = in testMemoryUsage_Hyphenatation_WidthOnly()
[all …]
DStaticLayoutPerfTest.java66 private PrecomputedText makeMeasured(CharSequence text, TextPaint paint) { in makeMeasured()
67 PrecomputedText.Params param = new PrecomputedText.Params.Builder(paint).build(); in makeMeasured()
68 return PrecomputedText.create(text, param); in makeMeasured()
71 private PrecomputedText makeMeasured(CharSequence text, TextPaint paint, int strategy, in makeMeasured()
73 PrecomputedText.Params param = new PrecomputedText.Params.Builder(paint) in makeMeasured()
75 return PrecomputedText.create(text, param); in makeMeasured()
170 final PrecomputedText text = makeMeasured( in testCreate_PrecomputedText_NoStyled_Greedy_NoHyphenation()
187 final PrecomputedText text = makeMeasured( in testCreate_PrecomputedText_NoStyled_Greedy_Hyphenation()
204 final PrecomputedText text = makeMeasured( in testCreate_PrecomputedText_NoStyled_Balanced_NoHyphenation()
221 final PrecomputedText text = makeMeasured( in testCreate_PrecomputedText_NoStyled_Balanced_Hyphenation()
[all …]
/frameworks/base/apct-tests/perftests/core/src/android/widget/
DTextViewPrecomputedTextPerfTest.java32 import android.text.PrecomputedText;
145 final PrecomputedText.Params params = new PrecomputedText.Params.Builder(PAINT) in testNewLayout_PrecomputedText()
148 final CharSequence text = PrecomputedText.create( in testNewLayout_PrecomputedText()
167 final PrecomputedText.Params params = new PrecomputedText.Params.Builder(PAINT) in testNewLayout_PrecomputedText_Selectable()
170 final CharSequence text = PrecomputedText.create( in testNewLayout_PrecomputedText_Selectable()
225 final PrecomputedText.Params params = new PrecomputedText.Params.Builder(PAINT) in testSetText_PrecomputedText()
228 final CharSequence text = PrecomputedText.create( in testSetText_PrecomputedText()
245 final PrecomputedText.Params params = new PrecomputedText.Params.Builder(PAINT) in testSetText_PrecomputedText_Selectable()
248 final CharSequence text = PrecomputedText.create( in testSetText_PrecomputedText_Selectable()
308 final PrecomputedText.Params params = new PrecomputedText.Params.Builder(PAINT) in testOnMeasure_PrecomputedText()
[all …]
/frameworks/base/core/tests/coretests/src/android/widget/
DTextViewTest.java36 import android.text.PrecomputedText;
252 PrecomputedText precomputed = in testUseDynamicLayout()
253 PrecomputedText.create(text, mTextView.getTextMetricsParams()); in testUseDynamicLayout()
277 PrecomputedText precomputed = in testUseDynamicLayout_SPANNABLE()
278 PrecomputedText.create(text, mTextView.getTextMetricsParams()); in testUseDynamicLayout_SPANNABLE()
303 PrecomputedText precomputed = in testUseDynamicLayout_EDITABLE()
304 PrecomputedText.create(text, mTextView.getTextMetricsParams()); in testUseDynamicLayout_EDITABLE()
/frameworks/support/compat/src/main/java/androidx/core/text/
DPrecomputedTextCompat.java21 import android.text.PrecomputedText;
79 private final PrecomputedText.Params mWrapped;
184 mWrapped = new PrecomputedText.Params.Builder(paint).setBreakStrategy(strategy) in Params()
196 public Params(@NonNull PrecomputedText.Params wrapped) { in Params()
388 private final @Nullable PrecomputedText mWrapped;
410 return new PrecomputedTextCompat(PrecomputedText.create(text, params.mWrapped), params); in create()
465 private PrecomputedTextCompat(@NonNull PrecomputedText precomputed, @NonNull Params params) { in PrecomputedTextCompat()
/frameworks/base/core/java/android/text/
DPrecomputedText.java72 public class PrecomputedText implements Spannable { class
323 public static PrecomputedText create(@NonNull CharSequence text, @NonNull Params params) { in create()
326 return new PrecomputedText(text, 0, text.length(), params, paraInfo); in create()
359 private PrecomputedText(@NonNull CharSequence text, @IntRange(from = 0) int start, in PrecomputedText() method in PrecomputedText
611 return PrecomputedText.create(mText.subSequence(start, end), mParams); in subSequence()
DStaticLayout.java654 PrecomputedText.ParagraphInfo[] paragraphInfo = null; in generate()
656 if (source instanceof PrecomputedText) { in generate()
657 PrecomputedText precomputed = (PrecomputedText) source; in generate()
666 final PrecomputedText.Params param = new PrecomputedText.Params(paint, textDir, in generate()
668 paragraphInfo = PrecomputedText.createMeasuredParagraphs(source, param, bufStart, in generate()
DDynamicLayout.java707 if (text instanceof PrecomputedText) { in contentMayProtrudeFromLineTopOrBottom()
708 PrecomputedText precomputed = (PrecomputedText) text; in contentMayProtrudeFromLineTopOrBottom()
DTextLine.java63 private PrecomputedText mComputed;
174 if (text instanceof PrecomputedText) { in set()
177 mComputed = (PrecomputedText) text; in set()
/frameworks/base/graphics/java/android/graphics/
DBaseCanvas.java25 import android.text.PrecomputedText;
494 if (text instanceof PrecomputedText) { in drawTextRun()
495 PrecomputedText mt = (PrecomputedText) text; in drawTextRun()
/frameworks/base/core/java/android/view/
DRecordingCanvas.java37 import android.text.PrecomputedText;
508 if (text instanceof PrecomputedText) { in drawTextRun()
509 PrecomputedText mt = (PrecomputedText) text; in drawTextRun()
/frameworks/base/config/
Dpreloaded-classes2961 android.text.PrecomputedText
2962 android.text.PrecomputedText$ParagraphInfo
2963 android.text.PrecomputedText$Params
Dhiddenapi-public-dex.txt45536 Landroid/text/PrecomputedText$Params$Builder;
45537 Landroid/text/PrecomputedText$Params$Builder;-><init>(Landroid/text/TextPaint;)V
45538 Landroid/text/PrecomputedText$Params$Builder;->build()Landroid/text/PrecomputedText$Params;
45539 Landroid/text/PrecomputedText$Params$Builder;->setBreakStrategy(I)Landroid/text/PrecomputedText$Par…
45540 Landroid/text/PrecomputedText$Params$Builder;->setHyphenationFrequency(I)Landroid/text/PrecomputedT…
45541 Landroid/text/PrecomputedText$Params$Builder;->setTextDirection(Landroid/text/TextDirectionHeuristi…
45542 Landroid/text/PrecomputedText$Params;
45543 Landroid/text/PrecomputedText$Params;->equals(Ljava/lang/Object;)Z
45544 Landroid/text/PrecomputedText$Params;->getBreakStrategy()I
45545 Landroid/text/PrecomputedText$Params;->getHyphenationFrequency()I
[all …]
Dboot-image-profile.txt31266 HSPLandroid/text/PrecomputedText$Params;-><init>(Landroid/text/TextPaint;Landroid/text/TextDirectio…
31267 …d/text/PrecomputedText;->createMeasuredParagraphs(Ljava/lang/CharSequence;Landroid/text/Precompute…
58281 Landroid/text/PrecomputedText$ParagraphInfo;
58282 Landroid/text/PrecomputedText$Params;
58283 Landroid/text/PrecomputedText;
/frameworks/support/compat/api/
Dcurrent.txt1332 ctor public PrecomputedTextCompat.Params(android.text.PrecomputedText.Params);
/frameworks/base/api/
Dcurrent.txt43400 public class PrecomputedText implements android.text.Spannable {
43402 …method public static android.text.PrecomputedText create(java.lang.CharSequence, android.text.Prec…
43407 method public android.text.PrecomputedText.Params getParams();
43420 public static final class PrecomputedText.Params {
43427 public static class PrecomputedText.Params.Builder {
43428 ctor public PrecomputedText.Params.Builder(android.text.TextPaint);
43429 method public android.text.PrecomputedText.Params build();
43430 method public android.text.PrecomputedText.Params.Builder setBreakStrategy(int);
43431 method public android.text.PrecomputedText.Params.Builder setHyphenationFrequency(int);
43432 …method public android.text.PrecomputedText.Params.Builder setTextDirection(android.text.TextDirect…
[all …]