Home
last modified time | relevance | path

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

/packages/apps/Settings/src/com/android/settings/widget/
DChartSweepView.java400 public boolean isTouchCloserTo(MotionEvent eventInParent, ChartSweepView another) { in isTouchCloserTo() argument
401 final float selfDist = getTouchDistanceFromTarget(eventInParent); in isTouchCloserTo()
402 final float anotherDist = another.getTouchDistanceFromTarget(eventInParent); in isTouchCloserTo()
406 private float getTouchDistanceFromTarget(MotionEvent eventInParent) { in getTouchDistanceFromTarget() argument
408 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()