Searched refs:timeDiff (Results 1 – 4 of 4) sorted by relevance
105 long timeDiff = SystemClock.uptimeMillis() - mAnimStartTime; in drawAnimation() local107 if (mAnimType == ANIM_SLIDE && timeDiff > TIME_SLIDE) return false; in drawAnimation()108 if (mAnimType == ANIM_BOTH && timeDiff > TIME_HOLD + TIME_SLIDE) return false; in drawAnimation()112 animStep = (timeDiff < TIME_HOLD) ? ANIM_FLASH : ANIM_SLIDE; in drawAnimation()114 timeDiff -= TIME_HOLD; in drawAnimation()120 if (timeDiff < TIME_FLASH) { in drawAnimation()121 float f = 0.3f - 0.3f * timeDiff / TIME_FLASH; in drawAnimation()126 float fraction = (float) (timeDiff) / TIME_SLIDE; in drawAnimation()
74 long timeDiff = SystemClock.uptimeMillis() - mAnimStartTime; in drawAnimation() local75 if (timeDiff > ANIMATION_DURATION) return false; in drawAnimation()76 float fraction = timeDiff / ANIMATION_DURATION; in drawAnimation()
130 final long timeDiff = now - time; in getTimestamp() local132 if (!minPeriodToday && timeDiff < DateUtils.MINUTE_IN_MILLIS) { in getTimestamp()134 } else if (!minPeriodToday && timeDiff < DateUtils.HOUR_IN_MILLIS) { in getTimestamp()135 return getLessThanAnHourOldTimeString(timeDiff, flags); in getTimestamp()138 } else if (timeDiff < DateUtils.WEEK_IN_MILLIS) { in getTimestamp()140 } else if (timeDiff < DateUtils.YEAR_IN_MILLIS) { in getTimestamp()153 private static CharSequence getLessThanAnHourOldTimeString(final long timeDiff, in getLessThanAnHourOldTimeString() argument155 final long count = (timeDiff / MINUTE_IN_MILLIS); in getLessThanAnHourOldTimeString()
619 long timeDiff = LOADING_MSG_MIN_DISPLAY_TIME - (System.currentTimeMillis() - in onQueryComplete() local621 if (timeDiff > 0) { in onQueryComplete()622 mAnimateAlpha.setStartDelay(timeDiff); in onQueryComplete()