Home
last modified time | relevance | path

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

/packages/apps/DeskClock/src/com/android/deskclock/data/
DTimer.kt93 val remainingTime: Long in <lambda>() constant in com.android.deskclock.data.Timer
134 get() = totalLength - remainingTime in <lambda>()
158 val remainingTime = this.remainingTime in <lambda>() constant
159 return Timer(id, State.PAUSED, length, totalLength, UNUSED, UNUSED, remainingTime, label, in <lambda>()
171 val remainingTime = min(0L, lastRemainingTime) in <lambda>() constant
173 Utils.wallClock(), remainingTime, label, deleteAfterUse) in <lambda>()
184 val remainingTime = min(0L, lastRemainingTime) in <lambda>() constant
186 Utils.wallClock(), remainingTime, label, deleteAfterUse) in <lambda>()
213 val remainingTime = lastRemainingTime - delta in <lambda>() constant
215 remainingTime, label, deleteAfterUse) in <lambda>()
[all …]
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()
DTimerStringFormatter.kt35 remainingTime: Long, in formatTimeRemaining()
38 var roundedHours = (remainingTime / HOUR_IN_MILLIS).toInt() in formatTimeRemaining()
39 var roundedMinutes = (remainingTime / MINUTE_IN_MILLIS % 60).toInt() in formatTimeRemaining()
40 var roundedSeconds = (remainingTime / SECOND_IN_MILLIS % 60).toInt() in formatTimeRemaining()
45 if (remainingTime % SECOND_IN_MILLIS != 0L && shouldShowSeconds) { in formatTimeRemaining()
DTimerDAO.kt78 val remainingTime: Long = prefs.getLong(REMAINING_TIME + id, totalLength) in getTimers() constant
82 lastWallClockTime, remainingTime, label, deleteAfterUse)) in getTimers()
111 editor.putLong(REMAINING_TIME + id, timer.remainingTime) in addTimer()
119 timer.lastStartTime, timer.lastWallClockTime, timer.remainingTime, in addTimer()
137 editor.putLong(REMAINING_TIME + id, timer.remainingTime) in updateTimer()
DTimerNotificationBuilder.kt182 TimerStringFormatter.formatTimeRemaining(context, timer.remainingTime, false) in build()
186 timer.remainingTime, false) in build()
196 val remainingTime = timer.remainingTime in build() constant
197 if (timer.isRunning && remainingTime > MINUTE_IN_MILLIS) { in build()
203 val nextMinuteChange: Long = remainingTime % MINUTE_IN_MILLIS in build()
416 val remaining = timer.remainingTime in getChronometerBase()
DDataModel.kt485 if (timer.remainingTime <= 0) { in startTimer()
595 fun setRemainingTime(timer: Timer, remainingTime: Long) { in setRemainingTime()
598 val updated = timer.setRemainingTime(remainingTime) in setRemainingTime()
600 if (timer.isRunning && timer.remainingTime <= 0) { in setRemainingTime()
DTimerDAO.java91 final long remainingTime = prefs.getLong(REMAINING_TIME + id, totalLength); in getTimers() local
95 lastWallClockTime, remainingTime, label, deleteAfterUse)); in getTimers()
DTimerNotificationBuilder.java196 final long remainingTime = timer.getRemainingTime(); in build() local
197 if (timer.isRunning() && remainingTime > MINUTE_IN_MILLIS) { in build()
203 final long nextMinuteChange = remainingTime % MINUTE_IN_MILLIS; in build()
DDataModel.java607 public void setRemainingTime(Timer timer, long remainingTime) { in setRemainingTime() argument
610 final Timer updated = timer.setRemainingTime(remainingTime); in setRemainingTime()
DTimerModel.kt603 if (updated.remainingTime < MISSED_THRESHOLD && updated.isRunning) { in doUpdateAfterRebootTimer()
/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()
/packages/apps/Launcher3/quickstep/recents_ui_overrides/src/com/android/quickstep/views/
DDigitalWellBeingToast.java194 private String getRoundedUpToMinuteReadableDuration(long remainingTime) { in getRoundedUpToMinuteReadableDuration() argument
196 remainingTime > MINUTE_MS ? in getRoundedUpToMinuteReadableDuration()
197 (remainingTime + MINUTE_MS - 1) / MINUTE_MS * MINUTE_MS : in getRoundedUpToMinuteReadableDuration()
198 remainingTime); in getRoundedUpToMinuteReadableDuration()
203 private String getText(long remainingTime) { in getText() argument
206 getRoundedUpToMinuteReadableDuration(remainingTime)); in getText()
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/services/
DTestCopyJobProcessTracker.java86 void assertReminingTimeEquals(long remainingTime) { in assertReminingTimeEquals() argument
87 assertEquals(mRemainTimeFormatter.apply(remainingTime), in assertReminingTimeEquals()
/packages/apps/DeskClock/src/com/android/deskclock/timer/
DTimerItemFragment.kt88 val currentTime: Long = this@TimerItemFragment.timer!!.remainingTime in onClick()
DTimerItem.kt84 mTimerTextController.setTimeString(timer.remainingTime) in update()
DTimerFragment.kt303 val currentTime: Long = timer.remainingTime in onFabClick()
/packages/apps/DocumentsUI/src/com/android/documentsui/services/
DCopyJob.java138 mProgressTracker.update(mProgressBuilder, (remainingTime) -> service.getString(msgId, in getProgressNotification()
139 FormatUtils.formatDuration(remainingTime))); in getProgressNotification()