/packages/apps/DeskClock/src/com/android/deskclock/data/ |
D | Timer.kt | 93 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 …]
|
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 | TimerStringFormatter.kt | 35 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()
|
D | TimerDAO.kt | 78 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()
|
D | TimerNotificationBuilder.kt | 182 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()
|
D | DataModel.kt | 485 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()
|
D | TimerDAO.java | 91 final long remainingTime = prefs.getLong(REMAINING_TIME + id, totalLength); in getTimers() local 95 lastWallClockTime, remainingTime, label, deleteAfterUse)); in getTimers()
|
D | TimerNotificationBuilder.java | 196 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()
|
D | DataModel.java | 607 public void setRemainingTime(Timer timer, long remainingTime) { in setRemainingTime() argument 610 final Timer updated = timer.setRemainingTime(remainingTime); in setRemainingTime()
|
D | TimerModel.kt | 603 if (updated.remainingTime < MISSED_THRESHOLD && updated.isRunning) { in doUpdateAfterRebootTimer()
|
/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()
|
/packages/apps/Launcher3/quickstep/recents_ui_overrides/src/com/android/quickstep/views/ |
D | DigitalWellBeingToast.java | 194 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/ |
D | TestCopyJobProcessTracker.java | 86 void assertReminingTimeEquals(long remainingTime) { in assertReminingTimeEquals() argument 87 assertEquals(mRemainTimeFormatter.apply(remainingTime), in assertReminingTimeEquals()
|
/packages/apps/DeskClock/src/com/android/deskclock/timer/ |
D | TimerItemFragment.kt | 88 val currentTime: Long = this@TimerItemFragment.timer!!.remainingTime in onClick()
|
D | TimerItem.kt | 84 mTimerTextController.setTimeString(timer.remainingTime) in update()
|
D | TimerFragment.kt | 303 val currentTime: Long = timer.remainingTime in onFabClick()
|
/packages/apps/DocumentsUI/src/com/android/documentsui/services/ |
D | CopyJob.java | 138 mProgressTracker.update(mProgressBuilder, (remainingTime) -> service.getString(msgId, in getProgressNotification() 139 FormatUtils.formatDuration(remainingTime))); in getProgressNotification()
|