/packages/apps/Launcher3/tests/src/com/android/launcher3/touch/ |
D | SingleAxisSwipeDetectorTest.java | 57 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/ |
D | BaseSwipeDetector.java | 50 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()
|
D | BothAxesSwipeDetector.java | 65 && displacement.y <= -mTouchSlop; in shouldScrollStart() 67 && displacement.x >= mTouchSlop; in shouldScrollStart() 69 && displacement.y >= mTouchSlop; in shouldScrollStart() 71 && displacement.x <= -mTouchSlop; in shouldScrollStart()
|
D | WorkspaceTouchListener.java | 66 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()
|
D | SingleAxisSwipeDetector.java | 129 if (!mDir.canScrollStart(displacement, mTouchSlop)) { in shouldScrollStart()
|
/packages/apps/Launcher3/quickstep/recents_ui_overrides/src/com/android/quickstep/inputconsumers/ |
D | OtherActivityInputConsumer.java | 103 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/ |
D | StatusBarTouchController.java | 66 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/ |
D | PhotoTouchListener.java | 33 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/ |
D | CarNotificationItemTouchListener.java | 87 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/ |
D | ConversationListSwipeHelper.java | 55 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/ |
D | MediaPickerPanel.java | 369 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/ |
D | ConversationFastScroller.java | 93 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/ |
D | AllAppsPagedView.java | 64 if (absDeltaX > mTouchSlop || absDeltaY > mTouchSlop) { in determineScrollingStart()
|
/packages/apps/PermissionController/src/android/support/wearable/view/ |
D | WearableListView.java | 107 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/ |
D | GalleryThumbnailView.java | 71 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/ |
D | PagedView.java | 118 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()
|
D | Workspace.java | 902 if (absDeltaX > mTouchSlop || absDeltaY > mTouchSlop) { in determineScrollingStart()
|
/packages/apps/Contacts/src/com/android/contacts/widget/ |
D | MultiShrinkScroller.java | 154 private final int mTouchSlop; field in MultiShrinkScroller 256 mTouchSlop = configuration.getScaledTouchSlop(); in MultiShrinkScroller() 1274 return deltaY > mTouchSlop || deltaY < -mTouchSlop; in motionShouldStartDrag()
|