Home
last modified time | relevance | path

Searched refs:WEEK_IN_MILLIS (Results 1 – 17 of 17) sorted by relevance

/packages/modules/Connectivity/tests/unit/java/android/net/
DNetworkStatsHistoryTest.java40 import static android.text.format.DateUtils.WEEK_IN_MILLIS;
173 final long lastStart = TEST_START + WEEK_IN_MILLIS; in testRecordGapBuckets()
237 assertValues(stats, TEST_START - WEEK_IN_MILLIS, TEST_START + WEEK_IN_MILLIS, 3000L, 1500L); in testRecordEntireGapIdentical()
262 assertValues(stats, TEST_START - WEEK_IN_MILLIS, TEST_START + WEEK_IN_MILLIS, 650L, 650L); in testRecordEntireOverlapVaryingBuckets()
279 assertValues(stats, TEST_START - WEEK_IN_MILLIS, TEST_START + WEEK_IN_MILLIS, 650L, 650L); in testRecordEntireOverlapVaryingBuckets()
331 assertValues(stats, TEST_START - WEEK_IN_MILLIS, TEST_START - DAY_IN_MILLIS, 0L, 0L); in testTotalData()
340 … assertValues(stats, TEST_START + (23 * HOUR_IN_MILLIS), TEST_START + WEEK_IN_MILLIS, 100L, 200L); in testTotalData()
343 assertValues(stats, TEST_START - WEEK_IN_MILLIS, TEST_START + WEEK_IN_MILLIS, 2400L, 4800L); in testTotalData()
471 final long SECOND_START = TEST_START + WEEK_IN_MILLIS; in testIndexBeforeAfter()
473 final long THIRD_START = TEST_START + (2 * WEEK_IN_MILLIS); in testIndexBeforeAfter()
[all …]
/packages/apps/Settings/tests/spa_unit/src/com/android/settings/datausage/lib/
DNetworkCycleDataRepositoryTest.kt45 startTime = CYCLE2_END_TIME - DateUtils.WEEK_IN_MILLIS * 4, in <lambda>()
94 startTime = CYCLE2_END_TIME - DateUtils.WEEK_IN_MILLIS * 4, in <lambda>()
112 startTime = CYCLE2_END_TIME - DateUtils.WEEK_IN_MILLIS * 4, in <lambda>()
DNetworkCycleBucketRepositoryTest.kt107 startTime = CYCLE2_END_TIME - DateUtils.WEEK_IN_MILLIS * 4, in loadCycles_policyHasNoCycle_asFourWeeks()
134 startTime = CYCLE2_END_TIME - DateUtils.WEEK_IN_MILLIS * 4, in loadCycles_noPolicy_asFourWeeks()
/packages/apps/Messaging/src/com/android/messaging/sms/
DSmsReleaseStorage.java109 private static final long WEEK_IN_MILLIS = 7 * 24 * 3600 * 1000L; field in SmsReleaseStorage
122 return duration.mCount * WEEK_IN_MILLIS; in durationToTimeInMillis()
/packages/apps/Messaging/src/com/android/messaging/util/
DDates.java42 public static final long WEEK_IN_MILLIS = DAY_IN_MILLIS * 7; field in Dates
141 } else if (timeDiff < DateUtils.WEEK_IN_MILLIS) { in getTimestamp()
256 } else if (duration < WEEK_IN_MILLIS) { in getShortRelativeTimeSpanString()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/datausage/
DAppDataUsageFragmentTest.java72 assertThat(timeDiff).isEqualTo(DateUtils.WEEK_IN_MILLIS * 4); in onActivityCreated_noDataCycles_startAndEndDateShouldHaveFourWeeksDifference()
79 long endTime = System.currentTimeMillis() + DateUtils.WEEK_IN_MILLIS * 4; in onActivityCreated_dataCyclePicked_showsDataCycle()
/packages/apps/Settings/src/com/android/settings/datausage/lib/
DNetworkCycleDataRepository.kt72 step = DateUtils.WEEK_IN_MILLIS * 4, in queryUsage()
/packages/providers/MediaProvider/src/com/android/providers/media/util/
DLogging.java53 private static final long PERSISTENT_AGE = DateUtils.WEEK_IN_MILLIS;
/packages/providers/DownloadProvider/src/com/android/providers/downloads/
DDownloadIdleService.java117 final long modifiedBefore = System.currentTimeMillis() - DateUtils.WEEK_IN_MILLIS; in cleanStale()
/packages/providers/MediaProvider/tests/src/com/android/providers/media/util/
DFileUtilsTest.java37 import static android.text.format.DateUtils.WEEK_IN_MILLIS;
182 FileUtils.deleteOlderFiles(mDeleteTarget, 10, WEEK_IN_MILLIS); in testDeleteOlderEmptyDir()
201 touch("file3", WEEK_IN_MILLIS); in testDeleteOlderInFuture()
207 touch("file3", WEEK_IN_MILLIS); in testDeleteOlderInFuture()
/packages/apps/Calendar/src/com/android/calendar/alerts/
DAlarmScheduler.kt85 private val EVENT_LOOKAHEAD_WINDOW_MS: Long = DateUtils.WEEK_IN_MILLIS
/packages/apps/Traceur/src_common/com/android/traceur/
DTraceUtils.java69 private static final long MIN_KEEP_AGE = 4 * DateUtils.WEEK_IN_MILLIS;
/packages/apps/Calendar/src/com/android/calendar/
DCalendarViewAdapter.kt323 val weekEndTime: Long = weekStartTime + DateUtils.WEEK_IN_MILLIS - DateUtils.DAY_IN_MILLIS in buildWeekDate()
/packages/modules/Connectivity/tests/unit/java/com/android/server/net/
DNetworkStatsServiceTest.java66 import static android.text.format.DateUtils.WEEK_IN_MILLIS;
266 new TestNetworkStatsSettings(HOUR_IN_MILLIS, WEEK_IN_MILLIS);
840 mockSettings(HOUR_IN_MILLIS, WEEK_IN_MILLIS); in testStatsBucketResize()
850 mockSettings(HOUR_IN_MILLIS, WEEK_IN_MILLIS); in testStatsBucketResize()
865 mockSettings(30 * MINUTE_IN_MILLIS, WEEK_IN_MILLIS); in testStatsBucketResize()
2619 mockSettings(HOUR_IN_MILLIS, WEEK_IN_MILLIS); in mockDefaultSettings()
/packages/modules/Connectivity/framework-t/src/android/net/
DNetworkStatsCollection.java38 import static android.text.format.DateUtils.WEEK_IN_MILLIS;
751 return (int) (Math.min(mEndMillis - mStartMillis, WEEK_IN_MILLIS * 5) in estimateBuckets()
/packages/apps/Calendar/src/com/android/calendar/month/
DMonthByWeekFragment.kt440 if (useSelected) 0 else DateUtils.WEEK_IN_MILLIS * mNumWeeks / 3.toLong() in setMonthDisplayed()
/packages/providers/MediaProvider/src/com/android/providers/media/
DMediaProvider.java1916 ((System.currentTimeMillis() - DateUtils.WEEK_IN_MILLIS) / 1000); in deleteOrExtendExpiredItems()