Home
last modified time | relevance | path

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

/aosp12/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/classifier/
H A 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 …]
H A 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()
/aosp12/packages/apps/Car/Notification/src/com/android/car/notification/
H A DHeadsUpNotificationOnTouchListener.java37 private static final int TOUCH_SLOP = 20; field in HeadsUpNotificationOnTouchListener
147 if (Math.abs(deltaX) > TOUCH_SLOP) { in onTouch()
149 mSwipingSlop = (deltaX > 0 ? TOUCH_SLOP : -TOUCH_SLOP); in onTouch()
/aosp12/frameworks/base/core/java/android/view/
H A DViewConfiguration.java178 private static final int TOUCH_SLOP = 8; field in ViewConfiguration
189 private static final int DOUBLE_TAP_TOUCH_SLOP = TOUCH_SLOP;
203 private static final int PAGING_TOUCH_SLOP = TOUCH_SLOP * 2;
370 mTouchSlop = TOUCH_SLOP; in ViewConfiguration()
371 mHoverSlop = TOUCH_SLOP / 2; in ViewConfiguration()
719 return TOUCH_SLOP; in getTouchSlop()
/aosp12/frameworks/base/boot/hiddenapi/
H A Dhiddenapi-max-target-o.txt67241 Landroid/view/ViewConfiguration;->TOUCH_SLOP:I