Home
last modified time | relevance | path

Searched refs:mLastMotionX (Results 1 – 5 of 5) 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/support/v4/java/android/support/v4/widget/
DViewDragHelper.java118 private float[] mLastMotionX; field in ViewDragHelper
775 Arrays.fill(mLastMotionX, 0); in clearMotionHistory()
789 mLastMotionX[pointerId] = 0; in clearMotionHistory()
810 System.arraycopy(mLastMotionX, 0, lmx, 0, mLastMotionX.length); in ensureMotionHistorySizeForId()
819 mLastMotionX = lmx; in ensureMotionHistorySizeForId()
829 mInitialMotionX[pointerId] = mLastMotionX[pointerId] = x; in saveInitialMotion()
841 mLastMotionX[pointerId] = x; in saveLastMotion()
1114 final int idx = (int) (x - mLastMotionX[mActivePointerId]); in processTouchEvent()
1308 final float dx = mLastMotionX[pointerId] - mInitialMotionX[pointerId]; in checkTouchSlop()
/frameworks/support/v4/java/android/support/v4/view/
DViewPager.java172 private float mLastMotionX; field in ViewPager
1835 final float dx = x - mLastMotionX;
1841 if (dx != 0 && !isGutterDrag(mLastMotionX, dx) &&
1844 mLastMotionX = x;
1854 mLastMotionX = dx > 0 ? mInitialMotionX + mTouchSlop :
1880 mLastMotionX = mInitialMotionX = ev.getX();
1900 if (DEBUG) Log.v(TAG, "Down at " + mLastMotionX + "," + mLastMotionY
1958 mLastMotionX = mInitialMotionX = ev.getX();
1967 final float xDiff = Math.abs(x - mLastMotionX);
1975 mLastMotionX = x - mInitialMotionX > 0 ? mInitialMotionX + mTouchSlop :
[all …]
/frameworks/base/packages/Keyguard/src/com/android/keyguard/
DPagedView.java123 protected float mLastMotionX; field in PagedView
353 float x = mLastMotionX - mDownMotionX + getScrollX() - mDownScrollX; in updateDragViewTranslationDuringDrag()
371 mLastMotionX = p[0]; in setScaleX()
598 mLastMotionX = p[0]; in scrollTo()
1199 if (!isTouchPointInCurrentPage((int) mLastMotionX, (int) mLastMotionY)) { in onInterceptTouchEvent()
1237 mDownMotionX = mLastMotionX = ev.getX(); in saveDownState()
1240 float[] p = mapPointFromViewToParent(this, mLastMotionX, mLastMotionY); in saveDownState()
1273 final int xDiff = (int) Math.abs(x - mLastMotionX); in determineScrollingStart()
1291 mTotalMotionX += Math.abs(mLastMotionX - x); in startScrolling()
1292 mLastMotionX = x; in startScrolling()
[all …]
/frameworks/base/core/java/android/widget/
DHorizontalScrollView.java81 private int mLastMotionX; field in HorizontalScrollView
473 final int xDiff = (int) Math.abs(x - mLastMotionX); in onInterceptTouchEvent()
476 mLastMotionX = x; in onInterceptTouchEvent()
496 mLastMotionX = x; in onInterceptTouchEvent()
522 mLastMotionX = (int) ev.getX(index); in onInterceptTouchEvent()
528 mLastMotionX = (int) ev.getX(ev.findPointerIndex(mActivePointerId)); in onInterceptTouchEvent()
567 mLastMotionX = (int) ev.getX(); in onTouchEvent()
579 int deltaX = mLastMotionX - x; in onTouchEvent()
594 mLastMotionX = x; in onTouchEvent()
689 mLastMotionX = (int) ev.getX(newPointerIndex); in onSecondaryPointerUp()