Home
last modified time | relevance | path

Searched refs:RADIUS (Results 1 – 4 of 4) sorted by relevance

/cts/tests/tests/graphics/src/android/graphics/cts/
DCornerPathEffectTest.java46 private static final int RADIUS = 20; field in CornerPathEffectTest
56 PathEffect effect = new CornerPathEffect(RADIUS); in testCornerPathEffect()
72 RectF oval = new RectF(BITMAP_WIDTH - PADDING - 2 * RADIUS, PADDING, in testCornerPathEffect()
73 BITMAP_WIDTH - PADDING, PADDING + 2 * RADIUS); in testCornerPathEffect()
99 int straightLines = BITMAP_WIDTH - PADDING - RADIUS + BITMAP_HEIGHT - PADDING - RADIUS; in testCornerPathEffect()
103 assertTrue(cornerPixels < 2 * RADIUS); in testCornerPathEffect()
105 assertTrue(cornerPixels > Math.sqrt(2 * Math.pow(RADIUS, 2))); in testCornerPathEffect()
DBlurMaskFilterTest.java38 private static final int RADIUS = 5; field in BlurMaskFilterTest
46 BlurMaskFilter filter = new BlurMaskFilter(RADIUS, Blur.NORMAL); in testBlurMaskFilter()
59 } else if (x > CENTER - OFFSET + RADIUS && y > CENTER - OFFSET + RADIUS) { in testBlurMaskFilter()
62 } else if (x > CENTER - OFFSET - RADIUS && y > CENTER - OFFSET - RADIUS) { in testBlurMaskFilter()
DSweepGradientTest.java50 private static final int RADIUS = 80; field in SweepGradientTest
105 int x = CENTER + (int)(Math.cos(rad) * RADIUS); in verifyColors()
106 int y = CENTER + (int)(Math.sin(rad) * RADIUS); in verifyColors()
/cts/tests/tests/view/src/android/view/cts/
DMotionEventTest.java635 final float RADIUS = 10; in testTransformShouldApplyMatrixToPointsAndPreserveRawPosition() local
648 c.x = (float) (Math.sin(angle) * RADIUS + 3); in testTransformShouldApplyMatrixToPointsAndPreserveRawPosition()
649 c.y = (float) (- Math.cos(angle) * RADIUS + 2); in testTransformShouldApplyMatrixToPointsAndPreserveRawPosition()
685 assertEquals(Math.sin(angle) * RADIUS, c.x, RAW_COORD_TOLERANCE); in testTransformShouldApplyMatrixToPointsAndPreserveRawPosition()
686 assertEquals(-Math.cos(angle) * RADIUS, c.y, RAW_COORD_TOLERANCE); in testTransformShouldApplyMatrixToPointsAndPreserveRawPosition()