Home
last modified time | relevance | path

Searched refs:PrecomputedText (Results 1 – 22 of 22) 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.java84 private PrecomputedText makeMeasured(CharSequence text, TextPaint paint) { in makeMeasured()
85 PrecomputedText.Params param = new PrecomputedText.Params.Builder(paint).build(); in makeMeasured()
86 return PrecomputedText.create(text, param); in makeMeasured()
89 private PrecomputedText makeMeasured(CharSequence text, TextPaint paint, int strategy, in makeMeasured()
91 PrecomputedText.Params param = new PrecomputedText.Params.Builder(paint) in makeMeasured()
93 return PrecomputedText.create(text, param); in makeMeasured()
203 final PrecomputedText text = makeMeasured( in testCreate_PrecomputedText_NoStyled_Greedy_NoHyphenation()
220 final PrecomputedText text = makeMeasured( in testCreate_PrecomputedText_NoStyled_Greedy_NoHyphenation_DirDifferent()
239 final PrecomputedText text = makeMeasured( in testCreate_PrecomputedText_NoStyled_Greedy_Hyphenation()
256 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/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/row/
DTextPrecomputerTest.kt20 import android.text.PrecomputedText
61 assertThat(textView.text).isInstanceOf(PrecomputedText::class.java) in precomputeRunnable_anyText_setPrecomputedText()
71 textView.textMetricsParams = PrecomputedText.Params.Builder(PAINT).build() in precomputeRunnable_differentPrecomputedTextConfig_notSetPrecomputedText()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/
DTextPrecomputer.kt19 import android.text.PrecomputedText
38 text?.let { PrecomputedText.create(it, textView.textMetricsParams) } in precompute()
/frameworks/base/core/java/android/text/
DPrecomputedText.java78 public class PrecomputedText implements Spannable { class
407 public static PrecomputedText create(@NonNull CharSequence text, @NonNull Params params) { in create()
409 if (text instanceof PrecomputedText) { in create()
410 final PrecomputedText hintPct = (PrecomputedText) text; in create()
411 final PrecomputedText.Params hintParams = hintPct.getParams(); in create()
440 return new PrecomputedText(text, 0, text.length(), params, paraInfo); in create()
449 @NonNull PrecomputedText pct, @NonNull Params params, boolean computeLayout) { in createMeasuredParagraphsFromPrecomputedText()
536 private PrecomputedText(@NonNull CharSequence text, @IntRange(from = 0) int start, in PrecomputedText() method in PrecomputedText
837 return PrecomputedText.create(mText.subSequence(start, end), mParams); in subSequence()
DStaticLayout.java835 PrecomputedText.ParagraphInfo[] paragraphInfo = null; in generate()
837 if (source instanceof PrecomputedText) { in generate()
838 PrecomputedText precomputed = (PrecomputedText) source; in generate()
839 final @PrecomputedText.Params.CheckResultUsableResult int checkResult = in generate()
843 case PrecomputedText.Params.UNUSABLE: in generate()
845 case PrecomputedText.Params.NEED_RECOMPUTE: in generate()
846 final PrecomputedText.Params newParams = in generate()
847 new PrecomputedText.Params.Builder(paint) in generate()
853 precomputed = PrecomputedText.create(precomputed, newParams); in generate()
856 case PrecomputedText.Params.USABLE: in generate()
[all …]
DDynamicLayout.java854 if (text instanceof PrecomputedText) { in contentMayProtrudeFromLineTopOrBottom()
855 PrecomputedText precomputed = (PrecomputedText) text; in contentMayProtrudeFromLineTopOrBottom()
DTextLine.java74 private PrecomputedText mComputed;
241 if (text instanceof PrecomputedText) { in set()
244 mComputed = (PrecomputedText) text; in set()
/frameworks/base/core/java/com/android/internal/widget/
DMessagingTextMessage.java26 import android.text.PrecomputedText;
45 private PrecomputedText mPrecomputedText = null;
75 mPrecomputedText = PrecomputedText.create(message.getText(), getTextMetricsParams()); in setMessage()
DImageFloatingTextView.java25 import android.text.PrecomputedText;
268 if (text instanceof PrecomputedText) { in isTextAPrecomputedText()
/frameworks/base/core/tests/coretests/src/android/widget/
DTextViewTest.java43 import android.text.PrecomputedText;
192 PrecomputedText precomputed = in testUseDynamicLayout()
193 PrecomputedText.create(text, mTextView.getTextMetricsParams()); in testUseDynamicLayout()
217 PrecomputedText precomputed = in testUseDynamicLayout_SPANNABLE()
218 PrecomputedText.create(text, mTextView.getTextMetricsParams()); in testUseDynamicLayout_SPANNABLE()
243 PrecomputedText precomputed = in testUseDynamicLayout_EDITABLE()
244 PrecomputedText.create(text, mTextView.getTextMetricsParams()); in testUseDynamicLayout_EDITABLE()
/frameworks/base/graphics/java/android/graphics/
DBaseCanvas.java32 import android.text.PrecomputedText;
620 if (text instanceof PrecomputedText) { in drawTextRun()
621 final PrecomputedText pt = (PrecomputedText) text; in drawTextRun()
DBaseRecordingCanvas.java29 import android.text.PrecomputedText;
558 if (text instanceof PrecomputedText) { in drawTextRun()
559 final PrecomputedText pt = (PrecomputedText) text; in drawTextRun()
/frameworks/base/boot/
Dpreloaded-classes8106 android.text.PrecomputedText$ParagraphInfo
8107 android.text.PrecomputedText$Params$Builder
8108 android.text.PrecomputedText$Params
8109 android.text.PrecomputedText
14381 [Landroid.text.PrecomputedText$ParagraphInfo;
Dboot-image-profile.txt14742 HSPLandroid/text/PrecomputedText$ParagraphInfo;-><init>(ILandroid/text/MeasuredParagraph;)V
14743 HSPLandroid/text/PrecomputedText$Params;-><init>(Landroid/text/TextPaint;Landroid/graphics/text/Lin…
14744 HSPLandroid/text/PrecomputedText$Params;->getBreakStrategy()I
14745 HSPLandroid/text/PrecomputedText$Params;->getHyphenationFrequency()I
14746 HSPLandroid/text/PrecomputedText$Params;->getTextDirection()Landroid/text/TextDirectionHeuristic;
14747 HSPLandroid/text/PrecomputedText$Params;->getTextPaint()Landroid/text/TextPaint;
30514 Landroid/text/PrecomputedText$ParagraphInfo;
30515 Landroid/text/PrecomputedText$Params$Builder;
30516 Landroid/text/PrecomputedText$Params;
30517 Landroid/text/PrecomputedText;
[all …]
/frameworks/base/config/
Dpreloaded-classes8137 android.text.PrecomputedText$ParagraphInfo
8138 android.text.PrecomputedText$Params$Builder
8139 android.text.PrecomputedText$Params
8140 android.text.PrecomputedText
17407 [Landroid.text.PrecomputedText$ParagraphInfo;
Dboot-image-profile.txt14806 HSPLandroid/text/PrecomputedText$ParagraphInfo;-><init>(ILandroid/text/MeasuredParagraph;)V
14807 HSPLandroid/text/PrecomputedText$Params;-><init>(Landroid/text/TextPaint;Landroid/graphics/text/Lin…
14808 HSPLandroid/text/PrecomputedText$Params;->getBreakStrategy()I
14809 HSPLandroid/text/PrecomputedText$Params;->getHyphenationFrequency()I
14810 HSPLandroid/text/PrecomputedText$Params;->getTextDirection()Landroid/text/TextDirectionHeuristic;
14811 HSPLandroid/text/PrecomputedText$Params;->getTextPaint()Landroid/text/TextPaint;
40675 Landroid/text/PrecomputedText$ParagraphInfo;
40676 Landroid/text/PrecomputedText$Params$Builder;
40677 Landroid/text/PrecomputedText$Params;
40678 Landroid/text/PrecomputedText;
[all …]
/frameworks/base/boot/hiddenapi/
Dhiddenapi-max-target-o.txt55888 Landroid/text/PrecomputedText$ParagraphInfo;-><init>(ILandroid/text/MeasuredParagraph;)V
55889 Landroid/text/PrecomputedText$ParagraphInfo;->measured:Landroid/text/MeasuredParagraph;
55890 Landroid/text/PrecomputedText$ParagraphInfo;->paragraphEnd:I
55891 Landroid/text/PrecomputedText$Params$Builder;->mBreakStrategy:I
55892 Landroid/text/PrecomputedText$Params$Builder;->mHyphenationFrequency:I
55893 Landroid/text/PrecomputedText$Params$Builder;->mPaint:Landroid/text/TextPaint;
55894 Landroid/text/PrecomputedText$Params$Builder;->mTextDir:Landroid/text/TextDirectionHeuristic;
55895 Landroid/text/PrecomputedText$Params;-><init>(Landroid/text/TextPaint;Landroid/text/TextDirectionHe…
55896 Landroid/text/PrecomputedText$Params;->isSameTextMetricsInternal(Landroid/text/TextPaint;Landroid/t…
55897 Landroid/text/PrecomputedText$Params;->mBreakStrategy:I
[all …]
/frameworks/base/core/api/
Dcurrent.txt47885 public class PrecomputedText implements android.text.Spannable {
47887 …method public static android.text.PrecomputedText create(@NonNull CharSequence, @NonNull android.t…
47893 method @NonNull public android.text.PrecomputedText.Params getParams();
47907 public static final class PrecomputedText.Params {
47915 public static class PrecomputedText.Params.Builder {
47916 ctor public PrecomputedText.Params.Builder(@NonNull android.text.TextPaint);
47917 ctor public PrecomputedText.Params.Builder(@NonNull android.text.PrecomputedText.Params);
47918 method @NonNull public android.text.PrecomputedText.Params build();
47919 method public android.text.PrecomputedText.Params.Builder setBreakStrategy(int);
47920 method public android.text.PrecomputedText.Params.Builder setHyphenationFrequency(int);
[all …]
/frameworks/base/tools/aapt2/integration-tests/CommandTests/
Dandroid-33.jarAndroidManifest.xml META-INF/ META-INF/MANIFEST.MF NOTICES/ NOTICES/libcore ...