Home
last modified time | relevance | path

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

12

/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/packages/SystemUI/src/com/android/systemui/qs/
DNonInterceptingScrollView.java30 private final int mTouchSlop; field in NonInterceptingScrollView
35 mTouchSlop = ViewConfiguration.get(context).getScaledTouchSlop(); in NonInterceptingScrollView()
78 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/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DDoubleTapHelper.java38 private float mTouchSlop; field in DoubleTapHelper
54 mTouchSlop = ViewConfiguration.get(view.getContext()).getScaledTouchSlop(); in DoubleTapHelper()
143 return Math.abs(event.getX() - mDownX) < mTouchSlop in isWithinTouchSlop()
144 && Math.abs(event.getY() - mDownY) < mTouchSlop; in isWithinTouchSlop()
DHeadsUpTouchHelper.java36 private float mTouchSlop; field in HeadsUpTouchHelper
53 mTouchSlop = configuration.getScaledTouchSlop(); in HeadsUpTouchHelper()
109 if (mTouchingHeadsUpView && Math.abs(h) > mTouchSlop in onInterceptTouchEvent()
DKeyguardAffordanceHelper.java54 private int mTouchSlop; field in KeyguardAffordanceHelper
94 mTouchSlop = configuration.getScaledPagingTouchSlop(); in initDimens()
157 if (!mTouchSlopExeeded && distance > mTouchSlop) { in onTouchEvent()
421 return translation > 0.0f ? translation + mTouchSlop : 0.0f; in getTranslationFromRadius()
425 if (translation <= mTouchSlop) { in getRadiusFromTranslation()
428 return (translation - mTouchSlop) * BACKGROUND_RADIUS_SCALE_FACTOR + mMinBackgroundRadius; in getRadiusFromTranslation()
DPanelViewController.java97 private int mTouchSlop; field in PanelViewController
266 mTouchSlop = configuration.getScaledTouchSlop(); in loadDimens()
276 ? mTouchSlop * mSlopMultiplier in getTouchSlop()
277 : mTouchSlop; in getTouchSlop()
366 if ((mTracking && mTouchSlopExceeded) || Math.abs(x - mInitialTouchX) > mTouchSlop in endMotionEvent()
367 || Math.abs(y - mInitialTouchY) > mTouchSlop in endMotionEvent()
DEdgeBackGestureHandler.java145 private float mTouchSlop; field in EdgeBackGestureHandler
267 mTouchSlop = ViewConfiguration.get(mContext).getScaledTouchSlop() * backGestureSlop; in updateCurrentUserResources()
549 if (dy > dx && dy > mTouchSlop) { in onMotionEvent()
556 } else if (dx > dy && dx > mTouchSlop) { in onMotionEvent()
/frameworks/base/services/accessibility/java/com/android/server/accessibility/gestures/
DMultiTap.java36 int mTouchSlop; field in MultiTap
47 mTouchSlop = ViewConfiguration.get(context).getScaledTouchSlop(); in MultiTap()
85 if (!isInsideSlop(rawEvent, mTouchSlop)) { in onUp()
105 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()
DMultiFingerSwipe.java80 private int mTouchSlop; field in MultiFingerSwipe
104 mTouchSlop = ViewConfiguration.get(context).getScaledTouchSlop(); in MultiFingerSwipe()
297 if (moveDelta < mTouchSlop) { in onMove()
/frameworks/base/core/java/android/view/
DViewConfiguration.java318 private final int mTouchSlop; field in ViewConfiguration
358 mTouchSlop = TOUCH_SLOP; in ViewConfiguration()
460 mTouchSlop = res.getDimensionPixelSize( in ViewConfiguration()
466 mPagingTouchSlop = mTouchSlop * 2; in ViewConfiguration()
468 mDoubleTapTouchSlop = mTouchSlop; in ViewConfiguration()
719 return mTouchSlop; in getScaledTouchSlop()
DNotificationHeaderView.java384 private int mTouchSlop; field in NotificationHeaderView.HeaderTouchListener
399 mTouchSlop = ViewConfiguration.get(getContext()).getScaledTouchSlop(); in bindTouchRects()
450 if (Math.abs(mDownX - x) > mTouchSlop in onTouch()
451 || Math.abs(mDownY - y) > mTouchSlop) { in onTouch()
/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/
DDragDownHelper.java51 private final float mTouchSlop; field in DragDownHelper
67 mTouchSlop = configuration.getScaledTouchSlop(); in DragDownHelper()
94 ? mTouchSlop * mSlopMultiplier in onInterceptTouchEvent()
95 : mTouchSlop; in onInterceptTouchEvent()
DPulseExpansionHandler.kt94 private val mTouchSlop: Float in <lambda>() constant
117 mTouchSlop = ViewConfiguration.get(context).scaledTouchSlop.toFloat() in <lambda>()
149 if (h > mTouchSlop && h > Math.abs(x - mInitialTouchX)) { in <lambda>()
/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.java104 private final int mTouchSlop; field in ResolverDrawerLayout
168 mTouchSlop = vc.getScaledTouchSlop(); in ResolverDrawerLayout()
323 if (Math.abs(dy) > mTouchSlop && findChildUnder(x, y) != null && in onInterceptTouchEvent()
327 mLastTouchY = Math.max(mLastTouchY - mTouchSlop, in onInterceptTouchEvent()
328 Math.min(mLastTouchY + dy, mLastTouchY + mTouchSlop)); in onInterceptTouchEvent()
401 if (Math.abs(dy) > mTouchSlop && findChildUnder(x, y) != null) { in onTouchEvent()
403 mLastTouchY = Math.max(mLastTouchY - mTouchSlop, in onTouchEvent()
404 Math.min(mLastTouchY + dy, mLastTouchY + mTouchSlop)); in onTouchEvent()
446 if (mOpenOnClick && Math.abs(ev.getX() - mInitialTouchX) < mTouchSlop && in onTouchEvent()
447 Math.abs(ev.getY() - mInitialTouchY) < mTouchSlop) { in onTouchEvent()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/
DDoubleTapHelperTest.java52 private int mTouchSlop; field in DoubleTapHelperTest
64 mTouchSlop = ViewConfiguration.get(mContext).getScaledTouchSlop(); in setup()
66 mDoubleTouchSlop = mTouchSlop - 1; in setup()
168 1 + mTouchSlop, in testSingleTap_slop()
/frameworks/base/core/java/android/widget/
DSwitch.java123 private int mTouchSlop; field in Switch
307 mTouchSlop = config.getScaledTouchSlop(); in Switch()
1010 final int thumbTop = mSwitchTop - mTouchSlop; in hitThumb()
1011 final int thumbLeft = mSwitchLeft + thumbOffset - mTouchSlop; in hitThumb()
1013 mTempRect.left + mTempRect.right + mTouchSlop; in hitThumb()
1014 final int thumbBottom = mSwitchBottom + mTouchSlop; in hitThumb()
1043 if (Math.abs(x - mTouchX) > mTouchSlop || in onTouchEvent()
1044 Math.abs(y - mTouchY) > mTouchSlop) { in onTouchEvent()
DHorizontalScrollView.java149 private int mTouchSlop; field in HorizontalScrollView
318 mTouchSlop = configuration.getScaledTouchSlop(); in initScrollView()
601 if (xDiff > mTouchSlop) { in onInterceptTouchEvent()
707 if (!mIsBeingDragged && Math.abs(deltaX) > mTouchSlop) { in onTouchEvent()
714 deltaX -= mTouchSlop; in onTouchEvent()
716 deltaX += mTouchSlop; in onTouchEvent()
/frameworks/base/packages/SystemUI/src/com/android/systemui/pip/phone/
DPipResizeGestureHandler.java103 private float mTouchSlop; field in PipResizeGestureHandler
156 mTouchSlop = ViewConfiguration.get(mContext).getScaledTouchSlop(); in reloadResources()
313 && Math.hypot(x - mDownPoint.x, y - mDownPoint.y) > mTouchSlop) { in onMotionEvent()
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DExpandHelper.java89 private final int mTouchSlop; field in ExpandHelper
180 mTouchSlop = configuration.getScaledTouchSlop(); in ExpandHelper()
266 ? mTouchSlop * mSlopMultiplier in getTouchSlop()
267 : mTouchSlop; in getTouchSlop()

12