Home
last modified time | relevance | path

Searched refs:WEEK_IN_MILLIS (Results 1 – 22 of 22) 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/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.java95 UnixCalendar.DAY_IN_MILLIS, UnixCalendar.WEEK_IN_MILLIS,
/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.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;
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/net/
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()
DNetworkCycleChartDataLoaderTest.java64 final long start = end - (DateUtils.WEEK_IN_MILLIS * 4); in recordUsage_shouldQueryNetworkSummaryForDevice()
DNetworkCycleDataLoaderTest.java151 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;
79 mBasePath, PREFIX, DAY_IN_MILLIS, WEEK_IN_MILLIS); in testEmpty()
81 mBasePath, ANOTHER_PREFIX, DAY_IN_MILLIS, WEEK_IN_MILLIS); in testEmpty()
98 mBasePath, PREFIX, DAY_IN_MILLIS, WEEK_IN_MILLIS); in testCombine()
120 mBasePath, PREFIX, DAY_IN_MILLIS, WEEK_IN_MILLIS); in testRotate()
176 currentTime += WEEK_IN_MILLIS; in testDelete()
/frameworks/base/packages/SystemUI/src/com/android/systemui/controls/controller/
DAuxiliaryPersistenceWrapper.kt113 private val WEEK_IN_MILLIS = TimeUnit.DAYS.toMillis(7) constant
119 .setMinimumLatency(WEEK_IN_MILLIS) in getJobForContext()
/frameworks/base/core/tests/utiltests/src/android/util/
DTimeUtilsTest.java43 public static final long WEEK_IN_MILLIS = DAY_IN_MILLIS * 7; field in TimeUtilsTest
/frameworks/base/packages/Shell/src/com/android/shell/
DHeapDumpReceiver.java74 private static final long MIN_KEEP_AGE_MS = DateUtils.WEEK_IN_MILLIS;
DBugreportProgressService.java229 private static final long MIN_KEEP_AGE = DateUtils.WEEK_IN_MILLIS;
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/net/
DNetworkCycleDataLoader.java112 final long cycleStart = cycleEnd - (DateUtils.WEEK_IN_MILLIS * 4); in loadFourWeeksData()
DDataUsageController.java109 start = now - DateUtils.WEEK_IN_MILLIS * 4; in getDataUsageInfo()
/frameworks/base/core/tests/coretests/src/android/os/
DFileUtilsTest.java46 import static android.text.format.DateUtils.WEEK_IN_MILLIS;
400 FileUtils.deleteOlderFiles(mDir, 10, WEEK_IN_MILLIS); in testDeleteOlderEmptyDir()
419 touch("file3", WEEK_IN_MILLIS); in testDeleteOlderInFuture()
425 touch("file3", WEEK_IN_MILLIS); in testDeleteOlderInFuture()
/frameworks/base/services/core/java/com/android/server/pm/
DGentleUpdateHelper.java102 timeoutMillis = Math.max(0, Math.min(DateUtils.WEEK_IN_MILLIS, timeoutMillis)); in PendingInstallConstraintsCheck()
DPackageInstallerService.java182 private static final long MAX_INSTALL_CONSTRAINTS_TIMEOUT_MILLIS = DateUtils.WEEK_IN_MILLIS;
/frameworks/base/services/core/java/com/android/server/
DStorageManagerService.java529 / DateUtils.WEEK_IN_MILLIS) + "w"; in scrubPath()
3975 final long lastWeek = System.currentTimeMillis() - DateUtils.WEEK_IN_MILLIS; in getVolumeList()
/frameworks/base/tools/aapt2/integration-tests/CommandTests/
Dandroid-33.jarAndroidManifest.xml META-INF/ META-INF/MANIFEST.MF NOTICES/ NOTICES/libcore ...
/frameworks/opt/setupwizard/tools/docs/
Dandroid-22.txt30098 field public static final long WEEK_IN_MILLIS = 604800000L; // 0x240c8400L
/frameworks/base/core/api/
Dcurrent.txt48315 field public static final long WEEK_IN_MILLIS = 604800000L; // 0x240c8400L