/cts/tests/tests/text/src/android/text/style/cts/ |
D | RelativeSizeSpanTest.java | 64 TextPaint tp = new TextPaint(); in testUpdateMeasureState() local 65 tp.setTextSize(2.0f); in testUpdateMeasureState() 66 float oldSize = tp.getTextSize(); in testUpdateMeasureState() 67 relativeSizeSpan.updateMeasureState(tp); in testUpdateMeasureState() 68 assertEquals(2.0f * proportion, tp.getTextSize(), 0.0f); in testUpdateMeasureState() 71 tp.setTextSize(-3.0f); in testUpdateMeasureState() 72 oldSize = tp.getTextSize(); in testUpdateMeasureState() 73 relativeSizeSpan.updateMeasureState(tp); in testUpdateMeasureState() 74 assertEquals(oldSize * proportion, tp.getTextSize(), 0.0f); in testUpdateMeasureState() 89 TextPaint tp = new TextPaint(); in testUpdateDrawState() local [all …]
|
D | ClickableSpanTest.java | 41 TextPaint tp = new TextPaint(); in testUpdateDrawState() local 42 tp.linkColor = Color.RED; in testUpdateDrawState() 43 tp.setUnderlineText(false); in testUpdateDrawState() 44 assertFalse(tp.isUnderlineText()); in testUpdateDrawState() 46 clickableSpan.updateDrawState(tp); in testUpdateDrawState() 47 assertEquals(Color.RED, tp.getColor()); in testUpdateDrawState() 48 assertTrue(tp.isUnderlineText()); in testUpdateDrawState() 50 tp.linkColor = Color.BLUE; in testUpdateDrawState() 51 clickableSpan.updateDrawState(tp); in testUpdateDrawState() 52 assertEquals(Color.BLUE, tp.getColor()); in testUpdateDrawState() [all …]
|
D | ScaleXSpanTest.java | 55 TextPaint tp = new TextPaint(); in testUpdateDrawState() local 56 tp.setTextScaleX(2.0f); in testUpdateDrawState() 57 scaleXSpan.updateDrawState(tp); in testUpdateDrawState() 58 assertEquals(2.0f * proportion, tp.getTextScaleX(), 0.0f); in testUpdateDrawState() 60 tp.setTextScaleX(-3.0f); in testUpdateDrawState() 61 scaleXSpan.updateDrawState(tp); in testUpdateDrawState() 62 assertEquals(-3.0f * proportion, tp.getTextScaleX(), 0.0f); in testUpdateDrawState() 77 TextPaint tp = new TextPaint(); in testUpdateMeasureState() local 78 tp.setTextScaleX(2.0f); in testUpdateMeasureState() 79 scaleXSpan.updateMeasureState(tp); in testUpdateMeasureState() [all …]
|
D | LocaleSpanTest.java | 92 TextPaint tp = new TextPaint(); in testUpdateDrawState() local 94 tp.setTextLocales(localeList); in testUpdateDrawState() 95 assertEquals(localeList, tp.getTextLocales()); in testUpdateDrawState() 96 assertEquals(localeList.get(0), tp.getTextLocale()); in testUpdateDrawState() 98 localeSpan.updateDrawState(tp); in testUpdateDrawState() 99 assertEquals(localeListForSpan, tp.getTextLocales()); in testUpdateDrawState() 100 assertEquals(localeListForSpan.get(0), tp.getTextLocale()); in testUpdateDrawState() 108 TextPaint tp = new TextPaint(); in testUpdateMeasureState() local 110 tp.setTextLocales(localeList); in testUpdateMeasureState() 111 assertEquals(localeList, tp.getTextLocales()); in testUpdateMeasureState() [all …]
|
D | StyleSpanTest.java | 65 TextPaint tp = new TextPaint(); in testUpdateMeasureState() local 67 tp.setTypeface(tf); in testUpdateMeasureState() 69 assertNotNull(tp.getTypeface()); in testUpdateMeasureState() 70 assertEquals(Typeface.NORMAL, tp.getTypeface().getStyle()); in testUpdateMeasureState() 72 styleSpan.updateMeasureState(tp); in testUpdateMeasureState() 74 assertNotNull(tp.getTypeface()); in testUpdateMeasureState() 75 assertEquals(Typeface.BOLD, tp.getTypeface().getStyle()); in testUpdateMeasureState() 89 TextPaint tp = new TextPaint(); in testUpdateDrawState() local 91 tp.setTypeface(tf); in testUpdateDrawState() 93 assertNotNull(tp.getTypeface()); in testUpdateDrawState() [all …]
|
D | SubscriptSpanTest.java | 54 TextPaint tp = new TextPaint(); in testUpdateMeasureState() local 55 float ascent = tp.ascent(); in testUpdateMeasureState() 57 tp.baselineShift = baselineShift; in testUpdateMeasureState() 59 subscriptSpan.updateMeasureState(tp); in testUpdateMeasureState() 60 assertEquals(baselineShift - (int) (ascent / 2), tp.baselineShift); in testUpdateMeasureState() 75 TextPaint tp = new TextPaint(); in testUpdateDrawState() local 76 float ascent = tp.ascent(); in testUpdateDrawState() 78 tp.baselineShift = baselineShift; in testUpdateDrawState() 80 subscriptSpan.updateDrawState(tp); in testUpdateDrawState() 81 assertEquals(baselineShift - (int) (ascent / 2), tp.baselineShift); in testUpdateDrawState()
|
D | SuperscriptSpanTest.java | 53 TextPaint tp = new TextPaint(); in testUpdateMeasureState() local 54 float ascent = tp.ascent(); in testUpdateMeasureState() 56 tp.baselineShift = baselineShift; in testUpdateMeasureState() 58 superscriptSpan.updateMeasureState(tp); in testUpdateMeasureState() 59 assertEquals(baselineShift + (int) (ascent / 2), tp.baselineShift); in testUpdateMeasureState() 74 TextPaint tp = new TextPaint(); in testUpdateDrawState() local 75 float ascent = tp.ascent(); in testUpdateDrawState() 77 tp.baselineShift = baselineShift; in testUpdateDrawState() 79 superscriptSpan.updateDrawState(tp); in testUpdateDrawState() 80 assertEquals(baselineShift + (int) (ascent / 2), tp.baselineShift); in testUpdateDrawState()
|
D | TextAppearanceSpanTest.java | 108 TextPaint tp = new TextPaint(); in testUpdateMeasureState() local 109 tp.setTextSize(1.0f); in testUpdateMeasureState() 110 assertEquals(1.0f, tp.getTextSize(), 0.0f); in testUpdateMeasureState() 112 textAppearanceSpan.updateMeasureState(tp); in testUpdateMeasureState() 114 assertEquals(6.0f, tp.getTextSize(), 0.0f); in testUpdateMeasureState() 268 TextPaint tp = new TextPaint(); in testUpdateDrawState() local 269 tp.setColor(0); in testUpdateDrawState() 270 tp.linkColor = 0; in testUpdateDrawState() 271 assertEquals(0, tp.getColor()); in testUpdateDrawState() 273 textAppearanceSpan.updateDrawState(tp); in testUpdateDrawState() [all …]
|
D | AbsoluteSizeSpanTest.java | 73 TextPaint tp = new TextPaint(); in testUpdateMeasureState() local 74 absoluteSizeSpan.updateMeasureState(tp); in testUpdateMeasureState() 75 assertEquals(1.0f, tp.getTextSize(), 0.0f); in testUpdateMeasureState() 78 absoluteSizeSpan.updateMeasureState(tp); in testUpdateMeasureState() 79 assertEquals(10.0f, tp.getTextSize(), 0.0f); in testUpdateMeasureState() 95 TextPaint tp = new TextPaint(); in testUpdateDrawState() local 96 absoluteSizeSpan.updateDrawState(tp); in testUpdateDrawState() 97 assertEquals(2.0f, tp.getTextSize(), 0.0f); in testUpdateDrawState() 101 absoluteSizeSpan.updateDrawState(tp); in testUpdateDrawState() 102 assertEquals(20.0f, tp.getTextSize(), 0.0f); in testUpdateDrawState()
|
D | TypefaceSpanTest.java | 71 TextPaint tp = new TextPaint(); in testUpdateMeasureState() local 72 assertNull(tp.getTypeface()); in testUpdateMeasureState() 74 typefaceSpan.updateMeasureState(tp); in testUpdateMeasureState() 76 assertNotNull(tp.getTypeface()); in testUpdateMeasureState() 78 assertEquals(Typeface.NORMAL, tp.getTypeface().getStyle()); in testUpdateMeasureState() 92 TextPaint tp = new TextPaint(); in testUpdateDrawState() local 93 assertNull(tp.getTypeface()); in testUpdateDrawState() 95 typefaceSpan.updateDrawState(tp); in testUpdateDrawState() 97 assertNotNull(tp.getTypeface()); in testUpdateDrawState() 99 assertEquals(Typeface.NORMAL, tp.getTypeface().getStyle()); in testUpdateDrawState()
|
D | StrikethroughSpanTest.java | 57 TextPaint tp = new TextPaint(); in testUpdateDrawState() local 58 tp.setStrikeThruText(false); in testUpdateDrawState() 59 assertFalse(tp.isStrikeThruText()); in testUpdateDrawState() 61 strikethroughSpan.updateDrawState(tp); in testUpdateDrawState() 62 assertTrue(tp.isStrikeThruText()); in testUpdateDrawState() 99 final TextPaint tp = new TextPaint(); in textWidth() local 100 tp.setTextSize(100.0f); // Large enough so that the difference in kerning is visible. in textWidth() 103 text, 0, text.length(), tp, largeWidth).build(); in textWidth()
|
D | ForegroundColorSpanTest.java | 62 TextPaint tp = new TextPaint(); in testUpdateDrawState() local 63 tp.setColor(0); in testUpdateDrawState() 64 assertEquals(0, tp.getColor()); in testUpdateDrawState() 65 foregroundColorSpan.updateDrawState(tp); in testUpdateDrawState() 66 assertEquals(Color.CYAN, tp.getColor()); in testUpdateDrawState() 69 foregroundColorSpan.updateDrawState(tp); in testUpdateDrawState() 70 assertEquals(Color.DKGRAY, tp.getColor()); in testUpdateDrawState()
|
D | UnderlineSpanTest.java | 55 TextPaint tp = new TextPaint(); in testUpdateDrawState() local 56 tp.setUnderlineText(false); in testUpdateDrawState() 57 assertFalse(tp.isUnderlineText()); in testUpdateDrawState() 59 underlineSpan.updateDrawState(tp); in testUpdateDrawState() 60 assertTrue(tp.isUnderlineText()); in testUpdateDrawState() 96 final TextPaint tp = new TextPaint(); in textWidth() local 97 tp.setTextSize(100.0f); // Large enough so that the difference in kerning is visible. in textWidth() 100 text, 0, text.length(), tp, largeWidth).build(); in textWidth()
|
D | MaskFilterSpanTest.java | 47 TextPaint tp = new TextPaint(); in testUpdateDrawState() local 48 assertNull(tp.getMaskFilter()); in testUpdateDrawState() 50 maskFilterSpan.updateDrawState(tp); in testUpdateDrawState() 51 assertSame(mf, tp.getMaskFilter()); in testUpdateDrawState()
|
D | BackgroundColorSpanTest.java | 53 TextPaint tp = new TextPaint(); in testUpdateDrawState() local 54 backgroundColorSpan.updateDrawState(tp); in testUpdateDrawState() 55 assertEquals(Color.BLACK, tp.bgColor); in testUpdateDrawState() 58 backgroundColorSpan.updateDrawState(tp); in testUpdateDrawState() 59 assertEquals(Color.BLUE, tp.bgColor); in testUpdateDrawState()
|
D | SuggestionSpanTest.java | 216 final TextPaint tp = new TextPaint(); in textWidth() local 217 tp.setTextSize(100.0f); // Large enough so that the difference in kerning is visible. in textWidth() 220 text, 0, text.length(), tp, largeWidth).build(); in textWidth()
|
D | MetricAffectingSpanTest.java | 55 public void updateDrawState(TextPaint tp) { in updateDrawState() argument
|
D | CharacterStyleTest.java | 79 public void updateDrawState(TextPaint tp) { in updateDrawState() argument
|
/cts/hostsidetests/theme/app/src/android/theme/app/modifiers/ |
D | DatePickerModifier.java | 29 DatePicker tp = (DatePicker) view; in modifyViewAfterAdd() local 30 tp.updateDate(2011, 4, 20); in modifyViewAfterAdd()
|
/cts/tests/tests/graphics/src/android/graphics/fonts/ |
D | FontTestUtil.java | 224 final TextPaint tp = new TextPaint(); in measureChar() local 225 tp.setTextSize(100); in measureChar() 226 tp.setTypeface(typeface); in measureChar() 227 tp.setTextLocale(Locale.US); in measureChar() 228 return tp.measureText(new char[] { c }, 0, 1); in measureChar()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/ |
D | RVCVXCheckAnalyzer.java | 608 double tp = srec.get(0).time; in calcSensorPeriodStat() local 614 dt = srec.get(i).time - tp; in calcSensorPeriodStat() 617 tp += dt; in calcSensorPeriodStat()
|
/cts/tests/tests/text/src/android/text/cts/ |
D | StaticLayoutLineBreakingTest.java | 190 public void updateDrawState(TextPaint tp) { /* empty */ } in getMetricAffectingSpan()
|
/cts/tests/tests/media/assets/hls_variant/344388/ |
D | 16.ts | 83 {WJ��`�� ��%D \�H�&�6LaIzGa�wL�(�o`��ֻtp�ի� 732 P�$��2tp.���`f�ұ��Pp��zU������&��追yqLq�mף�`mG���D�`�9�
|
D | 14.ts | 301 …��j=����ߤ��C�J&��V���cq��03�X`Z̀���u*�)�)ˢ,���|�DGn\02���P�r_?��tpݔ�ϐ�nԾu��V;| 1065 �+�KA7�w����WyL�7�Ʒ��k�*ڋskU��� e���+G���yX�L��tp�>L��`��3c��=עS_w*��������|��1�{V�)…
|
/cts/tests/tests/media/assets/hls_variant/165340/ |
D | 13.ts | 150 …`�Cl����=���J��,�JPCbq�S����a��T?�i��� h�L`;���h��<��\tp�������r�GR��ݕ�…
|