Home
last modified time | relevance | path

Searched refs:nowMillis (Results 1 – 3 of 3) sorted by relevance

/packages/apps/Dialer/java/com/android/dialer/calllogutils/
DCallLogDates.java48 Context context, long nowMillis, long timestampMillis, boolean abbreviateDateTime) { in newCallLogTimestampLabel() argument
50 if (nowMillis - timestampMillis < TimeUnit.MINUTES.toMillis(1)) { in newCallLogTimestampLabel()
55 if (nowMillis - timestampMillis < TimeUnit.HOURS.toMillis(1)) { in newCallLogTimestampLabel()
59 nowMillis, in newCallLogTimestampLabel()
68 timestampMillis, nowMillis, DateUtils.MINUTE_IN_MILLIS); in newCallLogTimestampLabel()
71 int dayDifference = getDayDifference(nowMillis, timestampMillis); in newCallLogTimestampLabel()
84 if (isWithinOneYear(nowMillis, timestampMillis)) { in newCallLogTimestampLabel()
/packages/modules/StatsD/statsd/src/shell/
DShellSubscriber.cpp138 int64_t nowMillis = getElapsedRealtimeMillis(); in pullAndSendHeartbeats() local
141 if (pullInfo.mPrevPullElapsedRealtimeMs + pullInfo.mInterval >= nowMillis) { in pullAndSendHeartbeats()
153 pullInfo.mPrevPullElapsedRealtimeMs = nowMillis; in pullAndSendHeartbeats()
159 if (nowMillis - mLastWriteMs > kMsBetweenHeartbeats) { in pullAndSendHeartbeats()
166 int64_t timeBeforePull = nextPullTime - nowMillis; // guaranteed to be non-negative in pullAndSendHeartbeats()
169 int64_t timeBeforeHeartbeat = (mLastWriteMs + kMsBetweenHeartbeats) - nowMillis; in pullAndSendHeartbeats()
/packages/providers/TvProvider/src/com/android/providers/tv/
DEpgDataCleanupService.java55 long nowMillis = System.currentTimeMillis(); in onHandleIntent() local
59 clearOldPrograms(nowMillis - TimeUnit.DAYS.toMillis(maxProgramAgeInDays)); in onHandleIntent()
65 clearOldWatchHistory(nowMillis - TimeUnit.DAYS.toMillis(maxWatchedProgramAgeInDays)); in onHandleIntent()