Searched defs:xvel (Results 1 - 8 of 8) sorted by relevance

/frameworks/native/include/input/
H A DVelocityTracker.h215 float xpos, xvel, xaccel; member in struct:android::IntegratingVelocityTrackerStrategy::State
/frameworks/base/core/java/android/widget/
H A DScroller.java556 public boolean isScrollingInDirection(float xvel, float yvel) { argument
557 return !mFinished && Math.signum(xvel) == Math.signum(mFinalX - mStartX) &&
H A DOverScroller.java533 public boolean isScrollingInDirection(float xvel, float yvel) { argument
536 return !isFinished() && Math.signum(xvel) == Math.signum(dx) &&
/frameworks/native/libs/input/
H A DVelocityTracker.cpp805 state.xvel = 0;
824 float xvel = (xpos - state.xpos) / dt; local
827 state.xvel = xvel;
833 state.xvel += (xvel - state.xvel) * alpha;
836 float xaccel = (xvel - state.xvel) / dt;
846 state.xvel
[all...]
/frameworks/support/customview/src/main/java/androidx/customview/widget/
H A DViewDragHelper.java204 * @param xvel X velocity of the pointer as it left the screen in pixels per second.
207 public void onViewReleased(@NonNull View releasedChild, float xvel, float yvel) {} argument
592 * @param xvel Horizontal velocity
596 private boolean forceSettleCapturedViewAt(int finalLeft, int finalTop, int xvel, int yvel) { argument
609 final int duration = computeSettleDuration(mCapturedView, dx, dy, xvel, yvel);
616 private int computeSettleDuration(View child, int dx, int dy, int xvel, int yvel) { argument
617 xvel = clampMag(xvel, (int) mMinVelocity, (int) mMaxVelocity);
621 final int absXVel = Math.abs(xvel);
626 final float xweight = xvel !
778 dispatchViewReleased(float xvel, float yvel) argument
[all...]
/frameworks/support/wear/src/main/java/androidx/wear/widget/drawer/
H A DWearableDrawerLayout.java1068 public void onViewReleased(@NonNull View releasedChild, float xvel, float yvel) { argument
1137 public void onViewReleased(@NonNull View releasedChild, float xvel, float yvel) { argument
/frameworks/support/slidingpanelayout/src/main/java/androidx/slidingpanelayout/widget/
H A DSlidingPaneLayout.java1365 public void onViewReleased(View releasedChild, float xvel, float yvel) { argument
1371 if (xvel < 0 || (xvel == 0 && mSlideOffset > 0.5f)) {
1378 if (xvel > 0 || (xvel == 0 && mSlideOffset > 0.5f)) {
/frameworks/support/drawerlayout/src/main/java/androidx/drawerlayout/widget/
H A DDrawerLayout.java2213 public void onViewReleased(View releasedChild, float xvel, float yvel) { argument
2221 left = xvel > 0 || (xvel == 0 && offset > 0.5f) ? 0 : -childWidth;
2224 left = xvel < 0 || (xvel == 0 && offset > 0.5f) ? width - childWidth : width;

Completed in 125 milliseconds