/libcore/luni/src/test/java/libcore/icu/ |
RelativeDateTimeFormatterTest.java | 30 import static libcore.icu.RelativeDateTimeFormatter.MINUTE_IN_MILLIS; 50 MINUTE_IN_MILLIS, 0)); 53 MINUTE_IN_MILLIS, 0)); 56 getRelativeTimeSpanString(en_US, tz, 0, MINUTE_IN_MILLIS, MINUTE_IN_MILLIS, 0)); 58 getRelativeTimeSpanString(en_US, tz, MINUTE_IN_MILLIS, 0, MINUTE_IN_MILLIS, 0)); 61 getRelativeTimeSpanString(en_US, tz, baseTime - 42 * MINUTE_IN_MILLIS, baseTime, 62 MINUTE_IN_MILLIS, 0)); 64 getRelativeTimeSpanString(en_US, tz, baseTime + 42 * MINUTE_IN_MILLIS, baseTime [all...] |
/frameworks/base/core/tests/coretests/src/android/net/ |
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/ |
NetworkStatsCollectionTest.java | 25 import static android.text.format.DateUtils.MINUTE_IN_MILLIS; 72 final NetworkStatsCollection collection = new NetworkStatsCollection(30 * MINUTE_IN_MILLIS); 98 final NetworkStatsCollection collection = new NetworkStatsCollection(30 * MINUTE_IN_MILLIS); 124 final NetworkStatsCollection collection = new NetworkStatsCollection(30 * MINUTE_IN_MILLIS); 152 collection.recordData(null, UID_ALL, SET_DEFAULT, TAG_NONE, 30 * MINUTE_IN_MILLIS, 153 90 * MINUTE_IN_MILLIS, entry); 173 collection.recordData(identSet, myUid, SET_DEFAULT, TAG_NONE, 0, 60 * MINUTE_IN_MILLIS, 179 60 * MINUTE_IN_MILLIS, entry); 184 60 * MINUTE_IN_MILLIS, entry); 189 60 * MINUTE_IN_MILLIS, entry) [all...] |
NetworkStatsObserversTest.java | 21 import static android.text.format.DateUtils.MINUTE_IN_MILLIS; 33 import static android.text.format.DateUtils.MINUTE_IN_MILLIS; 308 xtSnapshot = new NetworkStats(TEST_START + MINUTE_IN_MILLIS, 1 /* initialSize */) 346 uidSnapshot = new NetworkStats(TEST_START + 2 * MINUTE_IN_MILLIS, 2 /* initialSize */) 384 uidSnapshot = new NetworkStats(TEST_START + 2 * MINUTE_IN_MILLIS, 2 /* initialSize */) 422 uidSnapshot = new NetworkStats(TEST_START + 2 * MINUTE_IN_MILLIS, 2 /* initialSize */) 460 uidSnapshot = new NetworkStats(TEST_START + 2 * MINUTE_IN_MILLIS, 2 /* initialSize */)
|
/packages/apps/Messaging/src/com/android/messaging/util/ |
Dates.java | 36 public static final long MINUTE_IN_MILLIS = SECOND_IN_MILLIS * 60; 37 public static final long HOUR_IN_MILLIS = MINUTE_IN_MILLIS * 60; 67 if (now - time < DateUtils.MINUTE_IN_MILLIS) { 77 return DateUtils.getRelativeTimeSpanString(time, now, DateUtils.MINUTE_IN_MILLIS, 132 if (!minPeriodToday && timeDiff < DateUtils.MINUTE_IN_MILLIS) { 155 final long count = (timeDiff / MINUTE_IN_MILLIS); 248 count = duration / MINUTE_IN_MILLIS;
|
/packages/apps/DeskClock/src/com/android/deskclock/ |
AlarmUtils.java | 60 if (delta < DateUtils.MINUTE_IN_MILLIS) { 67 final long remainder = delta % DateUtils.MINUTE_IN_MILLIS; 68 delta += remainder == 0 ? 0 : (DateUtils.MINUTE_IN_MILLIS - remainder);
|
/packages/apps/Calendar/tests/src/com/android/calendar/alerts/ |
AlarmSchedulerTest.java | 179 expectAlarmAt(startMillis - reminderMin * DateUtils.MINUTE_IN_MILLIS); 195 expectAlarmAt(startMillisLocal - reminderMin * DateUtils.MINUTE_IN_MILLIS); 211 expectAlarmAt(startMillisLocal - 15 * DateUtils.MINUTE_IN_MILLIS); 251 mMockProvider.addEventInfo(2, false, currentMillis + DateUtils.MINUTE_IN_MILLIS * 60, 45); 252 mMockProvider.addEventInfo(3, false, currentMillis + DateUtils.MINUTE_IN_MILLIS * 30, 10); 255 expectAlarmAt(currentMillis + DateUtils.MINUTE_IN_MILLIS * 15); 291 expectAlarmAt(currentMillis + DateUtils.DAY_IN_MILLIS - DateUtils.MINUTE_IN_MILLIS * 20); 309 expectAlarmAt(currentMillis + DateUtils.MINUTE_IN_MILLIS * 50);
|
/packages/apps/DeskClock/src/com/android/deskclock/data/ |
Timer.java | 27 import static android.text.format.DateUtils.MINUTE_IN_MILLIS; 75 99 * HOUR_IN_MILLIS + 99 * MINUTE_IN_MILLIS + 99 * SECOND_IN_MILLIS; 233 totalLength = MINUTE_IN_MILLIS; 234 remainingTime = MINUTE_IN_MILLIS; 238 totalLength = mRemainingTime + MINUTE_IN_MILLIS; 239 remainingTime = mRemainingTime + MINUTE_IN_MILLIS;
|
/cts/tests/tests/text/src/android/text/format/cts/ |
DateUtilsTest.java | 101 DateUtils.MINUTE_IN_MILLIS)); 103 DateUtils.MINUTE_IN_MILLIS)); 108 mBaseTime, DateUtils.MINUTE_IN_MILLIS, DateUtils.FORMAT_NUMERIC_DATE)); 110 mBaseTime, DateUtils.MINUTE_IN_MILLIS, DateUtils.FORMAT_NUMERIC_DATE)); 120 DateUtils.MINUTE_IN_MILLIS, DateUtils.DAY_IN_MILLIS, DateUtils.FORMAT_NUMERIC_DATE));
|
/libcore/ojluni/src/main/java/sun/util/calendar/ |
AbstractCalendar.java | 53 static final int MINUTE_IN_MILLIS = SECOND_IN_MILLIS * 60; 54 static final int HOUR_IN_MILLIS = MINUTE_IN_MILLIS * 60; 232 int minutes = time / MINUTE_IN_MILLIS; 233 time %= MINUTE_IN_MILLIS;
|
/frameworks/base/core/java/android/widget/ |
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) { 350 count = (int)(duration / MINUTE_IN_MILLIS);
|
/libcore/luni/src/main/java/libcore/icu/ |
RelativeDateTimeFormatter.java | 41 public static final long MINUTE_IN_MILLIS = SECOND_IN_MILLIS * 60; 42 public static final long HOUR_IN_MILLIS = MINUTE_IN_MILLIS * 60; 142 if (duration < MINUTE_IN_MILLIS && minResolution < MINUTE_IN_MILLIS) { 146 count = (int)(duration / MINUTE_IN_MILLIS);
|
/frameworks/base/core/tests/utiltests/src/com/android/internal/util/ |
FileRotatorTest.java | 21 import static android.text.format.DateUtils.MINUTE_IN_MILLIS; 126 currentTime += MINUTE_IN_MILLIS; 146 mBasePath, PREFIX, MINUTE_IN_MILLIS, DAY_IN_MILLIS); 154 currentTime += MINUTE_IN_MILLIS + SECOND_IN_MILLIS; 164 currentTime = TEST_TIME + DAY_IN_MILLIS + (2 * MINUTE_IN_MILLIS); 176 mBasePath, PREFIX, MINUTE_IN_MILLIS, DAY_IN_MILLIS);
|
/frameworks/base/services/core/java/com/android/server/notification/ |
CountdownConditionProvider.java | 123 DateUtils.getRelativeTimeSpanString(mTime, now, DateUtils.MINUTE_IN_MILLIS); 167 DateUtils.getRelativeTimeSpanString(time, now, DateUtils.MINUTE_IN_MILLIS);
|
/packages/providers/DownloadProvider/src/com/android/providers/downloads/ |
DownloadScanner.java | 19 import static android.text.format.DateUtils.MINUTE_IN_MILLIS; 45 private static final long SCAN_TIMEOUT = MINUTE_IN_MILLIS;
|
/packages/providers/DownloadProvider/tests/src/com/android/providers/downloads/ |
AbstractPublicApiTest.java | 21 import static android.text.format.DateUtils.MINUTE_IN_MILLIS; 146 if (timeout > MINUTE_IN_MILLIS) { 154 if (timeout > MINUTE_IN_MILLIS) {
|
/frameworks/base/core/java/android/text/format/ |
DateUtils.java | 49 public static final long MINUTE_IN_MILLIS = SECOND_IN_MILLIS * 60; 50 public static final long HOUR_IN_MILLIS = MINUTE_IN_MILLIS * 60; 248 * The minimum timespan to report is set to {@link #MINUTE_IN_MILLIS}. 254 return getRelativeTimeSpanString(startTime, System.currentTimeMillis(), MINUTE_IN_MILLIS); 266 * past will be reported as "0 minutes ago" if this is set to MINUTE_IN_MILLIS. Pass one of 267 * 0, MINUTE_IN_MILLIS, HOUR_IN_MILLIS, DAY_IN_MILLIS, WEEK_IN_MILLIS 287 * this is set to MINUTE_IN_MILLIS. Pass one of 0, 288 * MINUTE_IN_MILLIS, HOUR_IN_MILLIS, DAY_IN_MILLIS, 316 * {@link #MINUTE_IN_MILLIS}. 364 } else if (millis >= MINUTE_IN_MILLIS) { [all...] |
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/ |
RemoteBugreportUtils.java | 50 static final long REMOTE_BUGREPORT_TIMEOUT_MILLIS = 10 * DateUtils.MINUTE_IN_MILLIS;
|
/frameworks/opt/timezonepicker/src/com/android/timezonepicker/ |
TimeZoneInfo.java | 130 final long nowMinute = System.currentTimeMillis() / DateUtils.MINUTE_IN_MILLIS; 131 final long now = nowMinute * DateUtils.MINUTE_IN_MILLIS;
|
TimeZonePickerUtils.java | 133 final int min = (p / (int) DateUtils.MINUTE_IN_MILLIS) % 60;
|
/packages/apps/DeskClock/src/com/android/deskclock/stopwatch/ |
LapsAdapter.java | 234 if (maxTime < 10 * DateUtils.MINUTE_IN_MILLIS) { 237 } else if (maxTime < 60 * DateUtils.MINUTE_IN_MILLIS) {
|
/packages/providers/CalendarProvider/src/com/android/providers/calendar/ |
CalendarAlarmManager.java | 75 DateUtils.DAY_IN_MILLIS - (15 * DateUtils.MINUTE_IN_MILLIS); 365 String subQuerySuffix = " -(" + Reminders.MINUTES + "*" + +DateUtils.MINUTE_IN_MILLIS + ")" 458 } else if (alarmTime > nextAlarmTime + DateUtils.MINUTE_IN_MILLIS) {
|
/frameworks/support/v7/appcompat/src/android/support/v7/app/ |
TwilightManager.java | 176 nextUpdate += DateUtils.MINUTE_IN_MILLIS;
|
/packages/apps/Calendar/src/com/android/calendar/ |
CalendarSettingsActivity.java | 65 if (Utils.getTardis() + DateUtils.MINUTE_IN_MILLIS > System.currentTimeMillis()) {
|
/packages/apps/ContactsCommon/src/com/android/contacts/common/util/ |
DataStatus.java | 114 mTimestamp, System.currentTimeMillis(), DateUtils.MINUTE_IN_MILLIS,
|