Home
last modified time | relevance | path

Searched refs:mLastMotionX (Results 1 – 3 of 3) sorted by relevance

/frameworks/opt/photoviewer/src/com/android/ex/photo/
DPhotoViewPager.java58 private float mLastMotionX; field in PhotoViewPager
144 mLastMotionX = x; in onInterceptTouchEvent()
146 } else if (ignoreScrollLeft && (x > mLastMotionX)) { in onInterceptTouchEvent()
147 mLastMotionX = x; in onInterceptTouchEvent()
149 } else if (ignoreScrollRight && (x < mLastMotionX)) { in onInterceptTouchEvent()
150 mLastMotionX = x; in onInterceptTouchEvent()
158 mLastMotionX = ev.getX(); in onInterceptTouchEvent()
173 mLastMotionX = MotionEventCompat.getX(ev, newPointerIndex); in onInterceptTouchEvent()
/frameworks/base/core/java/android/widget/
DHorizontalScrollView.java107 private int mLastMotionX; field in HorizontalScrollView
600 final int xDiff = (int) Math.abs(x - mLastMotionX); in onInterceptTouchEvent()
603 mLastMotionX = x; in onInterceptTouchEvent()
623 mLastMotionX = x; in onInterceptTouchEvent()
649 mLastMotionX = (int) ev.getX(index); in onInterceptTouchEvent()
655 mLastMotionX = (int) ev.getX(ev.findPointerIndex(mActivePointerId)); in onInterceptTouchEvent()
694 mLastMotionX = (int) ev.getX(); in onTouchEvent()
706 int deltaX = mLastMotionX - x; in onTouchEvent()
721 mLastMotionX = x; in onTouchEvent()
818 mLastMotionX = (int) ev.getX(newPointerIndex); in onSecondaryPointerUp()
/frameworks/base/core/java/com/android/internal/widget/
DViewPager.java161 private float mLastMotionX; field in ViewPager
1861 final float dx = x - mLastMotionX;
1867 if (dx != 0 && !isGutterDrag(mLastMotionX, dx) &&
1870 mLastMotionX = x;
1880 mLastMotionX = dx > 0 ? mInitialMotionX + mTouchSlop :
1906 mLastMotionX = mInitialMotionX = ev.getX();
1926 if (DEBUG) Log.v(TAG, "Down at " + mLastMotionX + "," + mLastMotionY
1977 mLastMotionX = mInitialMotionX = ev.getX();
1986 final float xDiff = Math.abs(x - mLastMotionX);
1994 mLastMotionX = x - mInitialMotionX > 0 ? mInitialMotionX + mTouchSlop :
[all …]