Home
last modified time | relevance | path

Searched refs:MiscUtils (Results 1 – 25 of 28) sorted by relevance

12

/external/lottie/lottie/src/main/java/com/airbnb/lottie/model/content/
DShapeData.java8 import com.airbnb.lottie.utils.MiscUtils;
74 setInitialPoint(MiscUtils.lerp(initialPoint1.x, initialPoint2.x, percentage), in interpolateBetween()
75 MiscUtils.lerp(initialPoint1.y, initialPoint2.y, percentage)); in interpolateBetween()
90 MiscUtils.lerp(cp11.x, cp12.x, percentage), MiscUtils.lerp(cp11.y, cp12.y, in interpolateBetween()
93 MiscUtils.lerp(cp21.x, cp22.x, percentage), MiscUtils.lerp(cp21.y, cp22.y, in interpolateBetween()
96 MiscUtils.lerp(vertex1.x, vertex2.x, percentage), MiscUtils.lerp(vertex1.y, vertex2.y, in interpolateBetween()
DGradientColor.java4 import com.airbnb.lottie.utils.MiscUtils;
35 positions[i] = MiscUtils.lerp(gc1.positions[i], gc2.positions[i], progress); in lerp()
/external/lottie/lottie/src/main/java/com/airbnb/lottie/parser/
DShapeDataParser.java8 import com.airbnb.lottie.utils.MiscUtils;
85 PointF shapeCp1 = MiscUtils.addPoints(previousVertex, cp1); in parse()
86 PointF shapeCp2 = MiscUtils.addPoints(vertex, cp2); in parse()
96 PointF shapeCp1 = MiscUtils.addPoints(previousVertex, cp1); in parse()
97 PointF shapeCp2 = MiscUtils.addPoints(vertex, cp2); in parse()
DKeyframeParser.java13 import com.airbnb.lottie.utils.MiscUtils;
130 cp1.x = MiscUtils.clamp(cp1.x, -scale, scale); in parseKeyframe()
131 cp1.y = MiscUtils.clamp(cp1.y, -MAX_CP_VALUE, MAX_CP_VALUE); in parseKeyframe()
132 cp2.x = MiscUtils.clamp(cp2.x, -scale, scale); in parseKeyframe()
133 cp2.y = MiscUtils.clamp(cp2.y, -MAX_CP_VALUE, MAX_CP_VALUE); in parseKeyframe()
DGradientColorParser.java7 import com.airbnb.lottie.utils.MiscUtils;
143 return (int) (255 * MiscUtils.lerp(opacities[i - 1], opacities[i], progress)); in getOpacityAtPosition()
/external/lottie/lottie/src/main/java/com/airbnb/lottie/value/
DLottieInterpolatedPointValue.java6 import com.airbnb.lottie.utils.MiscUtils;
22 MiscUtils.lerp(startValue.x, endValue.x, progress), in interpolateValue()
23 MiscUtils.lerp(startValue.y, endValue.y, progress) in interpolateValue()
DLottieRelativePointValueCallback.java6 import com.airbnb.lottie.utils.MiscUtils;
26 MiscUtils.lerp( in getValue()
30 MiscUtils.lerp( in getValue()
DLottieRelativeIntegerValueCallback.java3 import com.airbnb.lottie.utils.MiscUtils;
13 int originalValue = MiscUtils.lerp( in getValue()
DLottieInterpolatedFloatValue.java5 import com.airbnb.lottie.utils.MiscUtils;
19 return MiscUtils.lerp(startValue, endValue, progress); in interpolateValue()
DLottieInterpolatedIntegerValue.java5 import com.airbnb.lottie.utils.MiscUtils;
19 return MiscUtils.lerp(startValue, endValue, progress); in interpolateValue()
DLottieRelativeFloatValueCallback.java5 import com.airbnb.lottie.utils.MiscUtils;
23 float originalValue = MiscUtils.lerp( in getValue()
/external/lottie/lottie/src/main/java/com/airbnb/lottie/utils/
DLottieValueAnimator.java93 boolean ended = !MiscUtils.contains(frame, getMinFrame(), getMaxFrame()); in doFrame()
94 frame = MiscUtils.clamp(frame, getMinFrame(), getMaxFrame()); in doFrame()
156 this.frame = MiscUtils.clamp(frame, getMinFrame(), getMaxFrame());
175 this.minFrame = MiscUtils.clamp(minFrame, compositionMinFrame, compositionMaxFrame);
176 this.maxFrame = MiscUtils.clamp(maxFrame, compositionMinFrame, compositionMaxFrame);
177 setFrame((int) MiscUtils.clamp(frame, minFrame, maxFrame));
DUtils.java134 newStart = MiscUtils.floorMod(newStart, length); in applyTrimPathIfNeeded()
135 newEnd = MiscUtils.floorMod(newEnd, length); in applyTrimPathIfNeeded()
139 newStart = MiscUtils.floorMod(newStart, length); in applyTrimPathIfNeeded()
142 newEnd = MiscUtils.floorMod(newEnd, length); in applyTrimPathIfNeeded()
/external/lottie/lottie/src/main/java/com/airbnb/lottie/animation/keyframe/
DScaleKeyframeAnimation.java5 import com.airbnb.lottie.utils.MiscUtils;
35 MiscUtils.lerp(startTransform.getScaleX(), endTransform.getScaleX(), keyframeProgress), in getValue()
36 MiscUtils.lerp(startTransform.getScaleY(), endTransform.getScaleY(), keyframeProgress) in getValue()
DShapeKeyframeAnimation.java7 import com.airbnb.lottie.utils.MiscUtils;
24 MiscUtils.getPathFromData(tempShapeData, tempPath); in getValue()
DIntegerKeyframeAnimation.java4 import com.airbnb.lottie.utils.MiscUtils;
37 return MiscUtils.lerp(keyframe.getStartValueInt(), keyframe.getEndValueInt(), keyframeProgress); in getIntValue()
DFloatKeyframeAnimation.java4 import com.airbnb.lottie.utils.MiscUtils;
36 …return MiscUtils.lerp(keyframe.getStartValueFloat(), keyframe.getEndValueFloat(), keyframeProgress… in getFloatValue()
DColorKeyframeAnimation.java4 import com.airbnb.lottie.utils.MiscUtils;
39 return GammaEvaluator.evaluate(MiscUtils.clamp(keyframeProgress, 0f, 1f), startColor, endColor); in getIntValue()
/external/lottie/lottie/src/main/java/com/airbnb/lottie/animation/content/
DRepeaterContent.java16 import com.airbnb.lottie.utils.MiscUtils;
116 float newAlpha = alpha * MiscUtils.lerp(startOpacity, endOpacity, i / copies); in draw()
131 MiscUtils.resolveKeyPath(keyPath, depth, accumulator, currentPartialKeyPath, this); in resolveKeyPath()
DFillContent.java21 import com.airbnb.lottie.utils.MiscUtils;
27 import static com.airbnb.lottie.utils.MiscUtils.clamp;
120 MiscUtils.resolveKeyPath(keyPath, depth, accumulator, currentPartialKeyPath, this); in resolveKeyPath()
DEllipseContent.java15 import com.airbnb.lottie.utils.MiscUtils;
121 MiscUtils.resolveKeyPath(keyPath, depth, accumulator, currentPartialKeyPath, this); in resolveKeyPath()
DGradientFillContent.java28 import com.airbnb.lottie.utils.MiscUtils;
34 import static com.airbnb.lottie.utils.MiscUtils.clamp;
229 MiscUtils.resolveKeyPath(keyPath, depth, accumulator, currentPartialKeyPath, this); in resolveKeyPath()
DRectangleContent.java15 import com.airbnb.lottie.utils.MiscUtils;
160 MiscUtils.resolveKeyPath(keyPath, depth, accumulator, currentPartialKeyPath, this); in resolveKeyPath()
/external/lottie/LottieSample/src/main/kotlin/com/airbnb/lottie/samples/
DDynamicActivity.kt9 import com.airbnb.lottie.utils.MiscUtils in <lambda>()
84 point.set(startX, MiscUtils.lerp(startY, endY, frameInfo.interpolatedKeyframeProgress)) in <lambda>()
/external/lottie/lottie/src/main/java/com/airbnb/lottie/
DLottieDrawable.java34 import com.airbnb.lottie.utils.MiscUtils;
487 …setMinFrame((int) MiscUtils.lerp(composition.getStartFrame(), composition.getEndFrame(), minProgre…
526 …setMaxFrame((int) MiscUtils.lerp(composition.getStartFrame(), composition.getEndFrame(), maxProgre…
662 …setMinAndMaxFrame((int) MiscUtils.lerp(composition.getStartFrame(), composition.getEndFrame(), min…
663 (int) MiscUtils.lerp(composition.getStartFrame(), composition.getEndFrame(), maxProgress));
753 …animator.setFrame(MiscUtils.lerp(composition.getStartFrame(), composition.getEndFrame(), progress)…

12