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.java137 long updateAgeMillis = calculateTruncatedUpdateAge(mSnapshotTime); in updateState() local
138 if (updateAgeMillis <= WARNING_AGE) { in updateState()
202 long updateAgeMillis = calculateTruncatedUpdateAge(mSnapshotTime); in getCarrierInfoText() local
206 if (updateAgeMillis == 0) { in getCarrierInfoText()
219 updateAgeMillis, /* withSeconds= */ false, /* collapseTimeUnit= */ false); in getCarrierInfoText()
335 long updateAgeMillis = System.currentTimeMillis() - snapshotTime; in calculateTruncatedUpdateAge() local
338 if (updateAgeMillis >= MILLIS_IN_A_DAY) { in calculateTruncatedUpdateAge()
339 return (updateAgeMillis / MILLIS_IN_A_DAY) * MILLIS_IN_A_DAY; in calculateTruncatedUpdateAge()
340 } else if (updateAgeMillis >= MILLIS_IN_AN_HOUR) { in calculateTruncatedUpdateAge()
341 return (updateAgeMillis / MILLIS_IN_AN_HOUR) * MILLIS_IN_AN_HOUR; in calculateTruncatedUpdateAge()
[all …]
/packages/apps/Settings/src/com/android/settings/datausage/
DDataUsageSummaryPreference.java305 long updateAgeMillis = calculateTruncatedUpdateAge(); local
309 if (updateAgeMillis == 0) {
323 updateAgeMillis,
332 if (updateAgeMillis <= WARNING_AGE) {
348 long updateAgeMillis = System.currentTimeMillis() - mSnapshotTimeMs; in calculateTruncatedUpdateAge() local
351 if (updateAgeMillis >= TimeUnit.DAYS.toMillis(1)) { in calculateTruncatedUpdateAge()
352 return (updateAgeMillis / TimeUnit.DAYS.toMillis(1)) * TimeUnit.DAYS.toMillis(1); in calculateTruncatedUpdateAge()
353 } else if (updateAgeMillis >= TimeUnit.HOURS.toMillis(1)) { in calculateTruncatedUpdateAge()
354 return (updateAgeMillis / TimeUnit.HOURS.toMillis(1)) * TimeUnit.HOURS.toMillis(1); in calculateTruncatedUpdateAge()
355 } else if (updateAgeMillis >= TimeUnit.MINUTES.toMillis(1)) { in calculateTruncatedUpdateAge()
[all …]