Home
last modified time | relevance | path

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

/packages/apps/DeskClock/src/com/android/deskclock/data/
DTimer.java109 long lastWallClockTime, long remainingTime, String label, boolean deleteAfterUse) { in Timer() argument
116 mRemainingTime = remainingTime; in Timer()
212 final long remainingTime = getRemainingTime(); in pause() local
213 return new Timer(mId, PAUSED, mLength, mTotalLength, UNUSED, UNUSED, remainingTime, mLabel, in pause()
225 final long remainingTime = Math.min(0L, getRemainingTime()); in expire() local
226 return new Timer(mId, EXPIRED, mLength, 0L, now(), wallClock(), remainingTime, mLabel, in expire()
238 final long remainingTime = Math.min(0L, getRemainingTime()); in miss() local
239 return new Timer(mId, MISSED, mLength, 0L, now(), wallClock(), remainingTime, mLabel, in miss()
268 final long remainingTime = mRemainingTime - delta; in updateAfterReboot() local
270 remainingTime, mLabel, mDeleteAfterUse); in updateAfterReboot()
[all …]
DTimerStringFormatter.java34 public static String formatTimeRemaining(Context context, long remainingTime, in formatTimeRemaining() argument
36 int roundedHours = (int) (remainingTime / HOUR_IN_MILLIS); in formatTimeRemaining()
37 int roundedMinutes = (int) (remainingTime / MINUTE_IN_MILLIS % 60); in formatTimeRemaining()
38 int roundedSeconds = (int) (remainingTime / SECOND_IN_MILLIS % 60); in formatTimeRemaining()
43 if ((remainingTime % SECOND_IN_MILLIS != 0) && shouldShowSeconds) { in formatTimeRemaining()
DTimerNotificationBuilder.java189 final long remainingTime = timer.getRemainingTime(); in build() local
190 if (timer.isRunning() && remainingTime > MINUTE_IN_MILLIS) { in build()
196 final long nextMinuteChange = remainingTime % MINUTE_IN_MILLIS; in build()
DTimerDAO.java91 final long remainingTime = prefs.getLong(REMAINING_TIME + id, totalLength); in getTimers() local
95 lastWallClockTime, remainingTime, label, deleteAfterUse)); in getTimers()
DDataModel.java604 public void setRemainingTime(Timer timer, long remainingTime) { in setRemainingTime() argument
607 final Timer updated = timer.setRemainingTime(remainingTime); in setRemainingTime()
/packages/apps/DeskClock/src/com/android/deskclock/
DTimerTextController.java36 public void setTimeString(long remainingTime) { in setTimeString() argument
38 if (remainingTime < 0) { in setTimeString()
39 remainingTime = -remainingTime; in setTimeString()
43 int hours = (int) (remainingTime / HOUR_IN_MILLIS); in setTimeString()
44 int remainder = (int) (remainingTime % HOUR_IN_MILLIS); in setTimeString()