HomeSort by relevance Sort by last modified time
    Searched refs:MINUTE_IN_MILLIS (Results 1 - 25 of 65) sorted by null

1 2 3

  /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...]
  /external/chromium_org/ui/android/java/src/org/chromium/ui/picker/
MultiFieldTimePickerDialog.java 26 * The second picker is not displayed if step >= MINUTE_IN_MILLIS.
46 private static final int MINUTE_IN_MILLIS = 60 * SECOND_IN_MILLIS;
47 private static final int HOUR_IN_MILLIS = 60 * MINUTE_IN_MILLIS;
65 step = MINUTE_IN_MILLIS;
138 int minMinute = min / MINUTE_IN_MILLIS;
139 int maxMinute = max / MINUTE_IN_MILLIS;
140 min -= minMinute * MINUTE_IN_MILLIS;
141 max -= maxMinute * MINUTE_IN_MILLIS;
165 if (step >= MINUTE_IN_MILLIS) {
  /cts/tests/tests/text/src/android/text/format/cts/
DateUtilsTest.java 99 DateUtils.getRelativeTimeSpanString(0, ONE_MINUTE_IN_MS, DateUtils.MINUTE_IN_MILLIS));
101 DateUtils.getRelativeTimeSpanString(ONE_MINUTE_IN_MS, 0, DateUtils.MINUTE_IN_MILLIS));
105 mBaseTime, DateUtils.MINUTE_IN_MILLIS));
108 mBaseTime, DateUtils.MINUTE_IN_MILLIS));
113 mBaseTime, DateUtils.MINUTE_IN_MILLIS, DateUtils.FORMAT_NUMERIC_DATE));
115 mBaseTime, DateUtils.MINUTE_IN_MILLIS, DateUtils.FORMAT_NUMERIC_DATE));
118 mBaseTime, DateUtils.MINUTE_IN_MILLIS,
140 DateUtils.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);
AlertServiceTest.java 652 alarmMgr.expectAlarmTime(AlarmManager.RTC, currentTime + 15 * DateUtils.MINUTE_IN_MILLIS);
664 alarmMgr.expectAlarmTime(AlarmManager.RTC, currentTime + 30 * DateUtils.MINUTE_IN_MILLIS);
676 alarmMgr.expectAlarmTime(AlarmManager.RTC, currentTime + 20 * DateUtils.MINUTE_IN_MILLIS);
688 alarmMgr.expectAlarmTime(AlarmManager.RTC, currentTime + 1 * DateUtils.MINUTE_IN_MILLIS);
    [all...]
  /frameworks/base/services/tests/servicestests/src/com/android/server/net/
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/
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/core/java/android/text/format/
DateUtils.java 47 public static final long MINUTE_IN_MILLIS = SECOND_IN_MILLIS * 60;
48 public static final long HOUR_IN_MILLIS = MINUTE_IN_MILLIS * 60;
250 return getRelativeTimeSpanString(startTime, System.currentTimeMillis(), MINUTE_IN_MILLIS);
262 * past will be reported as "0 minutes ago" if this is set to MINUTE_IN_MILLIS. Pass one of
263 * 0, MINUTE_IN_MILLIS, HOUR_IN_MILLIS, DAY_IN_MILLIS, WEEK_IN_MILLIS
283 * this is set to MINUTE_IN_MILLIS. Pass one of 0,
284 * MINUTE_IN_MILLIS, HOUR_IN_MILLIS, DAY_IN_MILLIS,
300 if (duration < MINUTE_IN_MILLIS && minResolution < MINUTE_IN_MILLIS) {
316 count = duration / MINUTE_IN_MILLIS;
    [all...]
  /frameworks/base/services/core/java/com/android/server/notification/
CountdownConditionProvider.java 104 DateUtils.getRelativeTimeSpanString(mTime, now, DateUtils.MINUTE_IN_MILLIS);
148 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;
43 private static final long SCAN_TIMEOUT = MINUTE_IN_MILLIS;
DownloadService.java 19 import static android.text.format.DateUtils.MINUTE_IN_MILLIS;
272 5 * MINUTE_IN_MILLIS);
  /packages/apps/Exchange/src/com/android/exchange/eas/
EasPing.java 66 8 * (DateUtils.MINUTE_IN_MILLIS / DateUtils.SECOND_IN_MILLIS);
72 8 * (DateUtils.MINUTE_IN_MILLIS / DateUtils.SECOND_IN_MILLIS);
78 28 * (DateUtils.MINUTE_IN_MILLIS / DateUtils.SECOND_IN_MILLIS);
84 5 * (DateUtils.MINUTE_IN_MILLIS / DateUtils.SECOND_IN_MILLIS);
EasConnectionCache.java 52 private static final long MAX_LIFETIME = 10 * 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;
144 if (timeout > MINUTE_IN_MILLIS) {
152 if (timeout > MINUTE_IN_MILLIS) {
  /frameworks/base/services/core/java/com/android/server/twilight/
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;
  /packages/providers/CalendarProvider/src/com/android/providers/calendar/
CalendarAlarmManager.java 332 String subQuerySuffix = " -(" + Reminders.MINUTES + "*" + +DateUtils.MINUTE_IN_MILLIS + ")"
425 } else if (alarmTime > nextAlarmTime + DateUtils.MINUTE_IN_MILLIS) {
477 scheduleNextAlarmCheck(nextAlarmTime + DateUtils.MINUTE_IN_MILLIS);
  /frameworks/opt/timezonepicker/src/com/android/timezonepicker/
TimeZonePickerUtils.java 133 final int min = (p / (int) DateUtils.MINUTE_IN_MILLIS) % 60;
TimeZoneInfo.java 138 final long nowMinute = System.currentTimeMillis() / DateUtils.MINUTE_IN_MILLIS;
139 final long now = nowMinute * 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,
  /packages/apps/Email/provider_src/com/android/email/provider/
RefreshStatusMonitor.java 28 public static final long REMOVE_REFRESH_TIMEOUT_MS = DateUtils.MINUTE_IN_MILLIS;
  /packages/experimental/LoaderApp/src/com/android/loaderapp/util/
DataStatus.java 108 mTimestamp, System.currentTimeMillis(), DateUtils.MINUTE_IN_MILLIS,
  /frameworks/base/services/tests/servicestests/src/com/android/server/
NetworkPolicyManagerServiceTest.java 34 import static android.text.format.DateUtils.MINUTE_IN_MILLIS;
691 incrementCurrentTime(MINUTE_IN_MILLIS);
717 incrementCurrentTime(MINUTE_IN_MILLIS);
738 incrementCurrentTime(MINUTE_IN_MILLIS);
759 incrementCurrentTime(MINUTE_IN_MILLIS);
    [all...]
  /packages/apps/DeskClock/src/com/android/deskclock/timer/
TimerReceiver.java 166 t.mTimeLeft = t. mOriginalLength = TimerObj.MINUTE_IN_MILLIS;
265 if (timerIsTicking && timeLeft > TimerObj.MINUTE_IN_MILLIS) {
283 if (timeLeft <= TimerObj.MINUTE_IN_MILLIS) {
  /external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/
ShadowTime.java 22 private static final long MINUTE_IN_MILLIS = SECOND_IN_MILLIS * 60;
23 private static final long HOUR_IN_MILLIS = MINUTE_IN_MILLIS * 60;

Completed in 735 milliseconds

1 2 3