Home
last modified time | relevance | path

Searched refs:Period (Results 1 – 4 of 4) sorted by relevance

/packages/apps/DeskClock/src/com/android/deskclock/uidata/
DPeriodicCallbackModel.kt40 internal enum class Period { class
63 addPeriodicCallback(runnable, Period.MINUTE, offset) in addMinuteCallback()
72 addPeriodicCallback(runnable, Period.QUARTER_HOUR, 100L) in addQuarterHourCallback()
81 addPeriodicCallback(runnable, Period.HOUR, 100L) in addHourCallback()
90 addPeriodicCallback(runnable, Period.MIDNIGHT, 100L) in addMidnightCallback()
96 private fun addPeriodicCallback(runnable: Runnable, period: Period, offset: Long) { in addPeriodicCallback()
120 private val mPeriod: Period,
175 fun getDelay(now: Long, period: Period, offset: Long): Long { in getDelay()
179 Period.MINUTE -> { in getDelay()
184 Period.QUARTER_HOUR -> { in getDelay()
[all …]
DPeriodicCallbackModel.java53 enum Period {MINUTE, QUARTER_HOUR, HOUR, MIDNIGHT} enum in PeriodicCallbackModel
79 addPeriodicCallback(runnable, Period.MINUTE, offset); in addMinuteCallback()
88 addPeriodicCallback(runnable, Period.QUARTER_HOUR, 100L); in addQuarterHourCallback()
97 addPeriodicCallback(runnable, Period.HOUR, 100L); in addHourCallback()
106 addPeriodicCallback(runnable, Period.MIDNIGHT, 100L); in addMidnightCallback()
112 private void addPeriodicCallback(Runnable runnable, Period period, long offset) { in addPeriodicCallback()
141 static long getDelay(long now, Period period, long offset) { in getDelay()
189 private final Period mPeriod;
192 public PeriodicRunnable(Runnable delegate, Period period, long offset) { in PeriodicRunnable()
/packages/apps/DeskClock/tests/src/com/android/deskclock/uidata/
DPeriodicCallbackModelTest.java26 import static com.android.deskclock.uidata.PeriodicCallbackModel.Period.HOUR;
27 import static com.android.deskclock.uidata.PeriodicCallbackModel.Period.MIDNIGHT;
28 import static com.android.deskclock.uidata.PeriodicCallbackModel.Period.MINUTE;
29 import static com.android.deskclock.uidata.PeriodicCallbackModel.Period.QUARTER_HOUR;
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/datausage/
DDataUsageSummaryPreferenceControllerTest.java59 import java.time.Period;
372 SubscriptionPlan plan = new SubscriptionPlan.Builder(start, end, Period.ofMonths(1)) in setSubscriptionPlan()