Home
last modified time | relevance | path

Searched refs:xvel (Results 1 – 8 of 8) sorted by relevance

/packages/apps/Dialer/src/com/android/dialer/widget/
DViewDragHelper.java206 public void onViewReleased(View releasedChild, float xvel, float yvel) {} in onViewReleased() argument
218 public void onViewFling(View releasedChild, float xvel, float yvel) {} in onViewFling() 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()
604 private int computeSettleDuration(View child, int dx, int dy, int xvel, int yvel) { in computeSettleDuration() argument
605 xvel = clampMag(xvel, (int) mMinVelocity, (int) mMaxVelocity); in computeSettleDuration()
609 final int absXVel = Math.abs(xvel); in computeSettleDuration()
614 final float xweight = xvel != 0 ? (float) absXVel / addedVel : in computeSettleDuration()
619 int xduration = computeAxisDuration(dx, xvel, mCallback.getViewHorizontalDragRange(child)); in computeSettleDuration()
810 private void dispatchViewFling(float xvel, float yvel) {
[all …]
DOverlappingPaneLayout.java1113 public void onViewReleased(View releasedChild, float xvel, float yvel) { in onViewReleased() argument
/packages/apps/Camera2/src/com/android/camera/ui/
DSwitch.java302 float xvel = mVelocityTracker.getXVelocity(); in stopDrag() local
303 if (Math.abs(xvel) > mMinFlingVelocity) { in stopDrag()
304 newState = xvel > 0; in stopDrag()
/packages/apps/Camera/src/com/android/camera/ui/
DSwitch.java311 float xvel = mVelocityTracker.getXVelocity(); in stopDrag() local
312 if (Math.abs(xvel) > mMinFlingVelocity) { in stopDrag()
313 newState = xvel > 0; in stopDrag()
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/
DScroller.java503 public boolean isScrollingInDirection(float xvel, float yvel) { in isScrollingInDirection() argument
504 return !mFinished && Math.signum(xvel) == Math.signum(mFinalX - mStartX) && in isScrollingInDirection()
DOverScroller.java535 public boolean isScrollingInDirection(float xvel, float yvel) { in isScrollingInDirection() argument
538 return !isFinished() && Math.signum(xvel) == Math.signum(dx) && in isScrollingInDirection()
/packages/apps/Launcher3/src/com/android/launcher3/
DLauncherScroller.java555 public boolean isScrollingInDirection(float xvel, float yvel) { in isScrollingInDirection() argument
556 return !mFinished && Math.signum(xvel) == Math.signum(mFinalX - mStartX) && in isScrollingInDirection()
/packages/apps/DeskClock/src/com/android/deskclock/widget/sgv/
DOverScrollerSGV.java537 public boolean isScrollingInDirection(float xvel, float yvel) { in isScrollingInDirection() argument
540 return !isFinished() && Math.signum(xvel) == Math.signum(dx) && in isScrollingInDirection()