/packages/modules/Connectivity/tests/unit/java/android/net/ |
D | NetworkStatsHistoryTest.java | 40 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/ |
D | NetworkCycleDataRepositoryTest.kt | 45 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>()
|
D | NetworkCycleBucketRepositoryTest.kt | 107 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/ |
D | SmsReleaseStorage.java | 109 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/ |
D | Dates.java | 42 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/ |
D | AppDataUsageFragmentTest.java | 72 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/ |
D | NetworkCycleDataRepository.kt | 72 step = DateUtils.WEEK_IN_MILLIS * 4, in queryUsage()
|
/packages/providers/MediaProvider/src/com/android/providers/media/util/ |
D | Logging.java | 53 private static final long PERSISTENT_AGE = DateUtils.WEEK_IN_MILLIS;
|
/packages/providers/DownloadProvider/src/com/android/providers/downloads/ |
D | DownloadIdleService.java | 117 final long modifiedBefore = System.currentTimeMillis() - DateUtils.WEEK_IN_MILLIS; in cleanStale()
|
/packages/providers/MediaProvider/tests/src/com/android/providers/media/util/ |
D | FileUtilsTest.java | 37 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/ |
D | AlarmScheduler.kt | 85 private val EVENT_LOOKAHEAD_WINDOW_MS: Long = DateUtils.WEEK_IN_MILLIS
|
/packages/apps/Traceur/src_common/com/android/traceur/ |
D | TraceUtils.java | 69 private static final long MIN_KEEP_AGE = 4 * DateUtils.WEEK_IN_MILLIS;
|
/packages/apps/Calendar/src/com/android/calendar/ |
D | CalendarViewAdapter.kt | 323 val weekEndTime: Long = weekStartTime + DateUtils.WEEK_IN_MILLIS - DateUtils.DAY_IN_MILLIS in buildWeekDate()
|
/packages/modules/Connectivity/tests/unit/java/com/android/server/net/ |
D | NetworkStatsServiceTest.java | 66 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/ |
D | NetworkStatsCollection.java | 38 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/ |
D | MonthByWeekFragment.kt | 440 if (useSelected) 0 else DateUtils.WEEK_IN_MILLIS * mNumWeeks / 3.toLong() in setMonthDisplayed()
|
/packages/providers/MediaProvider/src/com/android/providers/media/ |
D | MediaProvider.java | 1916 ((System.currentTimeMillis() - DateUtils.WEEK_IN_MILLIS) / 1000); in deleteOrExtendExpiredItems()
|