Searched refs:today2AM (Results 1 – 2 of 2) sorted by relevance
/frameworks/base/services/core/java/com/android/server/notification/ |
D | NotificationBitmapJobService.java | 83 ZonedDateTime today2AM = ZonedDateTime.of(today, twoAM, zoneId); in getRunAfterMs() local 84 ZonedDateTime tomorrow2AM = today2AM.plusDays(1); in getRunAfterMs() 86 return getTimeUntilRemoval(now, today2AM, tomorrow2AM); in getRunAfterMs() 90 static long getTimeUntilRemoval(ZonedDateTime now, ZonedDateTime today2AM, in getTimeUntilRemoval() argument 92 if (Duration.between(now, today2AM).isNegative()) { in getTimeUntilRemoval() 95 return Duration.between(now, today2AM).toMillis(); in getTimeUntilRemoval()
|
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/ |
D | NotificationBitmapJobServiceTest.java | 120 ZonedDateTime today2AM = ZonedDateTime.of(today, twoAM, zoneId); in testGetTimeUntilRemoval_beforeToday2am_returnTimeUntilToday2am() local 121 ZonedDateTime tomorrow2AM = today2AM.plusDays(1); in testGetTimeUntilRemoval_beforeToday2am_returnTimeUntilToday2am() 124 /* now= */ today1AM, today2AM, tomorrow2AM); in testGetTimeUntilRemoval_beforeToday2am_returnTimeUntilToday2am() 139 ZonedDateTime today2AM = ZonedDateTime.of(today, twoAM, zoneId); in testGetTimeUntilRemoval_afterToday2am_returnTimeUntilTomorrow2am() local 140 ZonedDateTime tomorrow2AM = today2AM.plusDays(1); in testGetTimeUntilRemoval_afterToday2am_returnTimeUntilTomorrow2am() 143 today2AM, tomorrow2AM); in testGetTimeUntilRemoval_afterToday2am_returnTimeUntilTomorrow2am()
|