Lines Matching refs:fraction
165 * Gets the animated value, given the elapsed fraction of the animation (interpolated by the
167 * function maps the input fraction to the appropriate keyframe interval and a fraction
168 * between them and returns the interpolated value. Note that the input fraction may fall
170 * spring interpolation that might send the fraction past 1.0). We handle this situation by
173 * @param fraction The elapsed fraction of the animation
176 public Object getValue(float fraction) {
181 fraction = mInterpolator.getInterpolation(fraction);
183 return mEvaluator.evaluate(fraction, mFirstKeyframe.getValue(),
186 if (fraction <= 0f) {
190 fraction = interpolator.getInterpolation(fraction);
193 float intervalFraction = (fraction - prevFraction) /
197 } else if (fraction >= 1f) {
201 fraction = interpolator.getInterpolation(fraction);
204 float intervalFraction = (fraction - prevFraction) /
212 if (fraction < nextKeyframe.getFraction()) {
215 fraction = interpolator.getInterpolation(fraction);
218 float intervalFraction = (fraction - prevFraction) /