Searched refs:maxVelocity (Results 1 – 4 of 4) sorted by relevance
1465 public void computeCurrentVelocity(int units, float maxVelocity) { in computeCurrentVelocity() argument1496 mXVelocity = accumX < 0.0f ? Math.max(accumX, -maxVelocity) in computeCurrentVelocity()1497 : Math.min(accumX, maxVelocity); in computeCurrentVelocity()1498 mYVelocity = accumY < 0.0f ? Math.max(accumY, -maxVelocity) in computeCurrentVelocity()1499 : Math.min(accumY, maxVelocity); in computeCurrentVelocity()
403 float maxVelocity = MAX_DISMISS_VELOCITY * mDensityScale; in onTouchEvent() local404 mVelocityTracker.computeCurrentVelocity(1000 /* px/sec */, maxVelocity); in onTouchEvent()
398 float maxVelocity = MAX_DISMISS_VELOCITY * mDensityScale; in onTouchEvent() local399 mVelocityTracker.computeCurrentVelocity(1000 /* px/sec */, maxVelocity); in onTouchEvent()
1107 int maxVelocity = GalleryUtils.dpToPixel(MAX_DISMISS_VELOCITY); in flingImages() local1117 vy = Math.min(vy, maxVelocity); in flingImages()