Home
last modified time | relevance | path

Searched refs:MINUTE_IN_MILLIS (Results 1 – 14 of 14) sorted by relevance

/frameworks/base/core/tests/coretests/src/android/net/
DNetworkStatsHistoryTest.java31 import static android.text.format.DateUtils.MINUTE_IN_MILLIS;
118 final long BUCKET_SIZE = 15 * MINUTE_IN_MILLIS; in testRecordTouchingBuckets()
123 final long recordStart = (TEST_START + BUCKET_SIZE) - MINUTE_IN_MILLIS; in testRecordTouchingBuckets()
124 final long recordEnd = (TEST_START + (BUCKET_SIZE * 2)) + (MINUTE_IN_MILLIS * 4); in testRecordTouchingBuckets()
130 assertValues(stats, 0, MINUTE_IN_MILLIS, 50L, 100L, 250L, 500L, 5L); in testRecordTouchingBuckets()
132 assertValues(stats, 1, 15 * MINUTE_IN_MILLIS, 750L, 1500L, 3750L, 7500L, 75L); in testRecordTouchingBuckets()
134 assertValues(stats, 2, 4 * MINUTE_IN_MILLIS, 200L, 400L, 1000L, 2000L, 20L); in testRecordTouchingBuckets()
212 stats1.recordData(TEST_START, TEST_START + MINUTE_IN_MILLIS * 60, 600L, 600L); in testRecordEntireOverlapVaryingBuckets()
214 final long TEST_START_2 = TEST_START + MINUTE_IN_MILLIS; in testRecordEntireOverlapVaryingBuckets()
215 final NetworkStatsHistory stats2 = new NetworkStatsHistory(MINUTE_IN_MILLIS); in testRecordEntireOverlapVaryingBuckets()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/net/
DNetworkStatsCollectionTest.java24 import static android.text.format.DateUtils.MINUTE_IN_MILLIS;
66 final NetworkStatsCollection collection = new NetworkStatsCollection(30 * MINUTE_IN_MILLIS); in testReadLegacyNetwork()
92 final NetworkStatsCollection collection = new NetworkStatsCollection(30 * MINUTE_IN_MILLIS); in testReadLegacyUid()
118 final NetworkStatsCollection collection = new NetworkStatsCollection(30 * MINUTE_IN_MILLIS); in testReadLegacyUidTags()
146 collection.recordData(null, UID_ALL, SET_DEFAULT, TAG_NONE, 30 * MINUTE_IN_MILLIS, in testStartEndAtomicBuckets()
147 90 * MINUTE_IN_MILLIS, entry); in testStartEndAtomicBuckets()
/frameworks/base/core/java/android/text/format/
DDateUtils.java47 public static final long MINUTE_IN_MILLIS = SECOND_IN_MILLIS * 60; field in DateUtils
48 public static final long HOUR_IN_MILLIS = MINUTE_IN_MILLIS * 60;
250 return getRelativeTimeSpanString(startTime, System.currentTimeMillis(), MINUTE_IN_MILLIS); in getRelativeTimeSpanString()
300 if (duration < MINUTE_IN_MILLIS && minResolution < MINUTE_IN_MILLIS) { in getRelativeTimeSpanString()
316 count = duration / MINUTE_IN_MILLIS; in getRelativeTimeSpanString()
488 } else if (millis >= MINUTE_IN_MILLIS) { in formatDuration()
489 final int minutes = (int) ((millis + 30000) / MINUTE_IN_MILLIS); in formatDuration()
/frameworks/base/core/tests/coretests/src/com/android/internal/util/
DFileRotatorTest.java21 import static android.text.format.DateUtils.MINUTE_IN_MILLIS;
126 currentTime += MINUTE_IN_MILLIS; in testRotate()
146 mBasePath, PREFIX, MINUTE_IN_MILLIS, DAY_IN_MILLIS); in testDelete()
154 currentTime += MINUTE_IN_MILLIS + SECOND_IN_MILLIS; in testDelete()
164 currentTime = TEST_TIME + DAY_IN_MILLIS + (2 * MINUTE_IN_MILLIS); in testDelete()
176 mBasePath, PREFIX, MINUTE_IN_MILLIS, DAY_IN_MILLIS); in testThrowRestoresBackup()
/frameworks/base/services/core/java/com/android/server/notification/
DCountdownConditionProvider.java104 DateUtils.getRelativeTimeSpanString(mTime, now, DateUtils.MINUTE_IN_MILLIS); in onSubscribe()
148 DateUtils.getRelativeTimeSpanString(time, now, DateUtils.MINUTE_IN_MILLIS); in tryParseDescription()
/frameworks/base/services/core/java/com/android/server/twilight/
DTwilightService.java188 private static final long MIN_LOCATION_UPDATE_MS = 30 * DateUtils.MINUTE_IN_MILLIS;
192 15 * DateUtils.MINUTE_IN_MILLIS;
403 nextUpdate += DateUtils.MINUTE_IN_MILLIS; in updateTwilightState()
/frameworks/opt/timezonepicker/src/com/android/timezonepicker/
DTimeZoneInfo.java138 final long nowMinute = System.currentTimeMillis() / DateUtils.MINUTE_IN_MILLIS; in getGmtDisplayName()
139 final long now = nowMinute * DateUtils.MINUTE_IN_MILLIS; in getGmtDisplayName()
DTimeZonePickerUtils.java133 final int min = (p / (int) DateUtils.MINUTE_IN_MILLIS) % 60; in appendGmtOffset()
/frameworks/base/services/tests/servicestests/src/com/android/server/
DNetworkPolicyManagerServiceTest.java34 import static android.text.format.DateUtils.MINUTE_IN_MILLIS;
691 incrementCurrentTime(MINUTE_IN_MILLIS); in testOverWarningLimitNotification()
717 incrementCurrentTime(MINUTE_IN_MILLIS); in testOverWarningLimitNotification()
738 incrementCurrentTime(MINUTE_IN_MILLIS); in testOverWarningLimitNotification()
759 incrementCurrentTime(MINUTE_IN_MILLIS); in testOverWarningLimitNotification()
DNetworkStatsServiceTest.java39 import static android.text.format.DateUtils.MINUTE_IN_MILLIS;
364 expectSettings(0L, 30 * MINUTE_IN_MILLIS, WEEK_IN_MILLIS); in testStatsBucketResize()
375 assertEquals(30 * MINUTE_IN_MILLIS, history.getBucketDuration()); in testStatsBucketResize()
794 incrementCurrentTime(90 * MINUTE_IN_MILLIS); in testReportXtOverDev()
/frameworks/base/services/core/java/com/android/server/net/
DNetworkStatsService.java58 import static android.text.format.DateUtils.MINUTE_IN_MILLIS;
1257 return getGlobalLong(NETSTATS_POLL_INTERVAL, 30 * MINUTE_IN_MILLIS); in getPollInterval()
/frameworks/base/services/core/java/com/android/server/pm/
DUserManagerService.java19 import static android.text.format.DateUtils.MINUTE_IN_MILLIS;
/frameworks/base/api/
Dsystem-current.txt32327 field public static final long MINUTE_IN_MILLIS = 60000L; // 0xea60L
Dcurrent.txt30094 field public static final long MINUTE_IN_MILLIS = 60000L; // 0xea60L