Searched refs:getMinFrame (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() 229 if (isReversed() && getFrame() == getMinFrame()) { in resumeAnimation() 232 frame = getMinFrame(); in resumeAnimation() [all …]
|
/external/lottie/lottie/src/test/java/com/airbnb/lottie/ |
D | LottieValueAnimatorUnitTest.java | 266 assertClose(animator.getMinFrame(), composition.getStartFrame()); 280 assertClose(100.0f, animator.getMinFrame()); 296 assertClose(100.0f, animator.getMinFrame()); 305 assertClose(100.0f, animator.getMinFrame()); 321 assertClose(100.0f, animator.getMinFrame()); 347 assertClose(0.0f, animator.getMinFrame()); 354 assertClose(0.0f, animator.getMinFrame()); 363 assertClose(100.0f, animator.getMinFrame()); 372 assertClose(100.0f, animator.getMinFrame());
|
D | LottieDrawableTest.java | 52 assertEquals(182f, drawable.getMinFrame()); in testMinFrame() 61 assertEquals(150f, drawable.getMinFrame()); in testMinWithStartFrameFrame() 79 assertEquals(121f, drawable.getMinFrame()); 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())); 470 public float getMinFrame() { 471 return animator.getMinFrame();
|
D | LottieAnimationView.java | 566 public float getMinFrame() { in getMinFrame() method in LottieAnimationView 567 return lottieDrawable.getMinFrame(); in getMinFrame()
|