/libcore/luni/src/test/java/libcore/icu/ |
RelativeDateTimeFormatterTest.java | 29 import static libcore.icu.RelativeDateTimeFormatter.HOUR_IN_MILLIS; 67 final long TWO_HOURS_IN_MS = 2 * HOUR_IN_MILLIS; 149 test_getRelativeTimeSpanString_helper(0 * HOUR_IN_MILLIS, HOUR_IN_MILLIS, "0 hours ago", 151 test_getRelativeTimeSpanString_helper(1 * HOUR_IN_MILLIS, HOUR_IN_MILLIS, "1 hour ago", 153 test_getRelativeTimeSpanString_helper(2 * HOUR_IN_MILLIS, HOUR_IN_MILLIS, "2 hours ago", 155 test_getRelativeTimeSpanString_helper(5 * HOUR_IN_MILLIS, HOUR_IN_MILLIS, "5 hours ago" [all...] |
/frameworks/base/core/tests/coretests/src/android/os/ |
FileUtilsTest.java | 20 import static android.text.format.DateUtils.HOUR_IN_MILLIS; 145 touch("file1", HOUR_IN_MILLIS); 146 touch("file2", 1 * DAY_IN_MILLIS + HOUR_IN_MILLIS); 147 touch("file3", 2 * DAY_IN_MILLIS + HOUR_IN_MILLIS); 148 touch("file4", 3 * DAY_IN_MILLIS + HOUR_IN_MILLIS); 149 touch("file5", 4 * DAY_IN_MILLIS + HOUR_IN_MILLIS); 155 touch("file1", -HOUR_IN_MILLIS); 156 touch("file2", HOUR_IN_MILLIS); 161 touch("file1", -HOUR_IN_MILLIS); 162 touch("file2", HOUR_IN_MILLIS); [all...] |
/frameworks/base/core/tests/coretests/src/android/net/ |
NetworkStatsHistoryTest.java | 30 import static android.text.format.DateUtils.HOUR_IN_MILLIS; 92 final long BUCKET_SIZE = HOUR_IN_MILLIS; 104 final long bucketDuration = HOUR_IN_MILLIS; 113 assertValues(stats, 0, HOUR_IN_MILLIS / 2, 512L, 5L, 64L, 1L, 1L); 114 assertValues(stats, 1, HOUR_IN_MILLIS / 2, 512L, 5L, 64L, 1L, 1L); 138 final long BUCKET_SIZE = HOUR_IN_MILLIS; 156 final long middleEnd = middleStart + (HOUR_IN_MILLIS * 2); 163 assertValues(stats, 1, HOUR_IN_MILLIS, 1024L, 2L, 1024L, 2L, 1L); 164 assertValues(stats, 2, HOUR_IN_MILLIS, 1024L, 2L, 1024L, 2L, 1L); 169 final long BUCKET_SIZE = HOUR_IN_MILLIS; [all...] |
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/net/ |
ChartDataLoader.java | 24 import static android.text.format.DateUtils.HOUR_IN_MILLIS; 107 data.detailDefault = new NetworkStatsHistory(HOUR_IN_MILLIS); 108 data.detailForeground = new NetworkStatsHistory(HOUR_IN_MILLIS); 109 data.detail = new NetworkStatsHistory(HOUR_IN_MILLIS);
|
/packages/apps/Messaging/src/com/android/messaging/util/ |
Dates.java | 37 public static final long HOUR_IN_MILLIS = MINUTE_IN_MILLIS * 60; 38 public static final long DAY_IN_MILLIS = HOUR_IN_MILLIS * 24; 134 } else if (!minPeriodToday && timeDiff < DateUtils.HOUR_IN_MILLIS) { 247 if (duration < HOUR_IN_MILLIS) { 251 count = duration / HOUR_IN_MILLIS;
|
/libcore/ojluni/src/main/java/sun/util/calendar/ |
AbstractCalendar.java | 54 static final int HOUR_IN_MILLIS = MINUTE_IN_MILLIS * 60; 55 static final int DAY_IN_MILLIS = HOUR_IN_MILLIS * 24; 230 int hours = time / HOUR_IN_MILLIS; 231 time %= HOUR_IN_MILLIS;
|
/packages/apps/ContactsCommon/tests/src/com/android/contacts/common/util/ |
DateUtilTests.java | 36 long date2 = System.currentTimeMillis() + android.text.format.DateUtils.HOUR_IN_MILLIS;
|
/libcore/luni/src/main/java/libcore/icu/ |
RelativeDateTimeFormatter.java | 42 public static final long HOUR_IN_MILLIS = MINUTE_IN_MILLIS * 60; 43 public static final long DAY_IN_MILLIS = HOUR_IN_MILLIS * 24; 75 * minResolution is HOUR_IN_MILLIS. Once getting the quantity and unit to 145 } else if (duration < HOUR_IN_MILLIS && minResolution < HOUR_IN_MILLIS) { 152 count = (int)(duration / HOUR_IN_MILLIS); 257 * now - 2 hours, now, HOUR_IN_MILLIS, DAY_IN_MILLIS, 0), instead of '2 258 * hours ago, 11:30 PM' even with minResolution being HOUR_IN_MILLIS.
|
/frameworks/base/core/java/android/widget/ |
DateTimeView.java | 20 import static android.text.format.DateUtils.HOUR_IN_MILLIS; 239 } else if (duration < HOUR_IN_MILLIS) { 248 count = (int)(duration / HOUR_IN_MILLIS); 254 millisIncrease = HOUR_IN_MILLIS; 349 } else if (duration < HOUR_IN_MILLIS) { 359 count = (int)(duration / HOUR_IN_MILLIS);
|
/frameworks/base/services/tests/servicestests/src/com/android/server/net/ |
NetworkStatsServiceTest.java | 40 import static android.text.format.DateUtils.HOUR_IN_MILLIS; 245 incrementCurrentTime(HOUR_IN_MILLIS); 300 incrementCurrentTime(HOUR_IN_MILLIS); 378 expectSettings(0L, HOUR_IN_MILLIS, WEEK_IN_MILLIS); 390 incrementCurrentTime(2 * HOUR_IN_MILLIS); 392 expectSettings(0L, HOUR_IN_MILLIS, WEEK_IN_MILLIS); 404 assertEquals(HOUR_IN_MILLIS, history.getBucketDuration()); 443 incrementCurrentTime(HOUR_IN_MILLIS); 468 incrementCurrentTime(HOUR_IN_MILLIS); 487 incrementCurrentTime(HOUR_IN_MILLIS); [all...] |
NetworkStatsCollectionTest.java | 24 import static android.text.format.DateUtils.HOUR_IN_MILLIS; 147 final NetworkStatsCollection collection = new NetworkStatsCollection(HOUR_IN_MILLIS); 157 assertEquals(2 * HOUR_IN_MILLIS, collection.getEndMillis()); 161 final NetworkStatsCollection collection = new NetworkStatsCollection(HOUR_IN_MILLIS);
|
/packages/apps/Calendar/tests/src/com/android/calendar/alerts/ |
AlarmSchedulerTest.java | 176 long startMillis = currentMillis + DateUtils.HOUR_IN_MILLIS; 222 long startMillis = currentMillis + DateUtils.HOUR_IN_MILLIS; 304 mMockProvider.addEventInfo(i, false, currentMillis + DateUtils.HOUR_IN_MILLIS * i,
|
/frameworks/base/core/java/android/text/format/ |
DateUtils.java | 50 public static final long HOUR_IN_MILLIS = MINUTE_IN_MILLIS * 60; 51 public static final long DAY_IN_MILLIS = HOUR_IN_MILLIS * 24; 267 * 0, MINUTE_IN_MILLIS, HOUR_IN_MILLIS, DAY_IN_MILLIS, WEEK_IN_MILLIS 288 * MINUTE_IN_MILLIS, HOUR_IN_MILLIS, DAY_IN_MILLIS, 360 if (millis >= HOUR_IN_MILLIS) { 361 final int hours = (int) ((millis + 1800000) / HOUR_IN_MILLIS); [all...] |
/frameworks/opt/timezonepicker/src/com/android/timezonepicker/ |
TimeZoneInfo.java | 137 cacheKey = (int) (gmtOffset + 36 * DateUtils.HOUR_IN_MILLIS); 139 cacheKey = (int) (gmtOffset - 36 * DateUtils.HOUR_IN_MILLIS);
|
TimeZonePickerUtils.java | 131 sb.append(p / DateUtils.HOUR_IN_MILLIS); // Hour
|
/packages/apps/DeskClock/src/com/android/deskclock/data/ |
Timer.java | 26 import static android.text.format.DateUtils.HOUR_IN_MILLIS; 75 99 * HOUR_IN_MILLIS + 99 * MINUTE_IN_MILLIS + 99 * SECOND_IN_MILLIS;
|
/packages/apps/DeskClock/src/com/android/deskclock/stopwatch/ |
LapsAdapter.java | 240 } else if (maxTime < 10 * DateUtils.HOUR_IN_MILLIS) { 243 } else if (maxTime < 100 * DateUtils.HOUR_IN_MILLIS) {
|
/frameworks/base/core/tests/utiltests/src/com/android/internal/util/ |
FileRotatorTest.java | 20 import static android.text.format.DateUtils.HOUR_IN_MILLIS; 237 mBasePath, PREFIX, HOUR_IN_MILLIS, YEAR_IN_MILLIS); 334 mBasePath, PREFIX, HOUR_IN_MILLIS, DAY_IN_MILLIS);
|
/frameworks/support/v7/appcompat/src/android/support/v7/app/ |
TwilightManager.java | 166 nextUpdate = now + 12 * DateUtils.HOUR_IN_MILLIS;
|
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/ |
ShadowTime.java | 23 private static final long HOUR_IN_MILLIS = MINUTE_IN_MILLIS * 60; 24 private static final long DAY_IN_MILLIS = HOUR_IN_MILLIS * 24;
|
/libcore/luni/src/test/java/libcore/java/util/ |
GregorianCalendarTest.java | 33 private static final int HOUR_IN_MILLIS = 3600000; 453 return HOUR_IN_MILLIS * count;
|
/frameworks/base/services/core/java/com/android/server/connectivity/ |
MetricsLoggerService.java | 68 private final long THROTTLING_TIME_INTERVAL_MILLIS = DateUtils.HOUR_IN_MILLIS;
|
/packages/apps/TV/src/com/android/tv/guide/ |
ProgramGuide.java | 77 private static final long HOUR_IN_MILLIS = TimeUnit.HOURS.toMillis(1); 78 private static final long HALF_HOUR_IN_MILLIS = HOUR_IN_MILLIS / 2; 185 mViewPortMillis = (gridWidth * HOUR_IN_MILLIS) / mWidthPerHour; [all...] |
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/display/daydream/ |
DaydreamFragment.java | 60 private static final int DEFAULT_SLEEP_TIME_MS = (int) (3 * DateUtils.HOUR_IN_MILLIS);
|
/packages/providers/DownloadProvider/src/com/android/providers/downloads/ |
DownloadIdleService.java | 91 .setPeriodic(12 * DateUtils.HOUR_IN_MILLIS)
|