Home
last modified time | relevance | path

Searched refs:yvel (Results 1 – 7 of 7) sorted by relevance

/frameworks/native/libs/input/
DVelocityTracker.cpp819 state.yvel = 0; in initState()
836 float yvel = (ypos - state.ypos) / dt; in updateState() local
839 state.yvel = yvel; in updateState()
845 state.yvel += (yvel - state.yvel) * alpha; in updateState()
848 float yaccel = (yvel - state.yvel) / dt; in updateState()
858 state.yvel += (state.yaccel * dt) * alpha; in updateState()
874 outEstimator->yCoeff[1] = state.yvel; in populateEstimator()
/frameworks/base/core/java/com/android/internal/widget/
DResolverDrawerLayout.java473 final float yvel = mVelocityTracker.getYVelocity(mActivePointerId); in onTouchEvent() local
474 if (Math.abs(yvel) > mMinFlingVelocity) { in onTouchEvent()
476 if (isDismissable() && yvel < 0) { in onTouchEvent()
480 smoothScrollTo(yvel < 0 ? 0 : mCollapsibleHeight, yvel); in onTouchEvent()
484 && yvel > 0 && mCollapseOffset > mCollapsibleHeight) { in onTouchEvent()
485 smoothScrollTo(mCollapsibleHeight + mUncollapsibleHeight, yvel); in onTouchEvent()
489 smoothScrollTo(yvel < 0 ? 0 : mCollapsibleHeight, yvel); in onTouchEvent()
DRecyclerView.java2909 final float yvel = canScrollVertically in onTouchEvent() local
2911 if (!((xvel != 0 || yvel != 0) && fling((int) xvel, (int) yvel))) { in onTouchEvent()
/frameworks/base/core/java/android/widget/
DScroller.java563 public boolean isScrollingInDirection(float xvel, float yvel) { in isScrollingInDirection() argument
565 Math.signum(yvel) == Math.signum(mFinalY - mStartY); in isScrollingInDirection()
DOverScroller.java523 public boolean isScrollingInDirection(float xvel, float yvel) { in isScrollingInDirection() argument
527 Math.signum(yvel) == Math.signum(dy); in isScrollingInDirection()
DAbsListView.java4807 final float yvel = -vt.getYVelocity(activeId);
4809 if (Math.abs(yvel) >= mMinimumVelocity
4810 && scroller.isScrollingInDirection(0, yvel)) {
/frameworks/native/include/input/
DVelocityTracker.h237 float ypos, yvel, yaccel; member