Searched defs:xvel (Results 1 - 8 of 8) sorted by relevance
/frameworks/native/include/input/ |
H A D | VelocityTracker.h | 215 float xpos, xvel, xaccel; member in struct:android::IntegratingVelocityTrackerStrategy::State
|
/frameworks/base/core/java/android/widget/ |
H A D | Scroller.java | 556 public boolean isScrollingInDirection(float xvel, float yvel) { argument 557 return !mFinished && Math.signum(xvel) == Math.signum(mFinalX - mStartX) &&
|
H A D | OverScroller.java | 533 public boolean isScrollingInDirection(float xvel, float yvel) { argument 536 return !isFinished() && Math.signum(xvel) == Math.signum(dx) &&
|
/frameworks/native/libs/input/ |
H A D | VelocityTracker.cpp | 805 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 D | ViewDragHelper.java | 204 * @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 D | WearableDrawerLayout.java | 1068 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 D | SlidingPaneLayout.java | 1365 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 D | DrawerLayout.java | 2213 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