Home
last modified time | relevance | path

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

/packages/apps/Launcher3/tests/src/com/android/launcher3/touch/
DSingleAxisSwipeDetectorTest.java60 private int mTouchSlop; field in SingleAxisSwipeDetectorTest
79 mTouchSlop = orgConfig.getScaledTouchSlop(); in setup()
80 doReturn(mTouchSlop).when(mMockConfig).getScaledTouchSlop(); in setup()
82 L("mTouchSlop=", mTouchSlop); in setup()
90 mGenerator.move(0, 100, 100 - mTouchSlop); in testDragStart_verticalPositive()
100 mGenerator.move(0, 100, 100 + mTouchSlop); in testDragStart_verticalNegative()
108 mGenerator.move(0, 100 + mTouchSlop, 100); in testDragStart_failed()
119 mGenerator.move(0, 100 + mTouchSlop, 100); in testDragStart_horizontalPositive()
130 mGenerator.move(0, 100 - mTouchSlop, 100); in testDragStart_horizontalNegative()
141 mGenerator.move(0, 100 - mTouchSlop, 100); in testDragStart_horizontalRtlPositive()
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/touch/
DBaseSwipeDetector.java56 protected final float mTouchSlop; field in BaseSwipeDetector
77 mTouchSlop = config.getScaledTouchSlop(); in BaseSwipeDetector()
242 mSubtractDisplacement.x = mDisplacement.x > 0 ? mTouchSlop : -mTouchSlop; in initializeDragging()
243 mSubtractDisplacement.y = mDisplacement.y > 0 ? mTouchSlop : -mTouchSlop; in initializeDragging()
DBothAxesSwipeDetector.java65 && displacement.y <= -mTouchSlop; in shouldScrollStart()
67 && displacement.x >= mTouchSlop; in shouldScrollStart()
69 && displacement.y >= mTouchSlop; in shouldScrollStart()
71 && displacement.x <= -mTouchSlop; in shouldScrollStart()
DWorkspaceTouchListener.java67 private final float mTouchSlop; field in WorkspaceTouchListener
78 mTouchSlop = 2 * ViewConfiguration.get(launcher).getScaledTouchSlop(); in WorkspaceTouchListener()
131 mTouchDownPoint.x - ev.getX(), mTouchDownPoint.y - ev.getY()) > mTouchSlop) { in onTouch()
DSingleAxisSwipeDetector.java137 float minDisplacement = Math.max(mTouchSlop, in shouldScrollStart()
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/interaction/
DEdgeBackGestureHandler.java54 private final float mTouchSlop; field in EdgeBackGestureHandler
94 mTouchSlop = ViewConfiguration.get(context).getScaledTouchSlop(); in EdgeBackGestureHandler()
196 if (dy > dx && dy > mTouchSlop) { in onMotionEvent()
199 } else if (dx > dy && dx > mTouchSlop) { in onMotionEvent()
213 if (dx > dy && dx > mTouchSlop && !mAllowGesture && mGestureCallback != null) { in onMotionEvent()
/packages/apps/Launcher3/quickstep/recents_ui_overrides/src/com/android/quickstep/inputconsumers/
DOtherActivityInputConsumer.java112 private final float mTouchSlop; field in OtherActivityInputConsumer
163 mTouchSlop = ViewConfiguration.get(this).getScaledTouchSlop(); in OtherActivityInputConsumer()
164 mSquaredTouchSlop = slopMultiplier * mTouchSlop * mTouchSlop; in OtherActivityInputConsumer()
269 if (Math.abs(displacement) > mTouchSlop) { in onMotionEvent()
271 mStartDisplacement = Math.min(displacement, -mTouchSlop); in onMotionEvent()
309 mStartDisplacement = Math.min(displacement, -mTouchSlop); in onMotionEvent()
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/uioverrides/touchcontrollers/
DStatusBarTouchController.java65 private final float mTouchSlop; field in StatusBarTouchController
76 mTouchSlop = 2 * ViewConfiguration.get(l).getScaledTouchSlop(); in StatusBarTouchController()
119 if (dy > mTouchSlop && dy > Math.abs(dx) && ev.getPointerCount() == 1) { in onControllerInterceptTouchEvent()
125 if (Math.abs(dx) > mTouchSlop) { in onControllerInterceptTouchEvent()
/packages/apps/Launcher3/src/com/android/launcher3/allapps/
DWorkModeSwitch.java49 private int mTouchSlop; field in WorkModeSwitch
68 mTouchSlop = viewConfiguration.getScaledTouchSlop(); in init()
98 if (Math.abs(mTouch[0] - ev.getX()) > mTouchSlop in onTouchEvent()
99 || Math.abs(mTouch[1] - ev.getY()) > mTouchSlop) { in onTouchEvent()
DAllAppsPagedView.java64 if (absDeltaX > mTouchSlop || absDeltaY > mTouchSlop) { in determineScrollingStart()
/packages/screensavers/PhotoTable/src/com/android/dreams/phototable/
DPhotoTouchListener.java33 private final int mTouchSlop; field in PhotoTouchListener
58 mTouchSlop = configuration.getScaledTouchSlop(); in PhotoTouchListener()
211 if (distance < mTouchSlop) { in onTouch()
221 distance < mTouchSlop) { in onTouch()
/packages/apps/Messaging/src/com/android/messaging/ui/conversationlist/
DConversationListSwipeHelper.java55 private final int mTouchSlop; field in ConversationListSwipeHelper
76 mTouchSlop = viewConfiguration.getScaledPagingTouchSlop(); in ConversationListSwipeHelper()
137 if (!mIsSwiping && absDeltaY > mTouchSlop in onInterceptTouchEvent()
144 if (absDeltaX > mTouchSlop) { in onInterceptTouchEvent()
/packages/apps/Car/Notification/src/com/android/car/notification/
DCarNotificationItemTouchListener.java88 private final int mTouchSlop; field in CarNotificationItemTouchListener
154 mTouchSlop = res.getDimensionPixelSize(R.dimen.touch_slop); in CarNotificationItemTouchListener()
230 && absDeltaY > mTouchSlop in onInterceptTouchEvent()
250 if (absDeltaX > mTouchSlop) { in onInterceptTouchEvent()
/packages/apps/Messaging/src/com/android/messaging/ui/mediapicker/
DMediaPickerPanel.java369 private final int mTouchSlop; field in MediaPickerPanel.TouchHandler
403 mTouchSlop = configuration.getScaledTouchSlop(); in TouchHandler()
538 if (Math.abs(dy) > mTouchSlop && in onTouch()
542 if (dy < -mTouchSlop) { in onTouch()
/packages/apps/Messaging/src/com/android/messaging/ui/conversation/
DConversationFastScroller.java93 private final int mTouchSlop; field in ConversationFastScroller
145 mTouchSlop = res.getDimensionPixelOffset(R.dimen.fastscroll_touch_slop); in ConversationFastScroller()
359 final int hitTargetLeft = mThumbImageView.getLeft() - mTouchSlop; in isInsideThumb()
360 final int hitTargetRight = mThumbImageView.getRight() + mTouchSlop; in isInsideThumb()
/packages/apps/PermissionController/src/android/support/wearable/view/
DWearableListView.java108 private final int mTouchSlop; field in WearableListView
210 mTouchSlop = vc.getScaledTouchSlop(); in WearableListView()
325 if (distance > (mTouchSlop * mTouchSlop)) { in handlePossibleVerticalSwipe()
352 if (Math.abs(mTapPositionX - (int) event.getX()) >= mTouchSlop || in onTouchEvent()
353 Math.abs(mTapPositionY - (int) event.getY()) >= mTouchSlop) { in onTouchEvent()
/packages/apps/Gallery2/src/com/android/photos/views/
DGalleryThumbnailView.java71 private int mTouchSlop; field in GalleryThumbnailView
106 mTouchSlop = vc.getScaledTouchSlop(); in GalleryThumbnailView()
310 if (Math.abs(dx) > mTouchSlop) { in onInterceptTouchEvent()
346 if (Math.abs(dx) > mTouchSlop) { in onTouchEvent()
/packages/apps/Contacts/src/com/android/contacts/widget/
DMultiShrinkScroller.java154 private final int mTouchSlop; field in MultiShrinkScroller
256 mTouchSlop = configuration.getScaledTouchSlop(); in MultiShrinkScroller()
1274 return deltaY > mTouchSlop || deltaY < -mTouchSlop; in motionShouldStartDrag()
/packages/apps/Launcher3/src/com/android/launcher3/
DPagedView.java133 protected int mTouchSlop; field in PagedView
188 mTouchSlop = configuration.getScaledTouchSlop(); in PagedView()
984 final int touchSlop = Math.round(touchSlopScale * mTouchSlop); in determineScrollingStart()
DWorkspace.java848 if (absDeltaX > mTouchSlop || absDeltaY > mTouchSlop) { in determineScrollingStart()