Searched refs:timeDiff (Results 1 – 3 of 3) sorted by relevance
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()
87 long timeDiff = end - start; in onActivityCreated_policyIsNull_startAndEndDateShouldHaveFourWeeksDifference() local89 assertThat(timeDiff).isEqualTo(DateUtils.WEEK_IN_MILLIS * 4); in onActivityCreated_policyIsNull_startAndEndDateShouldHaveFourWeeksDifference()104 long timeDiff = end - start; in onActivityCreated_iteratorIsEmpty_startAndEndDateShouldHaveFourWeeksDifference() local106 assertThat(timeDiff).isEqualTo(DateUtils.WEEK_IN_MILLIS * 4); in onActivityCreated_iteratorIsEmpty_startAndEndDateShouldHaveFourWeeksDifference()
86 long timeDiff = mElapsedRealtime.get() - mPlaybackState.getLastPositionUpdateTime(); in getProgress() local91 long posDiff = (long) (timeDiff * speed); in getProgress()