Lines Matching refs:anim
300 * @param anim The animator, must not be null
307 private static void parseAnimatorFromTypeArray(ValueAnimator anim,
330 evaluator = setupAnimatorForPath(anim, arrayAnimator);
341 setupValues(anim, arrayAnimator, getFloats, hasFrom, fromType, hasTo, toType);
344 anim.setDuration(duration);
345 anim.setStartDelay(startDelay);
348 anim.setRepeatCount(
352 anim.setRepeatMode(
357 anim.setEvaluator(evaluator);
361 setupObjectAnimator(anim, arrayObjectAnimator, getFloats, pixelSize);
368 * @param anim The target Animator which will be updated.
372 private static TypeEvaluator setupAnimatorForPath(ValueAnimator anim,
382 anim.setObjectValues(nodesFrom, nodesTo);
388 anim.setObjectValues((Object)nodesFrom);
392 anim.setObjectValues((Object)nodesTo);
406 * @param anim The target Animator which will be updated.
412 private static void setupObjectAnimator(ValueAnimator anim, TypedArray arrayObjectAnimator,
414 ObjectAnimator oa = (ObjectAnimator) anim;
468 * @param anim The target Animator which will be updated.
476 private static void setupValues(ValueAnimator anim, TypedArray arrayAnimator,
495 anim.setFloatValues(valueFrom, valueTo);
497 anim.setFloatValues(valueFrom);
505 anim.setFloatValues(valueTo);
528 anim.setIntValues(valueFrom, valueTo);
530 anim.setIntValues(valueFrom);
542 anim.setIntValues(valueTo);
558 Animator anim = null;
575 anim = loadObjectAnimator(res, theme, attrs, pixelSize);
577 anim = loadAnimator(res, theme, attrs, null, pixelSize);
579 anim = new AnimatorSet();
586 anim.appendChangingConfigurations(a.getChangingConfigurations());
588 createAnimatorFromXml(res, theme, parser, attrs, (AnimatorSet) anim, ordering,
599 childAnims.add(anim);
614 return anim;
620 ObjectAnimator anim = new ObjectAnimator();
622 loadAnimator(res, theme, attrs, anim, pathErrorScale);
624 return anim;
633 * @param anim Null if this is a ValueAnimator, otherwise this is an
637 AttributeSet attrs, ValueAnimator anim, float pathErrorScale)
648 // If anim is not null, then it is an object animator.
649 if (anim != null) {
656 anim.appendChangingConfigurations(arrayObjectAnimator.getChangingConfigurations());
659 if (anim == null) {
660 anim = new ValueAnimator();
662 anim.appendChangingConfigurations(arrayAnimator.getChangingConfigurations());
664 parseAnimatorFromTypeArray(anim, arrayAnimator, arrayObjectAnimator, pathErrorScale);
670 anim.appendChangingConfigurations(
673 anim.setInterpolator(interpolator);
680 return anim;