/packages/apps/Launcher3/tests/src/com/android/launcher3/touch/ |
D | SwipeDetectorTest.java | 51 private int mTouchSlop; field in SwipeDetectorTest 70 mTouchSlop = orgConfig.getScaledTouchSlop(); in setup() 71 doReturn(mTouchSlop).when(mMockConfig).getScaledTouchSlop(); in setup() 73 L("mTouchSlop=", mTouchSlop); in setup() 81 mGenerator.move(0, 100, 100 - mTouchSlop); in testDragStart_verticalPositive() 91 mGenerator.move(0, 100, 100 + mTouchSlop); in testDragStart_verticalNegative() 99 mGenerator.move(0, 100 + mTouchSlop, 100); in testDragStart_failed() 110 mGenerator.move(0, 100 + mTouchSlop, 100); in testDragStart_horizontalPositive() 121 mGenerator.move(0, 100 - mTouchSlop, 100); in testDragStart_horizontalNegative() 132 mGenerator.move(0, 100 - mTouchSlop, 100); in testDragStart_horizontalRtlPositive() [all …]
|
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/uioverrides/touchcontrollers/ |
D | StatusBarTouchController.java | 48 private final float mTouchSlop; field in StatusBarTouchController 58 mTouchSlop = 2 * ViewConfiguration.get(l).getScaledTouchSlop(); in StatusBarTouchController() 101 if (dy > mTouchSlop && dy > Math.abs(dx)) { in onControllerInterceptTouchEvent() 106 if (Math.abs(dx) > mTouchSlop) { in onControllerInterceptTouchEvent()
|
/packages/apps/Launcher3/quickstep/recents_ui_overrides/src/com/android/quickstep/inputconsumers/ |
D | OtherActivityInputConsumer.java | 111 private final float mTouchSlop; field in OtherActivityInputConsumer 161 mTouchSlop = ViewConfiguration.get(this).getScaledTouchSlop(); in OtherActivityInputConsumer() 163 float slop = QUICKSTEP_TOUCH_SLOP_RATIO * mTouchSlop; in OtherActivityInputConsumer() 258 if (Math.abs(displacement) > mTouchSlop) { in onMotionEvent() 260 mStartDisplacement = Math.min(displacement, -mTouchSlop); in onMotionEvent() 284 mStartDisplacement = Math.min(displacement, -mTouchSlop); in onMotionEvent()
|
D | FallbackNoButtonInputConsumer.java | 97 private final float mTouchSlop; field in FallbackNoButtonInputConsumer 124 mTouchSlop = QUICKSTEP_TOUCH_SLOP_RATIO in FallbackNoButtonInputConsumer() 198 if (Math.abs(displacement) >= mTouchSlop) { in onMotionEvent() 219 mStartDisplacement = Math.min(displacement, -mTouchSlop); in startTouchTrackingForWindowAnimation()
|
/packages/apps/Launcher3/src/com/android/launcher3/touch/ |
D | SwipeDetector.java | 222 private final float mTouchSlop; field in SwipeDetector 258 mTouchSlop = config.getScaledTouchSlop(); in SwipeDetector() 273 if (Math.max(mDir.getActiveTouchSlop(ev, pointerIndex, mDownPos), mTouchSlop) in shouldScrollStart() 375 mSubtractDisplacement = mTouchSlop; in initializeDragging() 377 mSubtractDisplacement = -mTouchSlop; in initializeDragging()
|
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()
|
/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 | 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/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() 898 … final boolean finishedScrolling = (mScroller.isFinished() || xDist < mTouchSlop / 3); in onInterceptTouchEvent() 950 final int touchSlop = Math.round(touchSlopScale * mTouchSlop); in determineScrollingStart() 1168 boolean isFling = mTotalMotionX > mTouchSlop && shouldFlingForVelocity(velocityX); in onTouchEvent()
|
D | Workspace.java | 909 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()
|
/packages/apps/UnifiedEmail/src/com/android/mail/browse/ |
D | ConversationContainer.java | 115 private final int mTouchSlop; field in ConversationContainer 241 mTouchSlop = ViewConfiguration.get(c).getScaledTouchSlop(); in ConversationContainer() 405 if (yDiff > mTouchSlop) { in onInterceptTouchEvent()
|