/packages/modules/Connectivity/tests/unit/java/android/net/ |
D | NetworkStatsHistoryTest.java | 32 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/ |
D | StopwatchTextController.kt | 46 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()
|
D | TimerTextController.kt | 40 var seconds = (remainder / DateUtils.SECOND_IN_MILLIS).toInt() in setTimeString() 41 remainder = (remainder % DateUtils.SECOND_IN_MILLIS).toInt() in setTimeString()
|
D | AnalogClock.kt | 59 val delay = DateUtils.SECOND_IN_MILLIS - now % DateUtils.SECOND_IN_MILLIS in run()
|
/packages/apps/DeskClock/src/com/android/deskclock/data/ |
D | TimerStringFormatter.kt | 22 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()
|
D | Timer.kt | 22 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>()
|
D | SettingsDAO.kt | 226 return crescendoSeconds.toInt() * DateUtils.SECOND_IN_MILLIS in getAlarmCrescendoDuration() 235 return crescendoSeconds.toInt() * DateUtils.SECOND_IN_MILLIS in getTimerCrescendoDuration()
|
D | TimerNotificationBuilder.kt | 32 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/ |
D | WakelockAnomalyTest.java | 70 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()
|
D | BluetoothAnomalyTest.java | 70 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/ |
D | AbstractPublicApiTest.java | 22 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()
|
D | DownloadProviderFunctionalTest.java | 19 import static android.text.format.DateUtils.SECOND_IN_MILLIS; 137 final long timeout = SystemClock.elapsedRealtime() + (15 * SECOND_IN_MILLIS); in runUntilStatus()
|
D | PublicApiFunctionalTest.java | 22 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/ |
D | FormatUtils.java | 56 (int) ((millis + DateUtils.SECOND_IN_MILLIS / 2) / DateUtils.SECOND_IN_MILLIS); in formatDuration()
|
/packages/apps/Settings/src/com/android/settings/deviceinfo/ |
D | MigrateEstimateTask.java | 104 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/ |
D | Dates.java | 35 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/ |
D | LapsAdapter.kt | 317 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/ |
D | TimerSetupViewTest.java | 45 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/ |
D | MediaDocumentsProvider.java | 1242 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/ |
D | DownloadThread.java | 40 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/ |
D | HeartBeatLiveDataTest.java | 47 mHeartBeatLiveData = new HeartBeatLiveData(DateUtils.SECOND_IN_MILLIS); in setup()
|
/packages/apps/TV/tuner/src/com/android/tv/tuner/data/ |
D | PsipData.java | 743 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/ |
D | RecentAppsListPreferenceController.java | 110 System.currentTimeMillis(), DateUtils.SECOND_IN_MILLIS)); in createPreference()
|
/packages/apps/Car/Cluster/DirectRenderingCluster/src/android/car/cluster/ |
D | SelfRefreshDescriptionLiveData.java | 60 HeartBeatLiveData heartBeatLiveData = new HeartBeatLiveData(DateUtils.SECOND_IN_MILLIS); in SelfRefreshDescriptionLiveData()
|
/packages/apps/TV/src/com/android/tv/dialog/ |
D | RecentlyWatchedDialogFragment.java | 99 DateUtils.SECOND_IN_MILLIS); in onCreateDialog()
|