/frameworks/support/core-ui/java/android/support/v4/widget/ |
H A D | ViewDragHelper.java | 199 * @param yvel Y velocity of the pointer as it left the screen in pixels per second. 201 public void onViewReleased(View releasedChild, float xvel, float yvel) {} argument 582 * @param yvel Vertical velocity 585 private boolean forceSettleCapturedViewAt(int finalLeft, int finalTop, int xvel, int yvel) { argument 598 final int duration = computeSettleDuration(mCapturedView, dx, dy, xvel, yvel); 605 private int computeSettleDuration(View child, int dx, int dy, int xvel, int yvel) { argument 607 yvel = clampMag(yvel, (int) mMinVelocity, (int) mMaxVelocity); 611 final int absYVel = Math.abs(yvel); 617 final float yweight = yvel ! 767 dispatchViewReleased(float xvel, float yvel) argument [all...] |
H A D | SlidingPaneLayout.java | 1350 public void onViewReleased(View releasedChild, float xvel, float yvel) { argument
|
H A D | DrawerLayout.java | 2126 public void onViewReleased(View releasedChild, float xvel, float yvel) { argument
|
/frameworks/native/libs/input/ |
H A D | VelocityTracker.cpp | 752 state.yvel = 0; 769 float yvel = (ypos - state.ypos) / dt; local 772 state.yvel = yvel; 778 state.yvel += (yvel - state.yvel) * alpha; 781 float yaccel = (yvel - state.yvel) / dt; 791 state.yvel [all...] |
/frameworks/support/design/src/android/support/design/widget/ |
H A D | BottomSheetBehavior.java | 586 boolean shouldHide(View child, float yvel) { argument 594 final float newTop = child.getTop() + yvel * HIDE_FRICTION; 672 public void onViewReleased(View releasedChild, float xvel, float yvel) { 675 if (yvel < 0) { // Moving up 678 } else if (mHideable && shouldHide(releasedChild, yvel)) { 681 } else if (yvel == 0.f) {
|
H A D | HeaderBehavior.java | 169 float yvel = mVelocityTracker.getYVelocity(mActivePointerId); 170 fling(parent, child, -getScrollRangeForDragFling(child), 0, yvel);
|
H A D | SwipeDismissBehavior.java | 248 public void onViewReleased(View child, float xvel, float yvel) {
|
/frameworks/base/core/java/com/android/internal/widget/ |
H A D | ResolverDrawerLayout.java | 373 final float yvel = mVelocityTracker.getYVelocity(mActivePointerId); 374 if (Math.abs(yvel) > mMinFlingVelocity) { 376 && yvel > 0 && mCollapseOffset > mCollapsibleHeight) { 377 smoothScrollTo(mCollapsibleHeight + mUncollapsibleHeight, yvel); 380 smoothScrollTo(yvel < 0 ? 0 : mCollapsibleHeight, yvel);
|
H A D | RecyclerView.java | 2855 final float yvel = canScrollVertically 2857 if (!((xvel != 0 || yvel != 0) && fling((int) xvel, (int) yvel))) {
|
/frameworks/support/wear/src/android/support/wear/widget/drawer/ |
H A D | WearableDrawerLayout.java | 1067 public void onViewReleased(View releasedChild, float xvel, float yvel) { argument 1073 if (yvel > 0 || (yvel == 0 && openedPercent > OPENED_PERCENT_THRESHOLD)) { 1135 public void onViewReleased(View releasedChild, float xvel, float yvel) { argument 1141 if (yvel < 0 || (yvel == 0 && openedPercent > OPENED_PERCENT_THRESHOLD)) {
|
/frameworks/base/core/java/android/widget/ |
H A D | Scroller.java | 556 public boolean isScrollingInDirection(float xvel, float yvel) { argument 558 Math.signum(yvel) == Math.signum(mFinalY - mStartY);
|
H A D | OverScroller.java | 533 public boolean isScrollingInDirection(float xvel, float yvel) { argument 537 Math.signum(yvel) == Math.signum(dy);
|
H A D | AbsListView.java | 4598 final float yvel = -vt.getYVelocity(activeId); 4600 if (Math.abs(yvel) >= mMinimumVelocity 4601 && scroller.isScrollingInDirection(0, yvel)) {
|
/frameworks/native/include/input/ |
H A D | VelocityTracker.h | 216 float ypos, yvel, yaccel; member in struct:android::IntegratingVelocityTrackerStrategy::State
|
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/ |
H A D | RecyclerView.java | 2998 final float yvel = canScrollVertically 3000 if (!((xvel != 0 || yvel != 0) && fling((int) xvel, (int) yvel))) {
|