Home
last modified time | relevance | path

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

/frameworks/native/libs/input/
DVelocityTracker.cpp834 state.yvel = 0; in initState()
851 float yvel = (ypos - state.ypos) / dt; in updateState() local
854 state.yvel = yvel; in updateState()
860 state.yvel += (yvel - state.yvel) * alpha; in updateState()
863 float yaccel = (yvel - state.yvel) / dt; in updateState()
873 state.yvel += (state.yaccel * dt) * alpha; in updateState()
889 outEstimator->yCoeff[1] = state.yvel; in populateEstimator()
/frameworks/base/core/java/com/android/internal/widget/
DResolverDrawerLayout.java417 final float yvel = mVelocityTracker.getYVelocity(mActivePointerId); in onTouchEvent() local
418 if (Math.abs(yvel) > mMinFlingVelocity) { in onTouchEvent()
420 if (isDismissable() && yvel < 0) { in onTouchEvent()
424 smoothScrollTo(yvel < 0 ? 0 : mCollapsibleHeight, yvel); in onTouchEvent()
428 && yvel > 0 && mCollapseOffset > mCollapsibleHeight) { in onTouchEvent()
429 smoothScrollTo(mCollapsibleHeight + mUncollapsibleHeight, yvel); in onTouchEvent()
435 smoothScrollTo(yvel < 0 ? 0 : mCollapsibleHeight, yvel); in onTouchEvent()
DRecyclerView.java2854 final float yvel = canScrollVertically in onTouchEvent() local
2856 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.java540 public boolean isScrollingInDirection(float xvel, float yvel) { in isScrollingInDirection() argument
544 Math.signum(yvel) == Math.signum(dy); in isScrollingInDirection()
DAbsListView.java4671 final float yvel = -vt.getYVelocity(activeId);
4673 if (Math.abs(yvel) >= mMinimumVelocity
4674 && scroller.isScrollingInDirection(0, yvel)) {
/frameworks/native/include/input/
DVelocityTracker.h216 float ypos, yvel, yaccel; member