Home
last modified time | relevance | path

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

/frameworks/base/libs/hwui/
DPropertyValuesAnimatorSet.cpp71 void PropertyValuesAnimatorSet::onPlayTimeChanged(nsecs_t playTime) { in onPlayTimeChanged() argument
72 if (playTime == 0 && mDuration > 0) { in onPlayTimeChanged()
82 anim->setCurrentPlayTime(playTime); in onPlayTimeChanged()
144 void PropertyAnimator::setCurrentPlayTime(nsecs_t playTime) { in setCurrentPlayTime() argument
145 if (playTime < mStartDelay) { in setCurrentPlayTime()
151 if (playTime >= mTotalDuration) { in setCurrentPlayTime()
157 iteration = (playTime - mStartDelay) / mDuration; in setCurrentPlayTime()
158 currentIterationFraction = ((playTime - mStartDelay) % mDuration) / (float) mDuration; in setCurrentPlayTime()
DPropertyValuesAnimatorSet.h30 void setCurrentPlayTime(nsecs_t playTime);
73 virtual void onPlayTimeChanged(nsecs_t playTime) override;
DAnimator.cpp265 bool BaseRenderNodeAnimator::updatePlayTime(nsecs_t playTime) { in updatePlayTime() argument
266 mPlayTime = mPlayState == PlayState::Reversing ? mDuration - playTime : playTime; in updatePlayTime()
272 if (playTime < 0) { in updatePlayTime()
286 return playTime >= mDuration; in updatePlayTime()
DAnimator.h136 virtual void onPlayTimeChanged(nsecs_t playTime) {} in onPlayTimeChanged() argument
182 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()
DAnimatorSet.java869 long playTime = getPlayTimeForNode(currentPlayTime, node, inReverse);
871 playTime -= node.mAnimation.getStartDelay();
873 node.mAnimation.animateBasedOnPlayTime(playTime, lastPlayTime, inReverse);
911 public void setCurrentPlayTime(long playTime) {
918 if ((getTotalDuration() != DURATION_INFINITE && playTime > getTotalDuration() - mStartDelay)
919 || playTime < 0) {
938 animateBasedOnPlayTime(playTime, 0, mReversing);
939 mSeekState.setPlayTime(playTime, mReversing);
943 mSeekState.setPlayTime(playTime, mReversing);
1105 private void handleAnimationEvents(int startId, int latestId, long playTime) {
[all …]
DValueAnimator.java615 public void setCurrentPlayTime(long playTime) { in setCurrentPlayTime() argument
616 float fraction = mDuration > 0 ? (float) playTime / mDuration : 1; in setCurrentPlayTime()