Home
last modified time | relevance | path

Searched refs:xvel (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
604 xvel = clampMag(xvel, (int) mMinVelocity, (int) mMaxVelocity); in computeSettleDuration()
608 final int absXVel = Math.abs(xvel); in computeSettleDuration()
613 final float xweight = xvel != 0 ? (float) absXVel / addedVel : in computeSettleDuration()
618 int xduration = computeAxisDuration(dx, xvel, mCallback.getViewHorizontalDragRange(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
1340 if (xvel < 0 || (xvel == 0 && mSlideOffset > 0.5f)) { in onViewReleased()
1347 if (xvel > 0 || (xvel == 0 && mSlideOffset > 0.5f)) { in onViewReleased()
DDrawerLayout.java1669 public void onViewReleased(View releasedChild, float xvel, float yvel) { in onViewReleased() argument
1677 left = xvel > 0 || xvel == 0 && offset > 0.5f ? 0 : -childWidth; in onViewReleased()
1680 left = xvel < 0 || xvel == 0 && offset > 0.5f ? width - childWidth : width; in onViewReleased()
/frameworks/native/libs/input/
DVelocityTracker.cpp746 state.xvel = 0; in initState()
765 float xvel = (xpos - state.xpos) / dt; in updateState() local
768 state.xvel = xvel; in updateState()
774 state.xvel += (xvel - state.xvel) * alpha; in updateState()
777 float xaccel = (xvel - state.xvel) / dt; in updateState()
787 state.xvel += (state.xaccel * dt) * alpha; in updateState()
801 outEstimator->xCoeff[1] = state.xvel; in populateEstimator()
/frameworks/support/v7/appcompat/src/android/support/v7/widget/
DSwitchCompat.java691 final float xvel = mVelocityTracker.getXVelocity(); in stopDrag() local
692 if (Math.abs(xvel) > mMinFlingVelocity) { in stopDrag()
693 newState = ViewUtils.isLayoutRtl(this) ? (xvel < 0) : (xvel > 0); in stopDrag()
/frameworks/base/core/java/android/widget/
DScroller.java557 public boolean isScrollingInDirection(float xvel, float yvel) { in isScrollingInDirection() argument
558 return !mFinished && Math.signum(xvel) == Math.signum(mFinalX - mStartX) && in isScrollingInDirection()
DSwitch.java803 final float xvel = mVelocityTracker.getXVelocity(); in stopDrag() local
804 if (Math.abs(xvel) > mMinFlingVelocity) { in stopDrag()
805 newState = isLayoutRtl() ? (xvel < 0) : (xvel > 0); in stopDrag()
DOverScroller.java534 public boolean isScrollingInDirection(float xvel, float yvel) { in isScrollingInDirection() argument
537 return !isFinished() && Math.signum(xvel) == Math.signum(dx) && in isScrollingInDirection()
/frameworks/native/include/input/
DVelocityTracker.h215 float xpos, xvel, xaccel; member
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/
DRecyclerView.java1629 final float xvel = canScrollHorizontally ? in onTouchEvent() local
1633 if (!((xvel != 0 || yvel != 0) && fling((int) xvel, (int) yvel))) { in onTouchEvent()