Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/service/notification/
DScheduleCalendar.java128 public boolean isInSchedule(long time) { in isInSchedule() method in ScheduleCalendar
135 return isInSchedule(-1, time, start, end) || isInSchedule(0, time, start, end); in isInSchedule()
150 return (isInSchedule(-1, alarm, start, end) in isAlarmInSchedule()
151 && isInSchedule(-1, now, start, end)) in isAlarmInSchedule()
152 || (isInSchedule(0, alarm, start, end) in isAlarmInSchedule()
153 && isInSchedule(0, now, start, end)); in isAlarmInSchedule()
170 private boolean isInSchedule(int daysOffset, long time, long start, long end) { in isInSchedule() method in ScheduleCalendar
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DScheduleCalendarTest.java61 assertFalse(mScheduleCalendar.isInSchedule(100)); in testNullScheduleInfo()
342 assertTrue(mScheduleCalendar.isInSchedule(now.getTimeInMillis())); in testShouldExitForAlarm_oldAlarm()
376 assertTrue(mScheduleCalendar.isInSchedule(calNow.getTimeInMillis())); in testShouldExitForAlarm_oldAlarmInSchedule()
377 assertTrue(mScheduleCalendar.isInSchedule(calAlarm.getTimeInMillis())); in testShouldExitForAlarm_oldAlarmInSchedule()
476 assertTrue(mScheduleCalendar.isInSchedule(cal.getTimeInMillis())); in testIsInSchedule_inScheduleOvernight()
494 assertTrue(mScheduleCalendar.isInSchedule(cal.getTimeInMillis())); in testIsInSchedule_inScheduleSingleDay()
512 assertFalse(mScheduleCalendar.isInSchedule(cal.getTimeInMillis())); in testIsInSchedule_notToday()
529 assertFalse(mScheduleCalendar.isInSchedule(cal.getTimeInMillis())); in testIsInSchedule_startingSoon()
595 assertFalse(mScheduleCalendar.isInSchedule(out1.getTimeInMillis())); in testIsInSchedule_daylightSavingsForward_startDuringChange()
596 assertTrue(mScheduleCalendar.isInSchedule(in1.getTimeInMillis())); in testIsInSchedule_daylightSavingsForward_startDuringChange()
[all …]
DScheduleConditionProviderTest.java98 assertTrue(cal.isInSchedule(now.getTimeInMillis())); in testEvaluateSubscription_noAlarmExit_InSchedule()
122 assertTrue(cal.isInSchedule(now.getTimeInMillis())); in testEvaluateSubscription_noAlarmExit_InScheduleSnoozed()
203 assertTrue(cal.isInSchedule(now.getTimeInMillis() + 1000)); in testEvaluateSubscription_alarmSetBeforeInSchedule()
232 assertTrue(cal.isInSchedule(now.getTimeInMillis() + 1000)); in testEvaluateSubscription_alarmSetInSchedule()
261 assertTrue(cal.isInSchedule(now.getTimeInMillis() + 1000)); in testEvaluateSubscription_earlierAlarmSet()
290 assertTrue(cal.isInSchedule(now.getTimeInMillis() + 1000)); in testEvaluateSubscription_laterAlarmSet()
319 assertTrue(cal.isInSchedule(now.getTimeInMillis() + 500)); in testEvaluateSubscription_alarmCanceled()
/frameworks/base/services/core/java/com/android/server/notification/
DScheduleConditionProvider.java197 if (cal.isInSchedule(now)) { in evaluateSubscriptionLocked()
251 return cal != null && cal.isInSchedule(time); in meetsSchedule()
/frameworks/base/boot/hiddenapi/
Dhiddenapi-max-target-o.txt49199 Landroid/service/notification/ScheduleCalendar;->isInSchedule(IJJJ)Z
49200 Landroid/service/notification/ScheduleCalendar;->isInSchedule(J)Z