Home | History | Annotate | Download | only in tests

Lines Matching defs:angle

524     // Each point 'i' is a point on a circle of radius ROTATION centered at (3,2) at an angle
527 // and check rotation. We set the orientation to the same angle.
538 float angle = float(i * ARC * PI_180);
542 pointerCoords[i].setAxisValue(AMOTION_EVENT_AXIS_X, sinf(angle) * RADIUS + 3);
543 pointerCoords[i].setAxisValue(AMOTION_EVENT_AXIS_Y, -cosf(angle) * RADIUS + 2);
544 pointerCoords[i].setAxisValue(AMOTION_EVENT_AXIS_ORIENTATION, angle);
570 float angle = float((i * ARC + ROTATION) * PI_180);
571 ASSERT_NEAR(sinf(angle) * RADIUS, event.getX(i), 0.001);
572 ASSERT_NEAR(-cosf(angle) * RADIUS, event.getY(i), 0.001);
573 ASSERT_NEAR(tanf(angle), tanf(event.getOrientation(i)), 0.1);