Searched refs:getCurrentDateTime (Results 1 – 4 of 4) sorted by relevance
34 public ZonedDateTime getCurrentDateTime() { in getCurrentDateTime() method in TimeSource
266 long excludingEndEpochSeconds = mTimeSource.getCurrentDateTime().toEpochSecond(); in getTodayIoUsageStats()
203 long expectedDuration = mTimeSource.getCurrentDateTime().toEpochSecond() - startTime; in testSaveAndGetIoOveruseStats()227 mTimeSource.getCurrentDateTime().toEpochSecond() - expectedStartTime; in testSaveAndGetIoOveruseStatsWithOffsettedStartTime()242 long duration = mTimeSource.getCurrentDateTime().toEpochSecond() - startTime; in testOverwriteIoOveruseStats()991 long duration = mTimeSource.getCurrentDateTime().toEpochSecond() - statsDateEpoch; in sampleStatsForToday()
2143 ZonedDateTime now = mTimeSource.getCurrentDateTime(); in testGetAllResourceOveruseStatsWithNoMinimumForPast7days()2327 ZonedDateTime now = mTimeSource.getCurrentDateTime(); in testGetAllResourceOveruseStatsWithMinimumForPast7days()2394 long startTime = mTimeSource.getCurrentDateTime().minusDays(4).toEpochSecond(); in testGetResourceOveruseStatsForPast7days()2459 long startTime = mTimeSource.getCurrentDateTime().minusDays(4).toEpochSecond(); in testGetResourceOveruseStatsForPast7daysWithNoCurrentStats()2560 ZonedDateTime now = mTimeSource.getCurrentDateTime(); in testGetResourceOveruseStatsForUserPackageForPast7days()