Home
last modified time | relevance | path

Searched refs:maxFrame (Results 1 – 7 of 7) sorted by relevance

/external/lottie/lottie/src/main/java/com/airbnb/lottie/utils/
DLottieValueAnimator.java26 private float maxFrame = Integer.MAX_VALUE; field in LottieValueAnimator
131 maxFrame = Integer.MAX_VALUE;
142 (int) Math.min(this.maxFrame, composition.getEndFrame())
162 setMinAndMaxFrames(minFrame, (int) maxFrame);
165 public void setMaxFrame(float maxFrame) {
166 setMinAndMaxFrames(minFrame, maxFrame);
169 public void setMinAndMaxFrames(float minFrame, float maxFrame) {
170 if (minFrame > maxFrame) {
171 …egalArgumentException(String.format("minFrame (%s) must be <= maxFrame (%s)", minFrame, maxFrame));
176 this.maxFrame = MiscUtils.clamp(maxFrame, compositionMinFrame, compositionMaxFrame);
[all …]
/external/lottie/LottieSample/src/main/kotlin/com/airbnb/lottie/samples/
DPlayerViewModel.kt29 val maxFrame: Int = 0, constant in com.airbnb.lottie.samples.PlayerState
50 … copy(composition = Success(it), minFrame = it.startFrame.toInt(), maxFrame = it.endFrame.toInt()) in fetchAnimation()
98 fun setMaxFrame(maxFrame: Int) = setState { in <lambda>()
99 copy(maxFrame = Math.min(maxFrame, composition()?.endFrame?.toInt() ?: 0)) in <lambda>()
DPlayerFragment.kt128 … viewModel.selectSubscribe(PlayerState::minFrame, PlayerState::maxFrame) { minFrame, maxFrame -> in <lambda>() method
129 animationView.setMinAndMaxFrame(minFrame, maxFrame) in <lambda>()
134 … maxFrameView.setText(resources.getString(R.string.max_frame, animationView.maxFrame.toInt())) in <lambda>()
374 maxFrameView.setText(animationView.maxFrame.toInt().toString()) in <lambda>()
523 val totalFrames = ("%.0f").format(animation.maxFrame) in <lambda>()
/external/lottie/lottie/src/main/java/com/airbnb/lottie/
DLottieDrawable.java493 public void setMaxFrame(final int maxFrame) {
498 setMaxFrame(maxFrame);
503 animator.setMaxFrame(maxFrame + 0.99f);
631 public void setMinAndMaxFrame(final int minFrame, final int maxFrame) {
636 setMinAndMaxFrame(minFrame, maxFrame);
642 animator.setMinAndMaxFrames(minFrame, maxFrame + 0.99f);
DLottieAnimationView.java639 public void setMinAndMaxFrame(int minFrame, int maxFrame) { in setMinAndMaxFrame() argument
640 lottieDrawable.setMinAndMaxFrame(minFrame, maxFrame); in setMinAndMaxFrame()
/external/lottie/LottieSample/src/androidTest/java/com/airbnb/lottie/samples/
DLottieTest.kt782 drawable.frame = drawable.maxFrame.toInt() in <lambda>()
797 drawable.frame = drawable.maxFrame.toInt() in <lambda>()
802 drawable.frame = drawable.maxFrame.toInt() in <lambda>()
/external/lottie/
DCHANGELOG.md113 * Prevented minFrame from being larger than maxFrame.
216 * More accurately handles setFrame/getFrame/minFrame/maxFrame APIs. There were cases where they