Home
last modified time | relevance | path

Searched refs:setAlarmIntent (Results 1 – 2 of 2) sorted by relevance

/cts/tests/AlarmManager/src/android/alarmmanager/cts/
DBackgroundRestrictedAlarmsTest.java97 final Intent setAlarmIntent = new Intent(TestAlarmScheduler.ACTION_SET_ALARM); in scheduleAlarm() local
98 setAlarmIntent.setComponent(mAlarmScheduler); in scheduleAlarm()
99 setAlarmIntent.putExtra(TestAlarmScheduler.EXTRA_TYPE, type); in scheduleAlarm()
100 setAlarmIntent.putExtra(TestAlarmScheduler.EXTRA_TRIGGER_TIME, triggerMillis); in scheduleAlarm()
101 setAlarmIntent.putExtra(TestAlarmScheduler.EXTRA_REPEAT_INTERVAL, interval); in scheduleAlarm()
102 mContext.sendBroadcast(setAlarmIntent); in scheduleAlarm()
DAppStandbyTests.java178 final Intent setAlarmIntent = new Intent(TestAlarmScheduler.ACTION_SET_ALARM); in scheduleAlarm() local
179 setAlarmIntent.setComponent(mAlarmScheduler); in scheduleAlarm()
180 setAlarmIntent.putExtra(TestAlarmScheduler.EXTRA_TYPE, ELAPSED_REALTIME_WAKEUP); in scheduleAlarm()
181 setAlarmIntent.putExtra(TestAlarmScheduler.EXTRA_TRIGGER_TIME, triggerMillis); in scheduleAlarm()
182 setAlarmIntent.putExtra(TestAlarmScheduler.EXTRA_REPEAT_INTERVAL, interval); in scheduleAlarm()
183 setAlarmIntent.putExtra(TestAlarmScheduler.EXTRA_ALLOW_WHILE_IDLE, allowWhileIdle); in scheduleAlarm()
184 setAlarmIntent.addFlags(Intent.FLAG_RECEIVER_FOREGROUND); in scheduleAlarm()
185 mContext.sendBroadcast(setAlarmIntent); in scheduleAlarm()