Home
last modified time | relevance | path

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

/packages/apps/Gallery2/src/com/android/gallery3d/photoeditor/actions/
DCropView.java50 private static final int TOUCH_TOLERANCE = 25; field in CropView
119 if ((left <= TOUCH_TOLERANCE) && (left < right)) { in detectMovingEdges()
122 else if (right <= TOUCH_TOLERANCE) { in detectMovingEdges()
129 if ((top <= TOUCH_TOLERANCE) & (top < bottom)) { in detectMovingEdges()
132 else if (bottom <= TOUCH_TOLERANCE) { in detectMovingEdges()
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
DCropView.java57 private static final int TOUCH_TOLERANCE = 30; field in CropView
528 if (x > r.left + TOUCH_TOLERANCE && x < r.right - TOUCH_TOLERANCE in setMovingEdges()
529 && y > r.top + TOUCH_TOLERANCE && y < r.bottom - TOUCH_TOLERANCE) { in setMovingEdges()
534 boolean inVerticalRange = (r.top - TOUCH_TOLERANCE) <= y in setMovingEdges()
535 && y <= (r.bottom + TOUCH_TOLERANCE); in setMovingEdges()
536 boolean inHorizontalRange = (r.left - TOUCH_TOLERANCE) <= x in setMovingEdges()
537 && x <= (r.right + TOUCH_TOLERANCE); in setMovingEdges()
540 boolean left = Math.abs(x - r.left) <= TOUCH_TOLERANCE; in setMovingEdges()
541 boolean right = Math.abs(x - r.right) <= TOUCH_TOLERANCE; in setMovingEdges()
554 boolean top = Math.abs(y - r.top) <= TOUCH_TOLERANCE; in setMovingEdges()
[all …]