/libcore/luni/src/test/java/libcore/libcore/icu/ |
RelativeDateTimeFormatterTest.java | 32 import static libcore.icu.RelativeDateTimeFormatter.MINUTE_IN_MILLIS; 52 MINUTE_IN_MILLIS, 0)); 55 MINUTE_IN_MILLIS, 0)); 58 getRelativeTimeSpanString(en_US, tz, 0, MINUTE_IN_MILLIS, MINUTE_IN_MILLIS, 0)); 60 getRelativeTimeSpanString(en_US, tz, MINUTE_IN_MILLIS, 0, MINUTE_IN_MILLIS, 0)); 63 getRelativeTimeSpanString(en_US, tz, baseTime - 42 * MINUTE_IN_MILLIS, baseTime, 64 MINUTE_IN_MILLIS, 0)); 66 getRelativeTimeSpanString(en_US, tz, baseTime + 42 * MINUTE_IN_MILLIS, baseTime [all...] |
/packages/apps/DeskClock/src/com/android/deskclock/ |
TimerTextController.java | 22 import static android.text.format.DateUtils.MINUTE_IN_MILLIS; 46 int minutes = (int) (remainder / MINUTE_IN_MILLIS); 47 remainder = (int) (remainder % MINUTE_IN_MILLIS);
|
StopwatchTextController.java | 25 import static android.text.format.DateUtils.MINUTE_IN_MILLIS; 53 final int minutes = (int) (remainder / MINUTE_IN_MILLIS); 54 remainder = (int) (remainder % MINUTE_IN_MILLIS);
|
AlarmUtils.java | 66 if (delta < DateUtils.MINUTE_IN_MILLIS) { 73 final long remainder = delta % DateUtils.MINUTE_IN_MILLIS; 74 delta += remainder == 0 ? 0 : (DateUtils.MINUTE_IN_MILLIS - remainder);
|
/frameworks/base/tests/net/java/android/net/ |
NetworkStatsHistoryTest.java | 31 import static android.text.format.DateUtils.MINUTE_IN_MILLIS; 132 final long BUCKET_SIZE = 15 * MINUTE_IN_MILLIS; 137 final long recordStart = (TEST_START + BUCKET_SIZE) - MINUTE_IN_MILLIS; 138 final long recordEnd = (TEST_START + (BUCKET_SIZE * 2)) + (MINUTE_IN_MILLIS * 4); 144 assertValues(stats, 0, MINUTE_IN_MILLIS, 50L, 100L, 250L, 500L, 5L); 146 assertValues(stats, 1, 15 * MINUTE_IN_MILLIS, 750L, 1500L, 3750L, 7500L, 75L); 148 assertValues(stats, 2, 4 * MINUTE_IN_MILLIS, 200L, 400L, 1000L, 2000L, 20L); 230 stats1.recordData(TEST_START, TEST_START + MINUTE_IN_MILLIS * 60, 600L, 600L); 232 final long TEST_START_2 = TEST_START + MINUTE_IN_MILLIS; 233 final NetworkStatsHistory stats2 = new NetworkStatsHistory(MINUTE_IN_MILLIS); [all...] |
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/utils/ |
StringUtilTest.java | 45 final double testMillis = 5 * DateUtils.MINUTE_IN_MILLIS + 30 * DateUtils.SECOND_IN_MILLIS; 54 final double testMillis = 5 * DateUtils.MINUTE_IN_MILLIS + 30 * DateUtils.SECOND_IN_MILLIS; 64 + 4 * DateUtils.HOUR_IN_MILLIS + 15 * DateUtils.MINUTE_IN_MILLIS; 73 final double testMillis = 2 * DateUtils.DAY_IN_MILLIS + 15 * DateUtils.MINUTE_IN_MILLIS; 100 final double testMillis = 15 * DateUtils.MINUTE_IN_MILLIS; 152 final double testMillis = 2 * DateUtils.MINUTE_IN_MILLIS; 161 final double testMillis = 119 * DateUtils.MINUTE_IN_MILLIS;
|
/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/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/providers/CalendarProvider/tests/src/com/android/providers/calendar/ |
CalendarSanityCheckerTest.java | 80 mInjectedRealtimeMillis += DateUtils.DAY_IN_MILLIS - (15 * DateUtils.MINUTE_IN_MILLIS); 94 mInjectedRealtimeMillis += DateUtils.DAY_IN_MILLIS - (15 * DateUtils.MINUTE_IN_MILLIS);
|
/packages/apps/DeskClock/src/com/android/deskclock/data/ |
TimerStringFormatter.java | 26 import static android.text.format.DateUtils.MINUTE_IN_MILLIS; 37 int roundedMinutes = (int) (remainingTime / MINUTE_IN_MILLIS % 60);
|
Timer.java | 26 import static android.text.format.DateUtils.MINUTE_IN_MILLIS; 77 99 * HOUR_IN_MILLIS + 99 * MINUTE_IN_MILLIS + 99 * SECOND_IN_MILLIS; 367 return setRemainingTime(MINUTE_IN_MILLIS); 371 return setRemainingTime(mRemainingTime + MINUTE_IN_MILLIS);
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batterytip/tips/ |
HighUsageTipTest.java | 45 private static final long SCREEN_TIME = 30 * DateUtils.MINUTE_IN_MILLIS; 46 private static final long LAST_FULL_CHARGE_TIME = 20 * DateUtils.MINUTE_IN_MILLIS;
|
/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; 249 int minutes = time / MINUTE_IN_MILLIS; 250 time %= MINUTE_IN_MILLIS;
|
/packages/apps/DeskClock/src/com/android/deskclock/uidata/ |
PeriodicCallbackModel.java | 36 import static android.text.format.DateUtils.MINUTE_IN_MILLIS; 55 private static final long QUARTER_HOUR_IN_MILLIS = 15 * MINUTE_IN_MILLIS; 143 final long lastMinute = periodStart - (periodStart % MINUTE_IN_MILLIS); 144 final long nextMinute = lastMinute + MINUTE_IN_MILLIS;
|
/cts/tests/tests/text/src/android/text/format/cts/ |
DateUtilsTest.java | 119 DateUtils.MINUTE_IN_MILLIS)); 121 DateUtils.MINUTE_IN_MILLIS)); 126 mBaseTime, DateUtils.MINUTE_IN_MILLIS, DateUtils.FORMAT_NUMERIC_DATE)); 128 mBaseTime, DateUtils.MINUTE_IN_MILLIS, DateUtils.FORMAT_NUMERIC_DATE)); 166 DateUtils.MINUTE_IN_MILLIS, DateUtils.DAY_IN_MILLIS, DateUtils.FORMAT_NUMERIC_DATE));
|
/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/tests/net/java/com/android/server/net/ |
NetworkStatsCollectionTest.java | 28 import static android.text.format.DateUtils.MINUTE_IN_MILLIS; 114 final NetworkStatsCollection collection = new NetworkStatsCollection(30 * MINUTE_IN_MILLIS); 142 final NetworkStatsCollection collection = new NetworkStatsCollection(30 * MINUTE_IN_MILLIS); 170 final NetworkStatsCollection collection = new NetworkStatsCollection(30 * MINUTE_IN_MILLIS); 199 collection.recordData(null, UID_ALL, SET_DEFAULT, TAG_NONE, 30 * MINUTE_IN_MILLIS, 200 90 * MINUTE_IN_MILLIS, entry); 221 collection.recordData(identSet, myUid, SET_DEFAULT, TAG_NONE, 0, 60 * MINUTE_IN_MILLIS, 227 60 * MINUTE_IN_MILLIS, entry); 232 60 * MINUTE_IN_MILLIS, entry); 237 60 * MINUTE_IN_MILLIS, entry) [all...] |
NetworkStatsObserversTest.java | 30 import static android.text.format.DateUtils.MINUTE_IN_MILLIS; 318 xtSnapshot = new NetworkStats(TEST_START + MINUTE_IN_MILLIS, 1 /* initialSize */) 352 uidSnapshot = new NetworkStats(TEST_START + 2 * MINUTE_IN_MILLIS, 2 /* initialSize */) 387 uidSnapshot = new NetworkStats(TEST_START + 2 * MINUTE_IN_MILLIS, 2 /* initialSize */) 421 uidSnapshot = new NetworkStats(TEST_START + 2 * MINUTE_IN_MILLIS, 2 /* initialSize */) 456 uidSnapshot = new NetworkStats(TEST_START + 2 * MINUTE_IN_MILLIS, 2 /* initialSize */)
|
/packages/providers/CalendarProvider/src/com/android/providers/calendar/ |
CalendarSanityChecker.java | 55 15 * DateUtils.MINUTE_IN_MILLIS; 60 private static final long WTF_INTERVAL_MS = 60 * 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/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/ |
BatteryAppListPreferenceControllerTest.java | 137 mNormalBatterySipper.usageTimeMs = 2 * DateUtils.MINUTE_IN_MILLIS; 149 mNormalBatterySipper.usageTimeMs = 2 * DateUtils.MINUTE_IN_MILLIS; 160 mNormalBatterySipper.usageTimeMs = 2 * DateUtils.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 | 53 public static final long MINUTE_IN_MILLIS = SECOND_IN_MILLIS * 60; 54 public static final long HOUR_IN_MILLIS = MINUTE_IN_MILLIS * 60; 254 * The minimum timespan to report is set to {@link #MINUTE_IN_MILLIS}. 260 return getRelativeTimeSpanString(startTime, System.currentTimeMillis(), MINUTE_IN_MILLIS); 272 * past will be reported as "0 minutes ago" if this is set to MINUTE_IN_MILLIS. Pass one of 273 * 0, MINUTE_IN_MILLIS, HOUR_IN_MILLIS, DAY_IN_MILLIS, WEEK_IN_MILLIS 293 * this is set to MINUTE_IN_MILLIS. Pass one of 0, 294 * MINUTE_IN_MILLIS, HOUR_IN_MILLIS, DAY_IN_MILLIS, 322 * {@link #MINUTE_IN_MILLIS}. 400 } else if (millis >= MINUTE_IN_MILLIS) { [all...] |
/frameworks/base/core/java/android/widget/ |
DateTimeView.java | 21 import static android.text.format.DateUtils.MINUTE_IN_MILLIS; 243 if (duration < MINUTE_IN_MILLIS) { 245 mUpdateTimeMillis = mTimeMillis + MINUTE_IN_MILLIS + 1; 248 count = (int)(duration / MINUTE_IN_MILLIS); 254 millisIncrease = MINUTE_IN_MILLIS; 355 if (duration < MINUTE_IN_MILLIS) { 358 count = (int)(duration / MINUTE_IN_MILLIS);
|