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()124 final PrecomputedText.Params param = new PrecomputedText.Params.Builder(PAINT) in testCreate_Styled_Hyphenation()141 final PrecomputedText.Params param = new PrecomputedText.Params.Builder(PAINT) in testCreate_Styled_NoHyphenation()158 final PrecomputedText.Params param = new PrecomputedText.Params.Builder(PAINT) in testCreate_Styled_Hyphenation_WidthOnly()[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()157 final PrecomputedText.Params param = new PrecomputedText.Params.Builder(paint) in testMemoryUsage_Arabic_Hyphenation()[all …]
85 PrecomputedText.Params param = new PrecomputedText.Params.Builder(paint).build(); in makeMeasured()86 return PrecomputedText.create(text, param); 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()273 final PrecomputedText text = makeMeasured( in testCreate_PrecomputedText_NoStyled_Balanced_Hyphenation()290 final PrecomputedText text = makeMeasured( in testCreate_PrecomputedText_Styled_Greedy_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()229 final PrecomputedText.Params params = new PrecomputedText.Params.Builder(PAINT) in testSetText_PrecomputedText_Selectable()292 final PrecomputedText.Params params = new PrecomputedText.Params.Builder(PAINT) in testOnMeasure_PrecomputedText()315 final PrecomputedText.Params params = new PrecomputedText.Params.Builder(PAINT) in testOnMeasure_PrecomputedText_Selectable()393 final PrecomputedText.Params params = new PrecomputedText.Params.Builder(PAINT) in testOnDraw_PrecomputedText()[all …]
21 import android.text.PrecomputedText61 assertThat(textView.text).isInstanceOf(PrecomputedText::class.java)71 textView.textMetricsParams = PrecomputedText.Params.Builder(PAINT).build()
78 public class PrecomputedText implements Spannable { class411 public static PrecomputedText create(@NonNull CharSequence text, @NonNull Params params) { in create()413 if (text instanceof PrecomputedText) { in create()414 final PrecomputedText hintPct = (PrecomputedText) text; in create()415 final PrecomputedText.Params hintParams = hintPct.getParams(); in create()443 return new PrecomputedText(text, 0, text.length(), params, paraInfo); in create()452 @NonNull PrecomputedText pct, @NonNull Params params, boolean computeLayout) { in createMeasuredParagraphsFromPrecomputedText()514 private PrecomputedText(@NonNull CharSequence text, @IntRange(from = 0) int start, in PrecomputedText() method in PrecomputedText815 return PrecomputedText.create(mText.subSequence(start, end), mParams); in subSequence()
686 PrecomputedText.ParagraphInfo[] paragraphInfo = null; in generate()688 if (source instanceof PrecomputedText) { in generate()689 PrecomputedText precomputed = (PrecomputedText) source; in generate()690 final @PrecomputedText.Params.CheckResultUsableResult int checkResult = in generate()694 case PrecomputedText.Params.UNUSABLE: in generate()696 case PrecomputedText.Params.NEED_RECOMPUTE: in generate()697 final PrecomputedText.Params newParams = in generate()698 new PrecomputedText.Params.Builder(paint) in generate()704 precomputed = PrecomputedText.create(precomputed, newParams); in generate()707 case PrecomputedText.Params.USABLE: in generate()[all …]
712 if (text instanceof PrecomputedText) { in contentMayProtrudeFromLineTopOrBottom()713 PrecomputedText precomputed = (PrecomputedText) text; in contentMayProtrudeFromLineTopOrBottom()
72 private PrecomputedText mComputed;205 if (text instanceof PrecomputedText) { in set()208 mComputed = (PrecomputedText) text; in set()
19 import android.text.PrecomputedText38 text?.let { PrecomputedText.create(it, textView.textMetricsParams) }
26 import android.text.PrecomputedText;45 private PrecomputedText mPrecomputedText = null;75 mPrecomputedText = PrecomputedText.create(message.getText(), getTextMetricsParams()); in setMessage()
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;615 if (text instanceof PrecomputedText) { in drawTextRun()616 final PrecomputedText pt = (PrecomputedText) text; in drawTextRun()
29 import android.text.PrecomputedText;553 if (text instanceof PrecomputedText) { in drawTextRun()554 final PrecomputedText pt = (PrecomputedText) text; in drawTextRun()
114 import android.text.PrecomputedText;798 private @Nullable PrecomputedText mPrecomputed;1965 mPrecomputed = (text instanceof PrecomputedText) ? (PrecomputedText) text : null; in setTextInternal()5119 public @NonNull PrecomputedText.Params getTextMetricsParams() { in getTextMetricsParams()5120 return new PrecomputedText.Params(new TextPaint(mTextPaint), in getTextMetricsParams()5132 public void setTextMetricsParams(@NonNull PrecomputedText.Params params) { in setTextMetricsParams()7070 PrecomputedText precomputed = in setText()7071 (text instanceof PrecomputedText) ? (PrecomputedText) text : null; in setText()7089 case PrecomputedText.Params.UNUSABLE: in setText()7096 case PrecomputedText.Params.NEED_RECOMPUTE: in setText()[all …]
7925 android.text.PrecomputedText$ParagraphInfo7926 android.text.PrecomputedText$Params$Builder7927 android.text.PrecomputedText$Params7928 android.text.PrecomputedText13981 [Landroid.text.PrecomputedText$ParagraphInfo;
14990 HSPLandroid/text/PrecomputedText$ParagraphInfo;-><init>(ILandroid/text/MeasuredParagraph;)V14992 HSPLandroid/text/PrecomputedText$Params;->getBreakStrategy()I14993 HSPLandroid/text/PrecomputedText$Params;->getHyphenationFrequency()I14994 HSPLandroid/text/PrecomputedText$Params;->getTextDirection()Landroid/text/TextDirectionHeuristic;14995 HSPLandroid/text/PrecomputedText$Params;->getTextPaint()Landroid/text/TextPaint;14996 …d/text/PrecomputedText;->createMeasuredParagraphs(Ljava/lang/CharSequence;Landroid/text/Precompute…30723 Landroid/text/PrecomputedText$ParagraphInfo;30724 Landroid/text/PrecomputedText$Params$Builder;30725 Landroid/text/PrecomputedText$Params;30726 Landroid/text/PrecomputedText;[all …]
7956 android.text.PrecomputedText$ParagraphInfo7957 android.text.PrecomputedText$Params$Builder7958 android.text.PrecomputedText$Params7959 android.text.PrecomputedText16976 [Landroid.text.PrecomputedText$ParagraphInfo;
15054 HSPLandroid/text/PrecomputedText$ParagraphInfo;-><init>(ILandroid/text/MeasuredParagraph;)V15056 HSPLandroid/text/PrecomputedText$Params;->getBreakStrategy()I15057 HSPLandroid/text/PrecomputedText$Params;->getHyphenationFrequency()I15058 HSPLandroid/text/PrecomputedText$Params;->getTextDirection()Landroid/text/TextDirectionHeuristic;15059 HSPLandroid/text/PrecomputedText$Params;->getTextPaint()Landroid/text/TextPaint;15060 …d/text/PrecomputedText;->createMeasuredParagraphs(Ljava/lang/CharSequence;Landroid/text/Precompute…40857 Landroid/text/PrecomputedText$ParagraphInfo;40858 Landroid/text/PrecomputedText$Params$Builder;40859 Landroid/text/PrecomputedText$Params;40860 Landroid/text/PrecomputedText;[all …]
56544 Landroid/text/PrecomputedText;-><init>(Ljava/lang/CharSequence;IILandroid/text/PrecomputedText$Para…56546 …d/text/PrecomputedText;->createMeasuredParagraphs(Ljava/lang/CharSequence;Landroid/text/Precompute…56547 Landroid/text/PrecomputedText;->findParaIndex(I)I56548 Landroid/text/PrecomputedText;->getEnd()I56551 Landroid/text/PrecomputedText;->getParagraphInfo()[Landroid/text/PrecomputedText$ParagraphInfo;56552 Landroid/text/PrecomputedText;->getStart()I56554 Landroid/text/PrecomputedText;->LINE_FEED:C56555 Landroid/text/PrecomputedText;->mEnd:I56556 Landroid/text/PrecomputedText;->mParagraphInfo:[Landroid/text/PrecomputedText$ParagraphInfo;56557 Landroid/text/PrecomputedText;->mParams:Landroid/text/PrecomputedText$Params;[all …]
47437 public class PrecomputedText implements android.text.Spannable {47439 …method public static android.text.PrecomputedText create(@NonNull CharSequence, @NonNull android.t…47445 method @NonNull public android.text.PrecomputedText.Params getParams();47458 public static final class PrecomputedText.Params {47466 public static class PrecomputedText.Params.Builder {47467 ctor public PrecomputedText.Params.Builder(@NonNull android.text.TextPaint);47468 ctor public PrecomputedText.Params.Builder(@NonNull android.text.PrecomputedText.Params);47469 method @NonNull public android.text.PrecomputedText.Params build();47470 method public android.text.PrecomputedText.Params.Builder setBreakStrategy(int);60295 method @NonNull public android.text.PrecomputedText.Params getTextMetricsParams();[all …]
AndroidManifest.xml META-INF/ META-INF/MANIFEST.MF NOTICES/ NOTICES/libcore ...