Home
last modified time | relevance | path

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

/aosp14/frameworks/base/core/tests/coretests/src/android/text/format/
H A DRelativeDateTimeFormatterTest.java202 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()
262 test_getRelativeTimeSpanString_helper(WEEK_IN_MILLIS - 1, WEEK_IN_MILLIS, "0 weeks ago", in test_getRelativeTimeSpanString()
325 test_getRelativeTimeSpanString_helper(0 * WEEK_IN_MILLIS, WEEK_IN_MILLIS, flags, in test_getRelativeTimeSpanStringAbbrev()
327 test_getRelativeTimeSpanString_helper(1 * WEEK_IN_MILLIS, WEEK_IN_MILLIS, flags, in test_getRelativeTimeSpanStringAbbrev()
329 test_getRelativeTimeSpanString_helper(2 * WEEK_IN_MILLIS, WEEK_IN_MILLIS, flags, in test_getRelativeTimeSpanStringAbbrev()
331 test_getRelativeTimeSpanString_helper(25 * WEEK_IN_MILLIS, WEEK_IN_MILLIS, flags, in test_getRelativeTimeSpanStringAbbrev()
382 test_getRelativeTimeSpanString_helper(WEEK_IN_MILLIS - 1, WEEK_IN_MILLIS, flags, in test_getRelativeTimeSpanStringAbbrev()
672 base - 10 * WEEK_IN_MILLIS, base, 0, WEEK_IN_MILLIS, 0)); in test_bug19822016()
[all …]
/aosp14/frameworks/base/core/java/android/text/format/
H A 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()
H A DDateUtils.java58 public static final long WEEK_IN_MILLIS = DAY_IN_MILLIS * 7; field in DateUtils
66 public static final long YEAR_IN_MILLIS = WEEK_IN_MILLIS * 52;
/aosp14/frameworks/base/services/usage/java/com/android/server/usage/
H A DUnixCalendar.java25 public static final long WEEK_IN_MILLIS = 7 * DAY_IN_MILLIS; field in UnixCalendar
39 mTime += val * WEEK_IN_MILLIS; in addWeeks()
H A DUserUsageStatsService.java95 UnixCalendar.DAY_IN_MILLIS, UnixCalendar.WEEK_IN_MILLIS,
/aosp14/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/net/
H A DNetworkCycleDataForUidLoaderTest.java77 final long start = end - (DateUtils.WEEK_IN_MILLIS * 4); in recordUsage_shouldQueryNetworkDetailsForUidAndForegroundState()
94 final long start = end - (DateUtils.WEEK_IN_MILLIS * 4); in recordUsage_retrieveDetailIsFalse_shouldNotQueryNetworkForegroundState()
108 final long start = end - (DateUtils.WEEK_IN_MILLIS * 4); in recordUsage_multipleUids_shouldQueryNetworkDetailsForEachUid()
H A DNetworkCycleChartDataLoaderTest.java64 final long start = end - (DateUtils.WEEK_IN_MILLIS * 4); in recordUsage_shouldQueryNetworkSummaryForDevice()
H A DNetworkCycleDataLoaderTest.java150 final long fourWeeksAgo = now - (DateUtils.WEEK_IN_MILLIS * 4); in loadFourWeeksData_shouldRecordUsageForLast4Weeks()
/aosp14/frameworks/base/core/tests/utiltests/src/com/android/internal/util/
H A DFileRotatorTest.java23 import static android.text.format.DateUtils.WEEK_IN_MILLIS;
72 mBasePath, PREFIX, DAY_IN_MILLIS, WEEK_IN_MILLIS); in testEmpty()
74 mBasePath, ANOTHER_PREFIX, DAY_IN_MILLIS, WEEK_IN_MILLIS); in testEmpty()
90 mBasePath, PREFIX, DAY_IN_MILLIS, WEEK_IN_MILLIS); in testCombine()
111 mBasePath, PREFIX, DAY_IN_MILLIS, WEEK_IN_MILLIS); in testRotate()
166 currentTime += WEEK_IN_MILLIS; in testDelete()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/controls/controller/
H A DAuxiliaryPersistenceWrapper.kt113 private val WEEK_IN_MILLIS = TimeUnit.DAYS.toMillis(7) regex
119 .setMinimumLatency(WEEK_IN_MILLIS)
/aosp14/frameworks/base/core/tests/coretests/src/android/os/
H A DFileUtilsTest.java44 import static android.text.format.DateUtils.WEEK_IN_MILLIS;
312 FileUtils.deleteOlderFiles(mDir, 10, WEEK_IN_MILLIS); in testDeleteOlderEmptyDir()
331 touch("file3", WEEK_IN_MILLIS); in testDeleteOlderInFuture()
337 touch("file3", WEEK_IN_MILLIS); in testDeleteOlderInFuture()
/aosp14/frameworks/base/packages/SettingsLib/src/com/android/settingslib/net/
H A DNetworkCycleDataLoader.java112 final long cycleStart = cycleEnd - (DateUtils.WEEK_IN_MILLIS * 4); in loadFourWeeksData()
H A DDataUsageController.java121 start = now - DateUtils.WEEK_IN_MILLIS * 4; in getDataUsageInfo()
/aosp14/frameworks/base/packages/Shell/src/com/android/shell/
H A DHeapDumpReceiver.java74 private static final long MIN_KEEP_AGE_MS = DateUtils.WEEK_IN_MILLIS;
H A DBugreportProgressService.java225 private static final long MIN_KEEP_AGE = DateUtils.WEEK_IN_MILLIS;
/aosp14/frameworks/base/services/core/java/com/android/server/pm/
H A DGentleUpdateHelper.java102 timeoutMillis = Math.max(0, Math.min(DateUtils.WEEK_IN_MILLIS, timeoutMillis)); in PendingInstallConstraintsCheck()
H A DPackageInstallerService.java165 private static final long MAX_INSTALL_CONSTRAINTS_TIMEOUT_MILLIS = DateUtils.WEEK_IN_MILLIS;
/aosp14/frameworks/base/services/core/java/com/android/server/
H A DStorageManagerService.java516 / DateUtils.WEEK_IN_MILLIS) + "w"; in scrubPath()
3828 final long lastWeek = System.currentTimeMillis() - DateUtils.WEEK_IN_MILLIS; in getVolumeList()
/aosp14/frameworks/base/tools/aapt2/integration-tests/CommandTests/
H A Dandroid-33.jarAndroidManifest.xml META-INF/ META-INF/MANIFEST.MF NOTICES/ NOTICES/libcore ...
/aosp14/frameworks/base/core/api/
H A Dcurrent.txt47861 field public static final long WEEK_IN_MILLIS = 604800000L; // 0x240c8400L