Home
last modified time | relevance | path

Searched refs:AlarmManager (Results 1 – 25 of 37) sorted by relevance

12

/frameworks/base/core/tests/coretests/src/android/app/activity/
DSetTimeZonePermissionsTest.java19 import android.app.AlarmManager;
30 private AlarmManager mAlarm;
38 mAlarm = (AlarmManager) mContext.getSystemService(Context.ALARM_SERVICE); in setUp()
/frameworks/base/services/java/com/android/server/
DAlarmManagerService.java21 import android.app.AlarmManager;
61 private static final int RTC_WAKEUP_MASK = 1 << AlarmManager.RTC_WAKEUP;
62 private static final int RTC_MASK = 1 << AlarmManager.RTC;
63 …private static final int ELAPSED_REALTIME_WAKEUP_MASK = 1 << AlarmManager.ELAPSED_REALTIME_WAKEUP;
64 private static final int ELAPSED_REALTIME_MASK = 1 << AlarmManager.ELAPSED_REALTIME;
68 private static final long QUANTUM = AlarmManager.INTERVAL_FIFTEEN_MINUTES;
209 final boolean isRtc = (type == AlarmManager.RTC || type == AlarmManager.RTC_WAKEUP); in setInexactRepeating()
347 case AlarmManager.RTC_WAKEUP: return mRtcWakeupAlarms; in getAlarmList()
348 case AlarmManager.RTC: return mRtcAlarms; in getAlarmList()
349 case AlarmManager.ELAPSED_REALTIME_WAKEUP: return mElapsedRealtimeWakeupAlarms; in getAlarmList()
[all …]
DNetworkTimeUpdateService.java19 import android.app.AlarmManager;
84 private AlarmManager mAlarmManager;
97 mAlarmManager = (AlarmManager) mContext.getSystemService(Context.ALARM_SERVICE); in NetworkTimeUpdateService()
204 mAlarmManager.set(AlarmManager.ELAPSED_REALTIME, next, mPendingPollIntent); in resetAlarm()
DUiModeManagerService.java21 import android.app.AlarmManager;
103 private AlarmManager mAlarmManager;
316 (AlarmManager)mContext.getSystemService(Context.ALARM_SERVICE); in UiModeManagerService()
786 mAlarmManager.set(AlarmManager.RTC_WAKEUP, nextUpdate, pendingIntent); in updateTwilightLocked()
DWifiService.java19 import android.app.AlarmManager;
95 private AlarmManager mAlarmManager;
365 mAlarmManager = (AlarmManager)mContext.getSystemService(Context.ALARM_SERVICE); in WifiService()
963 mAlarmManager.set(AlarmManager.RTC_WAKEUP, triggerTime, mIdleIntent);
973 mAlarmManager.set(AlarmManager.RTC_WAKEUP, triggerTime, mIdleIntent);
1001 mAlarmManager.set(AlarmManager.RTC_WAKEUP, triggerTime, mIdleIntent);
DWatchdog.java21 import android.app.AlarmManager;
302 mAlarm.set(AlarmManager.RTC_WAKEUP, realStartTime, mRebootIntent); in checkReboot()
DThrottleService.java19 import android.app.AlarmManager;
109 private AlarmManager mAlarmManager;
152 mAlarmManager = (AlarmManager)mContext.getSystemService(Context.ALARM_SERVICE); in ThrottleService()
569 mAlarmManager.set(AlarmManager.ELAPSED_REALTIME, next, mPendingPollIntent); in onPollAlarm()
775 mAlarmManager.set(AlarmManager.ELAPSED_REALTIME, in onResetAlarm()
DAppWidgetService.java19 import android.app.AlarmManager;
165 AlarmManager mAlarmManager;
180 mAlarmManager = (AlarmManager)mContext.getSystemService(Context.ALARM_SERVICE); in AppWidgetService()
1004 mAlarmManager.setInexactRepeating(AlarmManager.ELAPSED_REALTIME_WAKEUP, in registerForBroadcastsLocked()
DDevicePolicyManagerService.java31 import android.app.AlarmManager;
488 AlarmManager am = (AlarmManager) context.getSystemService(Context.ALARM_SERVICE); in setExpirationAlarmCheckLocked()
494 am.set(AlarmManager.RTC, alarmTime, pi); in setExpirationAlarmCheckLocked()
DBackupManagerService.java20 import android.app.AlarmManager;
145 private static final long BACKUP_INTERVAL = AlarmManager.INTERVAL_HOUR;
152 private static final long FIRST_BACKUP_INTERVAL = 12 * AlarmManager.INTERVAL_HOUR;
190 private AlarmManager mAlarmManager;
663 mAlarmManager = (AlarmManager) context.getSystemService(Context.ALARM_SERVICE); in BackupManagerService()
1262 mAlarmManager.set(AlarmManager.RTC_WAKEUP, in registerTransport()
4678 mAlarmManager.set(AlarmManager.RTC_WAKEUP, in run()
5123 mAlarmManager.set(AlarmManager.RTC_WAKEUP, System.currentTimeMillis(), in setBackupEnabled()
5176 mAlarmManager.setRepeating(AlarmManager.RTC_WAKEUP, when, in startBackupAlarmsLocked()
/frameworks/base/core/java/android/app/
DAlarmManager.java55 public class AlarmManager class
90 AlarmManager(IAlarmManager service) { in AlarmManager() method in AlarmManager
/frameworks/base/core/java/android/net/
DDhcpStateMachine.java23 import android.app.AlarmManager;
61 private AlarmManager mAlarmManager;
117 mAlarmManager = (AlarmManager)mContext.getSystemService(Context.ALARM_SERVICE); in DhcpStateMachine()
361 mAlarmManager.set(AlarmManager.ELAPSED_REALTIME_WAKEUP, in runDhcp()
/frameworks/base/voip/java/com/android/server/sip/
DSipWakeupTimer.java19 import android.app.AlarmManager;
53 private AlarmManager mAlarmManager;
65 mAlarmManager = (AlarmManager) in SipWakeupTimer()
231 mAlarmManager.set(AlarmManager.ELAPSED_REALTIME_WAKEUP, in scheduleNext()
/frameworks/base/telephony/java/com/android/internal/telephony/cdma/
DCdmaDataConnectionTracker.java19 import android.app.AlarmManager;
272 AlarmManager am = in cleanUpConnection()
273 (AlarmManager) mPhone.getContext().getSystemService(Context.ALARM_SERVICE); in cleanUpConnection()
526 AlarmManager am = in startAlarmForReconnect()
527 (AlarmManager) mPhone.getContext().getSystemService(Context.ALARM_SERVICE); in startAlarmForReconnect()
532 am.set(AlarmManager.ELAPSED_REALTIME_WAKEUP, in startAlarmForReconnect()
DCdmaServiceStateTracker.java30 import android.app.AlarmManager;
1438 AlarmManager alarm = in setAndBroadcastNetworkSetTimeZone()
1439 (AlarmManager) phone.getContext().getSystemService(Context.ALARM_SERVICE); in setAndBroadcastNetworkSetTimeZone()
/frameworks/base/policy/src/com/android/internal/policy/impl/
DKeyguardViewMediator.java25 import android.app.AlarmManager;
158 private AlarmManager mAlarmManager;
290 mAlarmManager = (AlarmManager) context in KeyguardViewMediator()
403 mAlarmManager.set(AlarmManager.ELAPSED_REALTIME_WAKEUP, when, in onScreenTurnedOff()
/frameworks/base/telephony/java/com/android/internal/telephony/
DMccTable.java20 import android.app.AlarmManager;
219 AlarmManager alarm = in setTimezoneFromMccIfNeeded()
220 (AlarmManager) context.getSystemService(Context.ALARM_SERVICE); in setTimezoneFromMccIfNeeded()
/frameworks/base/core/java/android/provider/
DCalendarContract.java22 import android.app.AlarmManager;
2116 Context context, AlarmManager manager) { in rescheduleMissedAlarms()
2171 public static void scheduleAlarm(Context context, AlarmManager manager, long alarmTime) { in scheduleAlarm()
2180 manager = (AlarmManager) context.getSystemService(Context.ALARM_SERVICE); in scheduleAlarm()
2187 manager.set(AlarmManager.RTC_WAKEUP, alarmTime, pi); in scheduleAlarm()
/frameworks/base/services/java/com/android/server/location/
DGpsLocationProvider.java19 import android.app.AlarmManager;
279 private final AlarmManager mAlarmManager;
392 mAlarmManager = (AlarmManager)mContext.getSystemService(Context.ALARM_SERVICE); in GpsLocationProvider()
1009 mAlarmManager.set(AlarmManager.ELAPSED_REALTIME_WAKEUP, in startNavigating()
1037 mAlarmManager.set(AlarmManager.ELAPSED_REALTIME_WAKEUP, in hibernate()
/frameworks/base/telephony/java/com/android/internal/telephony/gsm/
DGsmDataConnectionTracker.java19 import android.app.AlarmManager;
854 AlarmManager am = in cancelReconnectAlarm()
855 (AlarmManager) mPhone.getContext().getSystemService(Context.ALARM_SERVICE); in cancelReconnectAlarm()
1552 AlarmManager am = in startAlarmForReconnect()
1553 (AlarmManager) mPhone.getContext().getSystemService(Context.ALARM_SERVICE); in startAlarmForReconnect()
1564 am.set(AlarmManager.ELAPSED_REALTIME_WAKEUP, in startAlarmForReconnect()
DGsmServiceStateTracker.java32 import android.app.AlarmManager;
1490 AlarmManager alarm = in setAndBroadcastNetworkSetTimeZone()
1491 (AlarmManager) phone.getContext().getSystemService(Context.ALARM_SERVICE); in setAndBroadcastNetworkSetTimeZone()
/frameworks/base/services/tests/servicestests/src/com/android/server/
DNetworkStatsServiceTest.java49 import android.app.AlarmManager;
778 eq(AlarmManager.ELAPSED_REALTIME), anyLong(), anyLong(), isA(PendingIntent.class)); in expectSystemReady()
/frameworks/base/wifi/java/android/net/wifi/
DWifiStateMachine.java40 import android.app.AlarmManager;
173 private AlarmManager mAlarmManager;
529 mAlarmManager = (AlarmManager)mContext.getSystemService(Context.ALARM_SERVICE); in WifiStateMachine()
3074 mAlarmManager.setRepeating(AlarmManager.RTC_WAKEUP, in setScanAlarm()
/frameworks/base/core/java/android/content/
DSyncManager.java27 import android.app.AlarmManager;
137 private AlarmManager mAlarmService = null;
397 mAlarmService = (AlarmManager)mContext.getSystemService(Context.ALARM_SERVICE); in ensureAlarmService()
2349 mAlarmService.set(AlarmManager.ELAPSED_REALTIME_WAKEUP, alarmTime, in manageSyncAlarmLocked()
/frameworks/base/docs/html/sdk/api_diff/3/
DmissingSinces.txt415 NO DOC BLOCK: android.app.AlarmManager Method setInexactRepeating(int, long, long, android.app.Pend…
640 NO DOC BLOCK: android.app.AlarmManager Field INTERVAL_DAY
641 NO DOC BLOCK: android.app.AlarmManager Field INTERVAL_FIFTEEN_MINUTES
642 NO DOC BLOCK: android.app.AlarmManager Field INTERVAL_HALF_DAY
643 NO DOC BLOCK: android.app.AlarmManager Field INTERVAL_HALF_HOUR
644 NO DOC BLOCK: android.app.AlarmManager Field INTERVAL_HOUR

12