Searched refs:travelDistance (Results 1 – 2 of 2) sorted by relevance
349 float travelDistance = Math.max(0.2f, progressNeeded); in calculateDuration() local350 long duration = (long) Math.max(100, ANIMATION_DURATION / velocityDivisor * travelDistance); in calculateDuration()
654 final double travelDistance = Math.sqrt(translateX * translateX + translateY * translateY); in createReturnAnimationLocked() local657 final long duration = MIN_ANIMATION_DURATION_MS + (long) (travelDistance / displayDiagonal in createReturnAnimationLocked()