Home
last modified time | relevance | path

Searched refs:tp (Results 1 – 25 of 91) sorted by relevance

1234

/cts/tests/tests/text/src/android/text/style/cts/
DRelativeSizeSpanTest.java64 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 …]
DClickableSpanTest.java41 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 …]
DScaleXSpanTest.java55 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 …]
DLocaleSpanTest.java92 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 …]
DStyleSpanTest.java65 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 …]
DSubscriptSpanTest.java54 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()
DSuperscriptSpanTest.java53 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()
DTextAppearanceSpanTest.java108 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 …]
DAbsoluteSizeSpanTest.java73 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()
DTypefaceSpanTest.java71 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()
DStrikethroughSpanTest.java57 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()
DForegroundColorSpanTest.java62 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()
DUnderlineSpanTest.java55 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()
DMaskFilterSpanTest.java47 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()
DBackgroundColorSpanTest.java53 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()
DSuggestionSpanTest.java216 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()
DMetricAffectingSpanTest.java55 public void updateDrawState(TextPaint tp) { in updateDrawState() argument
DCharacterStyleTest.java79 public void updateDrawState(TextPaint tp) { in updateDrawState() argument
/cts/hostsidetests/theme/app/src/android/theme/app/modifiers/
DDatePickerModifier.java29 DatePicker tp = (DatePicker) view; in modifyViewAfterAdd() local
30 tp.updateDate(2011, 4, 20); in modifyViewAfterAdd()
/cts/tests/tests/graphics/src/android/graphics/fonts/
DFontTestUtil.java224 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/
DRVCVXCheckAnalyzer.java608 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/
DStaticLayoutLineBreakingTest.java190 public void updateDrawState(TextPaint tp) { /* empty */ } in getMetricAffectingSpan()
/cts/tests/tests/media/assets/hls_variant/344388/
D16.ts83 {WJ���`�� ��%D \�H�&�6LaIzGa�wL�(�o`��ֻtp�ի�
732 P�$��2tp.���`f�ұ��Pp��zU������&��追yqLq �mף�`mG����D�`�9�
D14.ts301 …��j=�� ��ߤ��C�J&��V���cq��03�X`Z̀���u*�)�)ˢ,���|�DG�n\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/
D13.ts150 …`�Cl�����=���J��,�JPCbq�S����a��T?�i‚��� h�L`;���h��<��\tp�������r��G�R��ݕ�…

1234