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.java123 final Intent setAlarmIntent = new Intent(TestAlarmScheduler.ACTION_SET_ALARM); in scheduleAlarm() local
124 setAlarmIntent.setComponent(mAlarmScheduler); in scheduleAlarm()
125 setAlarmIntent.putExtra(TestAlarmScheduler.EXTRA_TYPE, type); in scheduleAlarm()
126 setAlarmIntent.putExtra(TestAlarmScheduler.EXTRA_TRIGGER_TIME, triggerMillis); in scheduleAlarm()
127 setAlarmIntent.putExtra(TestAlarmScheduler.EXTRA_REPEAT_INTERVAL, interval); in scheduleAlarm()
128 setAlarmIntent.addFlags(Intent.FLAG_RECEIVER_FOREGROUND); in scheduleAlarm()
129 mContext.sendBroadcast(setAlarmIntent); in scheduleAlarm()
DAppStandbyTests.java156 final Intent setAlarmIntent = new Intent(TestAlarmScheduler.ACTION_SET_ALARM); in scheduleAlarm() local
157 setAlarmIntent.setComponent(mAlarmScheduler); in scheduleAlarm()
158 setAlarmIntent.putExtra(TestAlarmScheduler.EXTRA_TYPE, ELAPSED_REALTIME_WAKEUP); in scheduleAlarm()
159 setAlarmIntent.putExtra(TestAlarmScheduler.EXTRA_TRIGGER_TIME, triggerMillis); in scheduleAlarm()
160 setAlarmIntent.putExtra(TestAlarmScheduler.EXTRA_WINDOW_LENGTH, MIN_WINDOW); in scheduleAlarm()
161 setAlarmIntent.putExtra(TestAlarmScheduler.EXTRA_REPEAT_INTERVAL, interval); in scheduleAlarm()
162 setAlarmIntent.addFlags(Intent.FLAG_RECEIVER_FOREGROUND); in scheduleAlarm()
164 sContext.sendOrderedBroadcast(setAlarmIntent, null, new BroadcastReceiver() { in scheduleAlarm()