Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/widget/
DEditorTouchState.java154 mMultiTapInSameArea = isDistanceWithin(mLastDownX, mLastDownY, in update()
211 public static boolean isDistanceWithin(float x1, float y1, float x2, float y2, in isDistanceWithin() method in EditorTouchState
DEditor.java5602 boolean isWithinTouchSlop = EditorTouchState.isDistanceWithin( in onTouchEvent()
6634 mGestureStayedInTapRegion = EditorTouchState.isDistanceWithin( in onTouchEvent()
/frameworks/base/core/tests/coretests/src/android/widget/
DEditorTouchStateTest.java54 assertTrue(EditorTouchState.isDistanceWithin(0, 0, 0, 0, 8)); in testIsDistanceWithin()
55 assertTrue(EditorTouchState.isDistanceWithin(3, 9, 5, 11, 8)); in testIsDistanceWithin()
56 assertTrue(EditorTouchState.isDistanceWithin(5, 11, 3, 9, 8)); in testIsDistanceWithin()
57 assertFalse(EditorTouchState.isDistanceWithin(5, 10, 5, 20, 8)); in testIsDistanceWithin()