Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/service/notification/
DScheduleCalendar.java127 public boolean isInSchedule(long time) { in isInSchedule() method in ScheduleCalendar
134 return isInSchedule(-1, time, start, end) || isInSchedule(0, time, start, end); in isInSchedule()
149 return (isInSchedule(-1, alarm, start, end) in isAlarmInSchedule()
150 && isInSchedule(-1, now, start, end)) in isAlarmInSchedule()
151 || (isInSchedule(0, alarm, start, end) in isAlarmInSchedule()
152 && isInSchedule(0, now, start, end)); in isAlarmInSchedule()
169 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.java60 assertFalse(mScheduleCalendar.isInSchedule(100)); in testNullScheduleInfo()
228 assertTrue(mScheduleCalendar.isInSchedule(now.getTimeInMillis())); in testShouldExitForAlarm_oldAlarm()
262 assertTrue(mScheduleCalendar.isInSchedule(calNow.getTimeInMillis())); in testShouldExitForAlarm_oldAlarmInSchedule()
263 assertTrue(mScheduleCalendar.isInSchedule(calAlarm.getTimeInMillis())); in testShouldExitForAlarm_oldAlarmInSchedule()
361 assertTrue(mScheduleCalendar.isInSchedule(cal.getTimeInMillis())); in testIsInSchedule_inScheduleOvernight()
379 assertTrue(mScheduleCalendar.isInSchedule(cal.getTimeInMillis())); in testIsInSchedule_inScheduleSingleDay()
397 assertFalse(mScheduleCalendar.isInSchedule(cal.getTimeInMillis())); in testIsInSchedule_notToday()
414 assertFalse(mScheduleCalendar.isInSchedule(cal.getTimeInMillis())); in testIsInSchedule_startingSoon()
444 assertTrue(mScheduleCalendar.isInSchedule(alarm.getTimeInMillis())); in testIsAlarmInSchedule_alarmAndNowInSchedule_sameScheduleTrigger_daylightSavings()
445 assertTrue(mScheduleCalendar.isInSchedule(now.getTimeInMillis())); in testIsAlarmInSchedule_alarmAndNowInSchedule_sameScheduleTrigger_daylightSavings()
[all …]
DScheduleConditionProviderTest.java94 assertTrue(cal.isInSchedule(now.getTimeInMillis())); in testEvaluateSubscription_noAlarmExit_InSchedule()
118 assertTrue(cal.isInSchedule(now.getTimeInMillis())); in testEvaluateSubscription_noAlarmExit_InScheduleSnoozed()
199 assertTrue(cal.isInSchedule(now.getTimeInMillis() + 1000)); in testEvaluateSubscription_alarmSetBeforeInSchedule()
228 assertTrue(cal.isInSchedule(now.getTimeInMillis() + 1000)); in testEvaluateSubscription_alarmSetInSchedule()
257 assertTrue(cal.isInSchedule(now.getTimeInMillis() + 1000)); in testEvaluateSubscription_earlierAlarmSet()
286 assertTrue(cal.isInSchedule(now.getTimeInMillis() + 500)); in testEvaluateSubscription_laterAlarmSet()
315 assertTrue(cal.isInSchedule(now.getTimeInMillis() + 500)); in testEvaluateSubscription_alarmCanceled()
/frameworks/base/services/core/java/com/android/server/notification/
DScheduleConditionProvider.java196 if (cal.isInSchedule(now)) { in evaluateSubscriptionLocked()
244 return cal != null && cal.isInSchedule(time); in meetsSchedule()
/frameworks/base/config/
Dboot-image-profile.txt13319 HSPLandroid/service/notification/ScheduleCalendar;->isInSchedule(IJJJ)Z
13320 HSPLandroid/service/notification/ScheduleCalendar;->isInSchedule(J)Z
Dhiddenapi-greylist-max-o.txt63754 Landroid/service/notification/ScheduleCalendar;->isInSchedule(IJJJ)Z
63755 Landroid/service/notification/ScheduleCalendar;->isInSchedule(J)Z