Home
last modified time | relevance | path

Searched refs:MINUTE_IN_MILLIS (Results 1 – 25 of 56) sorted by relevance

123

/packages/apps/Messaging/src/com/android/messaging/util/
DDates.java36 public static final long MINUTE_IN_MILLIS = SECOND_IN_MILLIS * 60; field in Dates
37 public static final long HOUR_IN_MILLIS = MINUTE_IN_MILLIS * 60;
67 if (now - time < DateUtils.MINUTE_IN_MILLIS) { in getRelativeTimeSpanString()
77 return DateUtils.getRelativeTimeSpanString(time, now, DateUtils.MINUTE_IN_MILLIS, in getRelativeTimeSpanString()
132 if (!minPeriodToday && timeDiff < DateUtils.MINUTE_IN_MILLIS) { in getTimestamp()
155 final long count = (timeDiff / MINUTE_IN_MILLIS); in getLessThanAnHourOldTimeString()
248 count = duration / MINUTE_IN_MILLIS; in getShortRelativeTimeSpanString()
/packages/apps/DeskClock/src/com/android/deskclock/uidata/
DPeriodicCallbackModel.java36 import static android.text.format.DateUtils.MINUTE_IN_MILLIS;
55 private static final long QUARTER_HOUR_IN_MILLIS = 15 * MINUTE_IN_MILLIS;
146 final long lastMinute = periodStart - (periodStart % MINUTE_IN_MILLIS); in getDelay()
147 final long nextMinute = lastMinute + MINUTE_IN_MILLIS; in getDelay()
DPeriodicCallbackModel.kt160 private const val QUARTER_HOUR_IN_MILLIS = 15 * DateUtils.MINUTE_IN_MILLIS
180 val lastMinute = periodStart - periodStart % DateUtils.MINUTE_IN_MILLIS in getDelay()
181 val nextMinute = lastMinute + DateUtils.MINUTE_IN_MILLIS in getDelay()
/packages/apps/DeskClock/src/com/android/deskclock/
DTimerTextController.java22 import static android.text.format.DateUtils.MINUTE_IN_MILLIS;
46 int minutes = (int) (remainder / MINUTE_IN_MILLIS); in setTimeString()
47 remainder = (int) (remainder % MINUTE_IN_MILLIS); in setTimeString()
DStopwatchTextController.java25 import static android.text.format.DateUtils.MINUTE_IN_MILLIS;
53 final int minutes = (int) (remainder / MINUTE_IN_MILLIS); in setTimeString()
54 remainder = (int) (remainder % MINUTE_IN_MILLIS); in setTimeString()
DAlarmUtils.kt70 if (variableDelta < DateUtils.MINUTE_IN_MILLIS) { in formatElapsedTimeUntilAlarm()
77 val remainder = variableDelta % DateUtils.MINUTE_IN_MILLIS in formatElapsedTimeUntilAlarm()
78 variableDelta += if (remainder == 0L) 0 else DateUtils.MINUTE_IN_MILLIS - remainder in formatElapsedTimeUntilAlarm()
DAlarmUtils.java66 if (delta < DateUtils.MINUTE_IN_MILLIS) { in formatElapsedTimeUntilAlarm()
73 final long remainder = delta % DateUtils.MINUTE_IN_MILLIS; in formatElapsedTimeUntilAlarm()
74 delta += remainder == 0 ? 0 : (DateUtils.MINUTE_IN_MILLIS - remainder); in formatElapsedTimeUntilAlarm()
/packages/apps/DocumentsUI/src/com/android/documentsui/util/
DFormatUtils.java50 } else if (millis >= DateUtils.MINUTE_IN_MILLIS) { in formatDuration()
52 (int) ((millis + DateUtils.MINUTE_IN_MILLIS / 2) / DateUtils.MINUTE_IN_MILLIS); in formatDuration()
/packages/apps/DeskClock/src/com/android/deskclock/data/
DTimer.java26 import static android.text.format.DateUtils.MINUTE_IN_MILLIS;
77 99 * HOUR_IN_MILLIS + 99 * MINUTE_IN_MILLIS + 99 * SECOND_IN_MILLIS;
367 return setRemainingTime(MINUTE_IN_MILLIS); in addMinute()
371 return setRemainingTime(mRemainingTime + MINUTE_IN_MILLIS); in addMinute()
DTimer.kt21 import android.text.format.DateUtils.MINUTE_IN_MILLIS in <lambda>()
312 setRemainingTime(MINUTE_IN_MILLIS) in <lambda>()
315 setRemainingTime(lastRemainingTime + MINUTE_IN_MILLIS) in <lambda>()
338 val MAX_LENGTH: Long = 99 * HOUR_IN_MILLIS + 99 * MINUTE_IN_MILLIS + 99 * SECOND_IN_MILLIS in <lambda>()
DTimerStringFormatter.java26 import static android.text.format.DateUtils.MINUTE_IN_MILLIS;
37 int roundedMinutes = (int) (remainingTime / MINUTE_IN_MILLIS % 60); in formatTimeRemaining()
DTimerStringFormatter.kt21 import android.text.format.DateUtils.MINUTE_IN_MILLIS
39 var roundedMinutes = (remainingTime / MINUTE_IN_MILLIS % 60).toInt() in formatTimeRemaining()
DTimerNotificationBuilder.kt31 import android.text.format.DateUtils.MINUTE_IN_MILLIS
197 if (timer.isRunning && remainingTime > MINUTE_IN_MILLIS) { in build()
203 val nextMinuteChange: Long = remainingTime % MINUTE_IN_MILLIS in build()
DTimerNotificationBuilder.java52 import static android.text.format.DateUtils.MINUTE_IN_MILLIS;
197 if (timer.isRunning() && remainingTime > MINUTE_IN_MILLIS) { in build()
203 final long nextMinuteChange = remainingTime % MINUTE_IN_MILLIS; in build()
DSettingsDAO.kt26 import android.text.format.DateUtils.MINUTE_IN_MILLIS
369 val minute: Long = absoluteGMTOffset / MINUTE_IN_MILLIS % 60
/packages/providers/DownloadProvider/tests/src/com/android/providers/downloads/
DAbstractPublicApiTest.java21 import static android.text.format.DateUtils.MINUTE_IN_MILLIS;
147 if (timeout > MINUTE_IN_MILLIS) { in waitForStatus()
155 if (timeout > MINUTE_IN_MILLIS) { in waitForStatus()
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/
DBatteryAppListPreferenceControllerTest.java154 mNormalBatterySipper.usageTimeMs = 2 * DateUtils.MINUTE_IN_MILLIS; in testSetUsageSummary_timeMoreThanOneMinute_normalApp_setScreenSummary()
166 mNormalBatterySipper.usageTimeMs = 2 * DateUtils.MINUTE_IN_MILLIS; in testSetUsageSummary_timeMoreThanOneMinute_hiddenApp_setUsedSummary()
177 mNormalBatterySipper.usageTimeMs = 2 * DateUtils.MINUTE_IN_MILLIS; in testSetUsageSummary_timeMoreThanOneMinute_notApp_setUsedSummary()
/packages/providers/CalendarProvider/tests/src/com/android/providers/calendar/
DCalendarSanityCheckerTest.java80 mInjectedRealtimeMillis += DateUtils.DAY_IN_MILLIS - (15 * DateUtils.MINUTE_IN_MILLIS); in testWithLastCheckTime()
94 mInjectedRealtimeMillis += DateUtils.DAY_IN_MILLIS - (15 * DateUtils.MINUTE_IN_MILLIS); in testWithLastCheckTime()
/packages/apps/DeskClock/src/com/android/deskclock/stopwatch/
DLapsAdapter.java43 private static final long TEN_MINUTES = 10 * DateUtils.MINUTE_IN_MILLIS;
250 minutes = (int) (remainder / DateUtils.MINUTE_IN_MILLIS); in formatTime()
251 remainder = (int) (remainder % DateUtils.MINUTE_IN_MILLIS); in formatTime()
DLapsAdapter.kt283 private val TEN_MINUTES: Long = 10 * DateUtils.MINUTE_IN_MILLIS
315 minutes = (remainder / DateUtils.MINUTE_IN_MILLIS).toInt() in formatTime()
316 remainder = (remainder % DateUtils.MINUTE_IN_MILLIS).toInt() in formatTime()
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batterytip/tips/
DHighUsageTipTest.java45 private static final long SCREEN_TIME = 30 * DateUtils.MINUTE_IN_MILLIS;
46 private static final long LAST_FULL_CHARGE_TIME = 20 * DateUtils.MINUTE_IN_MILLIS;
/packages/providers/CalendarProvider/src/com/android/providers/calendar/
DCalendarSanityChecker.java55 15 * DateUtils.MINUTE_IN_MILLIS;
60 private static final long WTF_INTERVAL_MS = 60 * DateUtils.MINUTE_IN_MILLIS;
DCalendarAlarmManager.java111 (15 * DateUtils.MINUTE_IN_MILLIS);
315 String subQuerySuffix = " -(" + Reminders.MINUTES + "*" + +DateUtils.MINUTE_IN_MILLIS + ")" in scheduleNextAlarmLocked()
408 } else if (alarmTime > nextAlarmTime + DateUtils.MINUTE_IN_MILLIS) { in scheduleNextAlarmLocked()
/packages/apps/Dialer/java/com/android/dialer/calllogutils/
DCallLogDates.java60 DateUtils.MINUTE_IN_MILLIS, in newCallLogTimestampLabel()
68 timestampMillis, nowMillis, DateUtils.MINUTE_IN_MILLIS); in newCallLogTimestampLabel()
/packages/providers/DownloadProvider/src/com/android/providers/downloads/
DDownloadScanner.java19 import static android.text.format.DateUtils.MINUTE_IN_MILLIS;
45 private static final long SCAN_TIMEOUT = MINUTE_IN_MILLIS;

123