Home
last modified time | relevance | path

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

/packages/apps/Launcher3/tests/src/com/android/launcher3/touch/
DSingleAxisSwipeDetectorTest.java57 private int mTouchSlop; field in SingleAxisSwipeDetectorTest
76 mTouchSlop = orgConfig.getScaledTouchSlop(); in setup()
77 doReturn(mTouchSlop).when(mMockConfig).getScaledTouchSlop(); in setup()
79 L("mTouchSlop=", mTouchSlop); in setup()
87 mGenerator.move(0, 100, 100 - mTouchSlop); in testDragStart_verticalPositive()
97 mGenerator.move(0, 100, 100 + mTouchSlop); in testDragStart_verticalNegative()
105 mGenerator.move(0, 100 + mTouchSlop, 100); in testDragStart_failed()
116 mGenerator.move(0, 100 + mTouchSlop, 100); in testDragStart_horizontalPositive()
127 mGenerator.move(0, 100 - mTouchSlop, 100); in testDragStart_horizontalNegative()
138 mGenerator.move(0, 100 - mTouchSlop, 100); in testDragStart_horizontalRtlPositive()
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/touch/
DBaseSwipeDetector.java50 protected final float mTouchSlop; field in BaseSwipeDetector
69 mTouchSlop = config.getScaledTouchSlop(); in BaseSwipeDetector()
221 mSubtractDisplacement.x = mDisplacement.x > 0 ? mTouchSlop : -mTouchSlop; in initializeDragging()
222 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.java66 private final float mTouchSlop; field in WorkspaceTouchListener
77 mTouchSlop = 2 * ViewConfiguration.get(launcher).getScaledTouchSlop(); in WorkspaceTouchListener()
130 mTouchDownPoint.x - ev.getX(), mTouchDownPoint.y - ev.getY()) > mTouchSlop) { in onTouch()
DSingleAxisSwipeDetector.java129 if (!mDir.canScrollStart(displacement, mTouchSlop)) { in shouldScrollStart()
/packages/apps/Launcher3/quickstep/recents_ui_overrides/src/com/android/quickstep/inputconsumers/
DOtherActivityInputConsumer.java103 private final float mTouchSlop; field in OtherActivityInputConsumer
151 mTouchSlop = ViewConfiguration.get(this).getScaledTouchSlop(); in OtherActivityInputConsumer()
153 float slop = QUICKSTEP_TOUCH_SLOP_RATIO * mTouchSlop; in OtherActivityInputConsumer()
248 if (Math.abs(displacement) > mTouchSlop) { in onMotionEvent()
250 mStartDisplacement = Math.min(displacement, -mTouchSlop); in onMotionEvent()
279 mStartDisplacement = Math.min(displacement, -mTouchSlop); in onMotionEvent()
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/uioverrides/touchcontrollers/
DStatusBarTouchController.java66 private final float mTouchSlop; field in StatusBarTouchController
77 mTouchSlop = 2 * ViewConfiguration.get(l).getScaledTouchSlop(); in StatusBarTouchController()
123 if (dy > mTouchSlop && dy > Math.abs(dx) && ev.getPointerCount() == 1) { in onControllerInterceptTouchEvent()
129 if (Math.abs(dx) > mTouchSlop) { in onControllerInterceptTouchEvent()
/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/Car/Notification/src/com/android/car/notification/
DCarNotificationItemTouchListener.java87 private final int mTouchSlop; field in CarNotificationItemTouchListener
172 mTouchSlop = res.getDimensionPixelSize(R.dimen.touch_slop); in CarNotificationItemTouchListener()
247 && absDeltaY > mTouchSlop in onInterceptTouchEvent()
266 if (absDeltaX > mTouchSlop) { in onInterceptTouchEvent()
/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/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/Launcher3/src/com/android/launcher3/allapps/
DAllAppsPagedView.java64 if (absDeltaX > mTouchSlop || absDeltaY > mTouchSlop) { in determineScrollingStart()
/packages/apps/PermissionController/src/android/support/wearable/view/
DWearableListView.java107 private final int mTouchSlop; field in WearableListView
209 mTouchSlop = vc.getScaledTouchSlop(); in WearableListView()
324 if (distance > (mTouchSlop * mTouchSlop)) { in handlePossibleVerticalSwipe()
351 if (Math.abs(mTapPositionX - (int) event.getX()) >= mTouchSlop || in onTouchEvent()
352 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/Launcher3/src/com/android/launcher3/
DPagedView.java118 protected int mTouchSlop; field in PagedView
176 mTouchSlop = configuration.getScaledPagingTouchSlop(); in init()
922 final boolean finishedScrolling = (mScroller.isFinished() || xDist < mTouchSlop / 3); in updateIsBeingDraggedOnTouchDown()
954 final int touchSlop = Math.round(touchSlopScale * mTouchSlop); in determineScrollingStart()
1176 boolean isFling = mTotalMotionX > mTouchSlop && shouldFlingForVelocity(velocityX); in onTouchEvent()
DWorkspace.java902 if (absDeltaX > mTouchSlop || absDeltaY > mTouchSlop) { in determineScrollingStart()
/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()