Home
last modified time | relevance | path

Searched refs:mTouchSlop (Results 1 – 25 of 44) sorted by relevance

12

/frameworks/base/packages/SystemUI/src/com/android/systemui/classifier/
DTapClassifier.java26 private final float mTouchSlop; field in TapClassifier
31 mTouchSlop = touchSlop; in TapClassifier()
51 if (Math.abs(event.getX() - downX) >= mTouchSlop) { in isTap()
55 + mTouchSlop; in isTap()
57 } else if (Math.abs(event.getY() - downY) >= mTouchSlop) { in isTap()
61 + mTouchSlop; in isTap()
/frameworks/base/core/java/com/android/internal/policy/
DWearGestureInterceptionDetector.java44 private final float mTouchSlop; field in WearGestureInterceptionDetector
54 mTouchSlop = ViewConfiguration.get(context).getScaledTouchSlop(); in WearGestureInterceptionDetector()
56 mSwipingStartThreshold = mTouchSlop * 2; in WearGestureInterceptionDetector()
95 if ((deltaX * deltaX) + (deltaY * deltaY) > (mTouchSlop * mTouchSlop)) { in updateSwiping()
/frameworks/base/core/java/android/service/autofill/
DInlineSuggestionRoot.java41 private final int mTouchSlop; field in InlineSuggestionRoot
50 mTouchSlop = ViewConfiguration.get(context).getScaledTouchSlop(); in InlineSuggestionRoot()
70 if (!isSecure || distance > mTouchSlop) { in dispatchTouchEvent()
/frameworks/base/apct-tests/perftests/core/src/android/view/
DHandwritingInitiatorPerfTest.java56 private int mTouchSlop; field in HandwritingInitiatorPerfTest
66 mTouchSlop = viewConfiguration.getScaledTouchSlop(); in setup()
112 final int x = initX + mTouchSlop; in onTouchEvent_actionMove_toolTypeStylus()
113 final int y = initY + mTouchSlop; in onTouchEvent_actionMove_toolTypeStylus()
170 final int x = initX + mTouchSlop; in onTouchEvent_actionMove_toolTypeFinger()
171 final int y = initY + mTouchSlop; in onTouchEvent_actionMove_toolTypeFinger()
/frameworks/base/services/accessibility/java/com/android/server/accessibility/gestures/
DMultiTap.java37 int mTouchSlop; field in MultiTap
49 mTouchSlop = ViewConfiguration.get(context).getScaledTouchSlop(); in MultiTap()
87 if (!isInsideSlop(rawEvent, mTouchSlop)) { in onUp()
107 if (!isInsideSlop(rawEvent, mTouchSlop)) { in onMove()
DSecondFingerMultiTap.java36 int mTouchSlop; field in SecondFingerMultiTap
49 mTouchSlop = ViewConfiguration.get(context).getScaledTouchSlop(); in SecondFingerMultiTap()
92 if (!isSecondFingerInsideSlop(rawEvent, mTouchSlop)) { in onPointerUp()
117 if (!isSecondFingerInsideSlop(rawEvent, mTouchSlop)) { in onMove()
DMultiFingerMultiTap.java43 private int mTouchSlop; field in MultiFingerMultiTap
71 mTouchSlop = ViewConfiguration.get(context).getScaledTouchSlop() * fingers; in MultiFingerMultiTap()
123 final PointF nearest = findNearestPoint(rawEvent, mTouchSlop, false); in onUp()
151 if (null == findNearestPoint(rawEvent, mTouchSlop, false)) { in onMove()
DSwipe.java87 private int mTouchSlop; field in Swipe
125 mTouchSlop = ViewConfiguration.get(context).getScaledTouchSlop(); in Swipe()
170 if (moveDelta < mTouchSlop) { in onMove()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
DNonInterceptingScrollView.java30 private final int mTouchSlop; field in NonInterceptingScrollView
38 mTouchSlop = ViewConfiguration.get(context).getScaledTouchSlop(); in NonInterceptingScrollView()
90 if (yDiff < -mTouchSlop && !canScrollVertically(1)) { in onInterceptTouchEvent()
DQSScrollLayout.java41 private final int mTouchSlop; field in QSScrollLayout
50 mTouchSlop = ViewConfiguration.get(getContext()).getScaledTouchSlop(); in QSScrollLayout()
102 if (mLastMotionY >= 0 && Math.abs(ev.getY() - mLastMotionY) > mTouchSlop in shouldIntercept()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/windowdecor/
DDragDetector.java44 private int mTouchSlop; field in DragDetector
98 mIsDragEvent = Math.hypot(dx, dy) > mTouchSlop; in onMotionEvent()
119 mTouchSlop = touchSlop; in setTouchSlop()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/
DBubblesNavBarMotionEventHandler.java43 private final int mTouchSlop; field in BubblesNavBarMotionEventHandler
53 mTouchSlop = ViewConfiguration.get(context).getScaledTouchSlop(); in BubblesNavBarMotionEventHandler()
80 if (!mInterceptingTouches && Math.hypot(dx, dy) > mTouchSlop) { in onMotionEvent()
/frameworks/base/packages/SystemUI/src/com/android/systemui/accessibility/floatingmenu/
DMenuListViewTouchHandler.java44 private float mTouchSlop; field in MenuListViewTouchHandler
67 mTouchSlop = ViewConfiguration.get(recyclerView.getContext()).getScaledTouchSlop(); in onInterceptTouchEvent()
77 if (mIsDragging || Math.hypot(dx, dy) > mTouchSlop) { in onInterceptTouchEvent()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/touch/
DSwipeDetector.java158 private final float mTouchSlop; field in SwipeDetector
186 mTouchSlop = touchSlope; in SwipeDetector()
198 if (Math.max(mDir.getActiveTouchSlop(ev, pointerIndex, mDownPos), mTouchSlop) in shouldScrollStart()
286 mSubtractDisplacement = mTouchSlop; in initializeDragging()
288 mSubtractDisplacement = -mTouchSlop; in initializeDragging()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DHeadsUpTouchHelper.java40 private final float mTouchSlop; field in HeadsUpTouchHelper
59 mTouchSlop = configuration.getScaledTouchSlop(); in HeadsUpTouchHelper()
115 if (mTouchingHeadsUpView && Math.abs(h) > mTouchSlop in onInterceptTouchEvent()
/frameworks/base/core/java/android/view/
DViewConfiguration.java362 private final int mTouchSlop; field in ViewConfiguration
413 mTouchSlop = TOUCH_SLOP; in ViewConfiguration()
519 mTouchSlop = res.getDimensionPixelSize( in ViewConfiguration()
527 mPagingTouchSlop = mTouchSlop * 2; in ViewConfiguration()
529 mDoubleTapTouchSlop = mTouchSlop; in ViewConfiguration()
834 return mTouchSlop; in getScaledTouchSlop()
DNotificationHeaderView.java206 private int mTouchSlop; field in NotificationHeaderView.HeaderTouchListener
220 mTouchSlop = ViewConfiguration.get(getContext()).getScaledTouchSlop(); in bindTouchRects()
271 if (Math.abs(mDownX - x) > mTouchSlop in onTouch()
272 || Math.abs(mDownY - y) > mTouchSlop) { in onTouch()
DNotificationTopLineView.java292 private int mTouchSlop; field in NotificationTopLineView.HeaderTouchListener
302 mTouchSlop = ViewConfiguration.get(getContext()).getScaledTouchSlop(); in bindTouchRects()
338 if (Math.abs(mDownX - x) > mTouchSlop in onTouch()
339 || Math.abs(mDownY - y) > mTouchSlop) { in onTouch()
/frameworks/base/tests/SystemUIDemoModeController/src/com/example/android/demomodecontroller/
DDemoModeController.java46 private int mTouchSlop; field in DemoModeController
65 mTouchSlop = ViewConfiguration.get(mContext).getScaledTouchSlop(); in onCreate()
115 if (Math.abs(mLastDown.x - x) > mTouchSlop || Math.abs(mLastDown.y - y) > mTouchSlop) { in onTouch()
/frameworks/base/core/java/com/android/internal/widget/
DResolverDrawerLayout.java113 private final int mTouchSlop; field in ResolverDrawerLayout
182 mTouchSlop = vc.getScaledTouchSlop(); in ResolverDrawerLayout()
350 if (Math.abs(dy) > mTouchSlop && findChildUnder(x, y) != null && in onInterceptTouchEvent()
354 mLastTouchY = Math.max(mLastTouchY - mTouchSlop, in onInterceptTouchEvent()
355 Math.min(mLastTouchY + dy, mLastTouchY + mTouchSlop)); in onInterceptTouchEvent()
428 if (Math.abs(dy) > mTouchSlop && findChildUnder(x, y) != null) { in onTouchEvent()
430 mLastTouchY = Math.max(mLastTouchY - mTouchSlop, in onTouchEvent()
431 Math.min(mLastTouchY + dy, mLastTouchY + mTouchSlop)); in onTouchEvent()
472 if (mOpenOnClick && Math.abs(ev.getX() - mInitialTouchX) < mTouchSlop && in onTouchEvent()
473 Math.abs(ev.getY() - mInitialTouchY) < mTouchSlop) { in onTouchEvent()
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/gestures/
DTouchExplorerTest.java107 private int mTouchSlop; field in TouchExplorerTest
152 mTouchSlop = ViewConfiguration.get(mContext).getScaledTouchSlop(); in setUp()
509 moveEachPointers(mLastEvent, p(mTouchSlop, 0), p(mTouchSlop, 0)); in goFromStateClearTo()
514 moveEachPointers(mLastEvent, p(mTouchSlop, 0), p(-mTouchSlop, 1)); in goFromStateClearTo()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip/phone/
DPipResizeGestureHandler.java87 private float mTouchSlop; field in PipResizeGestureHandler
164 mTouchSlop = ViewConfiguration.get(mContext).getScaledTouchSlop(); in reloadResources()
342 && (distanceBetween(mDownSecondPoint, mLastSecondPoint) > mTouchSlop in onPinchResize()
343 || distanceBetween(mDownPoint, mLastPoint) > mTouchSlop)) { in onPinchResize()
/frameworks/base/core/java/android/widget/
DSwitch.java138 private int mTouchSlop; field in Switch
322 mTouchSlop = config.getScaledTouchSlop(); in Switch()
1085 final int thumbTop = mSwitchTop - mTouchSlop; in hitThumb()
1086 final int thumbLeft = mSwitchLeft + thumbOffset - mTouchSlop; in hitThumb()
1088 mTempRect.left + mTempRect.right + mTouchSlop; in hitThumb()
1089 final int thumbBottom = mSwitchBottom + mTouchSlop; in hitThumb()
1118 if (Math.abs(x - mTouchX) > mTouchSlop || in onTouchEvent()
1119 Math.abs(y - mTouchY) > mTouchSlop) { in onTouchEvent()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip2/phone/
DPipResizeGestureHandler.java91 private float mTouchSlop; field in PipResizeGestureHandler
176 mTouchSlop = ViewConfiguration.get(mContext).getScaledTouchSlop(); in reloadResources()
351 && (distanceBetween(mDownSecondPoint, mLastSecondPoint) > mTouchSlop in onPinchResize()
352 || distanceBetween(mDownPoint, mLastPoint) > mTouchSlop)) { in onPinchResize()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/accessibility/
DMagnificationGestureDetectorTest.java53 private int mTouchSlop = ViewConfiguration.get(getContext()).getScaledTouchSlop(); field in MagnificationGestureDetectorTest
158 final float dragOffset = mTouchSlop + 10; in performDrag_invokeCallbacksInOrder()

12