/packages/apps/Launcher3/tests/src/com/android/launcher3/touch/ |
D | SingleAxisSwipeDetectorTest.java | 60 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/ |
D | BaseSwipeDetector.java | 56 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()
|
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 | 67 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()
|
D | SingleAxisSwipeDetector.java | 137 float minDisplacement = Math.max(mTouchSlop, in shouldScrollStart()
|
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/interaction/ |
D | EdgeBackGestureHandler.java | 54 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/ |
D | OtherActivityInputConsumer.java | 112 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/ |
D | StatusBarTouchController.java | 65 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/ |
D | WorkModeSwitch.java | 49 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()
|
D | AllAppsPagedView.java | 64 if (absDeltaX > mTouchSlop || absDeltaY > mTouchSlop) { in determineScrollingStart()
|
/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/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/Car/Notification/src/com/android/car/notification/ |
D | CarNotificationItemTouchListener.java | 88 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/ |
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/PermissionController/src/android/support/wearable/view/ |
D | WearableListView.java | 108 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/ |
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/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()
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
D | PagedView.java | 133 protected int mTouchSlop; field in PagedView 188 mTouchSlop = configuration.getScaledTouchSlop(); in PagedView() 984 final int touchSlop = Math.round(touchSlopScale * mTouchSlop); in determineScrollingStart()
|
D | Workspace.java | 848 if (absDeltaX > mTouchSlop || absDeltaY > mTouchSlop) { in determineScrollingStart()
|