Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/widget/
DSwitch.java155 private ObjectAnimator mPositionAnimator; field in Switch
1037 mPositionAnimator = ObjectAnimator.ofFloat(this, THUMB_POS, targetPosition); in animateThumbToCheckedState()
1038 mPositionAnimator.setDuration(THUMB_ANIMATION_DURATION); in animateThumbToCheckedState()
1039 mPositionAnimator.setAutoCancel(true); in animateThumbToCheckedState()
1040 mPositionAnimator.start(); in animateThumbToCheckedState()
1044 if (mPositionAnimator != null) { in cancelPositionAnimator()
1045 mPositionAnimator.cancel(); in cancelPositionAnimator()
1385 if (mPositionAnimator != null && mPositionAnimator.isRunning()) { in jumpDrawablesToCurrentState()
1386 mPositionAnimator.end(); in jumpDrawablesToCurrentState()
1387 mPositionAnimator = null; in jumpDrawablesToCurrentState()
/frameworks/support/v7/appcompat/src/android/support/v7/widget/
DSwitchCompat.java143 private ThumbAnimation mPositionAnimator; field in SwitchCompat
751 mPositionAnimator = new ThumbAnimation(mThumbPosition, newCheckedState ? 1 : 0); in animateThumbToCheckedState()
752 mPositionAnimator.setDuration(THUMB_ANIMATION_DURATION); in animateThumbToCheckedState()
753 startAnimation(mPositionAnimator); in animateThumbToCheckedState()
757 if (mPositionAnimator != null) { in cancelPositionAnimator()
759 mPositionAnimator = null; in cancelPositionAnimator()
1103 if (mPositionAnimator != null && !mPositionAnimator.hasEnded()) { in jumpDrawablesToCurrentState()
1106 setThumbPosition(mPositionAnimator.mEndPosition); in jumpDrawablesToCurrentState()
1107 mPositionAnimator = null; in jumpDrawablesToCurrentState()