Home
last modified time | relevance | path

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

12

/frameworks/base/services/usage/java/com/android/server/usage/
DUnixCalendar.java24 public static final long DAY_IN_MILLIS = 24 * 60 * 60 * 1000; field in UnixCalendar
25 public static final long WEEK_IN_MILLIS = 7 * DAY_IN_MILLIS;
26 public static final long MONTH_IN_MILLIS = 30 * DAY_IN_MILLIS;
27 public static final long YEAR_IN_MILLIS = 365 * DAY_IN_MILLIS;
35 mTime += val * DAY_IN_MILLIS; in addDays()
DUserUsageStatsService.java91 UnixCalendar.DAY_IN_MILLIS, UnixCalendar.WEEK_IN_MILLIS,
/frameworks/base/core/tests/utiltests/src/com/android/internal/util/
DFileRotatorTest.java19 import static android.text.format.DateUtils.DAY_IN_MILLIS;
75 mBasePath, PREFIX, DAY_IN_MILLIS, WEEK_IN_MILLIS); in testEmpty()
77 mBasePath, ANOTHER_PREFIX, DAY_IN_MILLIS, WEEK_IN_MILLIS); in testEmpty()
93 mBasePath, PREFIX, DAY_IN_MILLIS, WEEK_IN_MILLIS); in testCombine()
114 mBasePath, PREFIX, DAY_IN_MILLIS, WEEK_IN_MILLIS); in testRotate()
132 currentTime += DAY_IN_MILLIS + SECOND_IN_MILLIS; in testRotate()
146 mBasePath, PREFIX, MINUTE_IN_MILLIS, DAY_IN_MILLIS); in testDelete()
164 currentTime = TEST_TIME + DAY_IN_MILLIS + (2 * MINUTE_IN_MILLIS); in testDelete()
176 mBasePath, PREFIX, MINUTE_IN_MILLIS, DAY_IN_MILLIS); in testThrowRestoresBackup()
246 currentTime += DAY_IN_MILLIS; in testQueryMatch()
[all …]
/frameworks/base/core/tests/coretests/src/android/os/
DFileUtilsTest.java41 import static android.text.format.DateUtils.DAY_IN_MILLIS;
293 touch("file2", 1 * DAY_IN_MILLIS + HOUR_IN_MILLIS); in testDeleteOlderTypical()
294 touch("file3", 2 * DAY_IN_MILLIS + HOUR_IN_MILLIS); in testDeleteOlderTypical()
295 touch("file4", 3 * DAY_IN_MILLIS + HOUR_IN_MILLIS); in testDeleteOlderTypical()
296 touch("file5", 4 * DAY_IN_MILLIS + HOUR_IN_MILLIS); in testDeleteOlderTypical()
297 assertTrue(FileUtils.deleteOlderFiles(mDir, 3, DAY_IN_MILLIS)); in testDeleteOlderTypical()
306 assertTrue(FileUtils.deleteOlderFiles(mDir, 0, DAY_IN_MILLIS)); in testDeleteOlderInFuture()
312 assertTrue(FileUtils.deleteOlderFiles(mDir, 0, DAY_IN_MILLIS)); in testDeleteOlderInFuture()
319 touch("file2", 1 * DAY_IN_MILLIS + HOUR_IN_MILLIS); in testDeleteOlderOnlyAge()
320 touch("file3", 2 * DAY_IN_MILLIS + HOUR_IN_MILLIS); in testDeleteOlderOnlyAge()
[all …]
/frameworks/base/tests/net/java/android/net/
DNetworkStatsHistoryTest.java29 import static android.text.format.DateUtils.DAY_IN_MILLIS;
171 final long middleStart = TEST_START + DAY_IN_MILLIS; in testRecordGapBuckets()
208 final long TEST_START_2 = TEST_START + DAY_IN_MILLIS; in testRecordEntireGapIdentical()
274 stats.recordData(TEST_START, TEST_START + DAY_IN_MILLIS, 24L, 24L); in testRemove()
278 stats.removeBucketsBefore(0 - DAY_IN_MILLIS); in testRemove()
309 stats.recordData(TEST_START, TEST_START + DAY_IN_MILLIS, 2400L, 4800L); in testTotalData()
312 assertValues(stats, TEST_START - WEEK_IN_MILLIS, TEST_START - DAY_IN_MILLIS, 0L, 0L); in testTotalData()
409 before.recordData(DAY_IN_MILLIS, DAY_IN_MILLIS + MINUTE_IN_MILLIS, in testSerialize()
507 assertTrue(stats.intersects(TEST_START + DAY_IN_MILLIS, TEST_START + DAY_IN_MILLIS + 1)); in testIntersects()
508 assertTrue(stats.intersects(TEST_START + DAY_IN_MILLIS, Long.MAX_VALUE)); in testIntersects()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/net/
DNetworkCycleDataLoaderTest.java146 final long twoDaysAgo = now - (DateUtils.DAY_IN_MILLIS * 2); in loadFourWeeksData_shouldRecordUsageForLast4Weeks()
159 final long tenDaysAgo = now - (DateUtils.DAY_IN_MILLIS * 10); in loadDataForSpecificCycles_shouldRecordUsageForSpecifiedTime()
160 final long twentyDaysAgo = now - (DateUtils.DAY_IN_MILLIS * 20); in loadDataForSpecificCycles_shouldRecordUsageForSpecifiedTime()
161 final long thirtyDaysAgo = now - (DateUtils.DAY_IN_MILLIS * 30); in loadDataForSpecificCycles_shouldRecordUsageForSpecifiedTime()
DDataUsageControllerTest.java84 new NetworkStatsHistory(DateUtils.DAY_IN_MILLIS /* bucketDuration */)); in setUp()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/utils/
DStringUtilTest.java64 final double testMillis = 2 * DateUtils.DAY_IN_MILLIS in testFormatElapsedTime_TimeMoreThanOneDay_ShowCorrectly()
74 final double testMillis = 2 * DateUtils.DAY_IN_MILLIS + 15 * DateUtils.MINUTE_IN_MILLIS; in testFormatElapsedTime_ZeroFieldsInTheMiddleDontShow()
189 final double testMillis = 2 * DateUtils.DAY_IN_MILLIS; in testFormatRelativeTime_TwoDays_withSeconds()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DCarrierKeyDownloadManager.java77 private static final int DAY_IN_MILLIS = 24 * 3600 * 1000; field in CarrierKeyDownloadManager
244 < System.currentTimeMillis() + END_RENEWAL_WINDOW_DAYS * DAY_IN_MILLIS)) { in getExpirationDate()
245 minExpirationDate = System.currentTimeMillis() + DAY_IN_MILLIS; in getExpirationDate()
250 int max = START_RENEWAL_WINDOW_DAYS * DAY_IN_MILLIS; in getExpirationDate()
251 int min = END_RENEWAL_WINDOW_DAYS * DAY_IN_MILLIS; in getExpirationDate()
511 return (timeToExpire < START_RENEWAL_WINDOW_DAYS * DAY_IN_MILLIS) ? true : false; in areCarrierKeysAbsentOrExpiring()
/frameworks/base/core/java/android/widget/
DDateTimeView.java19 import static android.text.format.DateUtils.DAY_IN_MILLIS;
268 } else if (duration < DAY_IN_MILLIS) {
292 millisIncrease = DAY_IN_MILLIS;
376 } else if (duration < DAY_IN_MILLIS) { in onInitializeAccessibilityNodeInfoInternal()
/frameworks/base/core/java/android/text/format/
DDateUtils.java59 public static final long DAY_IN_MILLIS = HOUR_IN_MILLIS * 24; field in DateUtils
60 public static final long WEEK_IN_MILLIS = DAY_IN_MILLIS * 7;
838 if (span < DAY_IN_MILLIS && sNowTime.weekDay == sThenTime.weekDay) { in getRelativeTimeSpanString()
DTime.java982 long julianDay = adjustedMillis / DateUtils.DAY_IN_MILLIS; in getJulianDay()
984 if (adjustedMillis < 0 && adjustedMillis % DateUtils.DAY_IN_MILLIS != 0) { in getJulianDay()
1014 long millis = (julianDay - EPOCH_JULIAN_DAY) * DateUtils.DAY_IN_MILLIS; in setJulianDay()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/job/
DJobSchedulerServiceTest.java19 import static android.text.format.DateUtils.DAY_IN_MILLIS;
216 createJobInfo().setPeriodic(2 * 365 * DAY_IN_MILLIS)); in testGetRescheduleJobForPeriodic_largePeriod()
219 assertEquals(now + 365 * DAY_IN_MILLIS, job.getLatestRunTimeElapsed()); in testGetRescheduleJobForPeriodic_largePeriod()
220 final long nextWindowStartTime = now + 365 * DAY_IN_MILLIS; in testGetRescheduleJobForPeriodic_largePeriod()
221 final long nextWindowEndTime = nextWindowStartTime + 365 * DAY_IN_MILLIS; in testGetRescheduleJobForPeriodic_largePeriod()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWakeupOnboarding.java51 static final long REQUIRED_NOTIFICATION_DELAY = DateUtils.DAY_IN_MILLIS;
/frameworks/base/core/tests/coretests/src/com/android/internal/util/
DTokenBucketTest.java60 drain(new TokenBucket((int) DateUtils.DAY_IN_MILLIS, 200), 200); in testInitialCapacity()
/frameworks/base/services/core/java/com/android/server/net/
DNetworkStatsService.java69 import static android.text.format.DateUtils.DAY_IN_MILLIS;
1671 long duration = DateUtils.DAY_IN_MILLIS; in dump()
2158 getGlobalLong(NETSTATS_DEV_ROTATE_AGE, 15 * DAY_IN_MILLIS), in getDevConfig()
2159 getGlobalLong(NETSTATS_DEV_DELETE_AGE, 90 * DAY_IN_MILLIS)); in getDevConfig()
2168 getGlobalLong(NETSTATS_UID_ROTATE_AGE, 15 * DAY_IN_MILLIS), in getUidConfig()
2169 getGlobalLong(NETSTATS_UID_DELETE_AGE, 90 * DAY_IN_MILLIS)); in getUidConfig()
2174 getGlobalLong(NETSTATS_UID_TAG_ROTATE_AGE, 5 * DAY_IN_MILLIS), in getUidTagConfig()
2175 getGlobalLong(NETSTATS_UID_TAG_DELETE_AGE, 15 * DAY_IN_MILLIS)); in getUidTagConfig()
DNetworkStatsCollection.java253 (180 * DateUtils.DAY_IN_MILLIS) / mBucketDuration); in getHistory()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/location/
DRecentLocationAccesses.java49 private static final long RECENT_TIME_INTERVAL_MILLIS = DateUtils.DAY_IN_MILLIS;
DRecentLocationApps.java48 private static final long RECENT_TIME_INTERVAL_MILLIS = DateUtils.DAY_IN_MILLIS;
/frameworks/base/services/core/java/com/android/server/connectivity/
DLingerMonitor.java315 if (millisSinceFirst > DateUtils.DAY_IN_MILLIS) { in isAboveDailyLimit()
/frameworks/base/services/core/java/com/android/server/content/
DSyncLogger.java221 final long day = now % DateUtils.DAY_IN_MILLIS; in openLogLocked()
/frameworks/base/tests/net/java/com/android/server/net/
DNetworkStatsServiceTest.java50 import static android.text.format.DateUtils.DAY_IN_MILLIS;
289 incrementCurrentTime(DAY_IN_MILLIS);
1070 incrementCurrentTime(DAY_IN_MILLIS);
/frameworks/base/packages/SystemUI/src/com/android/systemui/screenshot/
DSaveImageInBackgroundTask.java138 values.put(MediaColumns.DATE_EXPIRES, (mImageTime + DateUtils.DAY_IN_MILLIS) / 1000); in doInBackground()
/frameworks/base/services/core/java/com/android/server/pm/
DPackageInstallerService.java127 private static final long MAX_AGE_MILLIS = 3 * DateUtils.DAY_IN_MILLIS;
129 private static final long MAX_TIME_SINCE_UPDATE_MILLIS = 7 * DateUtils.DAY_IN_MILLIS;
/frameworks/base/core/java/android/provider/
DCalendarContract.java2555 long ancient = now - DateUtils.DAY_IN_MILLIS; in rescheduleMissedAlarms()

12