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

1 2 3 4 5 6 7 8

  /packages/apps/Launcher3/src/com/android/launcher3/
OnAlarmListener.java 4 public void onAlarm(Alarm alarm);
  /developers/samples/android/background/alarms/Scheduler/src/com/example/android/scheduler/
SampleBootReceiver.java 8 * This BroadcastReceiver automatically (re)starts the alarm when the device is
10 * application's manifest file. When the user sets the alarm, the receiver is enabled.
11 * When the user cancels the alarm, the receiver is disabled, so that rebooting the
16 SampleAlarmReceiver alarm = new SampleAlarmReceiver(); field in class:SampleBootReceiver
21 alarm.setAlarm(context);
MainActivity.java 26 * This sample demonstrates how to schedule an alarm that causes a service to
34 SampleAlarmReceiver alarm = new SampleAlarmReceiver(); field in class:MainActivity
48 // Menu options to set and cancel the alarm.
52 // When the user clicks START ALARM, set the alarm.
54 alarm.setAlarm(this);
56 // When the user clicks CANCEL ALARM, cancel the alarm.
58 alarm.cancelAlarm(this);
  /external/valgrind/main/none/tests/s390x/
ex_sig.c 31 alarm(1);
37 alarm(1);
  /external/chromium_org/chrome/browser/extensions/api/alarms/
