Home
last modified time | relevance | path

Searched refs:getCurrentDateTime (Results 1 – 4 of 4) sorted by relevance

/packages/services/Car/service/src/com/android/car/watchdog/
DTimeSource.java34 public ZonedDateTime getCurrentDateTime() { in getCurrentDateTime() method in TimeSource
DWatchdogStorage.java266 long excludingEndEpochSeconds = mTimeSource.getCurrentDateTime().toEpochSecond(); in getTodayIoUsageStats()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/watchdog/
DWatchdogStorageUnitTest.java203 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()
DWatchdogPerfHandlerUnitTest.java2143 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()