Lines Matching refs:duration
133 * @param duration The time to test.
134 * @return True if the duration would lead to an earlier end to the current animation.
136 private boolean durationEndsEarlier(long duration) {
137 return SystemClock.uptimeMillis() + duration < mStartTime + mDuration;
155 * @param duration How long to take to get there in milliseconds.
157 void show(int layer, float alpha, long duration) {
159 + " duration=" + duration);
200 if ((animating && (mTargetAlpha != alpha || durationEndsEarlier(duration)))
202 if (duration <= 0) {
209 mDuration = duration;
229 * @param duration Time to fade in milliseconds.
231 void hide(long duration) {
232 if (mShowing && (mTargetAlpha != 0 || durationEndsEarlier(duration))) {
233 if (DEBUG) Slog.v(TAG, "hide: duration=" + duration);
234 show(mLayer, 0, duration);