/developers/build/prebuilts/androidtv/leanback/app/src/main/java/com/example/android/leanback/ |
BootupActivity.java | 17 import android.app.AlarmManager; 43 AlarmManager alarmManager = (AlarmManager) context.getSystemService(Context.ALARM_SERVICE); 47 alarmManager.setInexactRepeating(AlarmManager.ELAPSED_REALTIME_WAKEUP, 49 AlarmManager.INTERVAL_HALF_HOUR,
|
/developers/build/prebuilts/gradle/RepeatingAlarm/Application/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/Application/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,
|
/developers/build/prebuilts/androidtv/leanback/app/src/main/java/com/example/android/tvleanback/recommendation/ |
BootupActivity.java | 19 import android.app.AlarmManager; 45 AlarmManager alarmManager = (AlarmManager) context.getSystemService(Context.ALARM_SERVICE); 49 alarmManager.setInexactRepeating(AlarmManager.ELAPSED_REALTIME_WAKEUP, 51 AlarmManager.INTERVAL_HALF_HOUR,
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/ |
BluetoothDiscoverableTimeoutReceiver.java | 20 import android.app.AlarmManager; 42 AlarmManager alarmManager = 43 (AlarmManager) context.getSystemService (Context.ALARM_SERVICE); 47 alarmManager.cancel(pending); 53 alarmManager.set(AlarmManager.RTC_WAKEUP, alarmTime, pending); 65 AlarmManager alarmManager = 66 (AlarmManager) context.getSystemService (Context.ALARM_SERVICE) [all...] |
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/ |
CellBroadcastAlertReminder.java | 19 import android.app.AlarmManager; 134 AlarmManager alarmManager = (AlarmManager) context.getSystemService(Context.ALARM_SERVICE); 135 if (alarmManager == null) { 142 alarmManager.set(AlarmManager.ELAPSED_REALTIME_WAKEUP, triggerTime, sPlayReminderIntent);
|
/packages/apps/DeskClock/src/com/android/deskclock/ |
DeskClockBackupAgent.java | 19 import android.app.AlarmManager; 109 // Schedule the Intent delivery in AlarmManager. 110 final AlarmManager alarmManager = (AlarmManager) getSystemService(Context.ALARM_SERVICE); 111 alarmManager.setExact(AlarmManager.ELAPSED_REALTIME_WAKEUP, triggerAtMillis, restoreIntent); 129 // Now that alarms have been restored, schedule new instances in AlarmManager. 146 // Schedule the next alarm instance in AlarmManager.
|
/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 162 nextAlarmIntentAction = AlarmManager.ACTION_NEXT_ALARM_CLOCK_CHANGED; 242 AlarmManager alarmManager = ((AlarmManager) context 245 alarmManager.setExact(AlarmManager.RTC, onQuarterHour, quarterlyIntent); 247 alarmManager.set(AlarmManager.RTC, onQuarterHour, quarterlyIntent) [all...] |
/cts/tests/tests/permission/src/android/permission/cts/ |
NoSystemFunctionPermissionTest.java | 21 import android.app.AlarmManager; 59 * Verify that AlarmManager.setTimeZone() requires permissions. 65 AlarmManager alarmManager = (AlarmManager) mContext.getSystemService( 71 alarmManager.setTimeZone(timeZone); 72 fail("AlarmManager.setTimeZone() did not throw SecurityException as expected.");
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/dictionarypack/ |
DictionaryService.java | 19 import android.app.AlarmManager; 225 AlarmManager alarmManager = (AlarmManager)context.getSystemService(Context.ALARM_SERVICE); 238 if (null != alarmManager) alarmManager.set(AlarmManager.RTC, alarmTime, pendingIntent);
|
/packages/apps/DeskClock/src/com/android/deskclock/timer/ |
TimerReceiver.java | 19 import android.app.AlarmManager; 220 // Tell AlarmManager to send a "Time's up" message to this receiver when this timer expires. 235 AlarmManager mngr = (AlarmManager)context.getSystemService(Context.ALARM_SERVICE); 240 mngr.setExact(AlarmManager.ELAPSED_REALTIME_WAKEUP, nextTimesup, p); 242 mngr.set(AlarmManager.ELAPSED_REALTIME_WAKEUP, nextTimesup, p); 334 AlarmManager alarmManager = 335 (AlarmManager) context.getSystemService(Context.ALARM_SERVICE); 337 alarmManager.setExact(AlarmManager.ELAPSED_REALTIME, nextBroadcastTime, pendingNextBroadcast) [all...] |
/packages/apps/Settings/src/com/android/settings/ |
TetherService.java | 20 import android.app.AlarmManager; 225 AlarmManager alarmManager = (AlarmManager) getSystemService(ALARM_SERVICE); 231 alarmManager.setRepeating(AlarmManager.ELAPSED_REALTIME, firstTime, periodMs, 253 AlarmManager alarmManager = (AlarmManager) getSystemService(ALARM_SERVICE); 254 alarmManager.cancel(pendingIntent) [all...] |
/packages/services/Telephony/src/com/android/phone/vvm/omtp/sync/ |
OmtpVvmSyncService.java | 18 import android.app.AlarmManager; 119 AlarmManager alarmManager = (AlarmManager) context.getSystemService(Context.ALARM_SERVICE); 120 alarmManager.cancel(PendingIntent.getService(context, 0, intent, 0)); 126 alarmManager.cancel(PendingIntent.getService(context, 0, copyIntent, 0)); 128 alarmManager.cancel(PendingIntent.getService(context, 0, copyIntent, 0)); 326 AlarmManager alarmManager = (AlarmManager) [all...] |
/packages/apps/Bluetooth/src/com/android/bluetooth/sap/ |
SapServer.java | 11 import android.app.AlarmManager; 663 AlarmManager alarmManager = 664 (AlarmManager) mContext.getSystemService(Context.ALARM_SERVICE); 669 alarmManager.set(AlarmManager.ELAPSED_REALTIME_WAKEUP, 681 AlarmManager alarmManager = 682 (AlarmManager) mContext.getSystemService(Context.ALARM_SERVICE); 683 alarmManager.cancel(pDiscIntent) [all...] |
SapService.java | 9 import android.app.AlarmManager; 90 private AlarmManager mAlarmManager = null; 616 mAlarmManager =(AlarmManager) this.getSystemService (Context.ALARM_SERVICE); 624 mAlarmManager.set(AlarmManager.RTC_WAKEUP, System.currentTimeMillis() 632 AlarmManager alarmManager = (AlarmManager) this.getSystemService(Context.ALARM_SERVICE); 633 alarmManager.cancel(sender); [all...] |
/packages/apps/UnifiedEmail/src/com/android/mail/utils/ |
NotificationActionUtils.java | 18 import android.app.AlarmManager; 686 final AlarmManager alarmManager = 687 (AlarmManager) context.getSystemService(Context.ALARM_SERVICE); 694 alarmManager.set(AlarmManager.ELAPSED_REALTIME, triggerAtMills, pendingIntent); 707 final AlarmManager alarmManager = 708 (AlarmManager) context.getSystemService(Context.ALARM_SERVICE); 713 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/DeskClock/src/com/android/deskclock/alarms/ |
AlarmStateManager.java | 19 import android.app.AlarmManager; 112 // Intent action for an AlarmManager alarm serving only to set the next alarm indicators 238 AlarmManager alarmManager = (AlarmManager) context.getSystemService( 253 AlarmManager.AlarmClockInfo info = 254 new AlarmManager.AlarmClockInfo(alarmTime, viewIntent); 255 alarmManager.setAlarmClock(info, operation); 257 alarmManager.cancel(operation); 317 * Schedule alarm instance state changes with {@link AlarmManager} [all...] |
/packages/providers/TvProvider/src/com/android/providers/tv/ |
TvProvider.java | 20 import android.app.AlarmManager; 457 AlarmManager alarmManager = 458 (AlarmManager) getContext().getSystemService(Context.ALARM_SERVICE); 459 alarmManager.setInexactRepeating(AlarmManager.RTC, System.currentTimeMillis(), 460 AlarmManager.INTERVAL_HALF_DAY, pendingIntent); [all...] |
/packages/apps/Bluetooth/src/com/android/bluetooth/map/ |
BluetoothMapService.java | 18 import android.app.AlarmManager; 136 private AlarmManager mAlarmManager = null; [all...] |