Home
last modified time | relevance | path

Searched refs:xvel (Results 1 – 6 of 6) sorted by relevance

/frameworks/native/libs/input/
DVelocityTracker.cpp831 state.xvel = 0; in initState()
850 float xvel = (xpos - state.xpos) / dt; in updateState() local
853 state.xvel = xvel; in updateState()
859 state.xvel += (xvel - state.xvel) * alpha; in updateState()
862 float xaccel = (xvel - state.xvel) / dt; in updateState()
872 state.xvel += (state.xaccel * dt) * alpha; in updateState()
886 outEstimator->xCoeff[1] = state.xvel; in populateEstimator()
/frameworks/base/core/java/android/widget/
DScroller.java563 public boolean isScrollingInDirection(float xvel, float yvel) { in isScrollingInDirection() argument
564 return !mFinished && Math.signum(xvel) == Math.signum(mFinalX - mStartX) && in isScrollingInDirection()
DSwitch.java1111 final float xvel = mVelocityTracker.getXVelocity(); in stopDrag() local
1112 if (Math.abs(xvel) > mMinFlingVelocity) { in stopDrag()
1113 newState = isLayoutRtl() ? (xvel < 0) : (xvel > 0); in stopDrag()
DOverScroller.java540 public boolean isScrollingInDirection(float xvel, float yvel) { in isScrollingInDirection() argument
543 return !isFinished() && Math.signum(xvel) == Math.signum(dx) && in isScrollingInDirection()
/frameworks/native/include/input/
DVelocityTracker.h215 float xpos, xvel, xaccel; member
/frameworks/base/core/java/com/android/internal/widget/
DRecyclerView.java2852 final float xvel = canScrollHorizontally in onTouchEvent() local
2856 if (!((xvel != 0 || yvel != 0) && fling((int) xvel, (int) yvel))) { in onTouchEvent()