/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/ |
D | GlobalSearchLoaderTest.java | 75 doc.lastModified = System.currentTimeMillis(); in setUp() 128 doc.lastModified = System.currentTimeMillis(); in testSearchResult_includeDirectory() 146 doc.lastModified = System.currentTimeMillis(); in testShowOrHideHiddenFiles() 184 currentUserDoc.lastModified = System.currentTimeMillis(); in testSearchResult_includeDirectory_excludedOtherUsers() 189 otherUserDoc.lastModified = System.currentTimeMillis(); in testSearchResult_includeDirectory_excludedOtherUsers() 209 pdfDoc.lastModified = System.currentTimeMillis(); in testSearchResult_includeSearchString() 212 apkDoc.lastModified = System.currentTimeMillis(); in testSearchResult_includeSearchString() 215 testApkDoc.lastModified = System.currentTimeMillis(); in testSearchResult_includeSearchString() 240 pdfDoc.lastModified = System.currentTimeMillis(); in testSearchResult_includeDifferentRoot() 243 apkDoc.lastModified = System.currentTimeMillis(); in testSearchResult_includeDifferentRoot() [all …]
|
/packages/apps/Messaging/src/com/android/messaging/datamodel/ |
D | DatabaseWrapper.java | 109 final long t2 = System.currentTimeMillis(); in printTiming() 124 final long t1 = System.currentTimeMillis(); in beginTransaction() 152 t1 = System.currentTimeMillis(); in endTransaction() 163 (System.currentTimeMillis() - transactionStartTime))); in endTransaction() 170 yieldStartTime = System.currentTimeMillis(); in yieldTransaction() 182 t1 = System.currentTimeMillis(); in insertWithOnConflict() 257 t1 = System.currentTimeMillis(); in query() 288 t1 = System.currentTimeMillis(); in query() 305 t1 = System.currentTimeMillis(); in queryNumEntries() 325 t1 = System.currentTimeMillis(); in rawQuery() [all …]
|
/packages/apps/TV/tests/robotests/src/com/android/tv/data/ |
D | ProgramDataManagerTest.java | 120 int index = stub.getIndex(mClock.currentTimeMillis(), channelId); in testProgramUtils() 123 assertThat(startTimeMs).isAtMost(mClock.currentTimeMillis()); in testProgramUtils() 124 assertThat(mClock.currentTimeMillis()).isLessThan(startTimeMs + programAt.durationMs); in testProgramUtils() 139 long prefetchTimeRangeStartMs = System.currentTimeMillis() + preventSnapDelayMs; in testGetPrograms() 151 .isLessThan(mClock.currentTimeMillis()); in testGetPrograms() 154 .isGreaterThan(mClock.currentTimeMillis()); in testGetPrograms() 159 mProgramDataManager.getPrograms(channelId, mClock.currentTimeMillis()); in testGetPrograms() 161 int index = stub.getIndex(mClock.currentTimeMillis(), channelId); in testGetPrograms() 193 int index = stub.getIndex(mClock.currentTimeMillis(), testChannelId); in testCurrentProgramListener() 206 mClock.setCurrentTimeMillis(mClock.currentTimeMillis() + WAIT_TIME_OUT_MS); in testCurrentProgramListener() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/ |
D | RecentAppStatsMixinTest.java | 96 stat1.mLastTimeUsed = System.currentTimeMillis(); in loadDisplayableRecentApps_oneValidRecentAppSet_shouldHaveOneRecentApp() 119 stat1.mLastTimeUsed = System.currentTimeMillis(); in loadDisplayableRecentApps_threeValidRecentAppsSet_shouldHaveThreeRecentApps() 123 stat2.mLastTimeUsed = System.currentTimeMillis(); in loadDisplayableRecentApps_threeValidRecentAppsSet_shouldHaveThreeRecentApps() 127 stat3.mLastTimeUsed = System.currentTimeMillis(); in loadDisplayableRecentApps_threeValidRecentAppsSet_shouldHaveThreeRecentApps() 154 stat1.mLastTimeUsed = System.currentTimeMillis(); in loadDisplayableRecentApps_oneValidAndTwoInvalidSet_shouldHaveOneRecentApp() 158 stat2.mLastTimeUsed = System.currentTimeMillis(); in loadDisplayableRecentApps_oneValidAndTwoInvalidSet_shouldHaveOneRecentApp() 162 stat3.mLastTimeUsed = System.currentTimeMillis(); in loadDisplayableRecentApps_oneValidAndTwoInvalidSet_shouldHaveOneRecentApp() 191 stat.mLastTimeUsed = System.currentTimeMillis() + 200; in loadDisplayableRecentApps_oneInstantAppSet_shouldHaveOneRecentApp() 216 stat1.mLastTimeUsed = System.currentTimeMillis(); in loadDisplayableRecentApps_withNullAppEntryOrInfo_shouldNotCrash() 220 stat2.mLastTimeUsed = System.currentTimeMillis(); in loadDisplayableRecentApps_withNullAppEntryOrInfo_shouldNotCrash() [all …]
|
/packages/apps/TV/tests/unit/src/com/android/tv/recommendation/ |
D | FavoriteChannelEvaluatorTest.java | 34 System.currentTimeMillis() - TimeUnit.DAYS.toMillis(2); 36 System.currentTimeMillis() - TimeUnit.DAYS.toMillis(1); 94 long latestWatchEndTimeMs = System.currentTimeMillis() - TimeUnit.DAYS.toMillis(2); in testMultiChannelsWithSimpleWatchLogs() 120 System.currentTimeMillis() - TimeUnit.HOURS.toMillis(1), in testTwoChannelsWithSameWatchDuration() 124 System.currentTimeMillis() - TimeUnit.MINUTES.toMillis(30), in testTwoChannelsWithSameWatchDuration() 138 System.currentTimeMillis() - TimeUnit.HOURS.toMillis(3), in testTwoChannelsWithDifferentWatchDuration() 142 System.currentTimeMillis() - TimeUnit.HOURS.toMillis(2), in testTwoChannelsWithDifferentWatchDuration() 152 System.currentTimeMillis() - TimeUnit.HOURS.toMillis(1), in testTwoChannelsWithDifferentWatchDuration()
|
/packages/apps/TV/tests/robotests/src/com/android/tv/dvr/recorder/ |
D | InputTaskSchedulerTest.java | 140 mFakeClock.currentTimeMillis(), in testAddSchedule_start() 141 mFakeClock.currentTimeMillis() + TimeUnit.HOURS.toMillis(1))); in testAddSchedule_start() 148 long startTimeMs = mFakeClock.currentTimeMillis(); in testAddSchedule_consecutiveNoStop() 170 long startTimeMs = mFakeClock.currentTimeMillis(); in testAddSchedule_consecutiveNoFail() 200 long startTimeMs = mFakeClock.currentTimeMillis(); in testAddSchedule_consecutiveUseLessSession() 227 mFakeClock.currentTimeMillis(), in testUpdateSchedule_noCancel() 228 mFakeClock.currentTimeMillis() + TimeUnit.HOURS.toMillis(1)); in testUpdateSchedule_noCancel() 242 mFakeClock.currentTimeMillis(), in testUpdateSchedule_cancel() 243 mFakeClock.currentTimeMillis() + TimeUnit.HOURS.toMillis(2)); in testUpdateSchedule_cancel() 248 .setStartTimeMs(mFakeClock.currentTimeMillis() + TimeUnit.HOURS.toMillis(1)) in testUpdateSchedule_cancel()
|
/packages/apps/SettingsIntelligence/src/com/android/settings/intelligence/suggestions/ |
D | SuggestionService.java | 33 final long startTime = System.currentTimeMillis(); in onGetSuggestions() 42 final long endTime = System.currentTimeMillis(); in onGetSuggestions() 51 final long startTime = System.currentTimeMillis(); in onSuggestionDismissed() 54 final long endTime = System.currentTimeMillis(); in onSuggestionDismissed() 65 final long startTime = System.currentTimeMillis(); in onSuggestionLaunched() 68 final long endTime = System.currentTimeMillis(); in onSuggestionLaunched()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/bluetooth/ |
D | LocalBluetoothPreferences.java | 80 long currentTimeMillis = System.currentTimeMillis(); in shouldShowDialogInForeground() local 87 > currentTimeMillis) { in shouldShowDialogInForeground() 98 GRACE_PERIOD_TO_SHOW_DIALOGS_IN_FOREGROUND) > currentTimeMillis) { in shouldShowDialogInForeground() 112 > currentTimeMillis) { in shouldShowDialogInForeground() 138 System.currentTimeMillis()); in persistSelectedDeviceInPicker()
|
/packages/apps/Settings/src/com/android/settings/bluetooth/ |
D | LocalBluetoothPreferences.java | 80 long currentTimeMillis = System.currentTimeMillis(); in shouldShowDialogInForeground() local 87 > currentTimeMillis) { in shouldShowDialogInForeground() 98 GRACE_PERIOD_TO_SHOW_DIALOGS_IN_FOREGROUND) > currentTimeMillis) { in shouldShowDialogInForeground() 112 > currentTimeMillis) { in shouldShowDialogInForeground() 138 System.currentTimeMillis()); in persistSelectedDeviceInPicker()
|
/packages/apps/TvSettings/Settings/tests/robotests/src/com/android/tv/settings/device/apps/ |
D | RecentAppsPreferenceControllerTest.java | 144 stat1.mLastTimeUsed = System.currentTimeMillis(); in display_showRecents() 148 stat2.mLastTimeUsed = System.currentTimeMillis(); in display_showRecents() 152 stat3.mLastTimeUsed = System.currentTimeMillis(); in display_showRecents() 181 stat1.mLastTimeUsed = System.currentTimeMillis(); in display_showRecentsWithInstantApp() 187 stat2.mLastTimeUsed = System.currentTimeMillis() + 200; in display_showRecentsWithInstantApp() 224 stat1.mLastTimeUsed = System.currentTimeMillis(); in display_showRecentsWithNullAppEntryOrInfo() 228 stat2.mLastTimeUsed = System.currentTimeMillis(); in display_showRecentsWithNullAppEntryOrInfo() 251 stat1.mLastTimeUsed = System.currentTimeMillis(); in display_hasRecentButNoneDisplayable_showAllApps() 255 stat2.mLastTimeUsed = System.currentTimeMillis(); in display_hasRecentButNoneDisplayable_showAllApps() 277 stat1.mLastTimeUsed = System.currentTimeMillis(); in display_showRecents_formatSummary()
|
/packages/apps/TV/src/com/android/tv/dvr/ui/list/ |
D | ScheduleRowAdapter.java | 65 long currentTimeMs = System.currentTimeMillis(); 95 long deadLine = Utils.getLastMillisecondOfDay(System.currentTimeMillis()); in start() 119 sendNextUpdateMessage(System.currentTimeMillis()); in start() 125 ((deadLine - Utils.getLastMillisecondOfDay(System.currentTimeMillis())) in calculateHeaderDate() 279 sendNextUpdateMessage(System.currentTimeMillis()); in onScheduledRecordingAdded() 290 sendNextUpdateMessage(System.currentTimeMillis()); in onScheduledRecordingRemoved() 323 sendNextUpdateMessage(System.currentTimeMillis()); in onScheduledRecordingUpdated() 340 sendNextUpdateMessage(System.currentTimeMillis()); in onScheduledRecordingUpdated() 379 return schedule.getEndTimeMs() > System.currentTimeMillis() in willBeKept() 420 mHandler.sendEmptyMessageDelayed(MSG_UPDATE_ROW, nextTime - System.currentTimeMillis()); in sendNextUpdateMessage()
|
/packages/providers/MediaProvider/tests/src/com/android/providers/media/ |
D | DatabaseHelperTest.java | 195 values.put(FileColumns.DATE_ADDED, System.currentTimeMillis()); in assertDowngrade() 196 values.put(FileColumns.DATE_MODIFIED, System.currentTimeMillis()); in assertDowngrade() 242 values.put(FileColumns.DATE_ADDED, System.currentTimeMillis()); in assertRecompute() 243 values.put(FileColumns.DATE_MODIFIED, System.currentTimeMillis()); in assertRecompute() 253 values.put(FileColumns.DATE_ADDED, System.currentTimeMillis()); in assertRecompute() 254 values.put(FileColumns.DATE_MODIFIED, System.currentTimeMillis()); in assertRecompute() 264 values.put(FileColumns.DATE_ADDED, System.currentTimeMillis()); in assertRecompute() 265 values.put(FileColumns.DATE_MODIFIED, System.currentTimeMillis()); in assertRecompute() 275 values.put(FileColumns.DATE_ADDED, System.currentTimeMillis()); in assertRecompute() 276 values.put(FileColumns.DATE_MODIFIED, System.currentTimeMillis()); in assertRecompute() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/datausage/ |
D | DataUsageSummaryPreferenceTest.java | 95 final long now = System.currentTimeMillis(); in setUp() 140 final long updateTime = System.currentTimeMillis() in testCarrierUpdateTime_shouldFormatDaysCorrectly() 155 final long updateTime = System.currentTimeMillis() in testCarrierUpdateTime_shouldFormatHoursCorrectly() 170 final long updateTime = System.currentTimeMillis() in testCarrierUpdateTime_shouldFormatMinutesCorrectly() 183 final long updateTime = System.currentTimeMillis() - TimeUnit.SECONDS.toMillis(45); in testCarrierUpdateTime_shouldFormatLessThanMinuteCorrectly() 195 final long updateTime = System.currentTimeMillis() - TimeUnit.SECONDS.toMillis(45); in testCarrierUpdateTimeWithNoCarrier_shouldSayJustNow() 207 final long updateTime = System.currentTimeMillis() - TimeUnit.MINUTES.toMillis(2); in testCarrierUpdateTimeWithNoCarrier_shouldFormatTime() 219 final long updateTime = System.currentTimeMillis() - TimeUnit.HOURS.toMillis(1); in setUsageInfo_withRecentCarrierUpdate_doesNotSetCarrierInfoWarningColorAndFont() 233 final long updateTime = System.currentTimeMillis() - TimeUnit.HOURS.toMillis(7); in testSetUsageInfo_withStaleCarrierUpdate_setsCarrierInfoWarningColorAndFont() 266 final long cycleEnd = System.currentTimeMillis() + TimeUnit.HOURS.toMillis(23); in testSetUsageInfo_cycleRemainingTimeIsLessOneDay() [all …]
|
/packages/apps/Car/Settings/src/com/android/car/settings/bluetooth/ |
D | BluetoothUtils.java | 112 long currentTimeMillis = System.currentTimeMillis(); in shouldShowDialogInForeground() local 119 > currentTimeMillis) { in shouldShowDialogInForeground() 130 GRACE_PERIOD_TO_SHOW_DIALOGS_IN_FOREGROUND) > currentTimeMillis) { in shouldShowDialogInForeground() 144 > currentTimeMillis) { in shouldShowDialogInForeground() 168 editor.putLong(KEY_LAST_SELECTED_DEVICE_TIME, System.currentTimeMillis()); in persistSelectedDeviceInPicker()
|
/packages/apps/TV/src/com/android/tv/ |
D | TimeShiftManager.java | 225 return System.currentTimeMillis(); in getRecordEndTimeMs() 348 long currentTimeMs = System.currentTimeMillis(); in jumpToNext() 632 if (recordStartTimeMs > System.currentTimeMillis()) { in PlayController() 643 + System.currentTimeMillis()); in PlayController() 644 recordStartTimeMs = System.currentTimeMillis(); in PlayController() 691 mAvailablityChangedTimeMs = System.currentTimeMillis(); in onAvailabilityChanged() 715 ? System.currentTimeMillis() in handleGetCurrentPosition() 744 setCurrentPositionMs(System.currentTimeMillis()); in handleGetCurrentPosition() 810 ? System.currentTimeMillis() in seekTo() 929 endTimeMs = System.currentTimeMillis(); in onRecordTimeRangeChanged() [all …]
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/datausage/ |
D | DataUsageSummaryPreferenceControllerTest.java | 201 info.cycleEnd = System.currentTimeMillis() + TimeUnit.DAYS.toMillis(numDays) in refreshUi_endTimeIsGreaterThanOneDay_setsBillingCycleText() 217 info.cycleEnd = System.currentTimeMillis() + TimeUnit.HOURS.toMillis(22); in refreshUi_endTimeIsLessThanOneDay_setsBillingCycleText() 231 info.cycleEnd = System.currentTimeMillis(); in refreshUi_endTimeIsNow_setsBillingCycleText() 249 setSubscriptionPlan(/* usageBytes= */ 1000L, System.currentTimeMillis()); in refreshUi_hasCarrierName_hasRecentUpdate_setsCarrierInfoText() 268 System.currentTimeMillis() - TimeUnit.DAYS.toMillis(numDays)); in refreshUi_hasCarrierName_hasOldUpdate_setsCarrierInfoText() 284 setSubscriptionPlan(/* usageBytes= */ 1000L, System.currentTimeMillis()); in refreshUi_noCarrierName_hasRecentUpdate_setsCarrierInfoText() 301 System.currentTimeMillis() - TimeUnit.DAYS.toMillis(numDays)); in refreshUi_noCarrierName_hasOldUpdate_setsCarrierInfoText() 321 System.currentTimeMillis() - DataUsageSummaryPreferenceController.WARNING_AGE in refreshUi_hasUpdateTimeOlderThanWarning_setsCarrierInfoStyle() 340 System.currentTimeMillis() - DataUsageSummaryPreferenceController.WARNING_AGE in refreshUi_hasUpdateTimeYoungerThanWarning_setsCarrierInfoStyle()
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/makedict/ |
D | BinaryDictDecoderEncoderTests.java | 70 this(System.currentTimeMillis(), DEFAULT_MAX_UNIGRAMS); in BinaryDictDecoderEncoderTests() 168 now = System.currentTimeMillis(); in timeWritingDictToFile() 173 diff = System.currentTimeMillis() - now; in timeWritingDictToFile() 221 now = System.currentTimeMillis(); in timeReadingAndCheckDict() 223 diff = System.currentTimeMillis() - now; in timeReadingAndCheckDict() 241 final String dictVersion = Long.toString(System.currentTimeMillis()); in runReadAndWrite() 282 final String dictVersion = Long.toString(System.currentTimeMillis()); in testCharacterTableIsPresent() 417 now = System.currentTimeMillis(); 419 diff = System.currentTimeMillis() - now; 434 final String dictVersion = Long.toString(System.currentTimeMillis()); [all …]
|
/packages/apps/TV/tests/common/src/com/android/tv/testing/fakes/ |
D | FakeClock.java | 31 long now = System.currentTimeMillis(); in createWithCurrentTime() 48 private FakeClock(long currentTimeMillis, long bootTimeMillis) { in FakeClock() argument 49 mCurrentTimeMillis = currentTimeMillis; in FakeClock() 87 public long currentTimeMillis() { in currentTimeMillis() method in FakeClock
|
/packages/apps/Settings/tests/unit/src/com/android/settings/fuelgauge/batterytip/ |
D | RestrictAppTest.java | 67 mBatteryDatabaseManager.deleteAllAnomaliesBeforeTimeStamp(System.currentTimeMillis() + in setUp() 76 AnomalyDatabaseHelper.State.NEW, System.currentTimeMillis()); in batterySettings_hasOneAnomaly_showAnomaly() 88 AnomalyDatabaseHelper.State.NEW, System.currentTimeMillis()); in batterySettings_hasTwoAnomalies_showAnomalies() 91 AnomalyDatabaseHelper.State.NEW, System.currentTimeMillis()); in batterySettings_hasTwoAnomalies_showAnomalies() 102 final long now = System.currentTimeMillis(); in insertDuplicateAnomalies_onlyInsertOnce()
|
/packages/services/Car/service/src/com/android/car/trust/ |
D | EventLog.java | 65 String.format("timestamp: %d - %s", System.currentTimeMillis(), eventType)); in logUnlockEvent() 76 System.currentTimeMillis(), eventType, value)); in logUnlockEvent() 87 "timestamp: %d - %s", System.currentTimeMillis(), eventType)); in logEnrollmentEvent() 98 System.currentTimeMillis(), eventType, value)); in logEnrollmentEvent()
|
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/module/ |
D | DailyLoggingAlarmScheduler.java | 47 long currentTimeMillis = System.currentTimeMillis(); in setAlarm() local 48 oneDayAgo.setTimeInMillis(currentTimeMillis); in setAlarm() 56 oneMinuteFromNow.setTimeInMillis(currentTimeMillis); in setAlarm()
|
/packages/screensavers/PhotoTable/src/com/android/dreams/phototable/ |
D | KeyboardInterpreter.java | 51 if ((System.currentTimeMillis() - mLastDeckNavigation) > mBounce) { in onKeyDown() 52 mLastDeckNavigation = System.currentTimeMillis(); in onKeyDown() 59 if ((System.currentTimeMillis() - mLastDeckNavigation) > mBounce) { in onKeyDown() 60 mLastDeckNavigation = System.currentTimeMillis(); in onKeyDown()
|
/packages/apps/TV/tests/input/src/com/android/tv/testinput/ |
D | TestTvInputService.java | 129 long currentTimeMs = System.currentTimeMillis(); 239 mLastCurrentPositionUpdateTimeMs = System.currentTimeMillis(); in onTune() 277 mPausedTimeMs = mLastCurrentPositionUpdateTimeMs = System.currentTimeMillis(); in onTimeShiftPause() 284 mLastCurrentPositionUpdateTimeMs = System.currentTimeMillis(); in onTimeShiftResume() 289 mLastCurrentPositionUpdateTimeMs = System.currentTimeMillis(); in onTimeShiftSeekTo() 432 mStartTime = System.currentTimeMillis(); in onStartRecording() 439 mEndTime = System.currentTimeMillis(); in onStopRecording() 447 long time = System.currentTimeMillis(); in onStopRecording()
|
/packages/apps/TV/tests/unit/src/com/android/tv/ |
D | CurrentPositionMediatorTest.java | 46 long currentTimeMs = System.currentTimeMillis(); in testInitialize() 54 long seekToTimeMs = System.currentTimeMillis() - REQUEST_TIMEOUT_MS * 3; in testOnSeekRequested() 67 long seekToTimeMs = System.currentTimeMillis() - REQUEST_TIMEOUT_MS * 3; in testOnCurrentPositionChangedInvalidInput() 85 long seekToTimeMs = System.currentTimeMillis() - REQUEST_TIMEOUT_MS * 3; in testOnCurrentPositionChangedValidInput()
|
/packages/apps/StorageManager/robotests/src/com/android/storagemanager/deletionhelper/ |
D | StorageManagerUpsellDialogTest.java | 50 when(mClock.currentTimeMillis()).thenReturn(TimeUnit.DAYS.toMillis(90 * 2)); in testNoThanksMaximumShownTimes() 56 when(mClock.currentTimeMillis()).thenReturn(TimeUnit.DAYS.toMillis(90 * 3)); in testNoThanksMaximumShownTimes() 62 when(mClock.currentTimeMillis()).thenReturn(TimeUnit.DAYS.toMillis(90 * 4)); in testNoThanksMaximumShownTimes() 68 when(mClock.currentTimeMillis()).thenReturn(TimeUnit.DAYS.toMillis(90 * 5)); in testNoThanksMaximumShownTimes()
|