/cts/tests/tests/text/src/android/text/style/cts/ |
D | RelativeSizeSpanTest.java | 63 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 …]
|
D | ClickableSpanTest.java | 40 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 …]
|
D | ScaleXSpanTest.java | 54 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 …]
|
D | LocaleSpanTest.java | 91 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 …]
|
D | StyleSpanTest.java | 64 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 …]
|
D | SubscriptSpanTest.java | 53 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()
|
D | SuperscriptSpanTest.java | 52 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()
|
D | TypefaceSpanTest.java | 62 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()
|
D | AbsoluteSizeSpanTest.java | 72 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()
|
D | TextAppearanceSpanTest.java | 98 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 …]
|
D | ForegroundColorSpanTest.java | 61 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()
|
D | UnderlineSpanTest.java | 50 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()
|
D | StrikethroughSpanTest.java | 52 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()
|
D | MaskFilterSpanTest.java | 46 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()
|
D | BackgroundColorSpanTest.java | 52 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()
|
D | MetricAffectingSpanTest.java | 54 public void updateDrawState(TextPaint tp) { in updateDrawState() argument
|
D | CharacterStyleTest.java | 78 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 | 203 public void updateDrawState(TextPaint tp) { /* empty */ } in getMetricAffectingSpan()
|
/cts/tests/tests/widget/src/android/widget/cts/ |
D | TextViewTest.java | 789 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/ |
D | segment000001.ts | 371 �<5�ZV�4��� �|tp-@��E!]����s�~(��0�=_��W��!P5��A����k0|dzJ��p@��{4�O��M � lG�W�m��P�…
|