/cts/hostsidetests/statsdatom/apps/alarmhelperapp/src/com/android/server/cts/device/statsdalarmhelper/ |
D | AlarmAtomTests.java | 41 private final AlarmManager mAlarmManager = sContext.getSystemService(AlarmManager.class); field in AlarmAtomTests 62 mAlarmManager.setExact(AlarmManager.ELAPSED_REALTIME_WAKEUP, in testWakeupAlarm() 82 mAlarmManager.setRepeating(AlarmManager.ELAPSED_REALTIME_WAKEUP, trigger1, 10_000, pi1); in testAlarmScheduled() 83 mAlarmManager.setWindow(AlarmManager.RTC, trigger2, 10_000, pi2); in testAlarmScheduled() 94 mAlarmManager.setExact(AlarmManager.ELAPSED_REALTIME_WAKEUP, trigger1, pi1); in testExactAlarmScheduled() 113 mAlarmManager.set(AlarmManager.RTC_WAKEUP, farTriggerRtc, "testPendingAlarmInfo", in testPendingAlarmInfo() 115 mAlarmManager.setAlarmClock(new AlarmManager.AlarmClockInfo(farTriggerRtc, activity), in testPendingAlarmInfo() 117 mAlarmManager.setExactAndAllowWhileIdle(AlarmManager.ELAPSED_REALTIME, farTriggerElapsed, in testPendingAlarmInfo() 119 mAlarmManager.setRepeating(AlarmManager.ELAPSED_REALTIME_WAKEUP, farTriggerElapsed, 60_000, in testPendingAlarmInfo() 121 mAlarmManager.setAndAllowWhileIdle(AlarmManager.ELAPSED_REALTIME, neverTriggerElapsed, in testPendingAlarmInfo()
|
/cts/tests/AlarmManager/src/android/alarmmanager/cts/ |
D | UidCapTests.java | 55 private AlarmManager mAlarmManager; field in UidCapTests 66 mAlarmManager = mContext.getSystemService(AlarmManager.class); in setUp() 77 mAlarmManager.set(ALARM_TYPES[i % ALARM_TYPES.length], Long.MAX_VALUE, pi); in sufficientAlarmsAllowedByDefault() 93 mAlarmManager.set(ALARM_TYPES[i % ALARM_TYPES.length], Long.MAX_VALUE, pi); in alarmsCannotExceedLimit() 101 mAlarmManager.set(type, Long.MAX_VALUE, lastPi); in alarmsCannotExceedLimit() 117 mAlarmManager.cancel(pi); in cancelAlarms()
|
D | InstantAppsTests.java | 52 private AlarmManager mAlarmManager; field in InstantAppsTests 59 mAlarmManager = mContext.getSystemService(AlarmManager.class); in setUp() 75 mAlarmManager.setWindow(ELAPSED_REALTIME_WAKEUP, triggerElapsed, WINDOW_LENGTH, TAG, in elapsedRealtimeAlarm() 87 mAlarmManager.setWindow(RTC_WAKEUP, triggerRtc, WINDOW_LENGTH, TAG, () -> latch.countDown(), in rtcAlarm()
|
D | TimeChangeTests.java | 64 private final AlarmManager mAlarmManager = mContext.getSystemService(AlarmManager.class); field in TimeChangeTests 91 SystemUtil.runWithShellPermissionIdentity(() -> mAlarmManager.setTime(rtcToSet)); in setTime() 122 mAlarmManager.setExact(ELAPSED_REALTIME_WAKEUP, expectedTriggerElapsed, mAlarmPi); in elapsedAlarmsUnaffected() 135 mAlarmManager.setExact(RTC_WAKEUP, expectedTriggerRtc, mAlarmPi); in rtcAlarmsRescheduled()
|
D | ExactAlarmsTest.java | 115 private final AlarmManager mAlarmManager = sContext.getSystemService(AlarmManager.class); field in ExactAlarmsTest 236 assertTrue(mAlarmManager.canScheduleExactAlarms()); in canScheduleExactAlarmWithPolicyPermission() 349 mAlarmManager.setAlarmClock(alarmClock, getAlarmSender(id, false)); in setAlarmClockWithPermission() 403 mAlarmManager.setExactAndAllowWhileIdle(AlarmManager.ELAPSED_REALTIME_WAKEUP, trigger, in setExactAwiCallbackQuota() 415 mAlarmManager.setExactAndAllowWhileIdle(AlarmManager.ELAPSED_REALTIME_WAKEUP, nextSet, in setExactAwiCallbackQuota() 433 mAlarmManager.setExactAndAllowWhileIdle(AlarmManager.ELAPSED_REALTIME_WAKEUP, now, in setExactAwiWithPermissionAndWhitelist() 448 mAlarmManager.setExactAndAllowWhileIdle(AlarmManager.ELAPSED_REALTIME_WAKEUP, now, in setExactAwiExecutorWithPermissionAndWhitelist() 489 mAlarmManager.setExactAndAllowWhileIdle(AlarmManager.ELAPSED_REALTIME_WAKEUP, trigger, in setExactAwiWithPermissionWithoutWhitelist() 499 mAlarmManager.setExactAndAllowWhileIdle(AlarmManager.ELAPSED_REALTIME_WAKEUP, nextSet, in setExactAwiWithPermissionWithoutWhitelist() 522 mAlarmManager.setAlarmClock(alarmClock, getAlarmSender(id, false)); in alarmClockGrantsWhitelist() [all …]
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/ |
D | DeviceSuspendTestActivity.java | 43 private AlarmManager mAlarmManager; field in DeviceSuspendTestActivity 58 mAlarmManager = (AlarmManager) getSystemService(ALARM_SERVICE); in activitySetUp() 228 mAlarmManager.setExact(AlarmManager.ELAPSED_REALTIME_WAKEUP, in verifyDeviceCanSuspend() 244 mAlarmManager.cancel(mPendingIntent); in verifyDeviceCanSuspend() 257 mAlarmManager.cancel(mPendingIntent); in verifyDeviceCanSuspend() 337 mAlarmManager.setExact(AlarmManager.ELAPSED_REALTIME_WAKEUP, in runAPWakeUpWhenReportLatencyExpires() 344 mAlarmManager.cancel(mPendingIntent); in runAPWakeUpWhenReportLatencyExpires() 383 mAlarmManager.setExact(AlarmManager.ELAPSED_REALTIME_WAKEUP, in runAPWakeUpWhenFIFOFull() 391 mAlarmManager.cancel(mPendingIntent); in runAPWakeUpWhenFIFOFull() 471 mAlarmManager.setExact(AlarmManager.ELAPSED_REALTIME_WAKEUP, in runAPWakeUpByAlarmNonWakeSensor() [all …]
|
D | OffBodySensorTestActivity.java | 82 private AlarmManager mAlarmManager; field in OffBodySensorTestActivity 302 mAlarmManager = (AlarmManager) getSystemService(ALARM_SERVICE); in activitySetUp() 311 mAlarmManager.setExact(AlarmManager.ELAPSED_REALTIME_WAKEUP, in startTimeoutTimer() 317 mAlarmManager.cancel(mPendingIntent); in stopTimeoutTimer()
|