Searched refs:MIDNIGHT (Results 1 – 7 of 7) sorted by relevance
/packages/apps/DeskClock/tests/src/com/android/deskclock/uidata/ |
D | PeriodicCallbackModelTest.java | 27 import static com.android.deskclock.uidata.PeriodicCallbackModel.Period.MIDNIGHT; 95 assertEquals(1, PeriodicCallbackModel.getDelay(now - 3001, MIDNIGHT, -3000)); in getMidnightDelay() 96 assertEquals(86400000, PeriodicCallbackModel.getDelay(now - 3000, MIDNIGHT, -3000)); in getMidnightDelay() 97 assertEquals(86399999, PeriodicCallbackModel.getDelay(now - 2999, MIDNIGHT, -3000)); in getMidnightDelay() 99 assertEquals(1, PeriodicCallbackModel.getDelay(now - 1, MIDNIGHT, 0)); in getMidnightDelay() 100 assertEquals(86400000, PeriodicCallbackModel.getDelay(now, MIDNIGHT, 0)); in getMidnightDelay() 101 assertEquals(86399999, PeriodicCallbackModel.getDelay(now + 1, MIDNIGHT, 0)); in getMidnightDelay() 103 assertEquals(3001, PeriodicCallbackModel.getDelay(now - 1, MIDNIGHT, 3000)); in getMidnightDelay() 104 assertEquals(3000, PeriodicCallbackModel.getDelay(now, MIDNIGHT, 3000)); in getMidnightDelay() 105 assertEquals(1, PeriodicCallbackModel.getDelay(now + 2999, MIDNIGHT, 3000)); in getMidnightDelay() [all …]
|
/packages/apps/DeskClock/src/com/android/deskclock/uidata/ |
D | PeriodicCallbackModel.kt | 42 MINUTE, QUARTER_HOUR, HOUR, MIDNIGHT 91 addPeriodicCallback(runnable, Period.MIDNIGHT, 100L) in addMidnightCallback() 195 Period.MIDNIGHT -> { in getDelay()
|
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/data/entries/datenavigation/ |
D | DateNavigationViewTest.kt | 27 import com.android.healthconnect.controller.tests.utils.MIDNIGHT 226 val expectedDate = MIDNIGHT.minus(Duration.ofDays(1)) in onDateChanged_setDate_listenerIsCalled() 239 val expectedDate = MIDNIGHT.minus(Duration.ofDays(3)) in onDateChanged_setPeriod_listenerIsCalled()
|
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/recentaccess/ |
D | RecentAccessViewModelTest.kt | 31 import com.android.healthconnect.controller.tests.utils.MIDNIGHT in <lambda>() 379 val time1 = MIDNIGHT.minusSeconds(60) in <lambda>() 431 val time1 = MIDNIGHT.plusSeconds(60) in <lambda>() 432 val time2 = MIDNIGHT in <lambda>() 433 val time3 = MIDNIGHT.minusSeconds(60) in <lambda>()
|
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/utils/ |
D | TimeExtensions.kt | 37 return date.atTime(LocalTime.MIDNIGHT).atZone(ZoneId.systemDefault()).toInstant() in getInstant()
|
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/shared/preference/ |
D | AggregationDataCard.kt | 148 if (endDate.toLocalTime() == LocalTime.MIDNIGHT) { in formatDateText()
|
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/utils/ |
D | TestConstants.kt | 68 val MIDNIGHT: Instant = Instant.parse("2022-10-20T00:00:00.000Z") in <lambda>() constant
|