/frameworks/base/core/tests/coretests/src/android/net/ |
D | NetworkStatsHistoryTest.java | 31 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/ |
D | NetworkStatsCollectionTest.java | 24 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/ |
D | DateUtils.java | 47 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/ |
D | FileRotatorTest.java | 21 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/ |
D | CountdownConditionProvider.java | 104 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/ |
D | TwilightService.java | 188 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/ |
D | TimeZoneInfo.java | 138 final long nowMinute = System.currentTimeMillis() / DateUtils.MINUTE_IN_MILLIS; in getGmtDisplayName() 139 final long now = nowMinute * DateUtils.MINUTE_IN_MILLIS; in getGmtDisplayName()
|
D | TimeZonePickerUtils.java | 133 final int min = (p / (int) DateUtils.MINUTE_IN_MILLIS) % 60; in appendGmtOffset()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/ |
D | NetworkPolicyManagerServiceTest.java | 34 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()
|
D | NetworkStatsServiceTest.java | 39 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/ |
D | NetworkStatsService.java | 58 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/ |
D | UserManagerService.java | 19 import static android.text.format.DateUtils.MINUTE_IN_MILLIS;
|
/frameworks/base/api/ |
D | system-current.txt | 32327 field public static final long MINUTE_IN_MILLIS = 60000L; // 0xea60L
|
D | current.txt | 30094 field public static final long MINUTE_IN_MILLIS = 60000L; // 0xea60L
|