Home
last modified time | relevance | path

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

/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/Car/Settings/tests/robotests/src/com/android/car/settings/datausage/
DAppDataUsageFragmentTest.java91 long timeDiff = end - start; in onActivityCreated_policyIsNull_startAndEndDateShouldHaveFourWeeksDifference() local
93 assertThat(timeDiff).isEqualTo(DateUtils.WEEK_IN_MILLIS * 4); in onActivityCreated_policyIsNull_startAndEndDateShouldHaveFourWeeksDifference()
108 long timeDiff = end - start; in onActivityCreated_iteratorIsEmpty_startAndEndDateShouldHaveFourWeeksDifference() local
110 assertThat(timeDiff).isEqualTo(DateUtils.WEEK_IN_MILLIS * 4); in onActivityCreated_iteratorIsEmpty_startAndEndDateShouldHaveFourWeeksDifference()
/packages/apps/Car/libs/car-media-common/src/com/android/car/media/common/playback/
DProgressLiveData.java86 long timeDiff = mElapsedRealtime.get() - mPlaybackState.getLastPositionUpdateTime(); in getProgress() local
91 long posDiff = (long) (timeDiff * speed); in getProgress()