Home
last modified time | relevance | path

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

/packages/apps/WallpaperPicker2/src/com/android/wallpaper/module/
DDefaultAlarmManagerWrapper.java27 private AlarmManager mAlarmManager; field in DefaultAlarmManagerWrapper
30 mAlarmManager = (AlarmManager) context.getSystemService(Context.ALARM_SERVICE); in DefaultAlarmManagerWrapper()
35 mAlarmManager.set(type, triggerAtMillis, operation); in set()
41 mAlarmManager.setWindow(type, windowStartMillis, windowLengthMillis, operation); in setWindow()
47 mAlarmManager.setInexactRepeating(type, triggerAtMillis, intervalMillis, operation); in setInexactRepeating()
52 mAlarmManager.cancel(operation); in cancel()
/packages/modules/ExtServices/tests/src/android/ext/services/notification/
DAgingHelperTest.java66 private AlarmManager mAlarmManager; field in AgingHelperTest
96 mContext.addMockSystemService(AlarmManager.class, mAlarmManager); in setUp()
110 verify(mAlarmManager, never()).setExactAndAllowWhileIdle(anyInt(), anyLong(), any()); in testNoSnoozingOnPost()
122 verify(mAlarmManager, times(1)).cancel(any(PendingIntent.class)); in testPostResetsSnooze()
135 verify(mAlarmManager, times(1)).setExactAndAllowWhileIdle(anyInt(), anyLong(), any()); in testSnoozingOnSeen()
148 verify(mAlarmManager, never()).setExactAndAllowWhileIdle(anyInt(), anyLong(), any()); in testNoSnoozingOnSeenUserLocked()
158 verify(mAlarmManager, never()).setExactAndAllowWhileIdle(anyInt(), anyLong(), any()); in testNoSnoozingOnSeenAlreadyLow()
/packages/providers/CalendarProvider/src/com/android/providers/calendar/
DCalendarAlarmManager.java126 private AlarmManager mAlarmManager; field in CalendarAlarmManager
134 mAlarmManager = (AlarmManager) context.getSystemService(Context.ALARM_SERVICE); in initializeWithContext()
482 mAlarmManager.set(type, triggerAtTime, operation); in set()
486 mAlarmManager.setAndAllowWhileIdle(type, triggerAtTime, operation); in setAndAllowWhileIdle()
490 mAlarmManager.setExact(type, triggerAtTime, operation); in setExact()
494 mAlarmManager.setExactAndAllowWhileIdle(type, triggerAtTime, operation); in setExactAndAllowWhileIdle()
498 mAlarmManager.cancel(operation); in cancel()
510 CalendarContract.CalendarAlerts.scheduleAlarm(mContext, mAlarmManager, alarmTime); in scheduleAlarm()
514 CalendarContract.CalendarAlerts.rescheduleMissedAlarms(cr, mContext, mAlarmManager); in rescheduleMissedAlarms()
/packages/apps/Test/connectivity/PMC/src/com/android/pmc/
DPMCMainActivity.java80 private AlarmManager mAlarmManager; field in PMCMainActivity
96 mAlarmManager = (AlarmManager) getSystemService(Context.ALARM_SERVICE); in onCreate()
103 mBleScanReceiver = new BleScanReceiver(this, mAlarmManager); in onCreate()
104 mGattPMCReceiver = new GattPMCReceiver(this, mAlarmManager); in onCreate()
105 mA2dpReceiver = new A2dpReceiver(this, mAlarmManager); in onCreate()
203 mAlarmManager, mPIDownload); in startDownloadFile()
227 mConnSR = new WifiConnScanReceiver(this, mIntervalMillis, mAlarmManager, mPIConnScan); in startConnectivityScan()
264 this, scanSettings, mIntervalMillis, mAlarmManager, mPIGScan); in startGscan()
DWifiConnScanReceiver.java26 private AlarmManager mAlarmManager; field in WifiConnScanReceiver
34 mAlarmManager = alarmManager; in WifiConnScanReceiver()
67 mAlarmManager.setAndAllowWhileIdle(AlarmManager.ELAPSED_REALTIME_WAKEUP, in scheduleConnScan()
75 mAlarmManager.cancel(mAlarmIntent); in cancelConnScan()
DWifiGScanReceiver.java31 private AlarmManager mAlarmManager; field in WifiGScanReceiver
41 mAlarmManager = alarmManager; in WifiGScanReceiver()
73 mAlarmManager.setAndAllowWhileIdle(AlarmManager.ELAPSED_REALTIME_WAKEUP, in scheduleGscan()
81 mAlarmManager.cancel(mAlarmIntent); in cancelGScan()
DWifiDownloadReceiver.java31 private AlarmManager mAlarmManager; field in WifiDownloadReceiver
42 mAlarmManager = alarmManager; in WifiDownloadReceiver()
77 mAlarmManager.setAndAllowWhileIdle(AlarmManager.ELAPSED_REALTIME_WAKEUP, in scheduleDownload()
85 mAlarmManager.cancel(mAlarmIntent); in cancelDownload()
DBleScanReceiver.java48 private final AlarmManager mAlarmManager; field in BleScanReceiver
146 mAlarmManager.setExactAndAllowWhileIdle( in firstAlarm()
180 mAlarmManager.setExactAndAllowWhileIdle( in repeatAlarm()
236 mAlarmManager = alarmManager; in BleScanReceiver()
DGattClientListener.java55 private final AlarmManager mAlarmManager; field in GattClientListener
77 mAlarmManager = alarmManager; in GattClientListener()
135 mAlarmManager.setExactAndAllowWhileIdle( in startAlarm()
DA2dpReceiver.java55 private final AlarmManager mAlarmManager; field in A2dpReceiver
107 mAlarmManager = alarmManager; in A2dpReceiver()
389 mAlarmManager.setExactAndAllowWhileIdle( in startAlarm()
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/
DSaRecord.java525 private final AlarmManager mAlarmManager; field in SaRecord.SaLifetimeAlarmScheduler
535 mAlarmManager = alarmManager; in SaLifetimeAlarmScheduler()
546 mAlarmManager.setExact( in scheduleLifetimeExpiryAlarm()
550 mAlarmManager.setExactAndAllowWhileIdle( in scheduleLifetimeExpiryAlarm()
566 mAlarmManager.setExactAndAllowWhileIdle( in rescheduleRekey()
573 mAlarmManager.cancel(mDeleteSaIntent); in cancelLifetimeExpiryAlarm()
574 mAlarmManager.cancel(mRekeySaIntent); in cancelLifetimeExpiryAlarm()
DIkeSessionStateMachine.java358 private final AlarmManager mAlarmManager; field in IkeSessionStateMachine
533 mAlarmManager = (AlarmManager) context.getSystemService(Context.ALARM_SERVICE); in IkeSessionStateMachine()
635 mAlarmManager, in registerChildSessionCallback()
1114 mAlarmManager.setExactAndAllowWhileIdle( in enterState()
1124 mAlarmManager.cancel(mDpdIntent); in exitState()
1261 mAlarmManager); in buildSaLifetimeAlarmScheduler()
DChildSessionStateMachine.java158 private final AlarmManager mAlarmManager; field in ChildSessionStateMachine
258 mAlarmManager = alarmManager; in ChildSessionStateMachine()
883 mAlarmManager); in buildSaLifetimeAlarmSched()
/packages/modules/NetworkStack/src/android/net/ip/
DIpClientLinkObserver.java115 private final AlarmManager mAlarmManager; field in IpClientLinkObserver
134 mAlarmManager = (AlarmManager) context.getSystemService(Context.ALARM_SERVICE); in IpClientLinkObserver()
335 mAlarmManager.cancel(mExpirePref64Alarm); in cancelPref64Alarm()
342 mAlarmManager.setExact(AlarmManager.ELAPSED_REALTIME_WAKEUP, mNat64PrefixExpiry, tag, in schedulePref64Alarm()
/packages/apps/DeskClock/src/com/android/deskclock/data/
DTimerModel.java71 private final AlarmManager mAlarmManager; field in TimerModel
141 mAlarmManager = (AlarmManager) mContext.getSystemService(Context.ALARM_SERVICE); in TimerModel()
684 mAlarmManager.cancel(pi); in updateAlarmManager()
691 schedulePendingIntent(mAlarmManager, nextExpiringTimer.getExpirationTime(), pi); in updateAlarmManager()
DTimerModel.kt59 private val mAlarmManager = mContext.getSystemService(Context.ALARM_SERVICE) as AlarmManager constant
639 mAlarmManager.cancel(pi) in updateAlarmManager()
646 schedulePendingIntent(mAlarmManager, nextExpiringTimer.expirationTime, pi) in updateAlarmManager()
/packages/apps/Bluetooth/src/com/android/bluetooth/sap/
DSapService.java89 private AlarmManager mAlarmManager = null; field in SapService
734 mAlarmManager.set(AlarmManager.RTC_WAKEUP, in setUserTimeoutAlarm()
742 if (mAlarmManager == null) { in cancelUserTimeoutAlarm()
743 mAlarmManager = (AlarmManager) this.getSystemService(Context.ALARM_SERVICE); in cancelUserTimeoutAlarm()
748 mAlarmManager.cancel(sender); in cancelUserTimeoutAlarm()
/packages/apps/TV/src/com/android/tv/dvr/recorder/
DRecordingScheduler.java83 private final AlarmManager mAlarmManager; field in RecordingScheduler
157 mAlarmManager = alarmManager; in RecordingScheduler()
327 mAlarmManager.setExactAndAllowWhileIdle(AlarmManager.RTC_WAKEUP, wakeAt, alarmIntent); in updateNextAlarm()
/packages/apps/Bluetooth/src/com/android/bluetooth/gatt/
DScanManager.java533 private AlarmManager mAlarmManager; field in ScanManager.ScanNative
540 mAlarmManager = (AlarmManager) mService.getSystemService(Context.ALARM_SERVICE); in ScanNative()
787 mAlarmManager.cancel(mBatchScanIntervalIntent); in setBatchAlarm()
796 mAlarmManager.setWindow(AlarmManager.ELAPSED_REALTIME_WAKEUP, windowStartMillis, in setBatchAlarm()
901 mAlarmManager.cancel(mBatchScanIntervalIntent); in cleanup()
/packages/apps/Bluetooth/src/com/android/bluetooth/map/
DBluetoothMapService.java137 private AlarmManager mAlarmManager = null; field in BluetoothMapService
948 if (mAlarmManager == null) { in setUserTimeoutAlarm()
949 mAlarmManager = (AlarmManager) this.getSystemService(Context.ALARM_SERVICE); in setUserTimeoutAlarm()
954 mAlarmManager.set(AlarmManager.RTC_WAKEUP, in setUserTimeoutAlarm()
/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/
DAdapterService.java213 private AlarmManager mAlarmManager; field in AdapterService
451 mAlarmManager = (AlarmManager) getSystemService(Context.ALARM_SERVICE); in onCreate()
712 mAlarmManager.cancel(mPendingAlarm); in cleanup()
2767 mAlarmManager.cancel(mPendingAlarm); in setWakeAlarm()
2777 mAlarmManager.setExact(type, wakeupTime, mPendingAlarm); in setWakeAlarm()