/packages/providers/MediaProvider/tests/src/com/android/providers/media/util/ |
D | FileUtilsTest.java | 35 import static android.text.format.DateUtils.DAY_IN_MILLIS; 174 touch("file2", 1 * DAY_IN_MILLIS + HOUR_IN_MILLIS); in testDeleteOlderTypical() 175 touch("file3", 2 * DAY_IN_MILLIS + HOUR_IN_MILLIS); in testDeleteOlderTypical() 176 touch("file4", 3 * DAY_IN_MILLIS + HOUR_IN_MILLIS); in testDeleteOlderTypical() 177 touch("file5", 4 * DAY_IN_MILLIS + HOUR_IN_MILLIS); in testDeleteOlderTypical() 178 assertTrue(FileUtils.deleteOlderFiles(mDeleteTarget, 3, DAY_IN_MILLIS)); in testDeleteOlderTypical() 187 assertTrue(FileUtils.deleteOlderFiles(mDeleteTarget, 0, DAY_IN_MILLIS)); in testDeleteOlderInFuture() 193 assertTrue(FileUtils.deleteOlderFiles(mDeleteTarget, 0, DAY_IN_MILLIS)); in testDeleteOlderInFuture() 200 touch("file2", 1 * DAY_IN_MILLIS + HOUR_IN_MILLIS); in testDeleteOlderOnlyAge() 201 touch("file3", 2 * DAY_IN_MILLIS + HOUR_IN_MILLIS); in testDeleteOlderOnlyAge() [all …]
|
/packages/modules/Connectivity/tests/unit/java/android/net/ |
D | NetworkStatsHistoryTest.java | 29 import static android.text.format.DateUtils.DAY_IN_MILLIS; 174 final long middleStart = TEST_START + DAY_IN_MILLIS; in testRecordGapBuckets() 211 final long TEST_START_2 = TEST_START + DAY_IN_MILLIS; in testRecordEntireGapIdentical() 277 stats.recordData(TEST_START, TEST_START + DAY_IN_MILLIS, 24L, 24L); in testRemove() 281 stats.removeBucketsBefore(0 - DAY_IN_MILLIS); in testRemove() 312 stats.recordData(TEST_START, TEST_START + DAY_IN_MILLIS, 2400L, 4800L); in testTotalData() 315 assertValues(stats, TEST_START - WEEK_IN_MILLIS, TEST_START - DAY_IN_MILLIS, 0L, 0L); in testTotalData() 412 before.recordData(DAY_IN_MILLIS, DAY_IN_MILLIS + MINUTE_IN_MILLIS, in testSerialize() 510 assertTrue(stats.intersects(TEST_START + DAY_IN_MILLIS, TEST_START + DAY_IN_MILLIS + 1)); in testIntersects() 511 assertTrue(stats.intersects(TEST_START + DAY_IN_MILLIS, Long.MAX_VALUE)); in testIntersects()
|
/packages/apps/SettingsIntelligence/src/com/android/settings/intelligence/suggestions/model/ |
D | SuggestionCategoryRegistry.java | 45 true /* exclusive */, 14 * DateUtils.DAY_IN_MILLIS)); in buildCategory() argument 47 true /* exclusive */, 3 * DateUtils.DAY_IN_MILLIS)); in buildCategory() argument 49 true /* exclusive */, 14 * DateUtils.DAY_IN_MILLIS)); in buildCategory() argument
|
/packages/providers/CalendarProvider/src/com/android/providers/calendar/ |
D | CalendarAlarmManager.java | 102 private static final long CLEAR_OLD_ALARM_THRESHOLD = 7 * DateUtils.DAY_IN_MILLIS 110 static final long NEXT_ALARM_CHECK_TIME_MS = DateUtils.DAY_IN_MILLIS - 258 final long end = currentMillis + DateUtils.DAY_IN_MILLIS; in scheduleNextAlarmLocked() 355 start - DateUtils.DAY_IN_MILLIS, end + DateUtils.DAY_IN_MILLIS, false /* in scheduleNextAlarmLocked()
|
/packages/providers/CalendarProvider/tests/src/com/android/providers/calendar/ |
D | CalendarConfidenceCheckerTest.java | 98 mInjectedRealtimeMillis += DateUtils.DAY_IN_MILLIS - (15 * DateUtils.MINUTE_IN_MILLIS); in testWithLastCheckTime() 112 mInjectedRealtimeMillis += DateUtils.DAY_IN_MILLIS - (15 * DateUtils.MINUTE_IN_MILLIS); in testWithLastCheckTime()
|
/packages/apps/Messaging/src/com/android/messaging/util/ |
D | Dates.java | 38 public static final long DAY_IN_MILLIS = HOUR_IN_MILLIS * 24; field in Dates 39 public static final long WEEK_IN_MILLIS = DAY_IN_MILLIS * 7; 250 } else if (duration < DAY_IN_MILLIS) { in getShortRelativeTimeSpanString()
|
/packages/apps/Calendar/src/com/android/calendar/alerts/ |
D | AlarmScheduler.java | 93 private static final long MAX_ALARM_ELAPSED_MS = DateUtils.DAY_IN_MILLIS; 143 ContentUris.appendId(uriBuilder, localStartMin - DateUtils.DAY_IN_MILLIS); in queryUpcomingEvents() 144 ContentUris.appendId(uriBuilder, localStartMax + DateUtils.DAY_IN_MILLIS); in queryUpcomingEvents()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/ |
D | BatteryDatabaseManagerTest.java | 52 private static long ONE_DAY_BEFORE = NOW - DateUtils.DAY_IN_MILLIS; 53 private static long TWO_DAYS_BEFORE = NOW - 2 * DateUtils.DAY_IN_MILLIS;
|
/packages/apps/Calendar/src/com/android/calendar/widget/ |
D | CalendarAppWidgetService.java | 100 private static final long SEARCH_DURATION = MAX_DAYS * DateUtils.DAY_IN_MILLIS; 403 long begin = now - DateUtils.DAY_IN_MILLIS; 404 long end = now + SEARCH_DURATION + DateUtils.DAY_IN_MILLIS;
|
/packages/providers/MediaProvider/tests/src/com/android/providers/media/ |
D | IdleServiceTest.java | 144 final long dateExpires = (System.currentTimeMillis() - 10 * DateUtils.DAY_IN_MILLIS) / 1000; in testExtendTrashedItemExpiresOverOneWeek() 182 final long dateExpires = (System.currentTimeMillis() - 3 * DateUtils.DAY_IN_MILLIS) / 1000; in testDeleteExpiredTrashedItem()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/datausage/ |
D | AppDataUsageTest.java | 386 final long tenDaysAgo = now - (DateUtils.DAY_IN_MILLIS * 10); in onLoadFinished_hasSelectedCycleSpecified_shouldSelectSpecifiedCycle() 387 final long twentyDaysAgo = now - (DateUtils.DAY_IN_MILLIS * 20); in onLoadFinished_hasSelectedCycleSpecified_shouldSelectSpecifiedCycle() 388 final long thirtyDaysAgo = now - (DateUtils.DAY_IN_MILLIS * 30); in onLoadFinished_hasSelectedCycleSpecified_shouldSelectSpecifiedCycle()
|
/packages/apps/Settings/src/com/android/settings/applications/ |
D | AppStateNotificationBridge.java | 148 long startTime = now - (DateUtils.DAY_IN_MILLIS * DAYS_TO_CHECK); in getAggregatedUsageEvents() 185 long startTime = now - (DateUtils.DAY_IN_MILLIS * DAYS_TO_CHECK); in getAggregatedUsageEvents()
|
/packages/apps/StorageManager/src/com/android/storagemanager/automatic/ |
D | AutomaticStorageBroadcastReceiver.java | 34 private static final long PERIOD = DateUtils.DAY_IN_MILLIS;
|
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/model/ |
D | QuickstepModelDelegate.java | 18 import static android.text.format.DateUtils.DAY_IN_MILLIS; 139 if (now - lastSnapshotTimeMillis < DAY_IN_MILLIS) { in modelLoadComplete()
|
/packages/apps/StorageManager/src/com/android/storagemanager/deletionhelper/ |
D | AppDeletionPreference.java | 67 lastUse, now, DateUtils.DAY_IN_MILLIS, 0)); in updateSummary()
|
D | FetchDownloadsLoader.java | 70 minimumAgeDays * DateUtils.DAY_IN_MILLIS; in collectFiles()
|
/packages/apps/SettingsIntelligence/src/com/android/settings/intelligence/suggestions/eligibility/ |
D | DismissedChecker.java | 116 long days = daysDelay * DateUtils.DAY_IN_MILLIS; in getFirstAppearTimeMillis()
|
/packages/apps/DocumentsUI/src/com/android/documentsui/ |
D | RecentsLoader.java | 39 private static final long REJECT_OLDER_THAN = 45 * DateUtils.DAY_IN_MILLIS;
|
/packages/apps/Settings/src/com/android/settings/homepage/contextualcards/ |
D | ContextualCardFeatureProviderImpl.java | 46 final long threshold = System.currentTimeMillis() - DateUtils.DAY_IN_MILLIS; in getContextualCards()
|
/packages/apps/Calendar/src/com/android/calendar/ |
D | Event.java | 87 + DateUtils.DAY_IN_MILLIS + " AS " + DISPLAY_AS_ALLDAY, // 19 640 return allDay || endMillis - startMillis >= DateUtils.DAY_IN_MILLIS; in drawAsAllday()
|
/packages/modules/Wifi/service/java/com/android/server/wifi/ |
D | WakeupOnboarding.java | 50 static final long REQUIRED_NOTIFICATION_DELAY = DateUtils.DAY_IN_MILLIS;
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/privacy/ |
D | RecentlyAccessedByUtils.java | 41 private static final long RECENT_TIME_INTERVAL_MILLIS = DateUtils.DAY_IN_MILLIS;
|
/packages/apps/SettingsIntelligence/src/com/android/settings/intelligence/suggestions/ |
D | SuggestionParser.java | 150 Log.d(TAG, "Day " + elapsedTime / DateUtils.DAY_IN_MILLIS + " for " in isExclusiveCategoryExpired()
|
/packages/providers/MediaProvider/tests/src/com/android/providers/media/scan/ |
D | ModernMediaScannerTest.java | 948 final long dateExpires = (System.currentTimeMillis() - 5 * DateUtils.DAY_IN_MILLIS) / 1000; in testScan_deleteStaleRowWithExpiredPendingFile() 990 final long dateExpires = (System.currentTimeMillis() + 2 * DateUtils.DAY_IN_MILLIS) / 1000; in testScan_keepStaleRowWithNonExpiredPendingFile() 1032 final long dateExpires = (System.currentTimeMillis() - 5 * DateUtils.DAY_IN_MILLIS) / 1000; in testScan_deleteStaleRowWithExpiredTrashedFile() 1074 final long dateExpires = (System.currentTimeMillis() + 2 * DateUtils.DAY_IN_MILLIS) / 1000; in testScan_deleteStaleRowWithNonExpiredTrashedFile()
|
/packages/apps/Settings/src/com/android/settings/notification/zen/ |
D | ZenOnboardingActivity.java | 48 static final long ALWAYS_SHOW_THRESHOLD = DateUtils.DAY_IN_MILLIS * 14;
|