/developers/build/prebuilts/gradle/RepeatingAlarm/RepeatingAlarmSample/src/main/java/com/example/android/repeatingalarm/ |
RepeatingAlarmFragment.java | 19 import android.app.AlarmManager; 78 int alarmType = AlarmManager.ELAPSED_REALTIME; 81 // The AlarmManager, like most system services, isn't created by application code, but 83 AlarmManager alarmManager = (AlarmManager) 89 alarmManager.setRepeating(alarmType, SystemClock.elapsedRealtime() + FIFTEEN_SEC_MILLIS,
|
/developers/samples/android/background/alarms/RepeatingAlarm/RepeatingAlarmSample/src/main/java/com/example/android/repeatingalarm/ |
RepeatingAlarmFragment.java | 19 import android.app.AlarmManager; 78 int alarmType = AlarmManager.ELAPSED_REALTIME; 81 // The AlarmManager, like most system services, isn't created by application code, but 83 AlarmManager alarmManager = (AlarmManager) 89 alarmManager.setRepeating(alarmType, SystemClock.elapsedRealtime() + FIFTEEN_SEC_MILLIS,
|
/development/samples/browseable/repeatingAlarm/src/com.example.android.repeatingalarm/ |
RepeatingAlarmFragment.java | 19 import android.app.AlarmManager; 78 int alarmType = AlarmManager.ELAPSED_REALTIME; 81 // The AlarmManager, like most system services, isn't created by application code, but 83 AlarmManager alarmManager = (AlarmManager) 89 alarmManager.setRepeating(alarmType, SystemClock.elapsedRealtime() + FIFTEEN_SEC_MILLIS,
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/research/ |
UploaderService.java | 19 import android.app.AlarmManager; 34 public static final long RUN_INTERVAL = AlarmManager.INTERVAL_HOUR; 80 final AlarmManager alarmManager = (AlarmManager) context.getSystemService( 82 alarmManager.cancel(pendingIntent); 84 alarmManager.set(AlarmManager.ELAPSED_REALTIME_WAKEUP, SystemClock.elapsedRealtime()
|
/packages/apps/Settings/src/com/android/settings/bluetooth/ |
BluetoothDiscoverableTimeoutReceiver.java | 20 import android.app.AlarmManager; 44 AlarmManager alarmManager = 45 (AlarmManager) context.getSystemService (Context.ALARM_SERVICE); 49 alarmManager.cancel(pending); 55 alarmManager.set(AlarmManager.RTC_WAKEUP, alarmTime, pending); 67 AlarmManager alarmManager = 68 (AlarmManager) context.getSystemService (Context.ALARM_SERVICE) [all...] |
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/personalization/ |
DictionaryDecayBroadcastReciever.java | 19 import android.app.AlarmManager; 49 AlarmManager alarmManager = (AlarmManager)context.getSystemService(Context.ALARM_SERVICE); 55 if (null != alarmManager) alarmManager.setInexactRepeating(AlarmManager.RTC,
|
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/ |
CellBroadcastAlertReminder.java | 19 import android.app.AlarmManager; 137 AlarmManager alarmManager = (AlarmManager) context.getSystemService(Context.ALARM_SERVICE); 138 if (alarmManager == null) { 145 alarmManager.set(AlarmManager.ELAPSED_REALTIME_WAKEUP, triggerTime, sPlayReminderIntent);
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/dictionarypack/ |
DictionaryService.java | 19 import android.app.AlarmManager; 195 AlarmManager alarmManager = (AlarmManager)context.getSystemService(Context.ALARM_SERVICE); 208 if (null != alarmManager) alarmManager.set(AlarmManager.RTC, alarmTime, pendingIntent);
|
/external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/ |
AlarmManagerTest.java | 5 import android.app.AlarmManager; 26 private AlarmManager alarmManager; 32 alarmManager = (AlarmManager) activity.getSystemService(Context.ALARM_SERVICE); 33 shadowAlarmManager = Robolectric.shadowOf(alarmManager); 43 alarmManager.set(AlarmManager.ELAPSED_REALTIME, 0, PendingIntent.getActivity(activity, 0, new Intent(activity, activity.getClass()), 0)); 52 alarmManager.setRepeating(AlarmManager.ELAPSED_REALTIME, 0, AlarmManager.INTERVAL_HOUR [all...] |
/packages/apps/DeskClock/src/com/android/alarmclock/ |
DigitalAppWidgetProvider.java | 19 import android.app.AlarmManager; 54 // Lazily creating this intent to use with the AlarmManager 227 AlarmManager alarmManager = ((AlarmManager) context 230 alarmManager.setExact(AlarmManager.RTC, onQuarterHour, quarterlyIntent); 232 alarmManager.set(AlarmManager.RTC, onQuarterHour, quarterlyIntent); 252 ((AlarmManager) context.getSystemService(Context.ALARM_SERVICE)).cancel [all...] |
/cts/tests/tests/permission/src/android/permission/cts/ |
NoSystemFunctionPermissionTest.java | 21 import android.app.AlarmManager; 58 * Verify that AlarmManager.setTimeZone() requires permissions. 64 AlarmManager alarmManager = (AlarmManager) mContext.getSystemService( 70 alarmManager.setTimeZone(timeZone); 71 fail("AlarmManager.setTimeZone() did not throw SecurityException as expected.");
|
/packages/apps/DeskClock/src/com/android/deskclock/timer/ |
TimerReceiver.java | 19 import android.app.AlarmManager; 204 // Tell AlarmManager to send a "Time's up" message to this receiver when this timer expires. 217 AlarmManager mngr = (AlarmManager)context.getSystemService(Context.ALARM_SERVICE); 222 mngr.setExact(AlarmManager.ELAPSED_REALTIME_WAKEUP, nextTimesup, p); 224 mngr.set(AlarmManager.ELAPSED_REALTIME_WAKEUP, nextTimesup, p); 313 AlarmManager alarmManager = 314 (AlarmManager) context.getSystemService(Context.ALARM_SERVICE); 316 alarmManager.setExact(AlarmManager.ELAPSED_REALTIME, nextBroadcastTime, pendingNextBroadcast) [all...] |
/packages/services/Telephony/src/com/android/phone/ |
CallerInfoCache.java | 19 import android.app.AlarmManager; 54 * Interval used with {@link AlarmManager#setInexactRepeating(int, long, long, PendingIntent)}, 195 AlarmManager alarmManager = (AlarmManager) mContext.getSystemService(Context.ALARM_SERVICE); 197 alarmManager.setInexactRepeating(AlarmManager.ELAPSED_REALTIME,
|
/packages/apps/UnifiedEmail/src/com/android/mail/utils/ |
NotificationActionUtils.java | 18 import android.app.AlarmManager; 573 final AlarmManager alarmManager = 574 (AlarmManager) context.getSystemService(Context.ALARM_SERVICE); 581 alarmManager.set(AlarmManager.ELAPSED_REALTIME, triggerAtMills, pendingIntent); 594 final AlarmManager alarmManager = 595 (AlarmManager) context.getSystemService(Context.ALARM_SERVICE); 600 alarmManager.cancel(pendingIntent) [all...] |
/packages/apps/Calendar/src/com/android/calendar/alerts/ |
AlarmScheduler.java | 19 import android.app.AlarmManager; 43 * Schedules the next EVENT_REMINDER_APP broadcast with AlarmManager, by querying the events 110 static void scheduleNextAlarm(Context context, AlarmManagerInterface alarmManager, 118 context.getContentResolver(), alarmManager, batchSize, currentMillis); 177 ContentResolver contentResolver, AlarmManagerInterface alarmManager, 281 scheduleAlarm(context, nextAlarmEventId, nextAlarmTime, currentMillis, alarmManager); 291 long currentMillis, AlarmManagerInterface alarmManager) { 311 // Schedule an EVENT_REMINDER_APP broadcast with AlarmManager. The extra is 320 alarmManager.set(AlarmManager.RTC_WAKEUP, alarmTime, pi) [all...] |
/packages/apps/Email/emailsync/src/com/android/emailsync/ |
SyncManager.java | 20 import android.app.AlarmManager; [all...] |