Searched defs:playTime (Results 1 - 5 of 5) sorted by relevance

/frameworks/base/core/java/android/animation/
H A DTimeAnimator.java51 public void setCurrentPlayTime(long playTime) { argument
53 mStartTime = Math.max(mStartTime, currentTime - playTime);
H A DValueAnimator.java574 * @param playTime The time, in milliseconds, to which the animation is advanced or rewound.
576 public void setCurrentPlayTime(long playTime) { argument
577 float fraction = mDuration > 0 ? (float) playTime / mDuration : 1;
/frameworks/base/libs/hwui/
H A DPropertyValuesAnimatorSet.cpp57 void PropertyValuesAnimatorSet::onPlayTimeChanged(nsecs_t playTime) { argument
58 if (playTime == 0 && mDuration > 0) {
66 } else if (playTime >= mDuration) {
73 anim->setCurrentPlayTime(playTime);
121 void PropertyAnimator::setCurrentPlayTime(nsecs_t playTime) { argument
122 if (playTime >= mStartDelay && playTime < mTotalDuration) {
123 nsecs_t currentIterationPlayTime = (playTime - mStartDelay) % mDuration;
126 } else if (mLatestFraction < 1.0f && playTime >= mTotalDuration) {
H A DAnimator.cpp253 bool BaseRenderNodeAnimator::updatePlayTime(nsecs_t playTime) { argument
254 mPlayTime = mPlayState == PlayState::Reversing ? mDuration - playTime : playTime;
260 if (playTime < 0) {
274 return playTime >= mDuration;
H A DAnimator.h126 virtual void onPlayTimeChanged(nsecs_t playTime) {} argument
161 bool updatePlayTime(nsecs_t playTime);

Completed in 41 milliseconds