/frameworks/base/packages/SystemUI/src/com/android/systemui/classifier/ |
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()
|
/frameworks/base/core/java/com/android/internal/policy/ |
D | WearGestureInterceptionDetector.java | 44 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/ |
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()
|
/frameworks/base/apct-tests/perftests/core/src/android/view/ |
D | HandwritingInitiatorPerfTest.java | 56 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/ |
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()
|
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()
|
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()
|
D | Swipe.java | 87 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/ |
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()
|
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()
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/windowdecor/ |
D | DragDetector.java | 44 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/ |
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()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/accessibility/floatingmenu/ |
D | MenuListViewTouchHandler.java | 44 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/ |
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()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
D | HeadsUpTouchHelper.java | 40 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/ |
D | ViewConfiguration.java | 362 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()
|
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()
|
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()
|
/frameworks/base/tests/SystemUIDemoModeController/src/com/example/android/demomodecontroller/ |
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()
|
/frameworks/base/core/java/com/android/internal/widget/ |
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()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/gestures/ |
D | TouchExplorerTest.java | 107 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/ |
D | PipResizeGestureHandler.java | 87 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/ |
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()
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip2/phone/ |
D | PipResizeGestureHandler.java | 91 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/ |
D | MagnificationGestureDetectorTest.java | 53 private int mTouchSlop = ViewConfiguration.get(getContext()).getScaledTouchSlop(); field in MagnificationGestureDetectorTest 158 final float dragOffset = mTouchSlop + 10; in performDrag_invokeCallbacksInOrder()
|