Home
last modified time | relevance | path

Searched refs:playTime (Results 1 – 6 of 6) sorted by relevance

/frameworks/base/libs/hwui/
DPropertyValuesAnimatorSet.cpp57 void PropertyValuesAnimatorSet::onPlayTimeChanged(nsecs_t playTime) { in onPlayTimeChanged() argument
58 if (playTime == 0 && mDuration > 0) { in onPlayTimeChanged()
66 } else if (playTime >= mDuration) { in onPlayTimeChanged()
73 anim->setCurrentPlayTime(playTime); in onPlayTimeChanged()
121 void PropertyAnimator::setCurrentPlayTime(nsecs_t playTime) { in setCurrentPlayTime() argument
122 if (playTime >= mStartDelay && playTime < mTotalDuration) { in setCurrentPlayTime()
123 nsecs_t currentIterationPlayTime = (playTime - mStartDelay) % mDuration; in setCurrentPlayTime()
126 } else if (mLatestFraction < 1.0f && playTime >= mTotalDuration) { in setCurrentPlayTime()
DPropertyValuesAnimatorSet.h30 void setCurrentPlayTime(nsecs_t playTime);
62 virtual void onPlayTimeChanged(nsecs_t playTime) override;
DAnimator.cpp253 bool BaseRenderNodeAnimator::updatePlayTime(nsecs_t playTime) { in updatePlayTime() argument
254 mPlayTime = mPlayState == PlayState::Reversing ? mDuration - playTime : playTime; in updatePlayTime()
260 if (playTime < 0) { in updatePlayTime()
274 return playTime >= mDuration; in updatePlayTime()
DAnimator.h126 virtual void onPlayTimeChanged(nsecs_t playTime) {} in onPlayTimeChanged() argument
161 bool updatePlayTime(nsecs_t playTime);
/frameworks/base/core/java/android/animation/
DTimeAnimator.java51 public void setCurrentPlayTime(long playTime) { in setCurrentPlayTime() argument
53 mStartTime = Math.max(mStartTime, currentTime - playTime); in setCurrentPlayTime()
DValueAnimator.java576 public void setCurrentPlayTime(long playTime) { in setCurrentPlayTime() argument
577 float fraction = mDuration > 0 ? (float) playTime / mDuration : 1; in setCurrentPlayTime()