Searched refs:maxVelocity (Results 1 – 2 of 2) 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()
1049 int maxVelocity = (int) GalleryUtils.dpToPixel(MAX_DISMISS_VELOCITY); in flingImages() local1058 vy = Math.min(vy, maxVelocity); in flingImages()