Searched refs:getMaxFrame (Results 1 – 5 of 5) sorted by relevance
/external/lottie/lottie/src/main/java/com/airbnb/lottie/utils/ |
D | LottieValueAnimator.java | 62 return (getMaxFrame() - frame) / (getMaxFrame() - getMinFrame()); in getAnimatedFraction() 64 return (frame - getMinFrame()) / (getMaxFrame() - getMinFrame()); in getAnimatedFraction() 93 boolean ended = !MiscUtils.contains(frame, getMinFrame(), getMaxFrame()); in doFrame() 94 frame = MiscUtils.clamp(frame, getMinFrame(), getMaxFrame()); in doFrame() 101 frame = speed < 0 ? getMinFrame() : getMaxFrame(); in doFrame() 111 frame = isReversed() ? getMaxFrame() : getMinFrame(); in doFrame() 156 this.frame = MiscUtils.clamp(frame, getMinFrame(), getMaxFrame()); 207 setFrame((int) (isReversed() ? getMaxFrame() : getMinFrame())); in playAnimation() 230 frame = getMaxFrame(); in resumeAnimation() 231 } else if (!isReversed() && getFrame() == getMaxFrame()) { in resumeAnimation() [all …]
|
/external/lottie/lottie/src/test/java/com/airbnb/lottie/ |
D | LottieValueAnimatorUnitTest.java | 272 assertClose(animator.getMaxFrame(), composition.getEndFrame()); 288 assertClose(100.0f, animator.getMaxFrame()); 297 assertClose(900.0f, animator.getMaxFrame()); 313 assertEquals(100.0f, animator.getMaxFrame()); 322 assertClose(900.0f, animator.getMaxFrame()); 331 assertClose(500.0f, animator.getMaxFrame()); 340 assertClose(1500.0f, animator.getMaxFrame()); 346 assertClose(0.0f, animator.getMaxFrame()); 355 assertClose(1000.0f, animator.getMaxFrame()); 364 assertClose(1000.0f, animator.getMaxFrame()); [all …]
|
D | LottieDrawableTest.java | 70 assertEquals(121.99f, drawable.getMaxFrame()); in testMaxFrame() 80 assertEquals(182.99f, drawable.getMaxFrame()); in testMinMaxFrame()
|
/external/lottie/lottie/src/main/java/com/airbnb/lottie/ |
D | LottieDrawable.java | 415 setFrame((int) (getSpeed() < 0 ? getMinFrame() : getMaxFrame())); in playAnimation() 446 setFrame((int) (getSpeed() < 0 ? getMinFrame() : getMaxFrame())); 509 public float getMaxFrame() { 510 return animator.getMaxFrame();
|
D | LottieAnimationView.java | 587 public float getMaxFrame() { in getMaxFrame() method in LottieAnimationView 588 return lottieDrawable.getMaxFrame(); in getMaxFrame()
|