Home
last modified time | relevance | path

Searched refs:mAlarmManager (Results 1 – 20 of 20) 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/apps/Car/Settings/tests/robotests/src/com/android/car/settings/datetime/
DTimeZonePickerScreenPreferenceControllerTest.java57 private AlarmManager mAlarmManager; field in TimeZonePickerScreenPreferenceControllerTest
69 mController.mAlarmManager = mAlarmManager; in setUp()
96 verify(mAlarmManager).setTimeZone("testKey"); in testOnPreferenceClick_setTimeZoneCalled()
/packages/apps/Car/Settings/src/com/android/car/settings/datetime/
DTimeZonePickerScreenPreferenceController.java46 AlarmManager mAlarmManager; field in TimeZonePickerScreenPreferenceController
51 mAlarmManager = (AlarmManager) getContext().getSystemService(Context.ALARM_SERVICE); in TimeZonePickerScreenPreferenceController()
93 mAlarmManager.setTimeZone(timeZone.get(ZoneGetter.KEY_ID).toString()); in createTimeZonePreference()
/packages/apps/Settings/tests/unit/src/com/android/settings/wifi/tether/
DTetherServiceTest.java95 @Mock private AlarmManager mAlarmManager; field in TetherServiceTest
194 verify(mAlarmManager).setRepeating(eq(AlarmManager.ELAPSED_REALTIME), anyLong(), in testScheduleRechecks()
264 verify(mAlarmManager).cancel(mPiCaptor.capture()); in testCancelAlarm()
391 return mAlarmManager; in getSystemService()
/packages/apps/Bluetooth/src/com/android/bluetooth/sap/
DSapService.java89 private AlarmManager mAlarmManager = null; field in SapService
701 mAlarmManager.set(AlarmManager.RTC_WAKEUP, in setUserTimeoutAlarm()
709 if (mAlarmManager == null) { in cancelUserTimeoutAlarm()
710 mAlarmManager = (AlarmManager) this.getSystemService(Context.ALARM_SERVICE); in cancelUserTimeoutAlarm()
715 mAlarmManager.cancel(sender); in cancelUserTimeoutAlarm()
/packages/apps/Settings/tests/robotests/src/com/android/settings/datetime/
DDatePreferenceControllerTest.java43 private AlarmManager mAlarmManager; field in DatePreferenceControllerTest
55 when(mContext.getSystemService(Context.ALARM_SERVICE)).thenReturn(mAlarmManager); in setUp()
/packages/apps/DeskClock/src/com/android/deskclock/data/
DTimerModel.java70 private final AlarmManager mAlarmManager; field in TimerModel
140 mAlarmManager = (AlarmManager) mContext.getSystemService(Context.ALARM_SERVICE); in TimerModel()
683 mAlarmManager.cancel(pi); in updateAlarmManager()
690 schedulePendingIntent(mAlarmManager, nextExpiringTimer.getExpirationTime(), pi); in updateAlarmManager()
/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.java529 private AlarmManager mAlarmManager; field in ScanManager.ScanNative
536 mAlarmManager = (AlarmManager) mService.getSystemService(Context.ALARM_SERVICE); in ScanNative()
783 mAlarmManager.cancel(mBatchScanIntervalIntent); in setBatchAlarm()
792 mAlarmManager.setWindow(AlarmManager.ELAPSED_REALTIME_WAKEUP, windowStartMillis, in setBatchAlarm()
897 mAlarmManager.cancel(mBatchScanIntervalIntent); in cleanup()
/packages/apps/Bluetooth/src/com/android/bluetooth/map/
DBluetoothMapService.java131 private AlarmManager mAlarmManager = null; field in BluetoothMapService
889 if (mAlarmManager == null) { in setUserTimeoutAlarm()
890 mAlarmManager = (AlarmManager) this.getSystemService(Context.ALARM_SERVICE); in setUserTimeoutAlarm()
895 mAlarmManager.set(AlarmManager.RTC_WAKEUP, in setUserTimeoutAlarm()
/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/
DAdapterService.java186 private AlarmManager mAlarmManager; field in AdapterService
404 mAlarmManager = (AlarmManager) getSystemService(Context.ALARM_SERVICE); in onCreate()
674 mAlarmManager.cancel(mPendingAlarm); in cleanup()
2592 mAlarmManager.cancel(mPendingAlarm); in setWakeAlarm()
2602 mAlarmManager.setExact(type, wakeupTime, mPendingAlarm); in setWakeAlarm()