Searched refs:mMockAlarmManager (Results 1 – 2 of 2) sorted by relevance
/packages/apps/Calendar/tests/src/com/android/calendar/alerts/ |
D | AlarmSchedulerTest.java | 45 private MockAlarmManager mMockAlarmManager; field in AlarmSchedulerTest 152 mMockAlarmManager.expectAlarmTime(AlarmManager.RTC_WAKEUP, in expectAlarmAt() 161 mMockAlarmManager = new MockAlarmManager(mContext); in setUp() 168 AlarmScheduler.scheduleNextAlarm(mIsolatedContext, mMockAlarmManager, in testNoEvents() 170 assertFalse(mMockAlarmManager.isAlarmSet()); in testNoEvents() 182 AlarmScheduler.scheduleNextAlarm(mIsolatedContext, mMockAlarmManager, BATCH_SIZE, in testNonAllDayEvent() 184 assertTrue(mMockAlarmManager.isAlarmSet()); in testNonAllDayEvent() 198 AlarmScheduler.scheduleNextAlarm(mIsolatedContext, mMockAlarmManager, BATCH_SIZE, in testAllDayEvent() 200 assertTrue(mMockAlarmManager.isAlarmSet()); in testAllDayEvent() 214 AlarmScheduler.scheduleNextAlarm(mIsolatedContext, mMockAlarmManager, BATCH_SIZE, in testAllDayAndNonAllDayEvents() [all …]
|
/packages/apps/TV/tests/unit/src/com/android/tv/dvr/ |
D | SchedulerTest.java | 55 @Mock AlarmManager mMockAlarmManager; field in SchedulerTest 66 mChannelDataManager, getContext(), mFakeClock, mMockAlarmManager); in setUp() 71 verifyZeroInteractions(mMockAlarmManager); in testUpdate_none() 82 verify(mMockAlarmManager).set( in testUpdate_nextIn12Hours()
|