Searched refs:eventInParent (Results 1 – 1 of 1) sorted by relevance
400 public boolean isTouchCloserTo(MotionEvent eventInParent, ChartSweepView another) { in isTouchCloserTo() argument401 final float selfDist = getTouchDistanceFromTarget(eventInParent); in isTouchCloserTo()402 final float anotherDist = another.getTouchDistanceFromTarget(eventInParent); in isTouchCloserTo()406 private float getTouchDistanceFromTarget(MotionEvent eventInParent) { in getTouchDistanceFromTarget() argument408 return Math.abs(eventInParent.getX() - (getX() + getTargetInset())); in getTouchDistanceFromTarget()410 return Math.abs(eventInParent.getY() - (getY() + getTargetInset())); in getTouchDistanceFromTarget()435 final MotionEvent eventInParent = event.copy(); in onTouchEvent()436 eventInParent.offsetLocation(getLeft(), getTop()); in onTouchEvent()440 if (isTouchCloserTo(eventInParent, neighbor)) { in onTouchEvent()