Home
last modified time | relevance | path

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

/frameworks/support/v4/java/android/support/v4/widget/
DViewDragHelper.java201 public void onViewReleased(View releasedChild, float xvel, float yvel) {} in onViewReleased() argument
583 private boolean forceSettleCapturedViewAt(int finalLeft, int finalTop, int xvel, int yvel) { in forceSettleCapturedViewAt() argument
596 final int duration = computeSettleDuration(mCapturedView, dx, dy, xvel, yvel); in forceSettleCapturedViewAt()
603 private int computeSettleDuration(View child, int dx, int dy, int xvel, int yvel) { in computeSettleDuration() argument
605 yvel = clampMag(yvel, (int) mMinVelocity, (int) mMaxVelocity); in computeSettleDuration()
609 final int absYVel = Math.abs(yvel); in computeSettleDuration()
615 final float yweight = yvel != 0 ? (float) absYVel / addedVel : in computeSettleDuration()
619 int yduration = computeAxisDuration(dy, yvel, mCallback.getViewVerticalDragRange(child)); in computeSettleDuration()
765 private void dispatchViewReleased(float xvel, float yvel) { in dispatchViewReleased() argument
767 mCallback.onViewReleased(mCapturedView, xvel, yvel); in dispatchViewReleased()
[all …]
DSlidingPaneLayout.java1334 public void onViewReleased(View releasedChild, float xvel, float yvel) { in onViewReleased() argument
DDrawerLayout.java1669 public void onViewReleased(View releasedChild, float xvel, float yvel) { in onViewReleased() argument
/frameworks/native/libs/input/
DVelocityTracker.cpp749 state.yvel = 0; in initState()
766 float yvel = (ypos - state.ypos) / dt; in updateState() local
769 state.yvel = yvel; in updateState()
775 state.yvel += (yvel - state.yvel) * alpha; in updateState()
778 float yaccel = (yvel - state.yvel) / dt; in updateState()
788 state.yvel += (state.yaccel * dt) * alpha; in updateState()
804 outEstimator->yCoeff[1] = state.yvel; in populateEstimator()
/frameworks/base/core/java/com/android/internal/widget/
DResolverDrawerLayout.java282 final float yvel = mVelocityTracker.getYVelocity(mActivePointerId); in onTouchEvent() local
283 if (Math.abs(yvel) > mMinFlingVelocity) { in onTouchEvent()
284 smoothScrollTo(yvel < 0 ? 0 : mCollapsibleHeight, yvel); in onTouchEvent()
/frameworks/base/core/java/android/widget/
DScroller.java557 public boolean isScrollingInDirection(float xvel, float yvel) { in isScrollingInDirection() argument
559 Math.signum(yvel) == Math.signum(mFinalY - mStartY); in isScrollingInDirection()
DOverScroller.java534 public boolean isScrollingInDirection(float xvel, float yvel) { in isScrollingInDirection() argument
538 Math.signum(yvel) == Math.signum(dy); in isScrollingInDirection()
DAbsListView.java4341 final float yvel = -vt.getYVelocity(activeId);
4343 if (Math.abs(yvel) >= mMinimumVelocity
4344 && scroller.isScrollingInDirection(0, yvel)) {
/frameworks/native/include/input/
DVelocityTracker.h216 float ypos, yvel, yaccel; member
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/
DRecyclerView.java1631 final float yvel = canScrollVertically ? in onTouchEvent() local
1633 if (!((xvel != 0 || yvel != 0) && fling((int) xvel, (int) yvel))) { in onTouchEvent()