Searched refs:getDelay (Results 1 – 6 of 6) sorted by relevance
/packages/apps/DeskClock/tests/src/com/android/deskclock/uidata/ |
D | PeriodicCallbackModelTest.java | 39 assertEquals(1, PeriodicCallbackModel.getDelay(56999, MINUTE, -3000)); in getMinuteDelay() 40 assertEquals(60000, PeriodicCallbackModel.getDelay(57000, MINUTE, -3000)); in getMinuteDelay() 41 assertEquals(59999, PeriodicCallbackModel.getDelay(57001, MINUTE, -3000)); in getMinuteDelay() 43 assertEquals(1, PeriodicCallbackModel.getDelay(59999, MINUTE, 0)); in getMinuteDelay() 44 assertEquals(60000, PeriodicCallbackModel.getDelay(60000, MINUTE, 0)); in getMinuteDelay() 45 assertEquals(59999, PeriodicCallbackModel.getDelay(60001, MINUTE, 0)); in getMinuteDelay() 47 assertEquals(3001, PeriodicCallbackModel.getDelay(59999, MINUTE, 3000)); in getMinuteDelay() 48 assertEquals(3000, PeriodicCallbackModel.getDelay(60000, MINUTE, 3000)); in getMinuteDelay() 49 assertEquals(1, PeriodicCallbackModel.getDelay(62999, MINUTE, 3000)); in getMinuteDelay() 50 assertEquals(60000, PeriodicCallbackModel.getDelay(63000, MINUTE, 3000)); in getMinuteDelay() [all …]
|
/packages/apps/Contacts/src/com/android/contacts/util/concurrent/ |
D | ContactsExecutors.java | 192 public long getDelay(TimeUnit unit) { in getDelay() method in ContactsExecutors.HandlerFuture 203 return Long.compare(getDelay(TimeUnit.MILLISECONDS), in compareTo() 204 o.getDelay(TimeUnit.MILLISECONDS)); in compareTo()
|
/packages/apps/DeskClock/src/com/android/deskclock/uidata/ |
D | PeriodicCallbackModel.kt | 137 val delay = getDelay(System.currentTimeMillis(), mPeriod, mOffset) in schedule() 175 fun getDelay(now: Long, period: Period, offset: Long): Long { in getDelay() method
|
D | PeriodicCallbackModel.java | 141 static long getDelay(long now, Period period, long offset) { in getDelay() method in PeriodicCallbackModel 213 final long delay = getDelay(System.currentTimeMillis(), mPeriod, mOffset); in schedule()
|
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/testing/ |
D | TestScheduledExecutorService.java | 195 public long getDelay(TimeUnit unit) { in getDelay() method in TestScheduledExecutorService.TestFuture
|
/packages/apps/TV/src/com/android/tv/ |
D | MainActivity.java | 2838 sendMessageDelayed(Message.obtain(msg), getDelay(startTime)); 2845 sendMessageDelayed(Message.obtain(msg), getDelay(startTime)); 2852 private long getDelay(long startTime) {
|