Home
last modified time | relevance | path

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

/cts/tests/AlarmManager/src/android/alarmmanager/cts/
DUidCapTests.java55 private AlarmManager mAlarmManager; field in UidCapTests
62 mAlarmManager = mContext.getSystemService(AlarmManager.class); in setUp()
72 mAlarmManager.set(ALARM_TYPES[i % ALARM_TYPES.length], Long.MAX_VALUE, pi); in sufficientAlarmsAllowedByDefault()
88 mAlarmManager.set(ALARM_TYPES[i % ALARM_TYPES.length], Long.MAX_VALUE, pi); in alarmsCannotExceedLimit()
96 mAlarmManager.set(type, Long.MAX_VALUE, lastPi); in alarmsCannotExceedLimit()
113 mAlarmManager.cancel(pi); in cancelAlarms()
DInstantAppsTests.java48 private AlarmManager mAlarmManager; field in InstantAppsTests
54 mAlarmManager = mContext.getSystemService(AlarmManager.class); in setUp()
64 mAlarmManager.setExact(AlarmManager.ELAPSED_REALTIME, triggerElapsed, TAG, in elapsedRealtimeAlarm()
75 mAlarmManager.setExact(AlarmManager.RTC, triggerRtc, TAG, () -> latch.countDown(), null); in rtcAlarm()
DTimeChangeTests.java58 private final AlarmManager mAlarmManager = mContext.getSystemService(AlarmManager.class); field in TimeChangeTests
83 SystemUtil.runWithShellPermissionIdentity(() -> mAlarmManager.setTime(rtcToSet)); in setTime()
105 mAlarmManager.setExactAndAllowWhileIdle(AlarmManager.ELAPSED_REALTIME_WAKEUP, in elapsedAlarmsUnaffected()
119 mAlarmManager.setExactAndAllowWhileIdle(AlarmManager.RTC_WAKEUP, expectedTriggerRtc, in rtcAlarmsRescheduled()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/
DDeviceSuspendTestActivity.java63 private AlarmManager mAlarmManager; field in DeviceSuspendTestActivity
79 mAlarmManager = (AlarmManager) getSystemService(ALARM_SERVICE); in activitySetUp()
248 mAlarmManager.setExact(AlarmManager.ELAPSED_REALTIME_WAKEUP, in verifyDeviceCanSuspend()
264 mAlarmManager.cancel(mPendingIntent); in verifyDeviceCanSuspend()
277 mAlarmManager.cancel(mPendingIntent); in verifyDeviceCanSuspend()
357 mAlarmManager.setExact(AlarmManager.ELAPSED_REALTIME_WAKEUP, in runAPWakeUpWhenReportLatencyExpires()
364 mAlarmManager.cancel(mPendingIntent); in runAPWakeUpWhenReportLatencyExpires()
403 mAlarmManager.setExact(AlarmManager.ELAPSED_REALTIME_WAKEUP, in runAPWakeUpWhenFIFOFull()
411 mAlarmManager.cancel(mPendingIntent); in runAPWakeUpWhenFIFOFull()
498 mAlarmManager.setExact(AlarmManager.ELAPSED_REALTIME_WAKEUP, in runAPWakeUpByAlarmNonWakeSensor()
[all …]
DOffBodySensorTestActivity.java82 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()