/packages/apps/TV/tests/unit/src/com/android/tv/recommendation/ |
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);
|
/libcore/ojluni/src/main/java/java/time/ |
DayOfWeek.java | 65 import static java.time.temporal.ChronoUnit.DAYS; 84 * {@code DayOfWeek} is an enum representing the 7 days of the week - 93 * Some locales also assign different numeric values to the days, declaring 155 * {@code DayOfWeek} is an enum representing the 7 days of the week. 355 * Returns the day-of-week that is the specified number of days after this one. 362 * @param days the days to add, positive or negative 365 public DayOfWeek plus(long days) { 366 int amount = (int) (days % 7); 371 * Returns the day-of-week that is the specified number of days before this one [all...] |
Period.java | 64 import static java.time.temporal.ChronoUnit.DAYS; 96 * such as '2 years, 3 months and 4 days'. 98 * This class models a quantity or amount of time in terms of years, months and days. 114 * {@link ChronoUnit#MONTHS MONTHS} and {@link ChronoUnit#DAYS DAYS}. 150 Collections.unmodifiableList(Arrays.<TemporalUnit>asList(YEARS, MONTHS, DAYS)); 161 * The number of days. 163 private final int days; field in class:Period 170 * The months and days units will be zero. 183 * The years and days units will be zero 266 int days = 0; local 336 int days = parseNumber(text, dayMatch, negate); local 1071 int days = in.readInt(); local [all...] |
/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);
|
/frameworks/base/services/core/java/com/android/server/ |
PruneInstantAppsJobService.java | 35 ? TimeUnit.MINUTES.toMillis(1) : TimeUnit.DAYS.toMillis(1);
|
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/ |
DevicePolicyConstants.java | 76 DAS_DIED_SERVICE_RECONNECT_MAX_BACKOFF_SEC_KEY, TimeUnit.DAYS.toSeconds(1));
|
/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...] |
/libcore/luni/src/test/java/libcore/java/time/ |
InstantTest.java | 43 assertEquals(true, Instant.EPOCH.isSupported(ChronoUnit.DAYS));
|
OffsetTimeTest.java | 76 for (ChronoUnit unit : EnumSet.range(ChronoUnit.DAYS, ChronoUnit.FOREVER)) {
|
/libcore/ojluni/src/test/java/time/tck/java/time/temporal/ |
TCKChronoUnit.java | 60 import static java.time.temporal.ChronoUnit.DAYS; 109 {DAYS, true, false, true}, 140 {DAYS, LocalDate.of(2000, 1, 10), true, 1, LocalDate.of(2000, 1, 11)}, 155 {DAYS, LocalTime.of(1, 2, 3, 400), false, 1, null},
|
/libcore/ojluni/src/test/java/time/test/java/time/chrono/ |
TestExampleCode.java | 110 .minus(1, ChronoUnit.DAYS); 163 .minus(1, ChronoUnit.DAYS); 204 return (D) date.plus(1, ChronoUnit.DAYS); 216 return (ChronoLocalDateTime<D>) date.plus(1, ChronoUnit.DAYS).atTime(LocalTime.of(12, 0));
|
/packages/apps/Dialer/java/com/android/voicemail/impl/ |
StatusCheckJobService.java | 50 .setPeriodic(TimeUnit.DAYS.toMillis(1))
|
/packages/apps/StorageManager/robotests/src/com/android/storagemanager/automatic/ |
NotificationControllerTest.java | 83 mClock.time += TimeUnit.DAYS.toMillis(91); 102 mClock.time += TimeUnit.DAYS.toMillis(14); 125 // The notification should show against after 14 days. 126 mClock.time = TimeUnit.DAYS.toMillis(14); 146 // The notification should show against after 90 days. 147 mClock.time = TimeUnit.DAYS.toMillis(90);
|
/packages/apps/StorageManager/src/com/android/storagemanager/deletionhelper/ |
AppDeletionPreference.java | 26 * name and icon of the app along with the days since its last use. 64 final long lastUse = now - TimeUnit.DAYS.toMillis(mApp.daysSinceLastUse);
|
/libcore/ojluni/src/main/java/java/time/temporal/ |
WeekFields.java | 73 import static java.time.temporal.ChronoUnit.DAYS; 97 * A standard week is seven days long, but cultures have different definitions for some 118 * <li>The minimal number of days in the first week. 119 * For example, the ISO-8601 standard counts the first week as needing at least 4 days. 127 * The earliest period is referred to as week 0 if it has less than the minimal number of days 128 * and week 1 if it has at least the minimal number of days. 133 * <td>First day: Monday<br>Minimal days: 4</td><td>First day: Monday<br>Minimal days: 5</td></tr> 148 * The earliest period is referred to as week 0 if it has less than the minimal number of days 149 * and week 1 if it has at least the minimal number of days 735 int days = -offset + (dow - 1) + (wowby - 1) * 7; local 963 int days = localDow - localizedDayOfWeek(date); \/\/ safe from overflow local 970 int days = localDow - localizedDayOfWeek(date); \/\/ safe from overflow local 988 int days = localDow - localizedDayOfWeek(date); \/\/ safe from overflow local 993 int days = localDow - localizedDayOfWeek(date); \/\/ safe from overflow local [all...] |
/libcore/ojluni/src/main/java/java/time/chrono/ |
ChronoPeriodImpl.java | 60 import static java.time.temporal.ChronoUnit.DAYS; 109 Collections.unmodifiableList(Arrays.<TemporalUnit>asList(YEARS, MONTHS, DAYS)); 124 * The number of days. 126 final int days; field in class:ChronoPeriodImpl 131 ChronoPeriodImpl(Chronology chrono, int years, int months, int days) { 136 this.days = days; 146 } else if (unit == ChronoUnit.DAYS) { 147 return days; 166 return years == 0 && months == 0 && days == 0 397 int days = in.readInt(); local [all...] |
AbstractChronology.java | 77 import static java.time.temporal.ChronoUnit.DAYS; 390 * then adding the difference in months, then the difference in days. 399 * the difference in days. 407 * the difference in months, then the difference in weeks, then in days. 411 * the amount in weeks and days to reach their values. If the mode is strict, 425 * the difference in weeks, then in days. 429 * the amount in weeks and days to reach their values. If the mode is strict, 555 long days = Math.subtractExact(fieldValues.remove(DAY_OF_MONTH), 1); local 556 return date(y, 1, 1).plus(months, MONTHS).plus(days, DAYS); 574 long days = Math.subtractExact(fieldValues.remove(DAY_OF_YEAR), 1); local 586 long days = Math.subtractExact(fieldValues.remove(ALIGNED_DAY_OF_WEEK_IN_MONTH), 1); local 621 long days = Math.subtractExact(fieldValues.remove(ALIGNED_DAY_OF_WEEK_IN_YEAR), 1); local [all...] |
/libcore/ojluni/src/test/java/time/tck/java/time/chrono/ |
TCKChronoPeriod.java | 59 import static java.time.temporal.ChronoUnit.DAYS; 123 assertEquals(period.get(DAYS), 3); 138 assertEquals(period.getUnits().get(2), DAYS); 205 assertEquals(result, date.plus(14, MONTHS).plus(3, DAYS)); 223 assertEquals(result, date.minus(14, MONTHS).minus(3, DAYS));
|
/cts/tests/tests/location/src/android/location/cts/ |
GnssPseudorangeVerificationTest.java | 181 % TimeUnit.DAYS.toNanos(1); 195 - (measurement.getReceivedSvTimeNanos() % TimeUnit.DAYS.toNanos(1));
|
/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);
|