Home
last modified time | relevance | path

Searched refs:DAY_IN_MILLIS (Results 1 – 25 of 31) 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;
135 touch("file2", 1 * DAY_IN_MILLIS + HOUR_IN_MILLIS); in testDeleteOlderTypical()
136 touch("file3", 2 * DAY_IN_MILLIS + HOUR_IN_MILLIS); in testDeleteOlderTypical()
137 touch("file4", 3 * DAY_IN_MILLIS + HOUR_IN_MILLIS); in testDeleteOlderTypical()
138 touch("file5", 4 * DAY_IN_MILLIS + HOUR_IN_MILLIS); in testDeleteOlderTypical()
139 assertTrue(FileUtils.deleteOlderFiles(mDeleteTarget, 3, DAY_IN_MILLIS)); in testDeleteOlderTypical()
148 assertTrue(FileUtils.deleteOlderFiles(mDeleteTarget, 0, DAY_IN_MILLIS)); in testDeleteOlderInFuture()
154 assertTrue(FileUtils.deleteOlderFiles(mDeleteTarget, 0, DAY_IN_MILLIS)); in testDeleteOlderInFuture()
161 touch("file2", 1 * DAY_IN_MILLIS + HOUR_IN_MILLIS); in testDeleteOlderOnlyAge()
162 touch("file3", 2 * DAY_IN_MILLIS + HOUR_IN_MILLIS); in testDeleteOlderOnlyAge()
[all …]
/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/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/providers/CalendarProvider/tests/src/com/android/providers/calendar/
DCalendarSanityCheckerTest.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/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/apps/Settings/tests/robotests/src/com/android/settings/datausage/
DAppDataUsageTest.java382 final long tenDaysAgo = now - (DateUtils.DAY_IN_MILLIS * 10); in onLoadFinished_hasSelectedCycleSpecified_shouldSelectSpecifiedCycle()
383 final long twentyDaysAgo = now - (DateUtils.DAY_IN_MILLIS * 20); in onLoadFinished_hasSelectedCycleSpecified_shouldSelectSpecifiedCycle()
384 final long thirtyDaysAgo = now - (DateUtils.DAY_IN_MILLIS * 30); in onLoadFinished_hasSelectedCycleSpecified_shouldSelectSpecifiedCycle()
/packages/apps/Settings/src/com/android/settings/applications/
DAppStateNotificationBridge.java146 long startTime = now - (DateUtils.DAY_IN_MILLIS * DAYS_TO_CHECK); in getAggregatedUsageEvents()
183 long startTime = now - (DateUtils.DAY_IN_MILLIS * DAYS_TO_CHECK); in getAggregatedUsageEvents()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/
DAppStateNotificationBridge.java141 long startTime = now - (DateUtils.DAY_IN_MILLIS * DAYS_TO_CHECK); in getAggregatedUsageEvents()
178 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/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/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/apps/SettingsIntelligence/src/com/android/settings/intelligence/suggestions/eligibility/
DDismissedChecker.java116 long days = daysDelay * DateUtils.DAY_IN_MILLIS; in getFirstAppearTimeMillis()
/packages/apps/Settings/src/com/android/settings/homepage/contextualcards/
DContextualCardFeatureProviderImpl.java46 final long threshold = System.currentTimeMillis() - DateUtils.DAY_IN_MILLIS; in getContextualCards()
/packages/apps/DocumentsUI/src/com/android/documentsui/
DRecentsLoader.java39 private static final long REJECT_OLDER_THAN = 45 * 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/src/com/android/providers/media/
DPermissionActivity.java385 final long durationDays = (durationMillis + DateUtils.DAY_IN_MILLIS) in resolveMessageText()
386 / DateUtils.DAY_IN_MILLIS; in resolveMessageText()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/notification/
DZenOnboardingActivity.java48 static final long ALWAYS_SHOW_THRESHOLD = DateUtils.DAY_IN_MILLIS * 14;
/packages/apps/Settings/src/com/android/settings/notification/zen/
DZenOnboardingActivity.java48 static final long ALWAYS_SHOW_THRESHOLD = DateUtils.DAY_IN_MILLIS * 14;
/packages/modules/CellBroadcastService/tests/src/com/android/cellbroadcastservice/tests/
DCellBroadcastHandlerTest.java134 (int) DateUtils.DAY_IN_MILLIS); in setUp()
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/
DAppStateNotificationBridgeTest.java19 import static android.text.format.DateUtils.DAY_IN_MILLIS;
386 sent.lastSent = System.currentTimeMillis() - (2 * DAY_IN_MILLIS); in testSummary_recency()
/packages/providers/MediaProvider/src/com/android/providers/media/util/
DFileUtils.java866 public static final long DEFAULT_DURATION_PENDING = 7 * DateUtils.DAY_IN_MILLIS;
872 public static final long DEFAULT_DURATION_TRASHED = 30 * DateUtils.DAY_IN_MILLIS;

12