Home
last modified time | relevance | path

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

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/classifier/
DSingleTapClassifierTest.java42 private static final int TOUCH_SLOP = 100; field in SingleTapClassifierTest
54 mClassifier = new SingleTapClassifier(mDataProvider, TOUCH_SLOP); in setup()
71 addMotionEvent(0, 1, MotionEvent.ACTION_UP, TOUCH_SLOP, 1); in testSimpleTap_XSlop()
78 addMotionEvent(0, 1, MotionEvent.ACTION_UP, -TOUCH_SLOP + 2, 1); in testSimpleTap_XSlop()
87 addMotionEvent(0, 1, MotionEvent.ACTION_UP, 1, TOUCH_SLOP); in testSimpleTap_YSlop()
94 addMotionEvent(0, 1, MotionEvent.ACTION_UP, 1, -TOUCH_SLOP + 2); in testSimpleTap_YSlop()
103 addMotionEvent(0, 1, MotionEvent.ACTION_UP, TOUCH_SLOP + 1, 1); in testFalseTap_XSlop()
110 addMotionEvent(0, 1, MotionEvent.ACTION_UP, -TOUCH_SLOP - 1, 1); in testFalseTap_XSlop()
119 addMotionEvent(0, 1, MotionEvent.ACTION_UP, 1, TOUCH_SLOP + 1); in testFalseTap_YSlop()
126 addMotionEvent(0, 1, MotionEvent.ACTION_UP, 1, -TOUCH_SLOP - 1); in testFalseTap_YSlop()
[all …]
DDoubleTapClassifierTest.java44 private static final int TOUCH_SLOP = 100; field in DoubleTapClassifierTest
64 mClassifier = new DoubleTapClassifier(mDataProvider, mSingleTapClassifier, TOUCH_SLOP, in setup()
84 addMotionEvent(0, 1, MotionEvent.ACTION_UP, TOUCH_SLOP, 1); in testSingleTap()
99 addMotionEvent(2, 2, MotionEvent.ACTION_DOWN, TOUCH_SLOP, TOUCH_SLOP); in testDoubleTap()
100 addMotionEvent(2, 3, MotionEvent.ACTION_UP, TOUCH_SLOP, TOUCH_SLOP); in testDoubleTap()
149 addMotionEvent(2, 2, MotionEvent.ACTION_DOWN, TOUCH_SLOP + 1, TOUCH_SLOP); in testBadTouchSlop()
150 addMotionEvent(2, 3, MotionEvent.ACTION_UP, TOUCH_SLOP, TOUCH_SLOP + 1); in testBadTouchSlop()
/frameworks/base/core/java/android/view/
DViewConfiguration.java191 private static final int TOUCH_SLOP = 8; field in ViewConfiguration
205 private static final int DOUBLE_TAP_TOUCH_SLOP = TOUCH_SLOP;
219 private static final int PAGING_TOUCH_SLOP = TOUCH_SLOP * 2;
413 mTouchSlop = TOUCH_SLOP; in ViewConfiguration()
415 mHoverSlop = TOUCH_SLOP / 2; in ViewConfiguration()
827 return TOUCH_SLOP; in getTouchSlop()
/frameworks/base/boot/hiddenapi/
Dhiddenapi-max-target-o.txt63275 Landroid/view/ViewConfiguration;->TOUCH_SLOP:I