Searched refs:isDistanceWithin (Results 1 – 3 of 3) sorted by relevance
/frameworks/base/core/java/android/widget/ |
D | EditorTouchState.java | 154 mMultiTapInSameArea = isDistanceWithin(mLastDownX, mLastDownY, in update() 211 public static boolean isDistanceWithin(float x1, float y1, float x2, float y2, in isDistanceWithin() method in EditorTouchState
|
D | Editor.java | 5602 boolean isWithinTouchSlop = EditorTouchState.isDistanceWithin( in onTouchEvent() 6634 mGestureStayedInTapRegion = EditorTouchState.isDistanceWithin( in onTouchEvent()
|
/frameworks/base/core/tests/coretests/src/android/widget/ |
D | EditorTouchStateTest.java | 54 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()
|