Searched refs:proportion (Results 1 – 3 of 3) sorted by relevance
/cts/tests/tests/text/src/android/text/style/cts/ |
D | ScaleXSpanTest.java | 52 float proportion = 3.0f; in testUpdateDrawState() local 53 ScaleXSpan scaleXSpan = new ScaleXSpan(proportion); in testUpdateDrawState() 58 assertEquals(2.0f * proportion, tp.getTextScaleX(), 0.0f); in testUpdateDrawState() 62 assertEquals(-3.0f * proportion, tp.getTextScaleX(), 0.0f); in testUpdateDrawState() 74 float proportion = 3.0f; in testUpdateMeasureState() local 75 ScaleXSpan scaleXSpan = new ScaleXSpan(proportion); in testUpdateMeasureState() 80 assertEquals(2.0f * proportion, tp.getTextScaleX(), 0.0f); in testUpdateMeasureState() 84 assertEquals(-3.0f * proportion, tp.getTextScaleX(), 0.0f); in testUpdateMeasureState() 119 float proportion = 3.0f; in testWriteToParcel() local 120 ScaleXSpan scaleXSpan = new ScaleXSpan(proportion); in testWriteToParcel() [all …]
|
D | RelativeSizeSpanTest.java | 61 float proportion = 3.0f; in testUpdateMeasureState() local 62 RelativeSizeSpan relativeSizeSpan = new RelativeSizeSpan(proportion); in testUpdateMeasureState() 68 assertEquals(2.0f * proportion, tp.getTextSize(), 0.0f); in testUpdateMeasureState() 74 assertEquals(oldSize * proportion, tp.getTextSize(), 0.0f); in testUpdateMeasureState() 86 float proportion = 3.0f; in testUpdateDrawState() local 87 RelativeSizeSpan relativeSizeSpan = new RelativeSizeSpan(proportion); in testUpdateDrawState() 93 assertEquals(oldSize * proportion, tp.getTextSize(), 0.0f); in testUpdateDrawState() 99 assertEquals(oldSize * proportion, tp.getTextSize(), 0.0f); in testUpdateDrawState() 125 float proportion = 3.0f; in testWriteToParcel() local 126 RelativeSizeSpan relativeSizeSpan = new RelativeSizeSpan(proportion); in testWriteToParcel() [all …]
|
/cts/tests/tests/widget/src/android/widget/cts/ |
D | MagnifierTest.java | 1029 final float proportion = 1.0f in assertFourQuadrants() local 1031 assertTrue(proportion <= 0.1f); in assertFourQuadrants()
|