Lines Matching refs:duration
187 * @param duration The time to test.
188 * @return True if the duration would lead to an earlier end to the current animation.
190 private boolean durationEndsEarlier(long duration) {
191 return SystemClock.uptimeMillis() + duration < mStartTime + mDuration;
209 * @param duration How long to take to get there in milliseconds.
211 void show(int layer, float alpha, long duration) {
213 + " duration=" + duration);
228 if ((animating && (mTargetAlpha != alpha || durationEndsEarlier(duration)))
230 if (duration <= 0) {
237 mDuration = duration;
257 * @param duration Time to fade in milliseconds.
259 void hide(long duration) {
260 if (mShowing && (mTargetAlpha != 0 || durationEndsEarlier(duration))) {
261 if (DEBUG) Slog.v(TAG, "hide: duration=" + duration);
262 show(mLayer, 0, duration);