Home
last modified time | relevance | path

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

/frameworks/base/core/tests/coretests/src/android/text/format/
DRelativeDateTimeFormatterTest.java28 import static android.text.format.RelativeDateTimeFormatter.WEEK_IN_MILLIS;
202 test_getRelativeTimeSpanString_helper(0 * WEEK_IN_MILLIS, WEEK_IN_MILLIS, "0 weeks ago", in test_getRelativeTimeSpanString()
204 test_getRelativeTimeSpanString_helper(1 * WEEK_IN_MILLIS, WEEK_IN_MILLIS, "1 week ago", in test_getRelativeTimeSpanString()
206 test_getRelativeTimeSpanString_helper(2 * WEEK_IN_MILLIS, WEEK_IN_MILLIS, "2 weeks ago", in test_getRelativeTimeSpanString()
208 test_getRelativeTimeSpanString_helper(25 * WEEK_IN_MILLIS, WEEK_IN_MILLIS, "25 weeks ago", in test_getRelativeTimeSpanString()
220 test_getRelativeTimeSpanString_helper(30 * WEEK_IN_MILLIS, MINUTE_IN_MILLIS, in test_getRelativeTimeSpanString()
245 test_getRelativeTimeSpanString_helper(7 * DAY_IN_MILLIS, WEEK_IN_MILLIS, "1 week ago", in test_getRelativeTimeSpanString()
247 test_getRelativeTimeSpanString_helper(14 * DAY_IN_MILLIS - 1, WEEK_IN_MILLIS, "1 week ago", in test_getRelativeTimeSpanString()
260 test_getRelativeTimeSpanString_helper(20 * SECOND_IN_MILLIS, WEEK_IN_MILLIS, "0 weeks ago", in test_getRelativeTimeSpanString()
262 test_getRelativeTimeSpanString_helper(WEEK_IN_MILLIS - 1, WEEK_IN_MILLIS, "0 weeks ago", in test_getRelativeTimeSpanString()
[all …]
/frameworks/base/tests/net/java/android/net/
DNetworkStatsHistoryTest.java33 import static android.text.format.DateUtils.WEEK_IN_MILLIS;
159 final long lastStart = TEST_START + WEEK_IN_MILLIS; in testRecordGapBuckets()
218 assertValues(stats, TEST_START - WEEK_IN_MILLIS, TEST_START + WEEK_IN_MILLIS, 3000L, 1500L); in testRecordEntireGapIdentical()
243 assertValues(stats, TEST_START - WEEK_IN_MILLIS, TEST_START + WEEK_IN_MILLIS, 650L, 650L); in testRecordEntireOverlapVaryingBuckets()
260 assertValues(stats, TEST_START - WEEK_IN_MILLIS, TEST_START + WEEK_IN_MILLIS, 650L, 650L); in testRecordEntireOverlapVaryingBuckets()
312 assertValues(stats, TEST_START - WEEK_IN_MILLIS, TEST_START - DAY_IN_MILLIS, 0L, 0L); in testTotalData()
321 … assertValues(stats, TEST_START + (23 * HOUR_IN_MILLIS), TEST_START + WEEK_IN_MILLIS, 100L, 200L); in testTotalData()
324 assertValues(stats, TEST_START - WEEK_IN_MILLIS, TEST_START + WEEK_IN_MILLIS, 2400L, 4800L); in testTotalData()
445 final long SECOND_START = TEST_START + WEEK_IN_MILLIS; in testIndexBeforeAfter()
447 final long THIRD_START = TEST_START + (2 * WEEK_IN_MILLIS); in testIndexBeforeAfter()
[all …]
/frameworks/base/core/java/android/text/format/
DRelativeDateTimeFormatter.java51 public static final long WEEK_IN_MILLIS = DAY_IN_MILLIS * 7; field in RelativeDateTimeFormatter
54 public static final long YEAR_IN_MILLIS = WEEK_IN_MILLIS * 52;
160 } else if (duration < WEEK_IN_MILLIS && minResolution < WEEK_IN_MILLIS) { in getRelativeTimeSpanString()
199 } else if (minResolution == WEEK_IN_MILLIS) { in getRelativeTimeSpanString()
200 count = (int) (duration / WEEK_IN_MILLIS); in getRelativeTimeSpanString()
274 if (transitionResolution > WEEK_IN_MILLIS) { in getRelativeDateTimeString()
275 transitionResolution = WEEK_IN_MILLIS; in getRelativeDateTimeString()
DDateUtils.java54 public static final long WEEK_IN_MILLIS = DAY_IN_MILLIS * 7; field in DateUtils
62 public static final long YEAR_IN_MILLIS = WEEK_IN_MILLIS * 52;
/frameworks/base/services/usage/java/com/android/server/usage/
DUnixCalendar.java25 public static final long WEEK_IN_MILLIS = 7 * DAY_IN_MILLIS; field in UnixCalendar
39 mTime += val * WEEK_IN_MILLIS; in addWeeks()
DUserUsageStatsService.java81 UnixCalendar.DAY_IN_MILLIS, UnixCalendar.WEEK_IN_MILLIS,
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/net/
DNetworkCycleDataForUidLoaderTest.java71 final long start = end - (DateUtils.WEEK_IN_MILLIS * 4); in recordUsage_shouldQueryNetworkDetailsForUidAndForegroundState()
89 final long start = end - (DateUtils.WEEK_IN_MILLIS * 4); in recordUsage_retrieveDetailIsFalse_shouldNotQueryNetworkForegroundState()
103 final long start = end - (DateUtils.WEEK_IN_MILLIS * 4); in recordUsage_multipleUids_shouldQueryNetworkDetailsForEachUid()
DNetworkCycleChartDataLoaderTest.java64 final long start = end - (DateUtils.WEEK_IN_MILLIS * 4); in recordUsage_shouldQueryNetworkSummaryForDevice()
DNetworkCycleDataLoaderTest.java145 final long fourWeeksAgo = now - (DateUtils.WEEK_IN_MILLIS * 4); in loadFourWeeksData_shouldRecordUsageForLast4Weeks()
/frameworks/base/core/tests/utiltests/src/com/android/internal/util/
DFileRotatorTest.java23 import static android.text.format.DateUtils.WEEK_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()
169 currentTime += WEEK_IN_MILLIS; in testDelete()
/frameworks/base/packages/Shell/src/com/android/shell/
DBugreportReceiver.java50 private static final long MIN_KEEP_AGE = DateUtils.WEEK_IN_MILLIS;
DHeapDumpReceiver.java74 private static final long MIN_KEEP_AGE_MS = DateUtils.WEEK_IN_MILLIS;
/frameworks/base/core/tests/coretests/src/android/os/
DFileUtilsTest.java43 import static android.text.format.DateUtils.WEEK_IN_MILLIS;
286 FileUtils.deleteOlderFiles(mDir, 10, WEEK_IN_MILLIS); in testDeleteOlderEmptyDir()
305 touch("file3", WEEK_IN_MILLIS); in testDeleteOlderInFuture()
311 touch("file3", WEEK_IN_MILLIS); in testDeleteOlderInFuture()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/net/
DNetworkCycleDataLoader.java124 final long cycleStart = cycleEnd - (DateUtils.WEEK_IN_MILLIS * 4); in loadFourWeeksData()
DDataUsageController.java135 start = now - DateUtils.WEEK_IN_MILLIS * 4; in getDataUsageInfo()
/frameworks/base/tests/net/java/com/android/server/net/
DNetworkStatsServiceTest.java54 import static android.text.format.DateUtils.WEEK_IN_MILLIS;
400 expectSettings(0L, HOUR_IN_MILLIS, WEEK_IN_MILLIS);
409 expectSettings(0L, HOUR_IN_MILLIS, WEEK_IN_MILLIS);
424 expectSettings(0L, 30 * MINUTE_IN_MILLIS, WEEK_IN_MILLIS);
1402 expectSettings(0L, HOUR_IN_MILLIS, WEEK_IN_MILLIS);
/frameworks/base/services/core/java/com/android/server/net/
DNetworkStatsCollection.java32 import static android.text.format.DateUtils.WEEK_IN_MILLIS;
641 return (int) (Math.min(mEndMillis - mStartMillis, WEEK_IN_MILLIS * 5) in estimateBuckets()
/frameworks/base/services/core/java/com/android/server/
DStorageManagerService.java402 / DateUtils.WEEK_IN_MILLIS) + "w"; in scrubPath()
419 Settings.Global.STORAGE_BENCHMARK_INTERVAL, DateUtils.WEEK_IN_MILLIS); in shouldBenchmark()
/frameworks/opt/setupwizard/tools/docs/
Dandroid-22.txt30098 field public static final long WEEK_IN_MILLIS = 604800000L; // 0x240c8400L
/frameworks/base/non-updatable-api/
Dcurrent.txt47670 field public static final long WEEK_IN_MILLIS = 604800000L; // 0x240c8400L
/frameworks/base/api/
Dcurrent.txt47814 field public static final long WEEK_IN_MILLIS = 604800000L; // 0x240c8400L