Home
last modified time | relevance | path

Searched refs:remainingTime (Results 1 – 13 of 13) 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 …]
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.kt484 if (timer.remainingTime <= 0) { in startTimer()
594 fun setRemainingTime(timer: Timer, remainingTime: Long) { in setRemainingTime()
597 val updated = timer.setRemainingTime(remainingTime) in setRemainingTime()
599 if (timer.isRunning && timer.remainingTime <= 0) { in setRemainingTime()
DTimerModel.kt603 if (updated.remainingTime < MISSED_THRESHOLD && updated.isRunning) { in doUpdateAfterRebootTimer()
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/views/
DDigitalWellBeingToast.java193 private String getRoundedUpToMinuteReadableDuration(long remainingTime) { in getRoundedUpToMinuteReadableDuration() argument
195 remainingTime > MINUTE_MS ? in getRoundedUpToMinuteReadableDuration()
196 (remainingTime + MINUTE_MS - 1) / MINUTE_MS * MINUTE_MS : in getRoundedUpToMinuteReadableDuration()
197 remainingTime); in getRoundedUpToMinuteReadableDuration()
202 private String getText(long remainingTime) { in getText() argument
205 getRoundedUpToMinuteReadableDuration(remainingTime)); in getText()
/packages/apps/DeskClock/src/com/android/deskclock/
DTimerTextController.kt26 fun setTimeString(remainingTime: Long) { in setTimeString()
27 var variableRemainingTime = remainingTime in setTimeString()
/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.kt87 val currentTime: Long = this@TimerItemFragment.timer!!.remainingTime in onClick()
DTimerItem.kt84 mTimerTextController.setTimeString(timer.remainingTime) in update()
DTimerFragment.kt302 val currentTime: Long = timer.remainingTime in onFabClick()
/packages/apps/DocumentsUI/src/com/android/documentsui/services/
DCopyJob.java148 mProgressTracker.update(mProgressBuilder, (remainingTime) -> service.getString(msgId, in getProgressNotification()
149 FormatUtils.formatDuration(remainingTime))); in getProgressNotification()