Home
last modified time | relevance | path

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

/frameworks/base/core/tests/coretests/src/android/os/
DFileUtilsTest.java19 import static android.text.format.DateUtils.DAY_IN_MILLIS;
139 touch("file2", 1 * DAY_IN_MILLIS + HOUR_IN_MILLIS); in testDeleteOlderTypical()
140 touch("file3", 2 * DAY_IN_MILLIS + HOUR_IN_MILLIS); in testDeleteOlderTypical()
141 touch("file4", 3 * DAY_IN_MILLIS + HOUR_IN_MILLIS); in testDeleteOlderTypical()
142 touch("file5", 4 * DAY_IN_MILLIS + HOUR_IN_MILLIS); in testDeleteOlderTypical()
143 assertTrue(FileUtils.deleteOlderFiles(mDir, 3, DAY_IN_MILLIS)); in testDeleteOlderTypical()
151 assertTrue(FileUtils.deleteOlderFiles(mDir, 0, DAY_IN_MILLIS)); in testDeleteOlderInFuture()
157 assertTrue(FileUtils.deleteOlderFiles(mDir, 0, DAY_IN_MILLIS)); in testDeleteOlderInFuture()
163 touch("file2", 1 * DAY_IN_MILLIS + HOUR_IN_MILLIS); in testDeleteOlderOnlyAge()
164 touch("file3", 2 * DAY_IN_MILLIS + HOUR_IN_MILLIS); in testDeleteOlderOnlyAge()
[all …]
/frameworks/base/services/usage/java/com/android/server/usage/
DUnixCalendar.java26 private static final long DAY_IN_MILLIS = 24 * 60 * 60 * 1000; field in UnixCalendar
27 private static final long WEEK_IN_MILLIS = 7 * DAY_IN_MILLIS;
28 private static final long MONTH_IN_MILLIS = 30 * DAY_IN_MILLIS;
29 private static final long YEAR_IN_MILLIS = 365 * DAY_IN_MILLIS;
37 mTime -= mTime % DAY_IN_MILLIS; in truncateToDay()
53 mTime += val * DAY_IN_MILLIS; in addDays()
/frameworks/base/core/tests/coretests/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/services/core/java/com/android/server/
DTwilightCalculator.java72 final float daysSince2000 = (float) (time - UTC_2000) / DateUtils.DAY_IN_MILLIS; in calculateTwilight()
113 mSunset = Math.round((solarTransitJ2000 + hourAngle) * DateUtils.DAY_IN_MILLIS) + UTC_2000; in calculateTwilight()
114 mSunrise = Math.round((solarTransitJ2000 - hourAngle) * DateUtils.DAY_IN_MILLIS) + UTC_2000; in calculateTwilight()
/frameworks/base/core/tests/coretests/src/android/net/
DNetworkStatsHistoryTest.java29 import static android.text.format.DateUtils.DAY_IN_MILLIS;
155 final long middleStart = TEST_START + DAY_IN_MILLIS; in testRecordGapBuckets()
190 final long TEST_START_2 = TEST_START + DAY_IN_MILLIS; in testRecordEntireGapIdentical()
254 stats.recordData(TEST_START, TEST_START + DAY_IN_MILLIS, 24L, 24L); in testRemove()
258 stats.removeBucketsBefore(0 - DAY_IN_MILLIS); in testRemove()
288 stats.recordData(TEST_START, TEST_START + DAY_IN_MILLIS, 2400L, 4800L); in testTotalData()
291 assertValues(stats, TEST_START - WEEK_IN_MILLIS, TEST_START - DAY_IN_MILLIS, 0L, 0L); in testTotalData()
384 before.recordData(DAY_IN_MILLIS, DAY_IN_MILLIS + MINUTE_IN_MILLIS, in testSerialize()
479 assertTrue(stats.intersects(TEST_START + DAY_IN_MILLIS, TEST_START + DAY_IN_MILLIS + 1)); in testIntersects()
480 assertTrue(stats.intersects(TEST_START + DAY_IN_MILLIS, Long.MAX_VALUE)); in testIntersects()
/frameworks/base/core/java/android/text/format/
DDateUtils.java49 public static final long DAY_IN_MILLIS = HOUR_IN_MILLIS * 24; field in DateUtils
50 public static final long WEEK_IN_MILLIS = DAY_IN_MILLIS * 7;
330 } else if (duration < DAY_IN_MILLIS && minResolution < DAY_IN_MILLIS) { in getRelativeTimeSpanString()
392 } else if (transitionResolution < DAY_IN_MILLIS) { in getRelativeDateTimeString()
393 transitionResolution = DAY_IN_MILLIS; in getRelativeDateTimeString()
914 if (span < DAY_IN_MILLIS && sNowTime.weekDay == sThenTime.weekDay) { in getRelativeTimeSpanString()
DTime.java948 long julianDay = (millis + offsetMillis) / DateUtils.DAY_IN_MILLIS; in getJulianDay()
976 long millis = (julianDay - EPOCH_JULIAN_DAY) * DateUtils.DAY_IN_MILLIS; in setJulianDay()
/frameworks/base/services/core/java/com/android/server/net/
DNetworkStatsService.java56 import static android.text.format.DateUtils.DAY_IN_MILLIS;
1051 long duration = DateUtils.DAY_IN_MILLIS; in dump()
1261 return getGlobalLong(NETSTATS_TIME_CACHE_MAX_AGE, DAY_IN_MILLIS); in getTimeCacheMaxAge()
1274 getGlobalLong(NETSTATS_DEV_ROTATE_AGE, 15 * DAY_IN_MILLIS), in getDevConfig()
1275 getGlobalLong(NETSTATS_DEV_DELETE_AGE, 90 * DAY_IN_MILLIS)); in getDevConfig()
1284 getGlobalLong(NETSTATS_UID_ROTATE_AGE, 15 * DAY_IN_MILLIS), in getUidConfig()
1285 getGlobalLong(NETSTATS_UID_DELETE_AGE, 90 * DAY_IN_MILLIS)); in getUidConfig()
1290 getGlobalLong(NETSTATS_UID_TAG_ROTATE_AGE, 5 * DAY_IN_MILLIS), in getUidTagConfig()
1291 getGlobalLong(NETSTATS_UID_TAG_DELETE_AGE, 15 * DAY_IN_MILLIS)); in getUidTagConfig()
DNetworkPolicyManagerService.java64 import static android.text.format.DateUtils.DAY_IN_MILLIS;
229 private static final long TIME_CACHE_MAX_AGE = DAY_IN_MILLIS;
/frameworks/base/services/core/java/com/android/server/twilight/
DTwilightService.java194 1000.0 * 360.0 / DateUtils.DAY_IN_MILLIS;
372 mTwilightCalculator.calculateTwilight(now - DateUtils.DAY_IN_MILLIS, in updateTwilightState()
384 mTwilightCalculator.calculateTwilight(now + DateUtils.DAY_IN_MILLIS, in updateTwilightState()
/frameworks/base/services/tests/servicestests/src/com/android/server/
DNetworkPolicyManagerServiceTest.java33 import static android.text.format.DateUtils.DAY_IN_MILLIS;
539 assertEqualsFuzzy(DAY_IN_MILLIS * 30, nextCycle - currentCycle, DAY_IN_MILLIS * 3); in testNextCycleSane()
554 assertEqualsFuzzy(DAY_IN_MILLIS * 30, currentCycle - lastCycle, DAY_IN_MILLIS * 3); in testLastCycleSane()
DNetworkStatsServiceTest.java37 import static android.text.format.DateUtils.DAY_IN_MILLIS;
218 incrementCurrentTime(DAY_IN_MILLIS); in testNetworkStatsWifi()
933 expect(mSettings.getTimeCacheMaxAge()).andReturn(DAY_IN_MILLIS).anyTimes(); in expectSettings()
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/
DRecentLoader.java74 private static final long REJECT_OLDER_THAN = 45 * DateUtils.DAY_IN_MILLIS;
DRecentsProvider.java52 private static final long MAX_HISTORY_IN_MILLIS = 45 * DateUtils.DAY_IN_MILLIS;
/frameworks/base/core/java/android/util/
DTimeUtils.java251 private static final long LARGEST_DURATION = (1000 * DateUtils.DAY_IN_MILLIS) - 1;
/frameworks/base/docs/html/training/wearables/watch-faces/
Dinformation.jd115 ContentUris.appendId(builder, begin + DateUtils.DAY_IN_MILLIS);
/frameworks/base/core/java/android/provider/
DCalendarContract.java2329 long ancient = now - DateUtils.DAY_IN_MILLIS; in rescheduleMissedAlarms()
/frameworks/base/services/core/java/com/android/server/pm/
DPackageInstallerService.java137 private static final long MAX_AGE_MILLIS = 3 * DateUtils.DAY_IN_MILLIS;
DPackageManagerService.java295 private static final long DEFAULT_MANDATORY_FSTRIM_INTERVAL = 3 * DateUtils.DAY_IN_MILLIS;
/frameworks/base/services/core/java/com/android/server/am/
DTaskPersister.java92 private static final long MAX_INSTALL_WAIT_TIME = DateUtils.DAY_IN_MILLIS;
/frameworks/base/api/
Dsystem-current.txt32297 field public static final long DAY_IN_MILLIS = 86400000L; // 0x5265c00L
Dcurrent.txt30064 field public static final long DAY_IN_MILLIS = 86400000L; // 0x5265c00L