Home
last modified time | relevance | path

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

12

/packages/modules/Connectivity/tests/unit/java/android/net/
DNetworkStatsHistoryTest.java32 import static android.text.format.DateUtils.SECOND_IN_MILLIS;
87 assertEquals(15 * SECOND_IN_MILLIS, history.getBucketDuration()); in testReadOriginalVersion()
112 stats.recordData(TEST_START, TEST_START + SECOND_IN_MILLIS, in testRecordSingleBucket()
116 assertValues(stats, 0, SECOND_IN_MILLIS, 1024L, 10L, 2048L, 20L, 2L); in testRecordSingleBucket()
163 stats.recordData(firstStart, firstStart + SECOND_IN_MILLIS, in testRecordGapBuckets()
165 stats.recordData(lastStart, lastStart + SECOND_IN_MILLIS, in testRecordGapBuckets()
170 assertValues(stats, 0, SECOND_IN_MILLIS, 128L, 2L, 256L, 4L, 1L); in testRecordGapBuckets()
171 assertValues(stats, 1, SECOND_IN_MILLIS, 64L, 1L, 512L, 8L, 2L); in testRecordGapBuckets()
181 assertValues(stats, 0, SECOND_IN_MILLIS, 128L, 2L, 256L, 4L, 1L); in testRecordGapBuckets()
184 assertValues(stats, 3, SECOND_IN_MILLIS, 64L, 1L, 512L, 8L, 2L); in testRecordGapBuckets()
[all …]
/packages/apps/DeskClock/src/com/android/deskclock/
DStopwatchTextController.kt46 val seconds = (remainder / DateUtils.SECOND_IN_MILLIS).toInt() in setTimeString()
47 remainder = (remainder % DateUtils.SECOND_IN_MILLIS).toInt() in setTimeString()
53 if (mLastTime / DateUtils.SECOND_IN_MILLIS != in setTimeString()
54 accumulatedTime / DateUtils.SECOND_IN_MILLIS) { in setTimeString()
DTimerTextController.kt40 var seconds = (remainder / DateUtils.SECOND_IN_MILLIS).toInt() in setTimeString()
41 remainder = (remainder % DateUtils.SECOND_IN_MILLIS).toInt() in setTimeString()
DAnalogClock.kt59 val delay = DateUtils.SECOND_IN_MILLIS - now % DateUtils.SECOND_IN_MILLIS in run()
/packages/apps/DeskClock/src/com/android/deskclock/data/
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.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()
DTimerNotificationBuilder.kt32 import android.text.format.DateUtils.SECOND_IN_MILLIS
417 val adjustedRemaining = if (remaining < 0) remaining else remaining + SECOND_IN_MILLIS in getChronometerBase()
/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/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.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;
269 hours * HOUR_IN_MILLIS + minutes * MINUTE_IN_MILLIS + seconds * SECOND_IN_MILLIS; in assertHasValue()
/packages/providers/MediaProvider/src/com/android/providers/media/
DMediaDocumentsProvider.java1242 cursor.getLong(ImagesBucketQuery.DATE_MODIFIED) * DateUtils.SECOND_IN_MILLIS); in includeImagesBucket()
1272 cursor.getLong(ImageQuery.DATE_MODIFIED) * DateUtils.SECOND_IN_MILLIS); in includeImage()
1305 cursor.getLong(VideosBucketQuery.DATE_MODIFIED) * DateUtils.SECOND_IN_MILLIS); in includeVideosBucket()
1335 cursor.getLong(VideoQuery.DATE_MODIFIED) * DateUtils.SECOND_IN_MILLIS); in includeVideo()
1368 cursor.getLong(DocumentsBucketQuery.DATE_MODIFIED) * DateUtils.SECOND_IN_MILLIS); in includeDocumentsBucket()
1398 cursor.getLong(DocumentQuery.DATE_MODIFIED) * DateUtils.SECOND_IN_MILLIS); in includeDocument()
1467 cursor.getLong(SongQuery.DATE_MODIFIED) * DateUtils.SECOND_IN_MILLIS); in includeAudio()
/packages/providers/DownloadProvider/src/com/android/providers/downloads/
DDownloadThread.java40 import static android.text.format.DateUtils.SECOND_IN_MILLIS;
119 private static final int DEFAULT_TIMEOUT = (int) (20 * SECOND_IN_MILLIS);
813 mInfoDelta.mRetryAfter = (int) (retryAfter * SECOND_IN_MILLIS); in parseUnavailableHeaders()
/packages/apps/Car/Dialer/tests/unittests/src/com/android/car/dialer/livedata/
DHeartBeatLiveDataTest.java47 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()
/packages/apps/Car/Settings/src/com/android/car/settings/applications/
DRecentAppsListPreferenceController.java110 System.currentTimeMillis(), DateUtils.SECOND_IN_MILLIS)); in createPreference()
/packages/apps/Car/Cluster/DirectRenderingCluster/src/android/car/cluster/
DSelfRefreshDescriptionLiveData.java60 HeartBeatLiveData heartBeatLiveData = new HeartBeatLiveData(DateUtils.SECOND_IN_MILLIS); in SelfRefreshDescriptionLiveData()
/packages/apps/TV/src/com/android/tv/dialog/
DRecentlyWatchedDialogFragment.java99 DateUtils.SECOND_IN_MILLIS); in onCreateDialog()

12