Searched refs:getCurrentDateTime (Results 1 – 4 of 4) sorted by relevance
34 public ZonedDateTime getCurrentDateTime() { in getCurrentDateTime() method in TimeSource
165 long excludingEndEpochSeconds = mTimeSource.getCurrentDateTime().toEpochSecond(); in getTodayIoUsageStats()
129 long expectedDuration = mTimeSource.getCurrentDateTime().toEpochSecond() - startTime; in testSaveAndGetIoOveruseStats()150 mTimeSource.getCurrentDateTime().toEpochSecond() - expectedStartTime; in testSaveAndGetIoOveruseStatsWithOffsettedStartTime()162 long duration = mTimeSource.getCurrentDateTime().toEpochSecond() - startTime; in testOverwriteIoOveruseStats()752 long duration = mTimeSource.getCurrentDateTime().toEpochSecond() - statsDateEpoch; in sampleStatsForToday()
617 long startTime = mTimeSource.getCurrentDateTime().minusDays(4).toEpochSecond(); in testGetResourceOveruseStatsForPast7days()682 long startTime = mTimeSource.getCurrentDateTime().minusDays(4).toEpochSecond(); in testGetResourceOveruseStatsForPast7daysWithNoCurrentStats()797 ZonedDateTime now = mTimeSource.getCurrentDateTime(); in testGetAllResourceOveruseStatsWithNoMinimumForPast7days()982 ZonedDateTime now = mTimeSource.getCurrentDateTime(); in testGetAllResourceOveruseStatsWithMinimumForPast7days()1076 ZonedDateTime now = mTimeSource.getCurrentDateTime(); in testGetResourceOveruseStatsForUserPackageForPast7days()