Searched refs:remainingTime (Results 1 – 6 of 6) sorted by relevance
/packages/apps/DeskClock/src/com/android/deskclock/data/ |
D | Timer.java | 109 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 …]
|
D | TimerStringFormatter.java | 34 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()
|
D | TimerNotificationBuilder.java | 189 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()
|
D | TimerDAO.java | 91 final long remainingTime = prefs.getLong(REMAINING_TIME + id, totalLength); in getTimers() local 95 lastWallClockTime, remainingTime, label, deleteAfterUse)); in getTimers()
|
D | DataModel.java | 604 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/ |
D | TimerTextController.java | 36 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()
|