Home
last modified time | relevance | path

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

/cts/tests/AlarmManager/src/android/alarmmanager/cts/
DBackgroundRestrictedAlarmsTest.java29 import android.alarmmanager.alarmtestapp.cts.TestAlarmScheduler;
123 final Intent setAlarmIntent = new Intent(TestAlarmScheduler.ACTION_SET_ALARM); 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()
135 final Intent setAlarmClockIntent = new Intent(TestAlarmScheduler.ACTION_SET_ALARM_CLOCK) in scheduleAlarmClock()
137 .putExtra(TestAlarmScheduler.EXTRA_TEST_FGS, true) in scheduleAlarmClock()
138 .putExtra(TestAlarmScheduler.EXTRA_ALARM_CLOCK_INFO, alarmInfo); in scheduleAlarmClock()
213 final Intent cancelAlarmsIntent = new Intent(TestAlarmScheduler.ACTION_CANCEL_ALL_ALARMS); in tearDown()
DAppStandbyTests.java28 import android.alarmmanager.alarmtestapp.cts.TestAlarmScheduler;
156 final Intent setAlarmIntent = new Intent(TestAlarmScheduler.ACTION_SET_ALARM); 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()
256 final Intent cancelAlarmsIntent = new Intent(TestAlarmScheduler.ACTION_CANCEL_ALL_ALARMS); in tearDown()
DExactAlarmsTest.java29 import android.alarmmanager.alarmtestapp.cts.TestAlarmScheduler;
292 final Intent requestToTestApp = new Intent(TestAlarmScheduler.ACTION_SET_ALARM_CLOCK) in setAlarmClockForFgs()
293 .setClassName(testAppName, TestAlarmScheduler.class.getName()) in setAlarmClockForFgs()
294 .putExtra(TestAlarmScheduler.EXTRA_ALARM_CLOCK_INFO, alarmInfo) in setAlarmClockForFgs()
295 .putExtra(TestAlarmScheduler.EXTRA_TEST_FGS, true) in setAlarmClockForFgs()
/cts/tests/AlarmManager/app/src/android/alarmmanager/alarmtestapp/cts/
DTestAlarmScheduler.java32 public class TestAlarmScheduler extends BroadcastReceiver { class
33 private static final String TAG = TestAlarmScheduler.class.getSimpleName();
DTestAlarmReceiver.java46 if (intent.getBooleanExtra(TestAlarmScheduler.EXTRA_TEST_FGS, false)) { in onReceive()