Home
last modified time | relevance | path

Searched refs:FreezePeriod (Results 1 – 5 of 5) sorted by relevance

/frameworks/base/core/java/android/app/admin/
DFreezePeriod.java39 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 …]
DSystemUpdatePolicy.java306 private final ArrayList<FreezePeriod> mFreezePeriods;
472 public SystemUpdatePolicy setFreezePeriods(List<FreezePeriod> freezePeriods) { in setFreezePeriods()
473 FreezePeriod.validatePeriods(freezePeriods); in setFreezePeriods()
484 public List<FreezePeriod> getFreezePeriods() { in getFreezePeriods()
494 for (FreezePeriod interval : mFreezePeriods) { in getCurrentFreezePeriod()
507 List<FreezePeriod> sortedPeriods = FreezePeriod.canonicalizePeriods(mFreezePeriods); in timeUntilNextFreezePeriod()
510 for (FreezePeriod interval : sortedPeriods) { in timeUntilNextFreezePeriod()
528 FreezePeriod.validatePeriods(mFreezePeriods); in validateFreezePeriods()
534 FreezePeriod.validateAgainstPreviousFreezePeriod(mFreezePeriods, prevPeriodStart, in validateAgainstPreviousFreezePeriod()
709 FreezePeriod interval = mFreezePeriods.get(i); in writeToParcel()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
DSystemUpdatePolicyTest.java27 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/
Dhiddenapi-public-dex.txt1717 Landroid/app/admin/FreezePeriod;
1718 Landroid/app/admin/FreezePeriod;-><init>(Ljava/time/MonthDay;Ljava/time/MonthDay;)V
1719 Landroid/app/admin/FreezePeriod;->getEnd()Ljava/time/MonthDay;
1720 Landroid/app/admin/FreezePeriod;->getStart()Ljava/time/MonthDay;
1721 Landroid/app/admin/FreezePeriod;->toString()Ljava/lang/String;
/frameworks/base/api/
Dcurrent.txt6754 public class FreezePeriod {
6755 ctor public FreezePeriod(java.time.MonthDay, java.time.MonthDay);
6835 method public java.util.List<android.app.admin.FreezePeriod> getFreezePeriods();
6839 …roid.app.admin.SystemUpdatePolicy setFreezePeriods(java.util.List<android.app.admin.FreezePeriod>);