/packages/apps/TV/src/com/android/tv/dvr/ |
ScheduledProgramReaper.java | 28 * Deletes {@link ScheduledRecording} older than {@value @DAYS} days. 33 static final int DAYS = 2; 46 long cutoff = mClock.currentTimeMillis() - TimeUnit.DAYS.toMillis(DAYS);
|
DvrRecordingService.java | 99 mReaperRunner = new RecurringRunner(this, java.util.concurrent.TimeUnit.DAYS.toMillis(1),
|
/packages/apps/TV/tests/unit/src/com/android/tv/dvr/ |
ScheduledProgramReaperTest.java | 69 mFakeClock.increment(TimeUnit.DAYS); 79 mFakeClock.increment(TimeUnit.DAYS); 90 mFakeClock.increment(TimeUnit.DAYS, 1 + ScheduledProgramReaper.DAYS); 103 long startTime = mFakeClock.currentTimeMillis() + TimeUnit.DAYS.toMillis(1);
|
/external/guava/guava/src/com/google/common/base/ |
Stopwatch.java | 21 import static java.util.concurrent.TimeUnit.DAYS; 226 if (DAYS.convert(nanos, NANOSECONDS) > 0) { 227 return DAYS; 261 case DAYS:
|
/external/guava/guava-gwt/src-super/com/google/common/base/super/com/google/common/base/ |
Stopwatch.java | 21 import static java.util.concurrent.TimeUnit.DAYS; 211 if (DAYS.convert(nanos, NANOSECONDS) > 0) { 212 return DAYS; 246 case DAYS:
|
/libcore/jsr166-tests/src/test/java/jsr166/ |
TimeUnitTest.java | 11 import static java.util.concurrent.TimeUnit.DAYS; 44 SECONDS.convert(t, DAYS)); 59 MILLISECONDS.convert(t, DAYS)); 74 MICROSECONDS.convert(t, DAYS)); 89 NANOSECONDS.convert(t, DAYS)); 112 DAYS.toNanos(t)); 135 DAYS.toMicros(t)); 158 DAYS.toMillis(t)); 181 DAYS.toSeconds(t)); 204 DAYS.toMinutes(t)) [all...] |
/packages/apps/TV/tests/unit/src/com/android/tv/recommendation/ |
RecentChannelEvaluatorTest.java | 33 System.currentTimeMillis() - TimeUnit.DAYS.toMillis(2); 35 System.currentTimeMillis() - TimeUnit.DAYS.toMillis(1); 84 long latestWatchEndTimeMs = System.currentTimeMillis() - TimeUnit.DAYS.toMillis(2);
|
FavoriteChannelEvaluatorTest.java | 31 System.currentTimeMillis() - TimeUnit.DAYS.toMillis(2); 33 System.currentTimeMillis() - TimeUnit.DAYS.toMillis(1); 82 long latestWatchEndTimeMs = System.currentTimeMillis() - TimeUnit.DAYS.toMillis(2);
|
ChannelRecordTest.java | 41 mLatestWatchEndTimeMs = System.currentTimeMillis() - TimeUnit.DAYS.toMillis(1);
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/ |
RelativeDateTimeFormatterTest.java | 44 {0.0, Direction.NEXT, RelativeUnit.DAYS, "in 0 days"}, 45 {0.5, Direction.NEXT, RelativeUnit.DAYS, "in 0.5 days"}, 46 {1.0, Direction.NEXT, RelativeUnit.DAYS, "in 1 day"}, 47 {2.0, Direction.NEXT, RelativeUnit.DAYS, "in 2 days"}, 73 {0.0, Direction.LAST, RelativeUnit.DAYS, "0 days ago"}, 74 {0.5, Direction.LAST, RelativeUnit.DAYS, "0.5 days ago"} [all...] |
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/ |
RelativeDateTimeFormatterTest.java | 40 {0.0, Direction.NEXT, RelativeUnit.DAYS, "in 0 days"}, 41 {0.5, Direction.NEXT, RelativeUnit.DAYS, "in 0.5 days"}, 42 {1.0, Direction.NEXT, RelativeUnit.DAYS, "in 1 day"}, 43 {2.0, Direction.NEXT, RelativeUnit.DAYS, "in 2 days"}, 69 {0.0, Direction.LAST, RelativeUnit.DAYS, "0 days ago"}, 70 {0.5, Direction.LAST, RelativeUnit.DAYS, "0.5 days ago"} [all...] |
/packages/apps/StorageManager/src/com/android/storagemanager/deletionhelper/ |
StorageManagerUpsellDialog.java | 45 private static final long DISMISS_SHORT_DELAY = TimeUnit.DAYS.toMillis(14); 46 private static final long DISMISS_LONG_DELAY = TimeUnit.DAYS.toMillis(90); 48 private static final long NO_THANKS_SHORT_DELAY = TimeUnit.DAYS.toMillis(90);
|
/packages/providers/TvProvider/src/com/android/providers/tv/ |
EpgDataCleanupService.java | 59 clearOldPrograms(nowMillis - TimeUnit.DAYS.toMillis(maxProgramAgeInDays)); 65 clearOldWatchHistory(nowMillis - TimeUnit.DAYS.toMillis(maxWatchedProgramAgeInDays));
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/deskclock/ |
DeskClockTestsActivity.java | 35 private static final ArrayList<Integer> DAYS = new ArrayList<Integer>(); 44 .putExtra(AlarmClock.EXTRA_DAYS, DAYS); 47 DAYS.add(Calendar.MONDAY); 48 DAYS.add(Calendar.WEDNESDAY);
|
/libcore/luni/src/main/java/javax/xml/datatype/ |
DatatypeConstants.java | 137 * <p>A constant that represents the days field.</p> 139 public static final Field DAYS = new Field("DAYS", 2);
|
Duration.java | 34 * which consists of six fields (years, months, days, hours, 56 * <p>For example, 30 days cannot be meaningfully compared to one month. 68 * subtract 15 days from 1 month. See the javadoc of those methods 160 boolean daySet = isSet(DatatypeConstants.DAYS); 247 * Obtains the value of the DAYS field as an integer value, 251 * that this method works on the DAYS field. 253 * @return Days of this <code>Duration</code>. 256 return getFieldValueAsInt(DatatypeConstants.DAYS); 383 * In case of YEARS, MONTHS, DAYS, HOURS, and MINUTES, the returned 388 * one of the six Field constants (YEARS,MONTHS,DAYS,HOURS 902 BigInteger days = (BigInteger) getField(DatatypeConstants.DAYS); local [all...] |
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/dictionarypack/ |
DictionaryService.java | 47 * Every four days, it schedules an update of the metadata with the alarm manager. 48 * - Issuing the order to update the metadata. This runs every four days, between 0 and 86 private static final long UPDATE_FREQUENCY_MILLIS = TimeUnit.DAYS.toMillis(4); 98 private static final long VERY_LONG_TIME_MILLIS = TimeUnit.DAYS.toMillis(14);
|
/packages/apps/TV/src/com/android/tv/analytics/ |
SendChannelStatusRunnable.java | 40 private static final long SEND_CHANNEL_STATUS_INTERVAL_MS = TimeUnit.DAYS.toMillis(1);
|
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/ |
OkHttpClientTest.java | 82 client.setConnectTimeout(365, TimeUnit.DAYS); 86 client.setWriteTimeout(365, TimeUnit.DAYS); 90 client.setReadTimeout(365, TimeUnit.DAYS);
|
CacheControlTest.java | 162 .maxAge(2, TimeUnit.DAYS) 173 .maxAge(365 * 100, TimeUnit.DAYS) // Longer than Integer.MAX_VALUE seconds.
|
/external/guava/guava-tests/test/com/google/common/cache/ |
EmptyCachesTest.java | 20 import static java.util.concurrent.TimeUnit.DAYS; 372 DurationSpec.of(1, DAYS))) 376 DurationSpec.of(1, DAYS))) 379 DurationSpec.of(1, DAYS)));
|
/packages/apps/StorageManager/src/com/android/storagemanager/automatic/ |
NotificationController.java | 82 private static final long DISMISS_DELAY = TimeUnit.DAYS.toMillis(15); 83 private static final long NO_THANKS_DELAY = TimeUnit.DAYS.toMillis(90);
|
/packages/apps/TV/src/com/android/tv/recommendation/ |
RoutineWatchEvaluator.java | 39 private static final long DIFF_MS_TOLERANCE_FOR_OLD_PROGRAM = TimeUnit.DAYS.toMillis(14); 40 private static final long MAX_DIFF_MS_FOR_OLD_PROGRAM = TimeUnit.DAYS.toMillis(56);
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/ |
ContactsManager.java | 88 TimeUnit.MILLISECONDS.convert(180, TimeUnit.DAYS)); 90 timeSinceLastContact / (TimeUnit.MILLISECONDS.convert(10, TimeUnit.DAYS)));
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/ |
ContactsManagerTest.java | 88 final long month_ago = now - TimeUnit.MILLISECONDS.convert(31, TimeUnit.DAYS); 107 final long month_ago = now - TimeUnit.MILLISECONDS.convert(31, TimeUnit.DAYS);
|