Home
last modified time | relevance | path

Searched refs:DAY_IN_MILLIS (Results 1 – 25 of 35) sorted by relevance

12

/packages/providers/MediaProvider/tests/src/com/android/providers/media/util/
DFileUtilsTest.java35 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/
DNetworkStatsHistoryTest.java29 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/
DSuggestionCategoryRegistry.java45 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/
DCalendarAlarmManager.java102 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/
DCalendarConfidenceCheckerTest.java98 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/
DDates.java38 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/
DAlarmScheduler.java93 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/
DBatteryDatabaseManagerTest.java52 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/
DCalendarAppWidgetService.java100 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/
DIdleServiceTest.java144 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/
DAppDataUsageTest.java386 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/
DAppStateNotificationBridge.java148 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/
DAutomaticStorageBroadcastReceiver.java34 private static final long PERIOD = DateUtils.DAY_IN_MILLIS;
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/model/
DQuickstepModelDelegate.java18 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/
DAppDeletionPreference.java67 lastUse, now, DateUtils.DAY_IN_MILLIS, 0)); in updateSummary()
DFetchDownloadsLoader.java70 minimumAgeDays * DateUtils.DAY_IN_MILLIS; in collectFiles()
/packages/apps/SettingsIntelligence/src/com/android/settings/intelligence/suggestions/eligibility/
DDismissedChecker.java116 long days = daysDelay * DateUtils.DAY_IN_MILLIS; in getFirstAppearTimeMillis()
/packages/apps/DocumentsUI/src/com/android/documentsui/
DRecentsLoader.java39 private static final long REJECT_OLDER_THAN = 45 * DateUtils.DAY_IN_MILLIS;
/packages/apps/Settings/src/com/android/settings/homepage/contextualcards/
DContextualCardFeatureProviderImpl.java46 final long threshold = System.currentTimeMillis() - DateUtils.DAY_IN_MILLIS; in getContextualCards()
/packages/apps/Calendar/src/com/android/calendar/
DEvent.java87 + 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/
DWakeupOnboarding.java50 static final long REQUIRED_NOTIFICATION_DELAY = DateUtils.DAY_IN_MILLIS;
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/privacy/
DRecentlyAccessedByUtils.java41 private static final long RECENT_TIME_INTERVAL_MILLIS = DateUtils.DAY_IN_MILLIS;
/packages/apps/SettingsIntelligence/src/com/android/settings/intelligence/suggestions/
DSuggestionParser.java150 Log.d(TAG, "Day " + elapsedTime / DateUtils.DAY_IN_MILLIS + " for " in isExclusiveCategoryExpired()
/packages/providers/MediaProvider/tests/src/com/android/providers/media/scan/
DModernMediaScannerTest.java948 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/
DZenOnboardingActivity.java48 static final long ALWAYS_SHOW_THRESHOLD = DateUtils.DAY_IN_MILLIS * 14;

12