Home
last modified time | relevance | path

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

12

/cts/tests/tests/text/src/android/text/style/cts/
DRelativeSizeSpanTest.java63 TextPaint tp = new TextPaint(); in testUpdateMeasureState() local
64 tp.setTextSize(2.0f); in testUpdateMeasureState()
65 float oldSize = tp.getTextSize(); in testUpdateMeasureState()
66 relativeSizeSpan.updateMeasureState(tp); in testUpdateMeasureState()
67 assertEquals(2.0f * proportion, tp.getTextSize(), 0.0f); in testUpdateMeasureState()
70 tp.setTextSize(-3.0f); in testUpdateMeasureState()
71 oldSize = tp.getTextSize(); in testUpdateMeasureState()
72 relativeSizeSpan.updateMeasureState(tp); in testUpdateMeasureState()
73 assertEquals(oldSize * proportion, tp.getTextSize(), 0.0f); in testUpdateMeasureState()
88 TextPaint tp = new TextPaint(); in testUpdateDrawState() local
[all …]
DClickableSpanTest.java40 TextPaint tp = new TextPaint(); in testUpdateDrawState() local
41 tp.linkColor = Color.RED; in testUpdateDrawState()
42 tp.setUnderlineText(false); in testUpdateDrawState()
43 assertFalse(tp.isUnderlineText()); in testUpdateDrawState()
45 clickableSpan.updateDrawState(tp); in testUpdateDrawState()
46 assertEquals(Color.RED, tp.getColor()); in testUpdateDrawState()
47 assertTrue(tp.isUnderlineText()); in testUpdateDrawState()
49 tp.linkColor = Color.BLUE; in testUpdateDrawState()
50 clickableSpan.updateDrawState(tp); in testUpdateDrawState()
51 assertEquals(Color.BLUE, tp.getColor()); in testUpdateDrawState()
[all …]
DScaleXSpanTest.java54 TextPaint tp = new TextPaint(); in testUpdateDrawState() local
55 tp.setTextScaleX(2.0f); in testUpdateDrawState()
56 scaleXSpan.updateDrawState(tp); in testUpdateDrawState()
57 assertEquals(2.0f * proportion, tp.getTextScaleX(), 0.0f); in testUpdateDrawState()
59 tp.setTextScaleX(-3.0f); in testUpdateDrawState()
60 scaleXSpan.updateDrawState(tp); in testUpdateDrawState()
61 assertEquals(-3.0f * proportion, tp.getTextScaleX(), 0.0f); in testUpdateDrawState()
76 TextPaint tp = new TextPaint(); in testUpdateMeasureState() local
77 tp.setTextScaleX(2.0f); in testUpdateMeasureState()
78 scaleXSpan.updateMeasureState(tp); in testUpdateMeasureState()
[all …]
DLocaleSpanTest.java91 TextPaint tp = new TextPaint(); in testUpdateDrawState() local
93 tp.setTextLocales(localeList); in testUpdateDrawState()
94 assertEquals(localeList, tp.getTextLocales()); in testUpdateDrawState()
95 assertEquals(localeList.get(0), tp.getTextLocale()); in testUpdateDrawState()
97 localeSpan.updateDrawState(tp); in testUpdateDrawState()
98 assertEquals(localeListForSpan, tp.getTextLocales()); in testUpdateDrawState()
99 assertEquals(localeListForSpan.get(0), tp.getTextLocale()); in testUpdateDrawState()
107 TextPaint tp = new TextPaint(); in testUpdateMeasureState() local
109 tp.setTextLocales(localeList); in testUpdateMeasureState()
110 assertEquals(localeList, tp.getTextLocales()); in testUpdateMeasureState()
[all …]
DStyleSpanTest.java64 TextPaint tp = new TextPaint(); in testUpdateMeasureState() local
66 tp.setTypeface(tf); in testUpdateMeasureState()
68 assertNotNull(tp.getTypeface()); in testUpdateMeasureState()
69 assertEquals(Typeface.NORMAL, tp.getTypeface().getStyle()); in testUpdateMeasureState()
71 styleSpan.updateMeasureState(tp); in testUpdateMeasureState()
73 assertNotNull(tp.getTypeface()); in testUpdateMeasureState()
74 assertEquals(Typeface.BOLD, tp.getTypeface().getStyle()); in testUpdateMeasureState()
88 TextPaint tp = new TextPaint(); in testUpdateDrawState() local
90 tp.setTypeface(tf); in testUpdateDrawState()
92 assertNotNull(tp.getTypeface()); in testUpdateDrawState()
[all …]
DSubscriptSpanTest.java53 TextPaint tp = new TextPaint(); in testUpdateMeasureState() local
54 float ascent = tp.ascent(); in testUpdateMeasureState()
56 tp.baselineShift = baselineShift; in testUpdateMeasureState()
58 subscriptSpan.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 subscriptSpan.updateDrawState(tp); in testUpdateDrawState()
80 assertEquals(baselineShift - (int) (ascent / 2), tp.baselineShift); in testUpdateDrawState()
DSuperscriptSpanTest.java52 TextPaint tp = new TextPaint(); in testUpdateMeasureState() local
53 float ascent = tp.ascent(); in testUpdateMeasureState()
55 tp.baselineShift = baselineShift; in testUpdateMeasureState()
57 superscriptSpan.updateMeasureState(tp); in testUpdateMeasureState()
58 assertEquals(baselineShift + (int) (ascent / 2), tp.baselineShift); in testUpdateMeasureState()
73 TextPaint tp = new TextPaint(); in testUpdateDrawState() local
74 float ascent = tp.ascent(); in testUpdateDrawState()
76 tp.baselineShift = baselineShift; in testUpdateDrawState()
78 superscriptSpan.updateDrawState(tp); in testUpdateDrawState()
79 assertEquals(baselineShift + (int) (ascent / 2), tp.baselineShift); in testUpdateDrawState()
DTypefaceSpanTest.java62 TextPaint tp = new TextPaint(); in testUpdateMeasureState() local
63 assertNull(tp.getTypeface()); in testUpdateMeasureState()
65 typefaceSpan.updateMeasureState(tp); in testUpdateMeasureState()
67 assertNotNull(tp.getTypeface()); in testUpdateMeasureState()
69 assertEquals(Typeface.NORMAL, tp.getTypeface().getStyle()); in testUpdateMeasureState()
83 TextPaint tp = new TextPaint(); in testUpdateDrawState() local
84 assertNull(tp.getTypeface()); in testUpdateDrawState()
86 typefaceSpan.updateDrawState(tp); in testUpdateDrawState()
88 assertNotNull(tp.getTypeface()); in testUpdateDrawState()
90 assertEquals(Typeface.NORMAL, tp.getTypeface().getStyle()); in testUpdateDrawState()
DAbsoluteSizeSpanTest.java72 TextPaint tp = new TextPaint(); in testUpdateMeasureState() local
73 absoluteSizeSpan.updateMeasureState(tp); in testUpdateMeasureState()
74 assertEquals(1.0f, tp.getTextSize(), 0.0f); in testUpdateMeasureState()
77 absoluteSizeSpan.updateMeasureState(tp); in testUpdateMeasureState()
78 assertEquals(10.0f, tp.getTextSize(), 0.0f); in testUpdateMeasureState()
94 TextPaint tp = new TextPaint(); in testUpdateDrawState() local
95 absoluteSizeSpan.updateDrawState(tp); in testUpdateDrawState()
96 assertEquals(2.0f, tp.getTextSize(), 0.0f); in testUpdateDrawState()
100 absoluteSizeSpan.updateDrawState(tp); in testUpdateDrawState()
101 assertEquals(20.0f, tp.getTextSize(), 0.0f); in testUpdateDrawState()
DTextAppearanceSpanTest.java98 TextPaint tp = new TextPaint(); in testUpdateMeasureState() local
99 tp.setTextSize(1.0f); in testUpdateMeasureState()
100 assertEquals(1.0f, tp.getTextSize(), 0.0f); in testUpdateMeasureState()
102 textAppearanceSpan.updateMeasureState(tp); in testUpdateMeasureState()
104 assertEquals(6.0f, tp.getTextSize(), 0.0f); in testUpdateMeasureState()
162 TextPaint tp = new TextPaint(); in testUpdateDrawState() local
163 tp.setColor(0); in testUpdateDrawState()
164 tp.linkColor = 0; in testUpdateDrawState()
165 assertEquals(0, tp.getColor()); in testUpdateDrawState()
167 textAppearanceSpan.updateDrawState(tp); in testUpdateDrawState()
[all …]
DForegroundColorSpanTest.java61 TextPaint tp = new TextPaint(); in testUpdateDrawState() local
62 tp.setColor(0); in testUpdateDrawState()
63 assertEquals(0, tp.getColor()); in testUpdateDrawState()
64 foregroundColorSpan.updateDrawState(tp); in testUpdateDrawState()
65 assertEquals(Color.CYAN, tp.getColor()); in testUpdateDrawState()
68 foregroundColorSpan.updateDrawState(tp); in testUpdateDrawState()
69 assertEquals(Color.DKGRAY, tp.getColor()); in testUpdateDrawState()
DUnderlineSpanTest.java50 TextPaint tp = new TextPaint(); in testUpdateDrawState() local
51 tp.setUnderlineText(false); in testUpdateDrawState()
52 assertFalse(tp.isUnderlineText()); in testUpdateDrawState()
54 underlineSpan.updateDrawState(tp); in testUpdateDrawState()
55 assertTrue(tp.isUnderlineText()); in testUpdateDrawState()
DStrikethroughSpanTest.java52 TextPaint tp = new TextPaint(); in testUpdateDrawState() local
53 tp.setStrikeThruText(false); in testUpdateDrawState()
54 assertFalse(tp.isStrikeThruText()); in testUpdateDrawState()
56 strikethroughSpan.updateDrawState(tp); in testUpdateDrawState()
57 assertTrue(tp.isStrikeThruText()); in testUpdateDrawState()
DMaskFilterSpanTest.java46 TextPaint tp = new TextPaint(); in testUpdateDrawState() local
47 assertNull(tp.getMaskFilter()); in testUpdateDrawState()
49 maskFilterSpan.updateDrawState(tp); in testUpdateDrawState()
50 assertSame(mf, tp.getMaskFilter()); in testUpdateDrawState()
DBackgroundColorSpanTest.java52 TextPaint tp = new TextPaint(); in testUpdateDrawState() local
53 backgroundColorSpan.updateDrawState(tp); in testUpdateDrawState()
54 assertEquals(Color.BLACK, tp.bgColor); in testUpdateDrawState()
57 backgroundColorSpan.updateDrawState(tp); in testUpdateDrawState()
58 assertEquals(Color.BLUE, tp.bgColor); in testUpdateDrawState()
DMetricAffectingSpanTest.java54 public void updateDrawState(TextPaint tp) { in updateDrawState() argument
DCharacterStyleTest.java78 public void updateDrawState(TextPaint tp) { in updateDrawState() argument
/cts/tools/dasm/src/java_cup/
Dsymbol.java25 public symbol(String nm, String tp) in symbol() argument
31 if (tp == null) tp = "java_cup.runtime.token"; in symbol()
34 _stack_type = tp; in symbol()
Dterminal.java25 public terminal(String nm, String tp) in terminal() argument
28 super(nm, tp); in terminal()
Dnon_terminal.java25 public non_terminal(String nm, String tp) in non_terminal() argument
28 super(nm, tp); in non_terminal()
/cts/hostsidetests/theme/app/src/android/theme/app/modifiers/
DDatePickerModifier.java30 DatePicker tp = (DatePicker) view; in modifyView() local
31 tp.updateDate(2011, 4, 20); in modifyView()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/
DRVCVXCheckAnalyzer.java590 double tp = srec.get(0).time; in calcSensorPeriodStat() local
596 dt = srec.get(i).time - tp; in calcSensorPeriodStat()
599 tp += dt; in calcSensorPeriodStat()
/cts/tests/tests/text/src/android/text/cts/
DStaticLayoutLineBreakingTest.java203 public void updateDrawState(TextPaint tp) { /* empty */ } in getMetricAffectingSpan()
/cts/tests/tests/widget/src/android/widget/cts/
DTextViewTest.java789 TextPaint tp = mTextView.getPaint(); in testGetPaint() local
790 assertNotNull(tp); in testGetPaint()
792 assertEquals(mTextView.getPaintFlags(), tp.getFlags()); in testGetPaint()
/cts/tests/tests/media/res/raw/
Dsegment000001.ts371 �<5�ZV�4��� �|tp-@��E!]����s�~(��0�=_��W��!P5��A����k0|dzJ��p@��{4�O��M � lG��W�m��P�…

12