/frameworks/base/core/tests/coretests/src/android/text/ |
D | TextLineJustificationTest.kt | 35 private val PAINT = TextPaint().apply { in <lambda>() constant 53 val tl = makeTextLine(line, PAINT) in justifyTest_WithoutJustify() 65 val clusterCount = getClusterCount(line, PAINT) in justifyTest_IntrCharacter_Latin() 66 val originalWidth = Layout.getDesiredWidth(line, PAINT) in justifyTest_IntrCharacter_Latin() 69 val tl = makeTextLine(line, PAINT) in justifyTest_IntrCharacter_Latin() 82 val clusterCount = getClusterCount(line, PAINT) in justifyTest_IntrCharacter_Japanese() 83 val originalWidth = Layout.getDesiredWidth(line, PAINT) in justifyTest_IntrCharacter_Japanese() 86 val tl = makeTextLine(line, PAINT) in justifyTest_IntrCharacter_Japanese() 99 val originalWidth = Layout.getDesiredWidth(line, PAINT) in justifyTest_IntrWord_Latin() 102 val tl = makeTextLine(line, PAINT) in justifyTest_IntrWord_Latin() [all …]
|
D | MeasuredParagraphTest.java | 41 private static final TextPaint PAINT = new TextPaint(); field in MeasuredParagraphTest 55 PAINT.setTypeface(Typeface.createFromAsset(context.getAssets(), in Typeface.createFromAsset() 57 PAINT.setTextSize(1.0f); // Make 1em == 1px. 99 mt = MeasuredParagraph.buildForMeasurement(PAINT, "XXX", 0, 3, LTR, null); in buildForMeasurement() 116 MeasuredParagraph.buildForMeasurement(PAINT, "_VVV_", 1, 4, RTL, mt); in buildForMeasurement() 139 PAINT, null /* line break config */, "XXX", 0, 3, LTR, in buildForStaticLayout() 155 PAINT, null /* line break config */, "_VVV_", 1, 4, RTL, in buildForStaticLayout() 174 MeasuredParagraph.buildForMeasurement(PAINT, "X…", 0, 2, RTL, null); in testFor70146381()
|
/frameworks/base/apct-tests/perftests/core/src/android/text/ |
D | StaticLayoutPerfTest.java | 43 private static TextPaint PAINT = new TextPaint(); field in StaticLayoutPerfTest 44 private static final int TEXT_WIDTH = WORDS_IN_LINE * WORD_LENGTH * (int) PAINT.getTextSize(); 101 StaticLayout.Builder.obtain(text, 0, text.length(), PAINT, TEXT_WIDTH) in testCreate_FixedText_NoStyle_Greedy_NoHyphenation() 116 StaticLayout.Builder.obtain(text, 0, text.length(), PAINT, TEXT_WIDTH) in testCreate_RandomText_NoStyled_Greedy_NoHyphenation() 131 StaticLayout.Builder.obtain(text, 0, text.length(), PAINT, TEXT_WIDTH) in testCreate_RandomText_NoStyled_Greedy_Hyphenation() 146 StaticLayout.Builder.obtain(text, 0, text.length(), PAINT, TEXT_WIDTH) in testCreate_RandomText_NoStyled_Balanced_NoHyphenation() 161 StaticLayout.Builder.obtain(text, 0, text.length(), PAINT, TEXT_WIDTH) in testCreate_RandomText_NoStyled_Balanced_Hyphenation() 176 StaticLayout.Builder.obtain(text, 0, text.length(), PAINT, TEXT_WIDTH) in testCreate_RandomText_NoStyled_Balanced_Hyphenation_Fast() 191 StaticLayout.Builder.obtain(text, 0, text.length(), PAINT, TEXT_WIDTH) in testCreate_RandomText_Styled_Greedy_NoHyphenation() 204 mTextUtil.nextRandomParagraph(WORD_LENGTH, NO_STYLE_TEXT), PAINT, in testCreate_PrecomputedText_NoStyled_Greedy_NoHyphenation() [all …]
|
D | PrecomputedTextPerfTest.java | 38 private static TextPaint PAINT = new TextPaint(); field in PrecomputedTextPerfTest 39 private static final int TEXT_WIDTH = WORDS_IN_LINE * WORD_LENGTH * (int) PAINT.getTextSize(); 56 final PrecomputedText.Params param = new PrecomputedText.Params.Builder(PAINT) in testCreate_NoStyled_Hyphenation() 73 final PrecomputedText.Params param = new PrecomputedText.Params.Builder(PAINT) in testCreate_NoStyled_NoHyphenation() 90 final PrecomputedText.Params param = new PrecomputedText.Params.Builder(PAINT) 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() 175 final PrecomputedText.Params param = new PrecomputedText.Params.Builder(PAINT) in testCreate_Styled_NoHyphenation_WidthOnly()
|
D | StaticLayoutGetOffsetForHorizontalPerfTest.java | 38 private static TextPaint PAINT = new TextPaint(); field in StaticLayoutGetOffsetForHorizontalPerfTest 40 PAINT.setTextSize(16.0f); 42 private static final int TEXT_WIDTH = WORDS_IN_LINE * WORD_LENGTH * (int) PAINT.getTextSize(); 64 StaticLayout.Builder.obtain(text, 0, text.length(), PAINT, TEXT_WIDTH).build(); in testGetOffsetForHorizontal_LTR() 79 StaticLayout.Builder.obtain(text, 0, text.length(), PAINT, TEXT_WIDTH).build(); in testGetOffsetForHorizontal_RTL() 94 StaticLayout.Builder.obtain(text, 0, text.length(), PAINT, TEXT_WIDTH).build(); in testGetOffsetForHorizontal_BiDi()
|
D | VariableFontPerfTest.java | 41 private static final TextPaint PAINT = new TextPaint(); field in VariableFontPerfTest 59 final Paint paint = new Paint(PAINT); in testDraw_SetVariationOnce() 80 final Paint paint = new Paint(PAINT); in testDraw_SetVariationEachDraw() 101 final Paint paint = new Paint(PAINT); in testDraw_SetDifferentVariationEachDraw() 122 final Paint paint = new Paint(PAINT); in testSetFontVariationSettings()
|
D | StaticLayoutMultithreadPerfTest.java | 40 private static TextPaint PAINT = new TextPaint(); field in StaticLayoutMultithreadPerfTest 41 private static final int TEXT_WIDTH = WORDS_IN_LINE * WORD_LENGTH * (int) PAINT.getTextSize(); 70 StaticLayout.Builder.obtain(text, 0, text.length(), PAINT, TEXT_WIDTH) in startBackgroundThread() 111 StaticLayout.Builder.obtain(text, 0, text.length(), PAINT, TEXT_WIDTH) in runRandomTest()
|
D | CanvasDrawTextTest.java | 38 private static final TextPaint PAINT = new TextPaint(); field in CanvasDrawTextTest 64 canvas.drawText(text, start, start + 100, 0, 0, PAINT); in drawText_LongText_SmallWindow()
|
D | TextViewCursorAnchorInfoPerfTest.java | 55 private static final TextPaint PAINT = new TextPaint(); field in TextViewCursorAnchorInfoPerfTest 57 private static final int TEXT_WIDTH = WORDS_IN_LINE * WORD_LENGTH * (int) PAINT.getTextSize();
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/animation/ |
D | TextInterpolatorTest.kt | 52 internal val PAINT = TextPaint().apply { in <lambda>() constant 57 private val START_PAINT = TextPaint(PAINT).apply { in <lambda>() 61 private val END_PAINT = TextPaint(PAINT).apply { in <lambda>() 82 typefaceCache = TypefaceVariantCacheImpl(PAINT.typeface) in setup() 87 val layout = makeLayout(TEXT, PAINT) in testStartState() 106 val layout = makeLayout(TEXT, PAINT) in testEndState() 124 val layout = makeLayout(TEXT, PAINT) in testMiddleState() 146 val layout = makeLayout(TEXT, PAINT) in testRebase() 168 val layout = makeLayout(BIDI_TEXT, PAINT, TextDirectionHeuristics.LTR) in testBidi_LTR() 188 val layout = makeLayout(BIDI_TEXT, PAINT, TextDirectionHeuristics.RTL) in testBidi_RTL() [all …]
|
D | TextAnimatorTest.kt | 52 val layout = makeLayout("Hello, World", PAINT) in testAnimationStarted() 82 val layout = makeLayout("Hello, World", PAINT) in testAnimationNotStarted() 109 val layout = makeLayout("Hello, World", PAINT) in testAnimationEnded() 140 val layout = makeLayout("Hello, World", PAINT) in testCacheTypeface()
|
/frameworks/base/apct-tests/perftests/core/src/android/widget/ |
D | TextViewPrecomputedTextPerfTest.java | 51 private static TextPaint PAINT = new TextPaint(); field in TextViewPrecomputedTextPerfTest 52 private static final int TEXT_WIDTH = WORDS_IN_LINE * WORD_LENGTH * (int) PAINT.getTextSize(); 129 final PrecomputedText.Params params = new PrecomputedText.Params.Builder(PAINT) in testNewLayout_PrecomputedText() 151 final PrecomputedText.Params params = new PrecomputedText.Params.Builder(PAINT) 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() 422 final PrecomputedText.Params params = new PrecomputedText.Params.Builder(PAINT) in testOnDraw_PrecomputedText_Selectable()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/row/ |
D | TextPrecomputerTest.kt | 71 textView.textMetricsParams = PrecomputedText.Params.Builder(PAINT).build() in precomputeRunnable_differentPrecomputedTextConfig_notSetPrecomputedText() 92 private val PAINT = TextPaint() constant
|
/frameworks/base/core/java/com/android/internal/widget/remotecompose/core/ |
D | PaintOperation.java | 26 if (context.getMode() == RemoteContext.ContextMode.PAINT in apply()
|
D | RemoteContext.java | 83 UNSET, DATA, PAINT enumConstant
|
D | CoreDocument.java | 509 context.mMode = RemoteContext.ContextMode.PAINT; in paint()
|