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

1 2

  /frameworks/testing/uiautomator/utils/SleepUtils/AlarmService/src/com/android/testing/alarmservice/
Alarm.aidl 19 interface Alarm {
AlarmImpl.java 27 import com.android.testing.alarmservice.Alarm.Stub;
54 // set alarm, which will be delivered in form of the wakeupIntent
56 Log.d(LOG_TAG, String.format("Alarm set: %d, giving up wake lock", atTime));
67 Log.d(LOG_TAG, String.format("Alarm triggered, done waiting"));
  /external/valgrind/main/gdbserver_tests/
nlpasssigalrm.stdoutB.exp 2 SIGALRM Yes Yes Yes Alarm clock
4 Program received signal SIGALRM, Alarm clock.
7 SIGALRM No No Yes Alarm clock
  /external/chromium_org/chrome/browser/extensions/api/alarms/
alarm_manager.h 30 struct Alarm {
31 Alarm();
32 Alarm(const std::string& name,
36 ~Alarm();
38 linked_ptr<api::alarms::Alarm> js_alarm;
40 // least as often as the shortest alarm's granularity. It's initialized as
54 typedef std::vector<Alarm> AlarmList;
59 // Called when an alarm fires.
61 const Alarm& alarm) = 0
    [all...]
alarm_manager.cc 43 const Alarm& alarm) OVERRIDE {
45 args->Append(alarm.js_alarm->ToValue().release());
61 std::vector<Alarm> AlarmsFromValue(const base::ListValue* list) {
62 std::vector<Alarm> alarms;
65 Alarm alarm; local
67 api::alarms::Alarm::Populate(*alarm_dict, alarm.js_alarm.get())) {
70 base::GetValueAsTimeDelta(*time_value, &alarm.granularity)
80 scoped_ptr<base::DictionaryValue> alarm = local
205 Alarm& alarm = *it.second; local
    [all...]
alarms_api.cc 22 const char kAlarmNotFound[] = "No alarm named '*' exists.";
58 "Alarm delay is less than minimum of 1 minutes."
59 " In released .crx, alarm \"*\" will fire in approximately"
64 "Alarm delay is less than minimum of 1 minutes."
65 " Alarm \"*\" will fire in approximately 1 minutes.",
74 "Alarm period is less than minimum of 1 minutes."
75 " In released .crx, alarm \"*\" will fire approximately"
80 "Alarm period is less than minimum of 1 minutes."
81 " Alarm \"*\" will fire approximately every 1 minutes.",
116 Alarm alarm(alarm_name
122 AlarmManager::Get(profile())->AddAlarm(extension_id(), alarm); local
132 const Alarm* alarm = local
    [all...]
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);
110 linked_ptr<JsAlarm> alarm(new JsAlarm);
113 ADD_FAILURE() << "Expected a list of Alarm objects.";
116 EXPECT_TRUE(JsAlarm::Populate(*alarm_value, alarm.get()));
117 list.push_back(alarm);
148 // Create 1 non-repeating alarm
151 const Alarm* alarm = local
179 const Alarm* alarm = local
205 const Alarm* alarm = local
228 const Alarm* alarm = local
290 JsAlarm alarm; local
303 JsAlarm alarm; local
340 JsAlarm* alarm = alarms[0].get(); local
421 const extensions::Alarm* alarm = local
444 Alarm alarm; local
455 Alarm alarm; local
    [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...]
  /packages/apps/Launcher2/src/com/android/launcher2/
Alarm.java 21 public class Alarm implements Runnable{
22 // if we reach this time and the alarm hasn't been cancelled, call the listener
33 public Alarm() {
41 // Sets the alarm to go off in a certain number of milliseconds. If the alarm is already set,
42 // it's overwritten and only the new alarm setting is used
83 public void onAlarm(Alarm alarm);
SpringLoadedDragController.java 25 Alarm mAlarm;
33 mAlarm = new Alarm();
41 // Set a new alarm to expire for the screen that we are hovering over now
50 public void onAlarm(Alarm alarm) {
  /packages/apps/Launcher3/src/com/android/launcher3/
Alarm.java 21 public class Alarm implements Runnable{
22 // if we reach this time and the alarm hasn't been cancelled, call the listener
33 public Alarm() {
41 // Sets the alarm to go off in a certain number of milliseconds. If the alarm is already set,
42 // it's overwritten and only the new alarm setting is used
83 public void onAlarm(Alarm alarm);
SpringLoadedDragController.java 25 Alarm mAlarm;
33 mAlarm = new Alarm();
41 // Set a new alarm to expire for the screen that we are hovering over now
50 public void onAlarm(Alarm alarm) {
  /frameworks/testing/uiautomator/utils/SleepUtils/AlarmService/
Android.mk 23 src/com/android/testing/alarmservice/Alarm.aidl
  /frameworks/testing/uiautomator/utils/SleepUtils/SleepHelper/
Android.mk 25 ../AlarmService/src/com/android/testing/alarmservice/Alarm.aidl
  /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...]
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...]
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...]
  /frameworks/testing/uiautomator/utils/SleepUtils/SleepHelper/src/com/android/testing/sleephelper/
SetAlarm.java 31 import com.android.testing.alarmservice.Alarm;
44 private Alarm mAlarmService = null;
60 mAlarmService = Alarm.Stub.asInterface(service);
72 errorFinish("argument expected for alarm time");
  /external/chromium/base/threading/
watchdog.h 5 // The Watchdog class creates a second thread that can Alarm if a specific
40 // Start timing, and alarm when time expires (unless we're disarm()ed.)
45 // Reset time, and do not set off the alarm.
48 // Alarm is called if the time expires after an Arm() without someone calling
50 virtual void Alarm();
75 const TimeDelta duration_; // How long after start_time_ do we alarm?
80 TimeTicks start_time_; // Start of epoch, and alarm after duration_.
82 // When the debugger breaks (when we alarm), all the other alarms that are
83 // armed will expire (also alarm). To diminish this effect, we track any
86 // Without this safety net, any alarm will typically trigger a host of follo
    [all...]
watchdog_unittest.cc 30 virtual void Alarm() {
32 Watchdog::Alarm();
76 // Make sure a basic alarm fires when the time has expired.
85 // Make sure a basic alarm fires when the time has expired.
97 // Make sure a disable alarm does nothing, even if we arm it.
101 // Alarm should not fire, as it was disabled.
112 PlatformThread::Sleep(100); // Sleep a bit, but not past the alarm point.
122 // Alarm should not have fired before it was disarmed.
130 // ...but even after disarming, we can still use the alarm...
watchdog.cc 72 void Watchdog::Alarm() {
96 // We overslept, so this seems like a real alarm.
97 // Watch out for a user that stopped the debugger on a different alarm!
101 // False alarm: we started our clock before the debugger break (last
102 // alarm time).
110 watchdog_->state_ = DISARMED; // Only alarm at most once.
112 watchdog_->Alarm(); // Set a break point here to debug on alarms.
  /external/chromium_org/base/threading/
watchdog.h 5 // The Watchdog class creates a second thread that can Alarm if a specific
47 // Start timing, and alarm when time expires (unless we're disarm()ed.)
52 // Reset time, and do not set off the alarm.
55 // Alarm is called if the time expires after an Arm() without someone calling
57 virtual void Alarm();
82 const TimeDelta duration_; // How long after start_time_ do we alarm?
87 TimeTicks start_time_; // Start of epoch, and alarm after duration_.
watchdog.cc 16 // When the debugger breaks (when we alarm), all the other alarms that are
17 // armed will expire (also alarm). To diminish this effect, we track any
20 // Without this safety net, any alarm will typically trigger a host of follow
26 // When did we last alarm and get stuck (for a while) in a debugger?
108 void Watchdog::Alarm() {
134 // We overslept, so this seems like a real alarm.
135 // Watch out for a user that stopped the debugger on a different alarm!
139 // False alarm: we started our clock before the debugger break (last
140 // alarm time).
148 watchdog_->state_ = DISARMED; // Only alarm at most once
    [all...]
watchdog_unittest.cc 31 virtual void Alarm() OVERRIDE {
33 Watchdog::Alarm();
77 // Make sure a basic alarm fires when the time has expired.
86 // Make sure a basic alarm fires when the time has expired.
98 // Make sure a disable alarm does nothing, even if we arm it.
102 // Alarm should not fire, as it was disabled.
113 // Sleep a bit, but not past the alarm point.
124 // Alarm should not have fired before it was disarmed.
132 // ...but even after disarming, we can still use the alarm...
  /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...]

Completed in 228 milliseconds

1 2