Searched refs:STATS_TEMPORAL_UNIT (Results 1 – 2 of 2) sorted by relevance
38 import static com.android.car.watchdog.WatchdogStorage.STATS_TEMPORAL_UNIT;348 long startTime = currentDate.minus(4, STATS_TEMPORAL_UNIT).toEpochSecond(); in testGetHistoricalIoOveruseStats()392 long startTime = currentDate.minus(4, STATS_TEMPORAL_UNIT).toEpochSecond(); in testGetHistoricalIoOveruseStatsWithNoRecentStats()772 long startTime = currentDate.minus(39, STATS_TEMPORAL_UNIT).toEpochSecond(); in testTruncateStatsOutsideRetentionPeriodOnDateChange()983 sampleStatsForDate(currentDate.minus(i, STATS_TEMPORAL_UNIT).toEpochSecond(), in sampleStatsBetweenDates()984 STATS_TEMPORAL_UNIT.getDuration().toSeconds(), writtenBytesMultiplier)); in sampleStatsBetweenDates()
103 public static final TemporalUnit STATS_TEMPORAL_UNIT = ChronoUnit.DAYS; field in WatchdogStorage393 mTimeSource.now().atZone(ZONE_OFFSET).truncatedTo(STATS_TEMPORAL_UNIT); in getNotForgivenHistoricalIoOveruses()428 mTimeSource.now().atZone(ZONE_OFFSET).truncatedTo(STATS_TEMPORAL_UNIT); in forgiveHistoricalOveruses()483 .atZone(ZONE_OFFSET).truncatedTo(STATS_TEMPORAL_UNIT); in saveIoUsageStats()484 if (shouldCheckRetention && STATS_TEMPORAL_UNIT.between(statsDate, currentDate) in saveIoUsageStats()485 >= RETENTION_PERIOD.get(STATS_TEMPORAL_UNIT)) { in saveIoUsageStats()