Home
last modified time | relevance | path

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

/packages/apps/DeskClock/src/com/android/deskclock/uidata/
DPeriodicCallbackModel.java158 final Calendar nextMidnight = Calendar.getInstance(); in getDelay() local
159 nextMidnight.setTimeInMillis(periodStart); in getDelay()
160 nextMidnight.add(DATE, 1); in getDelay()
161 nextMidnight.set(HOUR_OF_DAY, 0); in getDelay()
162 nextMidnight.set(MINUTE, 0); in getDelay()
163 nextMidnight.set(SECOND, 0); in getDelay()
164 nextMidnight.set(MILLISECOND, 0); in getDelay()
165 return nextMidnight.getTimeInMillis() - now + offset; in getDelay()