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.java112 private int mLastMotionX; field in HorizontalScrollView
607 final int xDiff = (int) Math.abs(x - mLastMotionX); in onInterceptTouchEvent()
610 mLastMotionX = x; in onInterceptTouchEvent()
630 mLastMotionX = x; in onInterceptTouchEvent()
664 mLastMotionX = (int) ev.getX(index); in onInterceptTouchEvent()
670 mLastMotionX = (int) ev.getX(ev.findPointerIndex(mActivePointerId)); in onInterceptTouchEvent()
709 mLastMotionX = (int) ev.getX(); in onTouchEvent()
721 int deltaX = mLastMotionX - x; in onTouchEvent()
736 mLastMotionX = x; in onTouchEvent()
844 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();
1937 if (DEBUG) Log.v(TAG, "Down at " + mLastMotionX + "," + mLastMotionY
1988 mLastMotionX = mInitialMotionX = ev.getX();
1997 final float xDiff = Math.abs(x - mLastMotionX);
2005 mLastMotionX = x - mInitialMotionX > 0 ? mInitialMotionX + mTouchSlop :
[all …]