Home
last modified time | relevance | path

Searched refs:timeDiff (Results 1 – 4 of 4) sorted by relevance

/packages/apps/Camera/src/com/android/camera/
DCaptureAnimManager.java105 long timeDiff = SystemClock.uptimeMillis() - mAnimStartTime; in drawAnimation() local
107 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()
DSwitchAnimManager.java74 long timeDiff = SystemClock.uptimeMillis() - mAnimStartTime; in drawAnimation() local
75 if (timeDiff > ANIMATION_DURATION) return false; in drawAnimation()
76 float fraction = timeDiff / ANIMATION_DURATION; in drawAnimation()
/packages/apps/Messaging/src/com/android/messaging/util/
DDates.java130 final long timeDiff = now - time; in getTimestamp() local
132 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() argument
155 final long count = (timeDiff / MINUTE_IN_MILLIS); in getLessThanAnHourOldTimeString()
/packages/apps/Calendar/src/com/android/calendar/
DEventInfoFragment.java619 long timeDiff = LOADING_MSG_MIN_DISPLAY_TIME - (System.currentTimeMillis() - in onQueryComplete() local
621 if (timeDiff > 0) { in onQueryComplete()
622 mAnimateAlpha.setStartDelay(timeDiff); in onQueryComplete()