Searched refs:FreezePeriod (Results 1 – 6 of 6) sorted by relevance
/frameworks/base/core/java/android/app/admin/ |
D | FreezePeriod.java | 39 public class FreezePeriod { class 61 public FreezePeriod(MonthDay start, MonthDay end) { in FreezePeriod() method in FreezePeriod 85 private FreezePeriod(int startDay, int endDay) { in FreezePeriod() method in FreezePeriod 220 static List<FreezePeriod> canonicalizePeriods(List<FreezePeriod> intervals) { in canonicalizePeriods() 223 for (FreezePeriod interval : intervals) { in canonicalizePeriods() 229 List<FreezePeriod> result = new ArrayList<>(); in canonicalizePeriods() 238 result.add(new FreezePeriod(intervalStart, i)); in canonicalizePeriods() 245 FreezePeriod wrappedInterval = new FreezePeriod(result.get(lastIndex).mStartDay, in canonicalizePeriods() 262 static void validatePeriods(List<FreezePeriod> periods) { in validatePeriods() 263 List<FreezePeriod> allPeriods = FreezePeriod.canonicalizePeriods(periods); in validatePeriods() [all …]
|
D | SystemUpdatePolicy.java | 304 private final ArrayList<FreezePeriod> mFreezePeriods; 470 public SystemUpdatePolicy setFreezePeriods(List<FreezePeriod> freezePeriods) { in setFreezePeriods() 471 FreezePeriod.validatePeriods(freezePeriods); in setFreezePeriods() 482 public List<FreezePeriod> getFreezePeriods() { in getFreezePeriods() 492 for (FreezePeriod interval : mFreezePeriods) { in getCurrentFreezePeriod() 505 List<FreezePeriod> sortedPeriods = FreezePeriod.canonicalizePeriods(mFreezePeriods); in timeUntilNextFreezePeriod() 508 for (FreezePeriod interval : sortedPeriods) { in timeUntilNextFreezePeriod() 526 FreezePeriod.validatePeriods(mFreezePeriods); in validateFreezePeriods() 532 FreezePeriod.validateAgainstPreviousFreezePeriod(mFreezePeriods, prevPeriodStart, in validateAgainstPreviousFreezePeriod() 705 FreezePeriod interval = mFreezePeriods.get(i); in writeToParcel() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/ |
D | SystemUpdatePolicyTest.java | 28 import android.app.admin.FreezePeriod; 227 assertEquals(364, FreezePeriod.distanceWithoutLeapYear( in testDistanceWithoutLeapYear() 229 assertEquals(365, FreezePeriod.distanceWithoutLeapYear( in testDistanceWithoutLeapYear() 231 assertEquals(365, FreezePeriod.distanceWithoutLeapYear( in testDistanceWithoutLeapYear() 233 assertEquals(-365, FreezePeriod.distanceWithoutLeapYear( in testDistanceWithoutLeapYear() 235 assertEquals(1, FreezePeriod.distanceWithoutLeapYear( in testDistanceWithoutLeapYear() 237 assertEquals(1, FreezePeriod.distanceWithoutLeapYear( in testDistanceWithoutLeapYear() 239 assertEquals(0, FreezePeriod.distanceWithoutLeapYear( in testDistanceWithoutLeapYear() 241 assertEquals(0, FreezePeriod.distanceWithoutLeapYear( in testDistanceWithoutLeapYear() 244 assertEquals(59, FreezePeriod.distanceWithoutLeapYear( in testDistanceWithoutLeapYear() [all …]
|
/frameworks/base/config/ |
D | hiddenapi-greylist-max-o.txt | 2582 Landroid/app/admin/FreezePeriod;-><init>(II)V 2583 Landroid/app/admin/FreezePeriod;->after(Ljava/time/LocalDate;)Z 2584 Landroid/app/admin/FreezePeriod;->canonicalizePeriods(Ljava/util/List;)Ljava/util/List; 2585 Landroid/app/admin/FreezePeriod;->contains(Ljava/time/LocalDate;)Z 2586 Landroid/app/admin/FreezePeriod;->dayOfYearDisregardLeapYear(Ljava/time/LocalDate;)I 2587 Landroid/app/admin/FreezePeriod;->dayOfYearToMonthDay(I)Ljava/time/MonthDay; 2588 Landroid/app/admin/FreezePeriod;->DAYS_IN_YEAR:I 2589 Landroid/app/admin/FreezePeriod;->distanceWithoutLeapYear(Ljava/time/LocalDate;Ljava/time/LocalDate… 2590 Landroid/app/admin/FreezePeriod;->DUMMY_YEAR:I 2591 Landroid/app/admin/FreezePeriod;->getEffectiveEndDay()I [all …]
|
/frameworks/base/non-updatable-api/ |
D | current.txt | 7006 public class FreezePeriod { 7007 ctor public FreezePeriod(java.time.MonthDay, java.time.MonthDay); 7087 method public java.util.List<android.app.admin.FreezePeriod> getFreezePeriods(); 7091 …roid.app.admin.SystemUpdatePolicy setFreezePeriods(java.util.List<android.app.admin.FreezePeriod>);
|
/frameworks/base/api/ |
D | current.txt | 7006 public class FreezePeriod { 7007 ctor public FreezePeriod(java.time.MonthDay, java.time.MonthDay); 7087 method public java.util.List<android.app.admin.FreezePeriod> getFreezePeriods(); 7091 …roid.app.admin.SystemUpdatePolicy setFreezePeriods(java.util.List<android.app.admin.FreezePeriod>);
|