Searched refs:mLastMotionX (Results 1 - 5 of 5) sorted by relevance

/frameworks/opt/photoviewer/src/com/android/ex/photo/
H A DPhotoViewPager.java58 private float mLastMotionX; field in class:PhotoViewPager
144 mLastMotionX = x;
146 } else if (ignoreScrollLeft && (x > mLastMotionX)) {
147 mLastMotionX = x;
149 } else if (ignoreScrollRight && (x < mLastMotionX)) {
150 mLastMotionX = x;
158 mLastMotionX = ev.getX();
173 mLastMotionX = MotionEventCompat.getX(ev, newPointerIndex);
/frameworks/support/customview/src/main/java/androidx/customview/widget/
H A DViewDragHelper.java122 private float[] mLastMotionX; field in class:ViewDragHelper
795 Arrays.fill(mLastMotionX, 0);
809 mLastMotionX[pointerId] = 0;
830 System.arraycopy(mLastMotionX, 0, lmx, 0, mLastMotionX.length);
839 mLastMotionX = lmx;
849 mInitialMotionX[pointerId] = mLastMotionX[pointerId] = x;
865 mLastMotionX[pointerId] = x;
1168 final int idx = (int) (x - mLastMotionX[mActivePointerId]);
1366 final float dx = mLastMotionX[pointerI
[all...]
/frameworks/support/viewpager/src/main/java/androidx/viewpager/widget/
H A DViewPager.java199 private float mLastMotionX; field in class:ViewPager
2073 final float dx = x - mLastMotionX;
2079 if (dx != 0 && !isGutterDrag(mLastMotionX, dx)
2082 mLastMotionX = x;
2092 mLastMotionX = dx > 0
2118 mLastMotionX = mInitialMotionX = ev.getX();
2140 Log.v(TAG, "Down at " + mLastMotionX + "," + mLastMotionY
2199 mLastMotionX = mInitialMotionX = ev.getX();
2214 final float xDiff = Math.abs(x - mLastMotionX);
2224 mLastMotionX
[all...]
/frameworks/base/core/java/android/widget/
H A DHorizontalScrollView.java86 private int mLastMotionX; field in class:HorizontalScrollView
485 * Locally do absolute value. mLastMotionX is set to the x value
502 final int xDiff = (int) Math.abs(x - mLastMotionX);
505 mLastMotionX = x;
525 mLastMotionX = x;
551 mLastMotionX = (int) ev.getX(index);
557 mLastMotionX = (int) ev.getX(ev.findPointerIndex(mActivePointerId));
596 mLastMotionX = (int) ev.getX();
608 int deltaX = mLastMotionX - x;
623 mLastMotionX
[all...]
/frameworks/base/core/java/com/android/internal/widget/
H A DViewPager.java159 private float mLastMotionX; field in class:ViewPager
1855 final float dx = x - mLastMotionX;
1861 if (dx != 0 && !isGutterDrag(mLastMotionX, dx) &&
1864 mLastMotionX = x;
1874 mLastMotionX = dx > 0 ? mInitialMotionX + mTouchSlop :
1900 mLastMotionX = mInitialMotionX = ev.getX();
1920 if (DEBUG) Log.v(TAG, "Down at " + mLastMotionX + "," + mLastMotionY
1971 mLastMotionX = mInitialMotionX = ev.getX();
1980 final float xDiff = Math.abs(x - mLastMotionX);
1988 mLastMotionX
[all...]

Completed in 187 milliseconds