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/Dialer/java/com/android/dialer/app/list/
H A DPhoneFavoriteListView.java51 private float mTouchSlop; field in class:PhoneFavoriteListView
105 mTouchSlop = ViewConfiguration.get(context).getScaledPagingTouchSlop();
112 mTouchSlop = ViewConfiguration.get(getContext()).getScaledPagingTouchSlop();
153 (Math.abs(mLastDragY - mTouchDownForDragStartY) >= 4 * mTouchSlop)) {
/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 DTouchInterceptor.java71 private final int mTouchSlop; field in class:TouchInterceptor
81 mTouchSlop = ViewConfiguration.get(context).getScaledTouchSlop();
140 int touchSlop = mTouchSlop;
H A DMediaPlaybackActivity.java86 private int mTouchSlop; field in class:MediaPlaybackActivity
150 mTouchSlop = ViewConfiguration.get(this).getScaledTouchSlop();
208 if (Math.abs(delta) > 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/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/Launcher3/src/com/android/launcher3/touch/
H A DSwipeDetector.java108 // IDLE -> (mDisplacement > mTouchSlop) -> DRAGGING
156 private final float mTouchSlop; field in class:SwipeDetector
184 mTouchSlop = touchSlope;
196 if (Math.max(mDir.getActiveTouchSlop(ev, pointerIndex, mDownPos), mTouchSlop)
284 mSubtractDisplacement = mTouchSlop;
286 mSubtractDisplacement = -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/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) {
/packages/apps/Launcher3/src/com/android/launcher3/
H A DPagedView.java137 protected int mTouchSlop; field in class:PagedView
225 mTouchSlop = configuration.getScaledPagingTouchSlop();
1188 final boolean finishedScrolling = (mScroller.isFinished() || xDist < mTouchSlop / 3);
1245 final int touchSlop = Math.round(touchSlopScale * mTouchSlop);

Completed in 413 milliseconds