Searched refs:MIDNIGHT (Results 1 – 3 of 3) 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 | 41 MINUTE, QUARTER_HOUR, HOUR, MIDNIGHT 90 addPeriodicCallback(runnable, Period.MIDNIGHT, 100L) in addMidnightCallback() 194 Period.MIDNIGHT -> { in getDelay()
|
D | PeriodicCallbackModel.java | 53 enum Period {MINUTE, QUARTER_HOUR, HOUR, MIDNIGHT} enumConstant 106 addPeriodicCallback(runnable, Period.MIDNIGHT, 100L); in addMidnightCallback() 160 case MIDNIGHT: in getDelay()
|