Searched refs:mLastMotionX (Results 1 – 5 of 5) sorted by relevance
/frameworks/opt/photoviewer/src/com/android/ex/photo/ |
D | PhotoViewPager.java | 58 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/support/core-ui/java/android/support/v4/widget/ |
D | ViewDragHelper.java | 118 private float[] mLastMotionX; field in ViewDragHelper 784 Arrays.fill(mLastMotionX, 0); in clearMotionHistory() 798 mLastMotionX[pointerId] = 0; in clearMotionHistory() 819 System.arraycopy(mLastMotionX, 0, lmx, 0, mLastMotionX.length); in ensureMotionHistorySizeForId() 828 mLastMotionX = lmx; in ensureMotionHistorySizeForId() 838 mInitialMotionX[pointerId] = mLastMotionX[pointerId] = x; in saveInitialMotion() 854 mLastMotionX[pointerId] = x; in saveLastMotion() 1157 final int idx = (int) (x - mLastMotionX[mActivePointerId]); in processTouchEvent() 1355 final float dx = mLastMotionX[pointerId] - mInitialMotionX[pointerId]; in checkTouchSlop()
|
/frameworks/base/core/java/android/widget/ |
D | HorizontalScrollView.java | 86 private int mLastMotionX; field in HorizontalScrollView 502 final int xDiff = (int) Math.abs(x - mLastMotionX); in onInterceptTouchEvent() 505 mLastMotionX = x; in onInterceptTouchEvent() 525 mLastMotionX = x; in onInterceptTouchEvent() 551 mLastMotionX = (int) ev.getX(index); in onInterceptTouchEvent() 557 mLastMotionX = (int) ev.getX(ev.findPointerIndex(mActivePointerId)); in onInterceptTouchEvent() 596 mLastMotionX = (int) ev.getX(); in onTouchEvent() 608 int deltaX = mLastMotionX - x; in onTouchEvent() 623 mLastMotionX = x; in onTouchEvent() 720 mLastMotionX = (int) ev.getX(newPointerIndex); in onSecondaryPointerUp()
|
/frameworks/support/core-ui/java/android/support/v4/view/ |
D | ViewPager.java | 193 private float mLastMotionX; field in ViewPager 2065 final float dx = x - mLastMotionX; 2071 if (dx != 0 && !isGutterDrag(mLastMotionX, dx) 2074 mLastMotionX = x; 2084 mLastMotionX = dx > 0 2110 mLastMotionX = mInitialMotionX = ev.getX(); 2132 Log.v(TAG, "Down at " + mLastMotionX + "," + mLastMotionY 2191 mLastMotionX = mInitialMotionX = ev.getX(); 2206 final float xDiff = Math.abs(x - mLastMotionX); 2216 mLastMotionX = x - mInitialMotionX > 0 ? mInitialMotionX + mTouchSlop : [all …]
|
/frameworks/base/core/java/com/android/internal/widget/ |
D | ViewPager.java | 158 private float mLastMotionX; field in ViewPager 1853 final float dx = x - mLastMotionX; 1859 if (dx != 0 && !isGutterDrag(mLastMotionX, dx) && 1862 mLastMotionX = x; 1872 mLastMotionX = dx > 0 ? mInitialMotionX + mTouchSlop : 1898 mLastMotionX = mInitialMotionX = ev.getX(); 1918 if (DEBUG) Log.v(TAG, "Down at " + mLastMotionX + "," + mLastMotionY 1969 mLastMotionX = mInitialMotionX = ev.getX(); 1978 final float xDiff = Math.abs(x - mLastMotionX); 1986 mLastMotionX = x - mInitialMotionX > 0 ? mInitialMotionX + mTouchSlop : [all …]
|