/frameworks/base/tests/net/java/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/tests/net/java/com/android/server/net/ |
D | NetworkStatsCollectionTest.java | 28 import static android.text.format.DateUtils.MINUTE_IN_MILLIS; 105 final NetworkStatsCollection collection = new NetworkStatsCollection(30 * MINUTE_IN_MILLIS); in testReadLegacyNetwork() 131 final NetworkStatsCollection collection = new NetworkStatsCollection(30 * MINUTE_IN_MILLIS); in testReadLegacyUid() 157 final NetworkStatsCollection collection = new NetworkStatsCollection(30 * MINUTE_IN_MILLIS); in testReadLegacyUidTags() 185 collection.recordData(null, UID_ALL, SET_DEFAULT, TAG_NONE, 30 * MINUTE_IN_MILLIS, in testStartEndAtomicBuckets() 186 90 * MINUTE_IN_MILLIS, entry); in testStartEndAtomicBuckets() 206 collection.recordData(identSet, myUid, SET_DEFAULT, TAG_NONE, 0, 60 * MINUTE_IN_MILLIS, in testAccessLevels() 212 60 * MINUTE_IN_MILLIS, entry); in testAccessLevels() 217 60 * MINUTE_IN_MILLIS, entry); in testAccessLevels() 222 60 * MINUTE_IN_MILLIS, entry); in testAccessLevels() [all …]
|
D | NetworkStatsObserversTest.java | 28 import static android.text.format.DateUtils.MINUTE_IN_MILLIS; 316 xtSnapshot = new NetworkStats(TEST_START + MINUTE_IN_MILLIS, 1 /* initialSize */) in testUpdateStats_deviceAccess_notifies() 353 uidSnapshot = new NetworkStats(TEST_START + 2 * MINUTE_IN_MILLIS, 2 /* initialSize */) in testUpdateStats_defaultAccess_notifiesSameUid() 390 uidSnapshot = new NetworkStats(TEST_START + 2 * MINUTE_IN_MILLIS, 2 /* initialSize */) in testUpdateStats_defaultAccess_usageOtherUid_doesNotNotify() 426 uidSnapshot = new NetworkStats(TEST_START + 2 * MINUTE_IN_MILLIS, 2 /* initialSize */) in testUpdateStats_userAccess_usageSameUser_notifies() 463 uidSnapshot = new NetworkStats(TEST_START + 2 * MINUTE_IN_MILLIS, 2 /* initialSize */) in testUpdateStats_userAccess_usageAnotherUser_doesNotNotify()
|
D | NetworkStatsServiceTest.java | 46 import static android.text.format.DateUtils.MINUTE_IN_MILLIS; 381 expectSettings(0L, 30 * MINUTE_IN_MILLIS, WEEK_IN_MILLIS); in testStatsBucketResize() 389 assertEquals(30 * MINUTE_IN_MILLIS, history.getBucketDuration()); in testStatsBucketResize()
|
/frameworks/base/core/java/android/widget/ |
D | DateTimeView.java | 21 import static android.text.format.DateUtils.MINUTE_IN_MILLIS; 235 if (duration < MINUTE_IN_MILLIS) { 237 mUpdateTimeMillis = mTimeMillis + MINUTE_IN_MILLIS + 1; 240 count = (int)(duration / MINUTE_IN_MILLIS); 246 millisIncrease = MINUTE_IN_MILLIS; 347 if (duration < MINUTE_IN_MILLIS) { in onInitializeAccessibilityNodeInfoInternal() 350 count = (int)(duration / MINUTE_IN_MILLIS); in onInitializeAccessibilityNodeInfoInternal()
|
/frameworks/base/core/tests/utiltests/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/core/java/android/text/format/ |
D | DateUtils.java | 53 public static final long MINUTE_IN_MILLIS = SECOND_IN_MILLIS * 60; field in DateUtils 54 public static final long HOUR_IN_MILLIS = MINUTE_IN_MILLIS * 60; 260 return getRelativeTimeSpanString(startTime, System.currentTimeMillis(), MINUTE_IN_MILLIS); in getRelativeTimeSpanString() 400 } else if (millis >= MINUTE_IN_MILLIS) { in formatDuration() 401 final int minutes = (int) ((millis + 30000) / MINUTE_IN_MILLIS); in formatDuration()
|
/frameworks/base/services/core/java/com/android/server/notification/ |
D | CountdownConditionProvider.java | 126 DateUtils.getRelativeTimeSpanString(mTime, now, DateUtils.MINUTE_IN_MILLIS); in onSubscribe() 171 DateUtils.getRelativeTimeSpanString(time, now, DateUtils.MINUTE_IN_MILLIS); in tryParseDescription()
|
/frameworks/opt/timezonepicker/src/com/android/timezonepicker/ |
D | TimeZoneInfo.java | 130 final long nowMinute = System.currentTimeMillis() / DateUtils.MINUTE_IN_MILLIS; in getGmtDisplayName() 131 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/core/tests/coretests/src/com/android/internal/os/ |
D | BatteryStatsHelperTest.java | 60 private static final long TIME_FOREGROUND_ACTIVITY = 100 * DateUtils.MINUTE_IN_MILLIS * 1000; 61 private static final long TIME_STATE_FOREGROUND_MS = 10 * DateUtils.MINUTE_IN_MILLIS;
|
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/ |
D | RemoteBugreportUtils.java | 52 static final long REMOTE_BUGREPORT_TIMEOUT_MILLIS = 10 * DateUtils.MINUTE_IN_MILLIS;
|
/frameworks/base/core/tests/coretests/src/android/util/ |
D | TokenBucketTest.java | 57 drain(new TokenBucket((int)DateUtils.MINUTE_IN_MILLIS, 50), 50); in testInitialCapacity()
|
/frameworks/support/v7/appcompat/src/android/support/v7/app/ |
D | TwilightManager.java | 181 nextUpdate += DateUtils.MINUTE_IN_MILLIS; in updateState()
|
/frameworks/base/services/core/java/com/android/server/connectivity/ |
D | LingerMonitor.java | 57 public static final long DEFAULT_NOTIFICATION_RATE_LIMIT_MILLIS = DateUtils.MINUTE_IN_MILLIS;
|
D | IpConnectivityMetrics.java | 325 map.put(ApfProgramEvent.class, new TokenBucket((int)DateUtils.MINUTE_IN_MILLIS, 50)); in makeRateLimitingBuckets()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/ |
D | NetworkPolicyManagerServiceTest.java | 37 import static android.text.format.DateUtils.MINUTE_IN_MILLIS; 994 incrementCurrentTime(MINUTE_IN_MILLIS); in testOverWarningLimitNotification() 1015 incrementCurrentTime(MINUTE_IN_MILLIS); in testOverWarningLimitNotification() 1033 incrementCurrentTime(MINUTE_IN_MILLIS); in testOverWarningLimitNotification() 1050 incrementCurrentTime(MINUTE_IN_MILLIS); in testOverWarningLimitNotification()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/external/ |
D | CustomTile.java | 91 return CUSTOM_STALE_TIMEOUT + DateUtils.MINUTE_IN_MILLIS * mHost.indexOf(getTileSpec()); in getStaleTimeout()
|
/frameworks/base/tests/net/java/com/android/server/connectivity/ |
D | LingerMonitorTest.java | 51 static final long LOW_RATE_LIMIT = DateUtils.MINUTE_IN_MILLIS;
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/datetime/ |
D | ZoneGetter.java | 305 final int offsetMinutes = (int) (offsetMillis / DateUtils.MINUTE_IN_MILLIS); in getGmtOffsetText()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tileimpl/ |
D | QSTileImpl.java | 66 private static final long DEFAULT_STALE_TIMEOUT = 10 * DateUtils.MINUTE_IN_MILLIS;
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/ |
D | ZenModePanel.java | 428 int mins = (int) ((time - System.currentTimeMillis() + DateUtils.MINUTE_IN_MILLIS / 2) in createCondition() 429 / DateUtils.MINUTE_IN_MILLIS); in createCondition()
|
/frameworks/base/services/core/java/com/android/server/storage/ |
D | DeviceStorageMonitorService.java | 84 private static final long DEFAULT_CHECK_INTERVAL = DateUtils.MINUTE_IN_MILLIS;
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/metrics/ |
D | TelephonyMetrics.java | 19 import static android.text.format.DateUtils.MINUTE_IN_MILLIS; 522 return (int) ((timestamp) / (MINUTE_IN_MILLIS * SESSION_START_PRECISION_MINUTES) in roundSessionStart()
|
/frameworks/base/services/core/java/com/android/server/net/ |
D | NetworkStatsService.java | 62 import static android.text.format.DateUtils.MINUTE_IN_MILLIS; 1572 return getGlobalLong(NETSTATS_POLL_INTERVAL, 30 * MINUTE_IN_MILLIS); in getPollInterval()
|