Home
last modified time | relevance | path

Searched refs:mPositionAnimator (Results 1 – 2 of 2) sorted by relevance

/frameworks/base/core/java/android/widget/
DSwitch.java156 private ObjectAnimator mPositionAnimator; field in Switch
1038 mPositionAnimator = ObjectAnimator.ofFloat(this, THUMB_POS, targetPosition); in animateThumbToCheckedState()
1039 mPositionAnimator.setDuration(THUMB_ANIMATION_DURATION); in animateThumbToCheckedState()
1040 mPositionAnimator.setAutoCancel(true); in animateThumbToCheckedState()
1041 mPositionAnimator.start(); in animateThumbToCheckedState()
1045 if (mPositionAnimator != null) { in cancelPositionAnimator()
1046 mPositionAnimator.cancel(); in cancelPositionAnimator()
1391 if (mPositionAnimator != null && mPositionAnimator.isStarted()) { in jumpDrawablesToCurrentState()
1392 mPositionAnimator.end(); in jumpDrawablesToCurrentState()
1393 mPositionAnimator = null; in jumpDrawablesToCurrentState()
/frameworks/support/v7/appcompat/src/android/support/v7/widget/
DSwitchCompat.java163 private ThumbAnimation mPositionAnimator; field in SwitchCompat
1012 if (mPositionAnimator != null) { in animateThumbToCheckedState()
1017 mPositionAnimator = new ThumbAnimation(mThumbPosition, newCheckedState ? 1f : 0f); in animateThumbToCheckedState()
1018 mPositionAnimator.setDuration(THUMB_ANIMATION_DURATION); in animateThumbToCheckedState()
1019 mPositionAnimator.setAnimationListener(new Animation.AnimationListener() { in animateThumbToCheckedState()
1025 if (mPositionAnimator == animation) { in animateThumbToCheckedState()
1028 mPositionAnimator = null; in animateThumbToCheckedState()
1035 startAnimation(mPositionAnimator); in animateThumbToCheckedState()
1039 if (mPositionAnimator != null) { in cancelPositionAnimator()
1041 mPositionAnimator = null; in cancelPositionAnimator()