Searched refs:MINUTE_IN_MILLIS (Results 1 - 8 of 8) sorted by relevance
/frameworks/base/core/tests/coretests/src/android/net/ |
H A D | NetworkStatsHistoryTest.java | 31 import static android.text.format.DateUtils.MINUTE_IN_MILLIS; 118 final long BUCKET_SIZE = 15 * MINUTE_IN_MILLIS; 123 final long recordStart = (TEST_START + BUCKET_SIZE) - MINUTE_IN_MILLIS; 124 final long recordEnd = (TEST_START + (BUCKET_SIZE * 2)) + (MINUTE_IN_MILLIS * 4); 130 assertValues(stats, 0, MINUTE_IN_MILLIS, 50L, 100L, 250L, 500L, 5L); 132 assertValues(stats, 1, 15 * MINUTE_IN_MILLIS, 750L, 1500L, 3750L, 7500L, 75L); 134 assertValues(stats, 2, 4 * MINUTE_IN_MILLIS, 200L, 400L, 1000L, 2000L, 20L); 212 stats1.recordData(TEST_START, TEST_START + MINUTE_IN_MILLIS * 60, 600L, 600L); 214 final long TEST_START_2 = TEST_START + MINUTE_IN_MILLIS; 215 final NetworkStatsHistory stats2 = new NetworkStatsHistory(MINUTE_IN_MILLIS); [all...] |
/frameworks/base/services/tests/servicestests/src/com/android/server/net/ |
H A D | NetworkStatsCollectionTest.java | 24 import static android.text.format.DateUtils.MINUTE_IN_MILLIS; 66 final NetworkStatsCollection collection = new NetworkStatsCollection(30 * MINUTE_IN_MILLIS); 92 final NetworkStatsCollection collection = new NetworkStatsCollection(30 * MINUTE_IN_MILLIS); 118 final NetworkStatsCollection collection = new NetworkStatsCollection(30 * MINUTE_IN_MILLIS); 146 collection.recordData(null, UID_ALL, SET_DEFAULT, TAG_NONE, 30 * MINUTE_IN_MILLIS, 147 90 * MINUTE_IN_MILLIS, entry);
|
/frameworks/base/core/tests/coretests/src/com/android/internal/util/ |
H A D | FileRotatorTest.java | 21 import static android.text.format.DateUtils.MINUTE_IN_MILLIS; 124 currentTime += MINUTE_IN_MILLIS; 144 mBasePath, PREFIX, MINUTE_IN_MILLIS, DAY_IN_MILLIS); 152 currentTime += MINUTE_IN_MILLIS + SECOND_IN_MILLIS; 162 currentTime = TEST_TIME + DAY_IN_MILLIS + (2 * MINUTE_IN_MILLIS); 174 mBasePath, PREFIX, MINUTE_IN_MILLIS, DAY_IN_MILLIS);
|
/frameworks/base/services/tests/servicestests/src/com/android/server/ |
H A D | NetworkPolicyManagerServiceTest.java | 34 import static android.text.format.DateUtils.MINUTE_IN_MILLIS; 722 incrementCurrentTime(MINUTE_IN_MILLIS); 748 incrementCurrentTime(MINUTE_IN_MILLIS); 769 incrementCurrentTime(MINUTE_IN_MILLIS); 790 incrementCurrentTime(MINUTE_IN_MILLIS);
|
H A D | NetworkStatsServiceTest.java | 39 import static android.text.format.DateUtils.MINUTE_IN_MILLIS; 364 expectSettings(0L, 30 * MINUTE_IN_MILLIS, WEEK_IN_MILLIS); 375 assertEquals(30 * MINUTE_IN_MILLIS, history.getBucketDuration()); 794 incrementCurrentTime(90 * MINUTE_IN_MILLIS);
|
/frameworks/base/core/java/android/text/format/ |
H A D | DateUtils.java | 147 public static final long MINUTE_IN_MILLIS = SECOND_IN_MILLIS * 60; field in class:DateUtils 148 public static final long HOUR_IN_MILLIS = MINUTE_IN_MILLIS * 60; 409 return getRelativeTimeSpanString(startTime, System.currentTimeMillis(), MINUTE_IN_MILLIS); 421 * past will be reported as "0 minutes ago" if this is set to MINUTE_IN_MILLIS. Pass one of 422 * 0, MINUTE_IN_MILLIS, HOUR_IN_MILLIS, DAY_IN_MILLIS, WEEK_IN_MILLIS 442 * this is set to MINUTE_IN_MILLIS. Pass one of 0, 443 * MINUTE_IN_MILLIS, HOUR_IN_MILLIS, DAY_IN_MILLIS, 459 if (duration < MINUTE_IN_MILLIS && minResolution < MINUTE_IN_MILLIS) { 475 count = duration / MINUTE_IN_MILLIS; [all...] |
/frameworks/base/services/java/com/android/server/ |
H A D | UiModeManagerService.java | 75 private static final long MIN_LOCATION_UPDATE_MS = 30 * DateUtils.MINUTE_IN_MILLIS; 78 private static final long LOCATION_UPDATE_ENABLE_INTERVAL_MAX = 15 * DateUtils.MINUTE_IN_MILLIS; 815 nextUpdate += DateUtils.MINUTE_IN_MILLIS;
|
/frameworks/base/services/java/com/android/server/net/ |
H A D | NetworkStatsService.java | 62 import static android.text.format.DateUtils.MINUTE_IN_MILLIS; 1229 return getSecureLong(NETSTATS_POLL_INTERVAL, 30 * MINUTE_IN_MILLIS);
|
Completed in 471 milliseconds