alarms_api_unittest.cc 24 typedef extensions::api::alarms::Alarm JsAlarm;
32 // Test delegate which quits the message loop when an alarm fires.
37 const Alarm& alarm) OVERRIDE {
38 alarms_seen.push_back(alarm.js_alarm->name);
114 linked_ptr<JsAlarm> alarm(new JsAlarm);
117 ADD_FAILURE() << "Expected a list of Alarm objects.";
120 EXPECT_TRUE(JsAlarm::Populate(*alarm_value, alarm.get()));
121 list.push_back(alarm);
153 // Ensure the alarm is gone
340 JsAlarm alarm; local
353 JsAlarm alarm; local
390 JsAlarm* alarm = alarms[0].get(); local
525 Alarm alarm; local
535 Alarm alarm; local
    [all...]
alarm_manager.cc 46 const Alarm& alarm) OVERRIDE {
48 args->Append(alarm.js_alarm->ToValue().release());
65 std::vector<Alarm> AlarmsFromValue(const base::ListValue* list) {
66 std::vector<Alarm> alarms;
69 Alarm alarm; local
71 api::alarms::Alarm::Populate(*alarm_dict, alarm.js_alarm.get())) {
74 base::GetValueAsTimeDelta(*time_value, &alarm.granularity)
84 scoped_ptr<base::DictionaryValue> alarm = local
245 Alarm& alarm = *it.second; local
    [all...]
alarm_manager.h 32 struct Alarm {
33 Alarm();
34 Alarm(const std::string& name,
38 ~Alarm();
40 linked_ptr<api::alarms::Alarm> js_alarm;
42 // least as often as the shortest alarm's granularity. It's initialized as
59 typedef std::vector<Alarm> AlarmList;
64 // Called when an alarm fires.
66 const Alarm& alarm) = 0
    [all...]
alarms_api.h 17 struct Alarm;
18 typedef std::vector<Alarm> AlarmList;
50 void Callback(const std::string& name, Alarm* alarm);
  /external/chromium_org/net/quic/
quic_connection_helper_test.cc 55 scoped_ptr<QuicAlarm> alarm(helper_.CreateAlarm(delegate));
58 alarm->Set(clock_.Now().Add(delta));
60 // Verify that the alarm task has been posted.
72 scoped_ptr<QuicAlarm> alarm(helper_.CreateAlarm(delegate));
75 alarm->Set(clock_.Now().Add(delta));
76 alarm->Cancel();
78 // The alarm task should still be posted.
90 scoped_ptr<QuicAlarm> alarm(helper_.CreateAlarm(delegate));
93 alarm->Set(clock_.Now().Add(delta));
94 alarm->Cancel()
    [all...]
  /external/chromium_org/third_party/npapi/npspy/extern/nspr/obsolete/
pralarm.h 47 ** alarm context (PRAlarm). The thread will inherit the priority
48 ** of the Alarm creator.
51 ** the context of a single alarm (PRAlarm). The notifications will be
85 ** Create an alarm context.
91 ** This creates an alarm context, which is an object used for subsequent
120 NSPR_API(PRStatus) PR_DestroyAlarm(PRAlarm *alarm); variable
127 ** INPUTS: PRAlarm *alarm Parent alarm context
140 ** by the alarm's internal thread at a fixed interval whose rate is the
143 ** the notifier routine indicates that they should cease of the alarm
    [all...]
  /packages/apps/DeskClock/src/com/android/deskclock/provider/
Alarm.java 37 public final class Alarm implements Parcelable, ClockContract.AlarmsColumns {
79 public static ContentValues createContentValues(Alarm alarm) {
81 if (alarm.id != INVALID_ID) {
82 values.put(ClockContract.AlarmsColumns._ID, alarm.id);
85 values.put(ENABLED, alarm.enabled ? 1 : 0);
86 values.put(HOUR, alarm.hour);
87 values.put(MINUTES, alarm.minutes);
88 values.put(DAYS_OF_WEEK, alarm.daysOfWeek.getBitSet());
89 values.put(VIBRATE, alarm.vibrate ? 1 : 0)
    [all...]
ClockDatabaseHelper.java 54 * Added alarm settings to instance table.
58 // This creates a default alarm at 8:30 for every Mon,Tue,Wed,Thu,Fri
61 // This creates a default alarm at 9:30 for every Sat,Sun
173 Alarm alarm = new Alarm(); local
174 alarm.id = cursor.getLong(0);
175 alarm.hour = cursor.getInt(1);
176 alarm.minutes = cursor.getInt(2);
177 alarm.daysOfWeek = new DaysOfWeek(cursor.getInt(3))
    [all...]
  /external/chromium_org/net/tools/quic/
quic_epoll_connection_helper_test.cc 58 scoped_ptr<QuicAlarm> alarm(helper_.CreateAlarm(delegate));
63 alarm->Set(start.Add(delta));
71 scoped_ptr<QuicAlarm> alarm(helper_.CreateAlarm(delegate));
76 alarm->Set(start.Add(delta));
77 alarm->Cancel();
86 scoped_ptr<QuicAlarm> alarm(helper_.CreateAlarm(delegate));
91 alarm->Set(clock->Now().Add(delta));
92 alarm->Cancel();
94 alarm->Set(clock->Now().Add(new_delta));
quic_epoll_connection_helper.cc 46 explicit EpollAlarmImpl(QuicEpollAlarm* alarm) : alarm_(alarm) {}
51 // Fire will take care of registering the alarm, if needed.
  /packages/apps/DeskClock/src/com/android/deskclock/
HandleApiCalls.java 30 import com.android.deskclock.provider.Alarm;
94 // Intent has no time or an invalid time, open the alarm creation UI
95 Intent createAlarm = Alarm.createIntent(this, DeskClock.class, Alarm.INVALID_ID);
110 // Check if the alarm already exists and handle it
112 final List<Alarm> alarms = Alarm.getAlarms(cr,
116 Alarm alarm = alarms.get(0); local
117 alarm.enabled = true
133 Alarm alarm = new Alarm(hour, minutes); local
    [all...]
AlarmClockFragment.java 70 import com.android.deskclock.provider.Alarm;
104 // This extra is used when receiving an intent to create an alarm, but no alarm details
105 // have been passed in, so the alarm page should start the process of creating a new alarm.
108 // This extra is used when receiving an intent to scroll to specific alarm. If alarm
109 // can not be found, and toast message will pop up that the alarm has be deleted.
110 public static final String SCROLL_TO_ALARM_INTENT_EXTRA = "deskclock.scroll.to.alarm";
125 private Alarm mSelectedAlarm
731 Alarm alarm; field in class:AlarmClockFragment.AlarmItemAdapter.ItemHolder
    [all...]
LabelDialogFragment.java 33 import com.android.deskclock.provider.Alarm;
42 private static final String KEY_ALARM = "alarm";
48 public static LabelDialogFragment newInstance(Alarm alarm, String label, String tag) {
52 args.putParcelable(KEY_ALARM, alarm);
79 final Alarm alarm = bundle.getParcelable(KEY_ALARM); local
91 set(alarm, timer, tag);
110 set(alarm, timer, tag);
120 private void set(Alarm alarm, TimerObj timer, String tag)
    [all...]
  /external/chromium_org/ppapi/c/dev/
ppb_alarms_dev.h 36 * Name of this alarm.
40 * Time at which this alarm was scheduled to fire, in milliseconds past the
41 * epoch. For performance reasons, the alarm may have been delayed an
46 * If set, the alarm is a repeating alarm and will fire again in
54 * Time at which the alarm should fire, in milliseconds past the epoch.
65 * <code>when</code> or <code>delay_in_minutes</code>. If not set, the alarm
84 * Fired when an alarm has elapsed. Useful for event pages.
89 * @param[in] alarm The alarm that has elapsed
    [all...]
  /external/valgrind/main/memcheck/tests/
post-syscall.c 28 alarm(1);
  /bionic/libc/unistd/
alarm.c 31 static char sccsid[] = "@(#)alarm.c 8.1 (Berkeley) 6/4/93";
34 //__FBSDID("$FreeBSD: /repoman/r/ncvs/src/lib/libc/gen/alarm.c,v 1.3 2007/01/09 00:27:53 imp Exp $");
37 * Backwards compatible alarm.
43 alarm(secs) function
  /external/chromium_org/ppapi/api/dev/
ppb_alarms_dev.idl 17 * Name of this alarm.
21 * Time at which this alarm was scheduled to fire, in milliseconds past the
22 * epoch. For performance reasons, the alarm may have been delayed an
27 * If set, the alarm is a repeating alarm and will fire again in
35 * Time at which the alarm should fire, in milliseconds past the epoch.
46 * <code>when</code> or <code>delay_in_minutes</code>. If not set, the alarm
58 * Fired when an alarm has elapsed. Useful for event pages.
63 * @param[in] alarm The alarm that has elapsed
    [all...]
  /frameworks/base/services/java/com/android/server/
AlarmManagerService.java 68 // The threshold for how long an alarm can be late before we print a
79 // Mask for testing whether a given alarm type is wakeup vs non-wakeup
136 final ArrayList<Alarm> alarms = new ArrayList<Alarm>();
143 Batch(Alarm seed) {
153 Alarm get(int index) {
161 boolean add(Alarm alarm) {
163 // narrows the batch if necessary; presumes that canHold(alarm) is true
164 int index = Collections.binarySearch(alarms, alarm, sIncreasingTimeOrder)
191 Alarm alarm = alarms.get(i); local
218 Alarm alarm = alarms.get(i); local
245 Alarm alarm = alarms.get(i); local
1040 Alarm alarm = batch.get(i); local
1206 Alarm alarm = triggerList.get(i); local
1306 Alarm alarm = triggerList.get(i); local
    [all...]
  /external/chromium_org/chrome/common/extensions/docs/examples/extensions/gmail/
background.js 114 console.log('Creating alarm');
115 // Use a repeating alarm so that it fires again if there was a problem
116 // setting the next alarm.
273 // for a little while just to be sure the refresh alarm is working nicely.
278 function onAlarm(alarm) {
279 console.log('Got alarm', alarm);
280 // |alarm| can be undefined because onAlarm also gets called from
282 if (alarm && alarm.name == 'watchdog')
    [all...]
  /external/chromium_org/chrome/browser/resources/backloader/scripts/
background.js 26 // Alarm name.
38 // Loader start up. Kicks off alarm initialization if needed.
46 // Check if this alarm already exists, if not then create it.
47 chrome.alarms.get(this.ALARM_NAME, function(alarm) {
48 if (!alarm) {
57 onAlarm_: function(alarm) {
58 if (alarm.name != this.ALARM_NAME)
  /external/valgrind/main/drd/tests/
pth_cleanup_handler.c 42 alarm(20);

Completed in 1042 milliseconds

1 2 3 4 5 6 7 8