Home
last modified time | relevance | path

Searched refs:SECOND_IN_MILLIS (Results 1 – 25 of 51) sorted by relevance

123

/packages/apps/DeskClock/src/com/android/deskclock/
DStopwatchTextController.java26 import static android.text.format.DateUtils.SECOND_IN_MILLIS;
56 final int seconds = (int) (remainder / SECOND_IN_MILLIS); in setTimeString()
57 remainder = (int) (remainder % SECOND_IN_MILLIS); in setTimeString()
64 if ((mLastTime / SECOND_IN_MILLIS) != (accumulatedTime / SECOND_IN_MILLIS)) { in setTimeString()
DTimerTextController.java23 import static android.text.format.DateUtils.SECOND_IN_MILLIS;
49 int seconds = (int) (remainder / SECOND_IN_MILLIS); in setTimeString()
50 remainder = (int) (remainder % SECOND_IN_MILLIS); in setTimeString()
DAnalogClock.java33 import static android.text.format.DateUtils.SECOND_IN_MILLIS;
58 final long delay = SECOND_IN_MILLIS - now % SECOND_IN_MILLIS;
/packages/apps/DeskClock/src/com/android/deskclock/data/
DTimerStringFormatter.java27 import static android.text.format.DateUtils.SECOND_IN_MILLIS;
38 int roundedSeconds = (int) (remainingTime / SECOND_IN_MILLIS % 60); in formatTimeRemaining()
43 if ((remainingTime % SECOND_IN_MILLIS != 0) && shouldShowSeconds) { in formatTimeRemaining()
DTimerStringFormatter.kt22 import android.text.format.DateUtils.SECOND_IN_MILLIS
40 var roundedSeconds = (remainingTime / SECOND_IN_MILLIS % 60).toInt() in formatTimeRemaining()
45 if (remainingTime % SECOND_IN_MILLIS != 0L && shouldShowSeconds) { in formatTimeRemaining()
DTimer.java27 import static android.text.format.DateUtils.SECOND_IN_MILLIS;
73 public static final long MIN_LENGTH = SECOND_IN_MILLIS;
77 99 * HOUR_IN_MILLIS + 99 * MINUTE_IN_MILLIS + 99 * SECOND_IN_MILLIS;
DTimer.kt22 import android.text.format.DateUtils.SECOND_IN_MILLIS in <lambda>()
335 val MIN_LENGTH: Long = SECOND_IN_MILLIS in <lambda>()
338 val MAX_LENGTH: Long = 99 * HOUR_IN_MILLIS + 99 * MINUTE_IN_MILLIS + 99 * SECOND_IN_MILLIS in <lambda>()
DSettingsDAO.kt226 return crescendoSeconds.toInt() * DateUtils.SECOND_IN_MILLIS in getAlarmCrescendoDuration()
235 return crescendoSeconds.toInt() * DateUtils.SECOND_IN_MILLIS in getTimerCrescendoDuration()
DSettingsDAO.java233 return Integer.parseInt(crescendoSeconds) * DateUtils.SECOND_IN_MILLIS; in getAlarmCrescendoDuration()
242 return Integer.parseInt(crescendoSeconds) * DateUtils.SECOND_IN_MILLIS; in getTimerCrescendoDuration()
/packages/apps/Settings/tests/anomaly-tester/src/com/android/settings/anomaly/tests/
DWakelockAnomalyTest.java70 final long durationMs = DateUtils.SECOND_IN_MILLIS * 15; in testWakelockAnomaly_longTimeWhileRunning_report()
92 final long durationMs = DateUtils.SECOND_IN_MILLIS; in testWakelockAnomaly_shortTime_notReport()
114 final long durationMs = DateUtils.SECOND_IN_MILLIS * 10; in testWakelockAnomaly_longTimeWhileNotRunning_notReport()
DBluetoothAnomalyTest.java70 final long durationMs = DateUtils.SECOND_IN_MILLIS * 15; in testBluetoothAnomaly_longScanningTime_reportAnomaly()
91 final long durationMs = DateUtils.SECOND_IN_MILLIS; in testBluetoothAnomaly_shortScanningTime_notReport()
/packages/providers/DownloadProvider/tests/src/com/android/providers/downloads/
DAbstractPublicApiTest.java22 import static android.text.format.DateUtils.SECOND_IN_MILLIS;
130 waitForStatus(expected, afterMillis, 15 * SECOND_IN_MILLIS); in waitForStatus()
156 SystemClock.sleep(SECOND_IN_MILLIS * 3); in waitForStatus()
DDownloadProviderFunctionalTest.java19 import static android.text.format.DateUtils.SECOND_IN_MILLIS;
137 final long timeout = SystemClock.elapsedRealtime() + (15 * SECOND_IN_MILLIS); in runUntilStatus()
DPublicApiFunctionalTest.java22 import static android.text.format.DateUtils.SECOND_IN_MILLIS;
447 mSystemFacade.incrementTimeMillis((RETRY_DELAY + 60) * SECOND_IN_MILLIS); in testRunawayUnavailable()
523 final long timeout = SystemClock.elapsedRealtime() + (15 * SECOND_IN_MILLIS); in testCancel()
/packages/apps/DocumentsUI/src/com/android/documentsui/util/
DFormatUtils.java56 (int) ((millis + DateUtils.SECOND_IN_MILLIS / 2) / DateUtils.SECOND_IN_MILLIS); in formatDuration()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/deviceinfo/
DMigrateEstimateTask.java104 long timeMillis = (mSizeBytes * DateUtils.SECOND_IN_MILLIS) / SPEED_ESTIMATE_BPS; in onPostExecute()
105 timeMillis = Math.max(timeMillis, DateUtils.SECOND_IN_MILLIS); in onPostExecute()
/packages/apps/Settings/src/com/android/settings/deviceinfo/
DMigrateEstimateTask.java104 long timeMillis = (mSizeBytes * DateUtils.SECOND_IN_MILLIS) / SPEED_ESTIMATE_BPS; in onPostExecute()
105 timeMillis = Math.max(timeMillis, DateUtils.SECOND_IN_MILLIS); in onPostExecute()
/packages/apps/Messaging/src/com/android/messaging/util/
DDates.java35 public static final long SECOND_IN_MILLIS = 1000; field in Dates
36 public static final long MINUTE_IN_MILLIS = SECOND_IN_MILLIS * 60;
/packages/apps/DeskClock/src/com/android/deskclock/stopwatch/
DLapsAdapter.java253 seconds = (int) (remainder / DateUtils.SECOND_IN_MILLIS); in formatTime()
254 remainder = (int) (remainder % DateUtils.SECOND_IN_MILLIS); in formatTime()
DLapsAdapter.kt317 seconds = (remainder / DateUtils.SECOND_IN_MILLIS).toInt() in formatTime()
318 remainder = (remainder % DateUtils.SECOND_IN_MILLIS).toInt() in formatTime()
/packages/apps/DeskClock/tests/src/com/android/deskclock/timer/
DTimerSetupViewTest.java45 import static android.text.format.DateUtils.SECOND_IN_MILLIS;
268 hours * HOUR_IN_MILLIS + minutes * MINUTE_IN_MILLIS + seconds * SECOND_IN_MILLIS; in assertHasValue()
/packages/providers/DownloadProvider/src/com/android/providers/downloads/
DDownloadThread.java40 import static android.text.format.DateUtils.SECOND_IN_MILLIS;
118 private static final int DEFAULT_TIMEOUT = (int) (20 * SECOND_IN_MILLIS);
818 mInfoDelta.mRetryAfter = (int) (retryAfter * SECOND_IN_MILLIS); in parseUnavailableHeaders()
/packages/providers/MediaProvider/src/com/android/providers/media/
DMediaDocumentsProvider.java1042 cursor.getLong(ImagesBucketQuery.DATE_MODIFIED) * DateUtils.SECOND_IN_MILLIS); in includeImagesBucket()
1072 cursor.getLong(ImageQuery.DATE_MODIFIED) * DateUtils.SECOND_IN_MILLIS); in includeImage()
1102 cursor.getLong(VideosBucketQuery.DATE_MODIFIED) * DateUtils.SECOND_IN_MILLIS); in includeVideosBucket()
1132 cursor.getLong(VideoQuery.DATE_MODIFIED) * DateUtils.SECOND_IN_MILLIS); in includeVideo()
1204 cursor.getLong(SongQuery.DATE_MODIFIED) * DateUtils.SECOND_IN_MILLIS); in includeAudio()
/packages/apps/Car/Dialer/tests/robotests/src/com/android/car/dialer/livedata/
DHeartBeatLiveDataTest.java48 mHeartBeatLiveData = new HeartBeatLiveData(DateUtils.SECOND_IN_MILLIS); in setup()
/packages/apps/TV/tuner/src/com/android/tv/tuner/data/
DPsipData.java743 return ConvertUtils.convertGPSTimeToUnixEpoch(mStartTime) * DateUtils.SECOND_IN_MILLIS; in getStartTimeUtcMillis()
748 * DateUtils.SECOND_IN_MILLIS; in getEndTimeUtcMillis()

123