Searched refs:PrecomputedText (Results 1 – 22 of 22) sorted by relevance
56 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 …]
65 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 …]
84 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 …]
29 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 …]
20 import android.text.PrecomputedText61 assertThat(textView.text).isInstanceOf(PrecomputedText::class.java) in precomputeRunnable_anyText_setPrecomputedText()71 textView.textMetricsParams = PrecomputedText.Params.Builder(PAINT).build() in precomputeRunnable_differentPrecomputedTextConfig_notSetPrecomputedText()
19 import android.text.PrecomputedText38 text?.let { PrecomputedText.create(it, textView.textMetricsParams) } in precompute()
78 public class PrecomputedText implements Spannable { class407 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 PrecomputedText837 return PrecomputedText.create(mText.subSequence(start, end), mParams); in subSequence()
835 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 …]
854 if (text instanceof PrecomputedText) { in contentMayProtrudeFromLineTopOrBottom()855 PrecomputedText precomputed = (PrecomputedText) text; in contentMayProtrudeFromLineTopOrBottom()
74 private PrecomputedText mComputed;241 if (text instanceof PrecomputedText) { in set()244 mComputed = (PrecomputedText) text; in set()
26 import android.text.PrecomputedText;45 private PrecomputedText mPrecomputedText = null;75 mPrecomputedText = PrecomputedText.create(message.getText(), getTextMetricsParams()); in setMessage()
25 import android.text.PrecomputedText;268 if (text instanceof PrecomputedText) { in isTextAPrecomputedText()
43 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()
32 import android.text.PrecomputedText;620 if (text instanceof PrecomputedText) { in drawTextRun()621 final PrecomputedText pt = (PrecomputedText) text; in drawTextRun()
29 import android.text.PrecomputedText;558 if (text instanceof PrecomputedText) { in drawTextRun()559 final PrecomputedText pt = (PrecomputedText) text; in drawTextRun()
8106 android.text.PrecomputedText$ParagraphInfo8107 android.text.PrecomputedText$Params$Builder8108 android.text.PrecomputedText$Params8109 android.text.PrecomputedText14381 [Landroid.text.PrecomputedText$ParagraphInfo;
14742 HSPLandroid/text/PrecomputedText$ParagraphInfo;-><init>(ILandroid/text/MeasuredParagraph;)V14743 HSPLandroid/text/PrecomputedText$Params;-><init>(Landroid/text/TextPaint;Landroid/graphics/text/Lin…14744 HSPLandroid/text/PrecomputedText$Params;->getBreakStrategy()I14745 HSPLandroid/text/PrecomputedText$Params;->getHyphenationFrequency()I14746 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 …]
8137 android.text.PrecomputedText$ParagraphInfo8138 android.text.PrecomputedText$Params$Builder8139 android.text.PrecomputedText$Params8140 android.text.PrecomputedText17407 [Landroid.text.PrecomputedText$ParagraphInfo;
14806 HSPLandroid/text/PrecomputedText$ParagraphInfo;-><init>(ILandroid/text/MeasuredParagraph;)V14807 HSPLandroid/text/PrecomputedText$Params;-><init>(Landroid/text/TextPaint;Landroid/graphics/text/Lin…14808 HSPLandroid/text/PrecomputedText$Params;->getBreakStrategy()I14809 HSPLandroid/text/PrecomputedText$Params;->getHyphenationFrequency()I14810 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 …]
55888 Landroid/text/PrecomputedText$ParagraphInfo;-><init>(ILandroid/text/MeasuredParagraph;)V55889 Landroid/text/PrecomputedText$ParagraphInfo;->measured:Landroid/text/MeasuredParagraph;55890 Landroid/text/PrecomputedText$ParagraphInfo;->paragraphEnd:I55891 Landroid/text/PrecomputedText$Params$Builder;->mBreakStrategy:I55892 Landroid/text/PrecomputedText$Params$Builder;->mHyphenationFrequency:I55893 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 …]
47885 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 …]
AndroidManifest.xml META-INF/ META-INF/MANIFEST.MF NOTICES/ NOTICES/libcore ...