Home
last modified time | relevance | path

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

/packages/apps/Car/Settings/src/com/android/car/settings/datausage/
DDataUsageSummaryPreferenceController.java132 long updateAgeMillis = calculateTruncatedUpdateAge(mSnapshotTime); in updateState() local
133 if (updateAgeMillis <= WARNING_AGE) { in updateState()
197 long updateAgeMillis = calculateTruncatedUpdateAge(mSnapshotTime); in getCarrierInfoText() local
201 if (updateAgeMillis == 0) { in getCarrierInfoText()
214 updateAgeMillis, /* withSeconds= */ false); in getCarrierInfoText()
291 long updateAgeMillis = System.currentTimeMillis() - snapshotTime; in calculateTruncatedUpdateAge() local
294 if (updateAgeMillis >= MILLIS_IN_A_DAY) { in calculateTruncatedUpdateAge()
295 return (updateAgeMillis / MILLIS_IN_A_DAY) * MILLIS_IN_A_DAY; in calculateTruncatedUpdateAge()
296 } else if (updateAgeMillis >= MILLIS_IN_AN_HOUR) { in calculateTruncatedUpdateAge()
297 return (updateAgeMillis / MILLIS_IN_AN_HOUR) * MILLIS_IN_AN_HOUR; in calculateTruncatedUpdateAge()
[all …]
/packages/apps/Settings/src/com/android/settings/datausage/
DDataUsageSummaryPreference.java304 long updateAgeMillis = calculateTruncatedUpdateAge(); local
308 if (updateAgeMillis == 0) {
321 getContext(), updateAgeMillis, false /* withSeconds */);
328 if (updateAgeMillis <= WARNING_AGE) {
344 long updateAgeMillis = System.currentTimeMillis() - mSnapshotTimeMs; in calculateTruncatedUpdateAge() local
347 if (updateAgeMillis >= TimeUnit.DAYS.toMillis(1)) { in calculateTruncatedUpdateAge()
348 return (updateAgeMillis / TimeUnit.DAYS.toMillis(1)) * TimeUnit.DAYS.toMillis(1); in calculateTruncatedUpdateAge()
349 } else if (updateAgeMillis >= TimeUnit.HOURS.toMillis(1)) { in calculateTruncatedUpdateAge()
350 return (updateAgeMillis / TimeUnit.HOURS.toMillis(1)) * TimeUnit.HOURS.toMillis(1); in calculateTruncatedUpdateAge()
351 } else if (updateAgeMillis >= TimeUnit.MINUTES.toMillis(1)) { in calculateTruncatedUpdateAge()
[all …]
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/datausage/
DDataUsageSummaryPreference.java304 long updateAgeMillis = calculateTruncatedUpdateAge(); local
308 if (updateAgeMillis == 0) {
321 getContext(), updateAgeMillis, false /* withSeconds */);
328 if (updateAgeMillis <= WARNING_AGE) {
344 long updateAgeMillis = System.currentTimeMillis() - mSnapshotTimeMs; in calculateTruncatedUpdateAge() local
347 if (updateAgeMillis >= TimeUnit.DAYS.toMillis(1)) { in calculateTruncatedUpdateAge()
348 return (updateAgeMillis / TimeUnit.DAYS.toMillis(1)) * TimeUnit.DAYS.toMillis(1); in calculateTruncatedUpdateAge()
349 } else if (updateAgeMillis >= TimeUnit.HOURS.toMillis(1)) { in calculateTruncatedUpdateAge()
350 return (updateAgeMillis / TimeUnit.HOURS.toMillis(1)) * TimeUnit.HOURS.toMillis(1); in calculateTruncatedUpdateAge()
351 } else if (updateAgeMillis >= TimeUnit.MINUTES.toMillis(1)) { in calculateTruncatedUpdateAge()
[all …]