Searched refs:tol (Results 1 – 2 of 2) sorted by relevance
245 public static Matcher<MotionEvent> isAtPoint(final PointF point, final float tol) { in isAtPoint() argument249 return Math.hypot(event.getX() - point.x, event.getY() - point.y) <= tol; in isAtPoint()269 public static Matcher<MotionEvent> isRawAtPoint(final PointF point, final float tol) {273 return Math.hypot(event.getRawX() - point.x, event.getRawY() - point.y) <= tol;
574 tol = ALIGN_TOL * sensor_diag[i]576 msg += ' diff=%.2f, TOL=%.2f' % (err, tol)577 assert err < tol, msg