Home
last modified time | relevance | path

Searched refs:LocalDate (Results 1 – 20 of 20) sorted by relevance

/frameworks/base/core/java/android/app/admin/
DFreezePeriod.java22 import java.time.LocalDate;
115 boolean contains(LocalDate localDate) { in contains()
128 boolean after(LocalDate localDate) { in after()
141 Pair<LocalDate, LocalDate> toCurrentOrFutureRealDates(LocalDate now) { in toCurrentOrFutureRealDates()
169 final LocalDate startDate = LocalDate.ofYearDay(DUMMY_YEAR, mStartDay).withYear( in toCurrentOrFutureRealDates()
171 final LocalDate endDate = LocalDate.ofYearDay(DUMMY_YEAR, mEndDay).withYear( in toCurrentOrFutureRealDates()
179 return LocalDate.ofYearDay(DUMMY_YEAR, mStartDay).format(formatter) + " - " in toString()
180 + LocalDate.ofYearDay(DUMMY_YEAR, mEndDay).format(formatter); in toString()
185 LocalDate date = LocalDate.ofYearDay(DUMMY_YEAR, dayOfYear); in dayOfYearToMonthDay()
193 private static int dayOfYearDisregardLeapYear(LocalDate date) { in dayOfYearDisregardLeapYear()
[all …]
DSystemUpdatePolicy.java38 import java.time.LocalDate;
491 public Pair<LocalDate, LocalDate> getCurrentFreezePeriod(LocalDate now) { in getCurrentFreezePeriod()
506 LocalDate nowDate = millisToDate(now); in timeUntilNextFreezePeriod()
507 LocalDate nextFreezeStart = null; in timeUntilNextFreezePeriod()
530 public void validateAgainstPreviousFreezePeriod(LocalDate prevPeriodStart, in validateAgainstPreviousFreezePeriod()
531 LocalDate prevPeriodEnd, LocalDate now) { in validateAgainstPreviousFreezePeriod()
616 LocalDate whenDate = millisToDate(when); in getInstallationOptionAt()
617 Pair<LocalDate, LocalDate> current = getCurrentFreezePeriod(whenDate); in getInstallationOptionAt()
661 private static LocalDate roundUpLeapDay(LocalDate date) { in roundUpLeapDay()
672 private static LocalDate millisToDate(long when) { in millisToDate()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
DSystemUpdatePolicyTest.java46 import java.time.LocalDate;
228 LocalDate.of(2016, 12, 31), LocalDate.of(2016, 1, 1))); in testDistanceWithoutLeapYear()
230 LocalDate.of(2017, 1, 1), LocalDate.of(2016, 1, 1))); in testDistanceWithoutLeapYear()
232 LocalDate.of(2017, 2, 28), LocalDate.of(2016, 2, 29))); in testDistanceWithoutLeapYear()
234 LocalDate.of(2016, 1, 1), LocalDate.of(2017, 1, 1))); in testDistanceWithoutLeapYear()
236 LocalDate.of(2016, 3, 1), LocalDate.of(2016, 2, 29))); in testDistanceWithoutLeapYear()
238 LocalDate.of(2016, 3, 1), LocalDate.of(2016, 2, 28))); in testDistanceWithoutLeapYear()
240 LocalDate.of(2016, 2, 29), LocalDate.of(2016, 2, 28))); in testDistanceWithoutLeapYear()
242 LocalDate.of(2016, 2, 28), LocalDate.of(2016, 2, 28))); in testDistanceWithoutLeapYear()
245 LocalDate.of(2016, 3, 1), LocalDate.of(2016, 1, 1))); in testDistanceWithoutLeapYear()
[all …]
/frameworks/base/core/java/android/hardware/display/
DAmbientBrightnessDayStats.java28 import java.time.LocalDate;
42 private final LocalDate mLocalDate;
58 public AmbientBrightnessDayStats(@NonNull LocalDate localDate, in AmbientBrightnessDayStats()
71 public AmbientBrightnessDayStats(@NonNull LocalDate localDate, in AmbientBrightnessDayStats()
98 public LocalDate getLocalDate() { in getLocalDate()
120 mLocalDate = LocalDate.parse(source.readString()); in AmbientBrightnessDayStats()
/frameworks/base/core/tests/coretests/src/android/hardware/display/
DAmbientBrightnessDayStatsTest.java33 import java.time.LocalDate;
40 private static final LocalDate LOCAL_DATE = LocalDate.now();
61 new AmbientBrightnessDayStats(LocalDate.now(), new float[]{}); in testBucketBoundariesMustNotBeEmpty()
98 LocalDate today = LocalDate.now(); in testParcelUnparcelAmbientBrightnessDayStats()
/frameworks/base/services/core/java/com/android/server/display/
DAmbientBrightnessStatsTracker.java39 import java.time.LocalDate;
152 public void log(@UserIdInt int userId, LocalDate localDate, float ambientBrightness, in log()
173 final LocalDate cutOffDate = mInjector.getLocalDate().minusDays(MAX_DAYS_TO_TRACK); in writeToXML()
222 final LocalDate cutOffDate = mInjector.getLocalDate().minusDays(MAX_DAYS_TO_TRACK); in readFromXML()
233 LocalDate localDate = LocalDate.parse( in readFromXML()
289 Deque<AmbientBrightnessDayStats> userStats, LocalDate localDate) { in getOrCreateDayStats()
359 public LocalDate getLocalDate() { in getLocalDate()
360 return LocalDate.now(); in getLocalDate()
/frameworks/base/services/tests/servicestests/src/com/android/server/display/
DAmbientBrightnessStatsTrackerTest.java42 import java.time.LocalDate;
189 LocalDate runningDate = mTestInjector.getLocalDate(); in testBrightnessStatsTrackerOverMaxDays()
199 LocalDate date = mTestInjector.getLocalDate(); in testReadAmbientBrightnessStats()
236 LocalDate date = mTestInjector.getLocalDate(); in testFailedReadAmbientBrightnessStatsWithException()
400 private LocalDate mLocalDate = LocalDate.now();
426 public LocalDate getLocalDate() { in getLocalDate()
427 return LocalDate.from(mLocalDate); in getLocalDate()
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
DOwners.java59 import java.time.LocalDate;
123 private LocalDate mSystemUpdateFreezeStart;
124 private LocalDate mSystemUpdateFreezeEnd;
415 Pair<LocalDate, LocalDate> getSystemUpdateFreezePeriodRecord() { in getSystemUpdateFreezePeriodRecord()
441 boolean setSystemUpdateFreezePeriodRecord(LocalDate start, LocalDate end) { in setSystemUpdateFreezePeriodRecord()
886 mSystemUpdateFreezeStart = LocalDate.parse(startDate); in readInner()
887 mSystemUpdateFreezeEnd = LocalDate.parse(endDate); in readInner()
DDevicePolicyManagerService.java281 import java.time.LocalDate;
11508 Pair<LocalDate, LocalDate> record = mOwners.getSystemUpdateFreezePeriodRecord(); in setSystemUpdatePolicy()
11511 LocalDate.now()); in setSystemUpdatePolicy()
11545 private static boolean withinRange(Pair<LocalDate, LocalDate> range, LocalDate date) { in withinRange() argument
11573 final LocalDate now = LocalDate.now(); in updateSystemUpdateFreezePeriodsRecord()
11574 final Pair<LocalDate, LocalDate> currentPeriod = policy.getCurrentFreezePeriod(now); in updateSystemUpdateFreezePeriodsRecord()
11578 final Pair<LocalDate, LocalDate> record = mOwners.getSystemUpdateFreezePeriodRecord(); in updateSystemUpdateFreezePeriodsRecord()
11579 final LocalDate start = record.first; in updateSystemUpdateFreezePeriodsRecord()
11580 final LocalDate end = record.second; in updateSystemUpdateFreezePeriodsRecord()
/frameworks/base/packages/SystemUI/src/com/android/systemui/assist/
DAssistHandleReminderExpBehavior.java47 import java.time.LocalDate;
385 long currentEpochDay = LocalDate.now().toEpochDay(); in callbackForLearnedState()
/frameworks/base/core/java/android/widget/
DDateTimeView.java43 import java.time.LocalDate;
319 LocalDate tomorrow = time.toLocalDate().plusDays(1); in computeNextMidnight()
/frameworks/base/config/
Dboot-image-profile.txt7140 HSPLandroid/hardware/display/AmbientBrightnessDayStats;-><init>(Ljava/time/LocalDate;[F)V
7141 HSPLandroid/hardware/display/AmbientBrightnessDayStats;-><init>(Ljava/time/LocalDate;[F[F)V
28005 HSPLjava/time/LocalDate;->atTime(Ljava/time/LocalTime;)Ljava/time/chrono/ChronoLocalDateTime;
28006 HSPLjava/time/LocalDate;->create(III)Ljava/time/LocalDate;
28007 HSPLjava/time/LocalDate;->equals(Ljava/lang/Object;)Z
28008 HSPLjava/time/LocalDate;->from(Ljava/time/temporal/TemporalAccessor;)Ljava/time/LocalDate;
28009 HSPLjava/time/LocalDate;->get0(Ljava/time/temporal/TemporalField;)I
28010 HSPLjava/time/LocalDate;->getChronology()Ljava/time/chrono/Chronology;
28011 HPLjava/time/LocalDate;->getLong(Ljava/time/temporal/TemporalField;)J
28012 HSPLjava/time/LocalDate;->isAfter(Ljava/time/chrono/ChronoLocalDate;)Z
[all …]
Dhiddenapi-greylist-max-o.txt2583 Landroid/app/admin/FreezePeriod;->after(Ljava/time/LocalDate;)Z
2585 Landroid/app/admin/FreezePeriod;->contains(Ljava/time/LocalDate;)Z
2586 Landroid/app/admin/FreezePeriod;->dayOfYearDisregardLeapYear(Ljava/time/LocalDate;)I
2589 Landroid/app/admin/FreezePeriod;->distanceWithoutLeapYear(Ljava/time/LocalDate;Ljava/time/LocalDate
2599 Landroid/app/admin/FreezePeriod;->toCurrentOrFutureRealDates(Ljava/time/LocalDate;)Landroid/util/Pa…
2600 …nstPreviousFreezePeriod(Ljava/util/List;Ljava/time/LocalDate;Ljava/time/LocalDate;Ljava/time/Local…
3539 Landroid/app/admin/SystemUpdatePolicy;->dateToMillis(Ljava/time/LocalDate;)J
3542 Landroid/app/admin/SystemUpdatePolicy;->getCurrentFreezePeriod(Ljava/time/LocalDate;)Landroid/util/…
3552 Landroid/app/admin/SystemUpdatePolicy;->millisToDate(J)Ljava/time/LocalDate;
3557 Landroid/app/admin/SystemUpdatePolicy;->roundUpLeapDay(Ljava/time/LocalDate;)Ljava/time/LocalDate;
[all …]
Dpreloaded-classes6312 java.time.LocalDate$1
6313 java.time.LocalDate
/frameworks/base/non-updatable-api/
Dcurrent.txt68945 …public final class LocalDate implements java.time.chrono.ChronoLocalDate java.io.Serializable java…
68953 method public static java.time.LocalDate from(java.time.temporal.TemporalAccessor);
68963 method public java.time.LocalDate minus(java.time.temporal.TemporalAmount);
68964 method public java.time.LocalDate minus(long, java.time.temporal.TemporalUnit);
68965 method public java.time.LocalDate minusDays(long);
68966 method public java.time.LocalDate minusMonths(long);
68967 method public java.time.LocalDate minusWeeks(long);
68968 method public java.time.LocalDate minusYears(long);
68969 method public static java.time.LocalDate now();
68970 method public static java.time.LocalDate now(java.time.ZoneId);
[all …]
Dsystem-current.txt2099 method public java.time.LocalDate getLocalDate();
/frameworks/base/api/
Dcurrent.txt69089 …public final class LocalDate implements java.time.chrono.ChronoLocalDate java.io.Serializable java…
69097 method public static java.time.LocalDate from(java.time.temporal.TemporalAccessor);
69107 method public java.time.LocalDate minus(java.time.temporal.TemporalAmount);
69108 method public java.time.LocalDate minus(long, java.time.temporal.TemporalUnit);
69109 method public java.time.LocalDate minusDays(long);
69110 method public java.time.LocalDate minusMonths(long);
69111 method public java.time.LocalDate minusWeeks(long);
69112 method public java.time.LocalDate minusYears(long);
69113 method public static java.time.LocalDate now();
69114 method public static java.time.LocalDate now(java.time.ZoneId);
[all …]
Dtest-current.txt919 method public java.time.LocalDate getLocalDate();
Dsystem-current.txt2099 method public java.time.LocalDate getLocalDate();
/frameworks/base/services/
Dart-profile6481 …mbientBrightnessStats;->getOrCreateDayStats(Ljava/util/Deque;Ljava/time/LocalDate;)Landroid/hardwa…
6484 …erver/display/AmbientBrightnessStatsTracker$AmbientBrightnessStats;->log(ILjava/time/LocalDate;FF)V
6489 …android/server/display/AmbientBrightnessStatsTracker$Injector;->getLocalDate()Ljava/time/LocalDate;