HomeSort by relevance Sort by last modified time
    Searched refs:AlarmManager (Results 1 - 25 of 93) sorted by null

1 2 3 4

  /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...]
  /cts/tests/tests/app/src/android/app/cts/
AlarmManagerTest.java 20 import android.app.AlarmManager;
30 private AlarmManager mAlarmManager;
53 mAlarmManager = (AlarmManager) mContext.getSystemService(Context.ALARM_SERVICE);
71 // AlarmManager perform the expected way
76 mAlarmManager.set(AlarmManager.RTC_WAKEUP, mWakeupTime, mSender);
88 mAlarmManager.set(AlarmManager.RTC, mWakeupTime, mSender);
100 mAlarmManager.set(AlarmManager.ELAPSED_REALTIME, mWakeupTime, mSender);
112 mAlarmManager.set(AlarmManager.ELAPSED_REALTIME_WAKEUP, mWakeupTime, mSender);
128 mAlarmManager.set(AlarmManager.RTC, mWakeupTime, mSender);
140 mAlarmManager.setRepeating(AlarmManager.RTC_WAKEUP, mWakeupTime, TIME_DELAY / 2, mSender)
    [all...]
  /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()
  /frameworks/base/core/tests/coretests/src/android/app/activity/
SetTimeZonePermissionsTest.java 19 import android.app.AlarmManager;
30 private AlarmManager mAlarm;
38 mAlarm = (AlarmManager) mContext.getSystemService(Context.ALARM_SERVICE);
65 assertEquals("AlarmManager.setTimeZone() succeeded despite lack of permission",
  /development/samples/ApiDemos/src/com/example/android/apis/app/
AlarmService.java 24 import android.app.AlarmManager;
67 AlarmManager am = (AlarmManager)getSystemService(ALARM_SERVICE);
68 am.setRepeating(AlarmManager.ELAPSED_REALTIME_WAKEUP,
80 AlarmManager am = (AlarmManager)getSystemService(ALARM_SERVICE);
AlarmController.java 24 import android.app.AlarmManager;
101 AlarmManager am = (AlarmManager)getSystemService(ALARM_SERVICE);
102 am.set(AlarmManager.RTC_WAKEUP, calendar.getTimeInMillis(), sender);
132 AlarmManager am = (AlarmManager)getSystemService(ALARM_SERVICE);
133 am.setRepeating(AlarmManager.ELAPSED_REALTIME_WAKEUP,
155 AlarmManager am = (AlarmManager)getSystemService(ALARM_SERVICE);
  /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...]
  /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/Alarm/src/com/example/android/newalarm/
AlarmActivity.java 20 import android.app.AlarmManager;
50 private AlarmManager mAlarmManager;
86 mAlarmManager = (AlarmManager)getSystemService(ALARM_SERVICE);
96 // The Android AlarmManager uses this form of the current time.
101 AlarmManager.ELAPSED_REALTIME_WAKEUP, // based on time since last wake up
  /development/samples/Support4Demos/src/com/example/android/supportv4/content/
SimpleWakefulController.java 22 import android.app.AlarmManager;
63 AlarmManager am = (AlarmManager)getSystemService(ALARM_SERVICE);
64 am.set(AlarmManager.RTC_WAKEUP, calendar.getTimeInMillis(), sender);
  /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,
  /frameworks/testing/uiautomator/utils/SleepUtils/AlarmService/src/com/android/testing/alarmservice/
AlarmImpl.java 19 import android.app.AlarmManager;
51 AlarmManager am = (AlarmManager) mContext.getSystemService(Context.ALARM_SERVICE);
55 am.set(AlarmManager.ELAPSED_REALTIME_WAKEUP, atTime, pi);
  /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,
  /external/chromium_org/chrome/browser/extensions/api/alarms/
alarm_manager.cc 40 class DefaultAlarmDelegate : public AlarmManager::Delegate {
96 // AlarmManager
98 AlarmManager::AlarmManager(Profile* profile)
112 AlarmManager::~AlarmManager() {
115 void AlarmManager::AddAlarm(const std::string& extension_id,
119 &AlarmManager::AddAlarmWhenReady, AsWeakPtr(), alarm, callback));
122 void AlarmManager::GetAlarm(const std::string& extension_id,
126 &AlarmManager::GetAlarmWhenReady, AsWeakPtr(), name, callback))
    [all...]
alarm_manager.h 54 class AlarmManager
57 public base::SupportsWeakPtr<AlarmManager> {
69 explicit AlarmManager(Profile* profile);
70 virtual ~AlarmManager();
108 // Replaces AlarmManager's owned clock with |clock| and takes ownership of it.
112 static ProfileKeyedAPIFactory<AlarmManager>* GetFactoryInstance();
114 // Convenience method to get the AlarmManager for a profile.
115 static AlarmManager* Get(Profile* profile);
118 friend void RunScheduleNextPoll(AlarmManager*);
125 friend class ProfileKeyedAPIFactory<AlarmManager>;
    [all...]
alarms_api.cc 123 AlarmManager::Get(GetProfile())->AddAlarm(
138 AlarmManager::Get(GetProfile())
158 AlarmManager::Get(GetProfile())->GetAllAlarms(
183 AlarmManager::Get(GetProfile())
199 AlarmManager::Get(GetProfile())->RemoveAllAlarms(
  /developers/samples/android/background/alarms/Scheduler/src/com/example/android/scheduler/
SampleAlarmReceiver.java 3 import android.app.AlarmManager;
18 // The app's AlarmManager, which provides access to the system alarm services.
19 private AlarmManager alarmMgr;
56 alarmMgr = (AlarmManager)context.getSystemService(Context.ALARM_SERVICE);
86 * alarmMgr.set(AlarmManager.ELAPSED_REALTIME_WAKEUP,
92 * alarmMgr.setInexactRepeating(AlarmManager.ELAPSED_REALTIME_WAKEUP,
93 * AlarmManager.INTERVAL_HALF_HOUR,
94 * AlarmManager.INTERVAL_HALF_HOUR, alarmIntent);
99 alarmMgr.setInexactRepeating(AlarmManager.RTC_WAKEUP,
100 calendar.getTimeInMillis(), AlarmManager.INTERVAL_DAY, alarmIntent)
    [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/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/apps/QuickSearchBox/src/com/android/quicksearchbox/
Config.java 19 import android.app.AlarmManager;
63 = AlarmManager.INTERVAL_FIFTEEN_MINUTES;
66 = AlarmManager.INTERVAL_HOUR * 2;
  /frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/
DcRetryAlarmController.java 18 import android.app.AlarmManager;
41 private AlarmManager mAlarmManager;
82 mAlarmManager = (AlarmManager) mPhone.getContext().getSystemService(Context.ALARM_SERVICE);
151 mAlarmManager.set(AlarmManager.ELAPSED_REALTIME_WAKEUP,
  /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);
  /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...]
  /external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/
ShadowAlarmManager.java 3 import android.app.AlarmManager;
15 * Shadows the {@code android.app.AlarmManager} class.
18 @Implements(AlarmManager.class)
47 * AlarmManager's stack.
92 * parameters used in a call to {@code AlarmManager}

Completed in 3059 milliseconds

1 2 3 4