Searched defs:mTouchSlop (Results 1 - 15 of 15) sorted by relevance

/packages/apps/Launcher3/tests/src/com/android/launcher3/touch/
H A DSwipeDetectorTest.java49 private int mTouchSlop; field in class:SwipeDetectorTest
64 mDetector = new SwipeDetector(mTouchSlop, mMockListener, SwipeDetector.VERTICAL);
66 mTouchSlop = ViewConfiguration.get(InstrumentationRegistry.getTargetContext())
68 L("mTouchSlop=", mTouchSlop);
74 mGenerator.move(0, 100, 100 + mTouchSlop);
82 mGenerator.move(0, 100 + mTouchSlop, 100);
89 mDetector = new SwipeDetector(mTouchSlop, mMockListener, SwipeDetector.HORIZONTAL);
93 mGenerator.move(0, 100 + mTouchSlop, 100);
101 mGenerator.move(0, 100, 100 + mTouchSlop);
[all...]
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/
H A DTouchInteractionService.java262 private final int mTouchSlop; field in class:TouchInteractionService.OverviewTouchConsumer
276 mTouchSlop = ViewConfiguration.get(mTarget.getContext()).getScaledTouchSlop();
301 if (Math.abs(displacement) >= mTouchSlop) {
304 // Send a down event only when mTouchSlop is crossed.
/packages/apps/Messaging/src/com/android/messaging/ui/conversationlist/
H A DConversationListSwipeHelper.java55 private final int mTouchSlop; field in class:ConversationListSwipeHelper
76 mTouchSlop = viewConfiguration.getScaledPagingTouchSlop();
137 if (!mIsSwiping && absDeltaY > mTouchSlop
144 if (absDeltaX > mTouchSlop) {
/packages/apps/Music/src/com/android/music/
H A DMediaPlaybackActivity.java73 private int mTouchSlop; field in class:MediaPlaybackActivity
258 mTouchSlop = ViewConfiguration.get(this).getScaledTouchSlop();
390 if (Math.abs(delta) > mTouchSlop) {
H A DTouchInterceptor.java71 private final int mTouchSlop; field in class:TouchInterceptor
81 mTouchSlop = ViewConfiguration.get(context).getScaledTouchSlop();
140 int touchSlop = mTouchSlop;
/packages/screensavers/PhotoTable/src/com/android/dreams/phototable/
H A DPhotoTouchListener.java33 private final int mTouchSlop; field in class:PhotoTouchListener
58 mTouchSlop = configuration.getScaledTouchSlop();
211 if (distance < mTouchSlop) {
221 distance < mTouchSlop) {
/packages/apps/Launcher3/src/com/android/launcher3/touch/
H A DSwipeDetector.java107 // IDLE -> (mDisplacement > mTouchSlop) -> DRAGGING
155 private final float mTouchSlop; field in class:SwipeDetector
183 mTouchSlop = touchSlope;
203 if (Math.max(mDir.getActiveTouchSlop(ev, pointerIndex, mDownPos), mTouchSlop)
291 mSubtractDisplacement = mTouchSlop;
293 mSubtractDisplacement = -mTouchSlop;
/packages/apps/Messaging/src/com/android/messaging/ui/conversation/
H A DConversationFastScroller.java93 private final int mTouchSlop; field in class:ConversationFastScroller
145 mTouchSlop = res.getDimensionPixelOffset(R.dimen.fastscroll_touch_slop);
359 final int hitTargetLeft = mThumbImageView.getLeft() - mTouchSlop;
360 final int hitTargetRight = mThumbImageView.getRight() + mTouchSlop;
/packages/apps/Messaging/src/com/android/messaging/ui/mediapicker/
H A DMediaPickerPanel.java369 private final int mTouchSlop; field in class:MediaPickerPanel.TouchHandler
403 mTouchSlop = configuration.getScaledTouchSlop();
538 if (Math.abs(dy) > mTouchSlop &&
542 if (dy < -mTouchSlop) {
/packages/apps/Gallery2/src/com/android/photos/views/
H A DGalleryThumbnailView.java71 private int mTouchSlop; field in class:GalleryThumbnailView
106 mTouchSlop = vc.getScaledTouchSlop();
310 if (Math.abs(dx) > mTouchSlop) {
346 if (Math.abs(dx) > mTouchSlop) {
/packages/apps/UnifiedEmail/src/com/android/mail/browse/
H A DConversationContainer.java115 private final int mTouchSlop; field in class:ConversationContainer
241 mTouchSlop = ViewConfiguration.get(c).getScaledTouchSlop();
405 if (yDiff > mTouchSlop) {
/packages/apps/Contacts/src/com/android/contacts/widget/
H A DMultiShrinkScroller.java154 private final int mTouchSlop; field in class:MultiShrinkScroller
256 mTouchSlop = configuration.getScaledTouchSlop();
1274 return deltaY > mTouchSlop || deltaY < -mTouchSlop;
/packages/apps/Launcher2/src/com/android/launcher2/
H A DPagedView.java120 protected int mTouchSlop; field in class:PagedView
241 mTouchSlop = configuration.getScaledTouchSlop();
1042 final boolean finishedScrolling = (mScroller.isFinished() || xDist < mTouchSlop);
1107 final int touchSlop = Math.round(touchSlopScale * mTouchSlop);
/packages/apps/Launcher3/src/com/android/launcher3/
H A DPagedView.java121 protected int mTouchSlop; field in class:PagedView
187 mTouchSlop = configuration.getScaledPagingTouchSlop();
887 final boolean finishedScrolling = (mScroller.isFinished() || xDist < mTouchSlop / 3);
948 final int touchSlop = Math.round(touchSlopScale * mTouchSlop);
1137 boolean isFling = mTotalMotionX > mTouchSlop && shouldFlingForVelocity(velocityX);
/packages/apps/PackageInstaller/src/android/support/wearable/view/
H A DWearableListView.java107 private final int mTouchSlop; field in class:WearableListView
209 mTouchSlop = vc.getScaledTouchSlop();
324 if (distance > (mTouchSlop * mTouchSlop)) {
351 if (Math.abs(mTapPositionX - (int) event.getX()) >= mTouchSlop ||
352 Math.abs(mTapPositionY - (int) event.getY()) >= mTouchSlop) {

Completed in 423 milliseconds