Home
last modified time | relevance | path

Searched refs:updateAgeMillis (Results 1 – 2 of 2) sorted by relevance

/packages/apps/Car/Settings/src/com/android/car/settings/datausage/
DDataUsageSummaryPreferenceController.java135 long updateAgeMillis = calculateTruncatedUpdateAge(mSnapshotTime); in updateState() local
136 if (updateAgeMillis <= WARNING_AGE) { in updateState()
169 long updateAgeMillis = calculateTruncatedUpdateAge(mSnapshotTime); in getCarrierInfoText() local
173 if (updateAgeMillis == 0) { in getCarrierInfoText()
186 updateAgeMillis, /* withSeconds= */ false, /* collapseTimeUnit= */ false); in getCarrierInfoText()
301 long updateAgeMillis = System.currentTimeMillis() - snapshotTime; in calculateTruncatedUpdateAge() local
304 if (updateAgeMillis >= MILLIS_IN_A_DAY) { in calculateTruncatedUpdateAge()
305 return (updateAgeMillis / MILLIS_IN_A_DAY) * MILLIS_IN_A_DAY; in calculateTruncatedUpdateAge()
306 } else if (updateAgeMillis >= MILLIS_IN_AN_HOUR) { in calculateTruncatedUpdateAge()
307 return (updateAgeMillis / MILLIS_IN_AN_HOUR) * MILLIS_IN_AN_HOUR; in calculateTruncatedUpdateAge()
[all …]
/packages/apps/Settings/src/com/android/settings/datausage/
DDataUsageSummaryPreference.java237 long updateAgeMillis = calculateTruncatedUpdateAge(); local
241 if (updateAgeMillis == 0) {
255 updateAgeMillis,
264 if (updateAgeMillis <= WARNING_AGE) {
280 long updateAgeMillis = System.currentTimeMillis() - mSnapshotTimeMs; in calculateTruncatedUpdateAge() local
283 if (updateAgeMillis >= TimeUnit.DAYS.toMillis(1)) { in calculateTruncatedUpdateAge()
284 return (updateAgeMillis / TimeUnit.DAYS.toMillis(1)) * TimeUnit.DAYS.toMillis(1); in calculateTruncatedUpdateAge()
285 } else if (updateAgeMillis >= TimeUnit.HOURS.toMillis(1)) { in calculateTruncatedUpdateAge()
286 return (updateAgeMillis / TimeUnit.HOURS.toMillis(1)) * TimeUnit.HOURS.toMillis(1); in calculateTruncatedUpdateAge()
287 } else if (updateAgeMillis >= TimeUnit.MINUTES.toMillis(1)) { in calculateTruncatedUpdateAge()
[all …]