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.java54 TextPaint tp = new TextPaint(); in testUpdateMeasureState() local
55 tp.setTextSize(2.0f); in testUpdateMeasureState()
56 float oldSize = tp.getTextSize(); in testUpdateMeasureState()
57 relativeSizeSpan.updateMeasureState(tp); in testUpdateMeasureState()
58 assertEquals(2.0f * proportion, tp.getTextSize()); in testUpdateMeasureState()
61 tp.setTextSize(-3.0f); in testUpdateMeasureState()
62 oldSize = tp.getTextSize(); in testUpdateMeasureState()
63 relativeSizeSpan.updateMeasureState(tp); in testUpdateMeasureState()
64 assertEquals(oldSize * proportion, tp.getTextSize()); in testUpdateMeasureState()
78 TextPaint tp = new TextPaint(); in testUpdateDrawState() local
[all …]
DClickableSpanTest.java31 TextPaint tp = new TextPaint(); in testUpdateDrawState() local
32 tp.linkColor = Color.RED; in testUpdateDrawState()
33 tp.setUnderlineText(false); in testUpdateDrawState()
34 assertFalse(tp.isUnderlineText()); in testUpdateDrawState()
36 clickableSpan.updateDrawState(tp); in testUpdateDrawState()
37 assertEquals(Color.RED, tp.getColor()); in testUpdateDrawState()
38 assertTrue(tp.isUnderlineText()); in testUpdateDrawState()
40 tp.linkColor = Color.BLUE; in testUpdateDrawState()
41 clickableSpan.updateDrawState(tp); in testUpdateDrawState()
42 assertEquals(Color.BLUE, tp.getColor()); in testUpdateDrawState()
[all …]
DScaleXSpanTest.java46 TextPaint tp = new TextPaint(); in testUpdateDrawState() local
47 tp.setTextScaleX(2.0f); in testUpdateDrawState()
48 scaleXSpan.updateDrawState(tp); in testUpdateDrawState()
49 assertEquals(2.0f * proportion, tp.getTextScaleX()); in testUpdateDrawState()
51 tp.setTextScaleX(-3.0f); in testUpdateDrawState()
52 scaleXSpan.updateDrawState(tp); in testUpdateDrawState()
53 assertEquals(-3.0f * proportion, tp.getTextScaleX()); in testUpdateDrawState()
67 TextPaint tp = new TextPaint(); in testUpdateMeasureState() local
68 tp.setTextScaleX(2.0f); in testUpdateMeasureState()
69 scaleXSpan.updateMeasureState(tp); in testUpdateMeasureState()
[all …]
DStyleSpanTest.java54 TextPaint tp = new TextPaint(); in testUpdateMeasureState() local
56 tp.setTypeface(tf); in testUpdateMeasureState()
58 assertNotNull(tp.getTypeface()); in testUpdateMeasureState()
59 assertEquals(Typeface.NORMAL, tp.getTypeface().getStyle()); in testUpdateMeasureState()
61 styleSpan.updateMeasureState(tp); in testUpdateMeasureState()
63 assertNotNull(tp.getTypeface()); in testUpdateMeasureState()
64 assertEquals(Typeface.BOLD, tp.getTypeface().getStyle()); in testUpdateMeasureState()
77 TextPaint tp = new TextPaint(); in testUpdateDrawState() local
79 tp.setTypeface(tf); in testUpdateDrawState()
81 assertNotNull(tp.getTypeface()); in testUpdateDrawState()
[all …]
DLocaleSpanTest.java90 TextPaint tp = new TextPaint(); in testUpdateDrawState() local
92 tp.setTextLocales(localeList); in testUpdateDrawState()
93 assertEquals(localeList, tp.getTextLocales()); in testUpdateDrawState()
94 assertEquals(localeList.get(0), tp.getTextLocale()); in testUpdateDrawState()
96 localeSpan.updateDrawState(tp); in testUpdateDrawState()
97 assertEquals(localeListForSpan, tp.getTextLocales()); in testUpdateDrawState()
98 assertEquals(localeListForSpan.get(0), tp.getTextLocale()); in testUpdateDrawState()
106 TextPaint tp = new TextPaint(); in testUpdateMeasureState() local
108 tp.setTextLocales(localeList); in testUpdateMeasureState()
109 assertEquals(localeList, tp.getTextLocales()); in testUpdateMeasureState()
[all …]
DSubscriptSpanTest.java44 TextPaint tp = new TextPaint(); in testUpdateMeasureState() local
45 float ascent = tp.ascent(); in testUpdateMeasureState()
47 tp.baselineShift = baselineShift; in testUpdateMeasureState()
49 subscriptSpan.updateMeasureState(tp); in testUpdateMeasureState()
50 assertEquals(baselineShift - (int) (ascent / 2), tp.baselineShift); in testUpdateMeasureState()
64 TextPaint tp = new TextPaint(); in testUpdateDrawState() local
65 float ascent = tp.ascent(); in testUpdateDrawState()
67 tp.baselineShift = baselineShift; in testUpdateDrawState()
69 subscriptSpan.updateDrawState(tp); in testUpdateDrawState()
70 assertEquals(baselineShift - (int) (ascent / 2), tp.baselineShift); in testUpdateDrawState()
DSuperscriptSpanTest.java44 TextPaint tp = new TextPaint(); in testUpdateMeasureState() local
45 float ascent = tp.ascent(); in testUpdateMeasureState()
47 tp.baselineShift = baselineShift; in testUpdateMeasureState()
49 superscriptSpan.updateMeasureState(tp); in testUpdateMeasureState()
50 assertEquals(baselineShift + (int) (ascent / 2), tp.baselineShift); in testUpdateMeasureState()
64 TextPaint tp = new TextPaint(); in testUpdateDrawState() local
65 float ascent = tp.ascent(); in testUpdateDrawState()
67 tp.baselineShift = baselineShift; in testUpdateDrawState()
69 superscriptSpan.updateDrawState(tp); in testUpdateDrawState()
70 assertEquals(baselineShift + (int) (ascent / 2), tp.baselineShift); in testUpdateDrawState()
DTypefaceSpanTest.java51 TextPaint tp = new TextPaint(); in testUpdateMeasureState() local
52 assertNull(tp.getTypeface()); in testUpdateMeasureState()
54 typefaceSpan.updateMeasureState(tp); in testUpdateMeasureState()
56 assertNotNull(tp.getTypeface()); in testUpdateMeasureState()
58 assertEquals(Typeface.NORMAL, tp.getTypeface().getStyle()); in testUpdateMeasureState()
71 TextPaint tp = new TextPaint(); in testUpdateDrawState() local
72 assertNull(tp.getTypeface()); in testUpdateDrawState()
74 typefaceSpan.updateDrawState(tp); in testUpdateDrawState()
76 assertNotNull(tp.getTypeface()); in testUpdateDrawState()
78 assertEquals(Typeface.NORMAL, tp.getTypeface().getStyle()); in testUpdateDrawState()
DAbsoluteSizeSpanTest.java61 TextPaint tp = new TextPaint(); in testUpdateMeasureState() local
62 absoluteSizeSpan.updateMeasureState(tp); in testUpdateMeasureState()
63 assertEquals(1.0f, tp.getTextSize()); in testUpdateMeasureState()
66 absoluteSizeSpan.updateMeasureState(tp); in testUpdateMeasureState()
67 assertEquals(10.0f, tp.getTextSize()); in testUpdateMeasureState()
81 TextPaint tp = new TextPaint(); in testUpdateDrawState() local
82 absoluteSizeSpan.updateDrawState(tp); in testUpdateDrawState()
83 assertEquals(2.0f, tp.getTextSize()); in testUpdateDrawState()
87 absoluteSizeSpan.updateDrawState(tp); in testUpdateDrawState()
88 assertEquals(20.0f, tp.getTextSize()); in testUpdateDrawState()
DTextAppearanceSpanTest.java83 TextPaint tp = new TextPaint(); in testUpdateMeasureState() local
84 tp.setTextSize((float) 1); in testUpdateMeasureState()
85 assertEquals((float) 1, tp.getTextSize()); in testUpdateMeasureState()
87 textAppearanceSpan.updateMeasureState(tp); in testUpdateMeasureState()
89 assertEquals((float) 6, tp.getTextSize()); in testUpdateMeasureState()
159 TextPaint tp = new TextPaint(); in testUpdateDrawState() local
160 tp.setColor(0); in testUpdateDrawState()
161 tp.linkColor = 0; in testUpdateDrawState()
162 assertEquals(0, tp.getColor()); in testUpdateDrawState()
164 textAppearanceSpan.updateDrawState(tp); in testUpdateDrawState()
[all …]
DForegroundColorSpanTest.java52 TextPaint tp = new TextPaint(); in testUpdateDrawState() local
53 tp.setColor(0); in testUpdateDrawState()
54 assertEquals(0, tp.getColor()); in testUpdateDrawState()
55 foregroundColorSpan.updateDrawState(tp); in testUpdateDrawState()
56 assertEquals(Color.CYAN, tp.getColor()); in testUpdateDrawState()
59 foregroundColorSpan.updateDrawState(tp); in testUpdateDrawState()
60 assertEquals(Color.DKGRAY, tp.getColor()); in testUpdateDrawState()
DUnderlineSpanTest.java41 TextPaint tp = new TextPaint(); in testUpdateDrawState() local
42 tp.setUnderlineText(false); in testUpdateDrawState()
43 assertFalse(tp.isUnderlineText()); in testUpdateDrawState()
45 underlineSpan.updateDrawState(tp); in testUpdateDrawState()
46 assertTrue(tp.isUnderlineText()); in testUpdateDrawState()
DStrikethroughSpanTest.java43 TextPaint tp = new TextPaint(); in testUpdateDrawState() local
44 tp.setStrikeThruText(false); in testUpdateDrawState()
45 assertFalse(tp.isStrikeThruText()); in testUpdateDrawState()
47 strikethroughSpan.updateDrawState(tp); in testUpdateDrawState()
48 assertTrue(tp.isStrikeThruText()); in testUpdateDrawState()
DMaskFilterSpanTest.java37 TextPaint tp = new TextPaint(); in testUpdateDrawState() local
38 assertNull(tp.getMaskFilter()); in testUpdateDrawState()
40 maskFilterSpan.updateDrawState(tp); in testUpdateDrawState()
41 assertSame(mf, tp.getMaskFilter()); in testUpdateDrawState()
DRasterizerSpanTest.java48 TextPaint tp = new TextPaint(); in testUpdateDrawState() local
49 assertNull(tp.getRasterizer()); in testUpdateDrawState()
51 rasterizerSpan.updateDrawState(tp); in testUpdateDrawState()
52 assertSame(rasterizer, tp.getRasterizer()); in testUpdateDrawState()
DBackgroundColorSpanTest.java44 TextPaint tp = new TextPaint(); in testUpdateDrawState() local
45 backgroundColorSpan.updateDrawState(tp); in testUpdateDrawState()
46 assertEquals(Color.BLACK, tp.bgColor); in testUpdateDrawState()
49 backgroundColorSpan.updateDrawState(tp); in testUpdateDrawState()
50 assertEquals(Color.BLUE, tp.bgColor); in testUpdateDrawState()
DMetricAffectingSpanTest.java49 public void updateDrawState(TextPaint tp) { in updateDrawState() argument
DCharacterStyleTest.java70 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.java195 public void updateDrawState(TextPaint tp) { /* empty */ } in getMetricAffectingSpan()
/cts/tests/tests/widget/src/android/widget/cts/
DTextViewTest.java570 TextPaint tp = mTextView.getPaint(); in testGetPaint() local
571 assertNotNull(tp); in testGetPaint()
573 assertEquals(mTextView.getPaintFlags(), tp.getFlags()); in testGetPaint()

12