Home
last modified time | relevance | path

Searched refs:LocalDate (Results 1 – 17 of 17) 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;
493 public Pair<LocalDate, LocalDate> getCurrentFreezePeriod(LocalDate now) { in getCurrentFreezePeriod()
508 LocalDate nowDate = millisToDate(now); in timeUntilNextFreezePeriod()
509 LocalDate nextFreezeStart = null; in timeUntilNextFreezePeriod()
532 public void validateAgainstPreviousFreezePeriod(LocalDate prevPeriodStart, in validateAgainstPreviousFreezePeriod()
533 LocalDate prevPeriodEnd, LocalDate now) { in validateAgainstPreviousFreezePeriod()
618 LocalDate whenDate = millisToDate(when); in getInstallationOptionAt()
619 Pair<LocalDate, LocalDate> current = getCurrentFreezePeriod(whenDate); in getInstallationOptionAt()
663 private static LocalDate roundUpLeapDay(LocalDate date) { in roundUpLeapDay()
674 private static LocalDate millisToDate(long when) { in millisToDate()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
DSystemUpdatePolicyTest.java45 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.java27 import java.time.LocalDate;
41 private final LocalDate mLocalDate;
57 public AmbientBrightnessDayStats(@NonNull LocalDate localDate, in AmbientBrightnessDayStats()
70 public AmbientBrightnessDayStats(@NonNull LocalDate localDate, in AmbientBrightnessDayStats()
97 public LocalDate getLocalDate() { in getLocalDate()
119 mLocalDate = LocalDate.parse(source.readString()); in AmbientBrightnessDayStats()
/frameworks/base/core/tests/coretests/src/android/hardware/display/
DAmbientBrightnessDayStatsTest.java32 import java.time.LocalDate;
39 private static final LocalDate LOCAL_DATE = LocalDate.now();
60 new AmbientBrightnessDayStats(LocalDate.now(), new float[]{}); in testBucketBoundariesMustNotBeEmpty()
97 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.java41 import java.time.LocalDate;
188 LocalDate runningDate = mTestInjector.getLocalDate(); in testBrightnessStatsTrackerOverMaxDays()
198 LocalDate date = mTestInjector.getLocalDate(); in testReadAmbientBrightnessStats()
235 LocalDate date = mTestInjector.getLocalDate(); in testFailedReadAmbientBrightnessStatsWithException()
399 private LocalDate mLocalDate = LocalDate.now();
425 public LocalDate getLocalDate() { in getLocalDate()
426 return LocalDate.from(mLocalDate); in getLocalDate()
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
DOwners.java55 import java.time.LocalDate;
119 private LocalDate mSystemUpdateFreezeStart;
120 private LocalDate mSystemUpdateFreezeEnd;
378 Pair<LocalDate, LocalDate> getSystemUpdateFreezePeriodRecord() { in getSystemUpdateFreezePeriodRecord()
404 boolean setSystemUpdateFreezePeriodRecord(LocalDate start, LocalDate end) { in setSystemUpdateFreezePeriodRecord()
833 mSystemUpdateFreezeStart = LocalDate.parse(startDate); in readInner()
834 mSystemUpdateFreezeEnd = LocalDate.parse(endDate); in readInner()
DDevicePolicyManagerService.java250 import java.time.LocalDate;
10568 Pair<LocalDate, LocalDate> record = mOwners.getSystemUpdateFreezePeriodRecord(); in setSystemUpdatePolicy()
10571 LocalDate.now()); in setSystemUpdatePolicy()
10600 private static boolean withinRange(Pair<LocalDate, LocalDate> range, LocalDate date) { in withinRange() argument
10628 final LocalDate now = LocalDate.now(); in updateSystemUpdateFreezePeriodsRecord()
10629 final Pair<LocalDate, LocalDate> currentPeriod = policy.getCurrentFreezePeriod(now); in updateSystemUpdateFreezePeriodsRecord()
10633 final Pair<LocalDate, LocalDate> record = mOwners.getSystemUpdateFreezePeriodRecord(); in updateSystemUpdateFreezePeriodsRecord()
10634 final LocalDate start = record.first; in updateSystemUpdateFreezePeriodsRecord()
10635 final LocalDate end = record.second; in updateSystemUpdateFreezePeriodsRecord()
/frameworks/support/core/ktx/api/
D0.1.txt396 method @RequiresApi(26) public static final operator int component1(java.time.LocalDate);
397 …thod @RequiresApi(26) public static final operator java.time.Month component2(java.time.LocalDate);
398 method @RequiresApi(26) public static final operator int component3(java.time.LocalDate);
403 …method @RequiresApi(26) public static final operator java.time.LocalDate component1(java.time.Loca…
D0.2.txt435 method @RequiresApi(26) deprecated public static operator int component1(java.time.LocalDate);
436 …@RequiresApi(26) deprecated public static operator java.time.Month component2(java.time.LocalDate);
437 method @RequiresApi(26) deprecated public static operator int component3(java.time.LocalDate);
442 …method @RequiresApi(26) deprecated public static operator java.time.LocalDate component1(java.time…
/frameworks/base/config/
Dhiddenapi-public-dex.txt13616 Landroid/hardware/display/AmbientBrightnessDayStats;->getLocalDate()Ljava/time/LocalDate;
65282 Ljava/time/chrono/IsoChronology;->date(III)Ljava/time/LocalDate;
65283 Ljava/time/chrono/IsoChronology;->date(Ljava/time/chrono/Era;III)Ljava/time/LocalDate;
65284 Ljava/time/chrono/IsoChronology;->date(Ljava/time/temporal/TemporalAccessor;)Ljava/time/LocalDate;
65285 Ljava/time/chrono/IsoChronology;->dateEpochDay(J)Ljava/time/LocalDate;
65286 Ljava/time/chrono/IsoChronology;->dateNow()Ljava/time/LocalDate;
65287 Ljava/time/chrono/IsoChronology;->dateNow(Ljava/time/Clock;)Ljava/time/LocalDate;
65288 Ljava/time/chrono/IsoChronology;->dateNow(Ljava/time/ZoneId;)Ljava/time/LocalDate;
65289 Ljava/time/chrono/IsoChronology;->dateYearDay(II)Ljava/time/LocalDate;
65290 Ljava/time/chrono/IsoChronology;->dateYearDay(Ljava/time/chrono/Era;II)Ljava/time/LocalDate;
[all …]
Dboot-image-profile.txt2623 HPLandroid/hardware/display/AmbientBrightnessDayStats;-><init>(Ljava/time/LocalDate;[F)V
2624 HPLandroid/hardware/display/AmbientBrightnessDayStats;-><init>(Ljava/time/LocalDate;[F[F)V
11317 HPLjava/time/LocalDate;->equals(Ljava/lang/Object;)Z
11318 HPLjava/time/LocalDate;->minusYears(J)Ljava/time/LocalDate;
11319 HPLjava/time/LocalDate;->plus(Ljava/time/temporal/TemporalAmount;)Ljava/time/LocalDate;
11320 HPLjava/time/LocalDate;->plusMonths(J)Ljava/time/LocalDate;
11321 HPLjava/time/LocalDate;->resolvePreviousValid(III)Ljava/time/LocalDate;
11322 HPLjava/time/LocalDate;->withDayOfMonth(I)Ljava/time/LocalDate;
11323 HPLjava/time/LocalDate;->withMonth(I)Ljava/time/LocalDate;
11354 HPLjava/time/ZonedDateTime;->of(Ljava/time/LocalDate;Ljava/time/LocalTime;Ljava/time/ZoneId;)Ljava/…
[all …]
Dpreloaded-classes5324 java.time.LocalDate
5325 java.time.LocalDate$1
/frameworks/base/api/
Dtest-current.txt358 method public java.time.LocalDate getLocalDate();
Dcurrent.txt64282 …public final class LocalDate implements java.time.chrono.ChronoLocalDate java.io.Serializable java…
64290 method public static java.time.LocalDate from(java.time.temporal.TemporalAccessor);
64300 method public java.time.LocalDate minus(java.time.temporal.TemporalAmount);
64301 method public java.time.LocalDate minus(long, java.time.temporal.TemporalUnit);
64302 method public java.time.LocalDate minusDays(long);
64303 method public java.time.LocalDate minusMonths(long);
64304 method public java.time.LocalDate minusWeeks(long);
64305 method public java.time.LocalDate minusYears(long);
64306 method public static java.time.LocalDate now();
64307 method public static java.time.LocalDate now(java.time.ZoneId);
[all …]
Dsystem-current.txt1225 method public java.time.LocalDate getLocalDate();