/cts/tests/tests/text/src/android/text/style/cts/ |
D | RelativeSizeSpanTest.java | 54 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 …]
|
D | ClickableSpanTest.java | 31 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 …]
|
D | ScaleXSpanTest.java | 46 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 …]
|
D | StyleSpanTest.java | 54 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 …]
|
D | LocaleSpanTest.java | 90 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 …]
|
D | SubscriptSpanTest.java | 44 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()
|
D | SuperscriptSpanTest.java | 44 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()
|
D | TypefaceSpanTest.java | 51 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()
|
D | AbsoluteSizeSpanTest.java | 61 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()
|
D | TextAppearanceSpanTest.java | 83 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 …]
|
D | ForegroundColorSpanTest.java | 52 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()
|
D | UnderlineSpanTest.java | 41 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()
|
D | StrikethroughSpanTest.java | 43 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()
|
D | MaskFilterSpanTest.java | 37 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()
|
D | RasterizerSpanTest.java | 48 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()
|
D | BackgroundColorSpanTest.java | 44 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()
|
D | MetricAffectingSpanTest.java | 49 public void updateDrawState(TextPaint tp) { in updateDrawState() argument
|
D | CharacterStyleTest.java | 70 public void updateDrawState(TextPaint tp) { in updateDrawState() argument
|
/cts/tools/dasm/src/java_cup/ |
D | symbol.java | 25 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()
|
D | terminal.java | 25 public terminal(String nm, String tp) in terminal() argument 28 super(nm, tp); in terminal()
|
D | non_terminal.java | 25 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/ |
D | DatePickerModifier.java | 30 DatePicker tp = (DatePicker) view; in modifyView() local 31 tp.updateDate(2011, 4, 20); in modifyView()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/ |
D | RVCVXCheckAnalyzer.java | 590 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/ |
D | StaticLayoutLineBreakingTest.java | 195 public void updateDrawState(TextPaint tp) { /* empty */ } in getMetricAffectingSpan()
|
/cts/tests/tests/widget/src/android/widget/cts/ |
D | TextViewTest.java | 570 TextPaint tp = mTextView.getPaint(); in testGetPaint() local 571 assertNotNull(tp); in testGetPaint() 573 assertEquals(mTextView.getPaintFlags(), tp.getFlags()); in testGetPaint()
|