/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/classifier/ |
H A D | TapClassifier.java | 26 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()
|
/aosp14/frameworks/base/apct-tests/perftests/core/src/android/view/ |
H A D | HandwritingInitiatorPerfTest.java | 53 private int mTouchSlop; field in HandwritingInitiatorPerfTest 63 mTouchSlop = viewConfiguration.getScaledTouchSlop(); in setup() 109 final int x = initX + mTouchSlop; in onTouchEvent_actionMove_toolTypeStylus() 110 final int y = initY + mTouchSlop; in onTouchEvent_actionMove_toolTypeStylus() 167 final int x = initX + mTouchSlop; in onTouchEvent_actionMove_toolTypeFinger() 168 final int y = initY + mTouchSlop; in onTouchEvent_actionMove_toolTypeFinger()
|
/aosp14/frameworks/base/core/java/android/service/autofill/ |
H A D | InlineSuggestionRoot.java | 41 private final int mTouchSlop; field in InlineSuggestionRoot 50 mTouchSlop = ViewConfiguration.get(context).getScaledTouchSlop(); in InlineSuggestionRoot() 70 if (!isSecure || distance > mTouchSlop) { in dispatchTouchEvent()
|
/aosp14/frameworks/base/services/accessibility/java/com/android/server/accessibility/gestures/ |
H A D | MultiTap.java | 37 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()
|
H A D | SecondFingerMultiTap.java | 36 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()
|
H A D | MultiFingerMultiTap.java | 43 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()
|
H A D | Swipe.java | 87 private int mTouchSlop; field in Swipe 125 mTouchSlop = ViewConfiguration.get(context).getScaledTouchSlop(); in Swipe() 170 if (moveDelta < mTouchSlop) { in onMove()
|
H A D | MultiFingerSwipe.java | 72 private int mTouchSlop; field in MultiFingerSwipe 93 mTouchSlop = ViewConfiguration.get(context).getScaledTouchSlop(); in MultiFingerSwipe() 279 if (moveDelta < (mTargetFingerCount * mTouchSlop)) { in onMove()
|
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/ |
H A D | NonInterceptingScrollView.java | 30 private final int mTouchSlop; field in NonInterceptingScrollView 38 mTouchSlop = ViewConfiguration.get(context).getScaledTouchSlop(); in NonInterceptingScrollView() 90 if (yDiff < -mTouchSlop && !canScrollVertically(1)) { in onInterceptTouchEvent()
|
H A D | QSScrollLayout.java | 41 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()
|
/aosp14/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/windowdecor/ |
H A D | DragDetector.java | 44 private int mTouchSlop; field in DragDetector 98 mIsDragEvent = Math.hypot(dx, dy) > mTouchSlop; in onMotionEvent() 119 mTouchSlop = touchSlop; in setTouchSlop()
|
/aosp14/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/ |
H A D | BubblesNavBarMotionEventHandler.java | 43 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()
|
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/accessibility/floatingmenu/ |
H A D | MenuListViewTouchHandler.java | 42 private float mTouchSlop; field in MenuListViewTouchHandler 65 mTouchSlop = ViewConfiguration.get(recyclerView.getContext()).getScaledTouchSlop(); in onInterceptTouchEvent() 75 if (mIsDragging || Math.hypot(dx, dy) > mTouchSlop) { in onInterceptTouchEvent()
|
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/touch/ |
H A D | SwipeDetector.java | 158 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()
|
/aosp14/frameworks/base/core/java/android/view/ |
H A D | ViewConfiguration.java | 347 private final int mTouchSlop; field in ViewConfiguration 394 mTouchSlop = TOUCH_SLOP; in ViewConfiguration() 500 mTouchSlop = res.getDimensionPixelSize( in ViewConfiguration() 508 mPagingTouchSlop = mTouchSlop * 2; in ViewConfiguration() 510 mDoubleTapTouchSlop = mTouchSlop; in ViewConfiguration() 775 return mTouchSlop; in getScaledTouchSlop()
|
H A D | NotificationHeaderView.java | 206 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()
|
H A D | NotificationTopLineView.java | 292 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()
|
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
H A D | HeadsUpTouchHelper.java | 36 private final float mTouchSlop; field in HeadsUpTouchHelper 53 mTouchSlop = configuration.getScaledTouchSlop(); in HeadsUpTouchHelper() 109 if (mTouchingHeadsUpView && Math.abs(h) > mTouchSlop in onInterceptTouchEvent()
|
/aosp14/frameworks/base/tests/SystemUIDemoModeController/src/com/example/android/demomodecontroller/ |
H A D | DemoModeController.java | 46 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()
|
/aosp14/frameworks/base/core/java/com/android/internal/widget/ |
H A D | ResolverDrawerLayout.java | 113 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()
|
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/gestures/ |
H A D | TouchExplorerTest.java | 107 private int mTouchSlop; field in TouchExplorerTest 152 mTouchSlop = ViewConfiguration.get(mContext).getScaledTouchSlop(); in setUp() 508 moveEachPointers(mLastEvent, p(mTouchSlop, 0), p(mTouchSlop, 0)); in goFromStateClearTo() 513 moveEachPointers(mLastEvent, p(mTouchSlop, 0), p(-mTouchSlop, 1)); in goFromStateClearTo()
|
/aosp14/frameworks/base/core/java/android/widget/ |
H A D | Switch.java | 138 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()
|
/aosp14/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip/phone/ |
H A D | PipResizeGestureHandler.java | 104 private float mTouchSlop; field in PipResizeGestureHandler 192 mTouchSlop = ViewConfiguration.get(mContext).getScaledTouchSlop(); in reloadResources() 450 && (distanceBetween(mDownSecondPoint, mLastSecondPoint) > mTouchSlop in onPinchResize() 451 || distanceBetween(mDownPoint, mLastPoint) > mTouchSlop)) { in onPinchResize() 496 && Math.hypot(x - mDownPoint.x, y - mDownPoint.y) > mTouchSlop) { in onDragCornerResize()
|
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/accessibility/ |
H A D | MagnificationGestureDetectorTest.java | 54 private int mTouchSlop = ViewConfiguration.get(getContext()).getScaledTouchSlop(); field in MagnificationGestureDetectorTest 159 final float dragOffset = mTouchSlop + 10; in performDrag_invokeCallbacksInOrder()
|
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
H A D | ExpandHelper.java | 108 private final int mTouchSlop; field in ExpandHelper 200 mTouchSlop = configuration.getScaledTouchSlop(); in ExpandHelper() 286 ? mTouchSlop * mSlopMultiplier in getTouchSlop() 287 : mTouchSlop; in getTouchSlop()
|