/external/chromium/base/threading/ |
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.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...] |
/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...] |
/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);
|
/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);
|
/packages/apps/DeskClock/src/com/android/deskclock/alarms/ |
AlarmStateManager.java | 38 import com.android.deskclock.provider.Alarm; 45 * This class handles all the state changes for alarm instances. You need to 46 * register all alarm instances with the state manager if you want them to 56 * This state is used when the alarm is activated, but doesn't need to display anything. It 57 * is in charge of changing the alarm instance state to a LOW_NOTIFICATION_STATE. 60 * This state is used to notify the user that the alarm will go off 75 * also increments the alarm time in the instance to reflect the new snooze time. 78 * The FIRED_STATE is used when the alarm is firing. It will start the AlarmService, and wait 79 * until the user interacts with the alarm via SNOOZED_STATE or DISMISS_STATE change. If the user 83 * The MISSED_STATE is used when the alarm already fired, but the user could not interact wit 137 Alarm alarm = Alarm.getAlarm(cr, instance.mAlarmId); local 523 Alarm alarm = Alarm.getAlarm(cr, instance.mAlarmId); local [all...] |
/external/chromium/chrome/browser/ |
jankometer.cc | 70 virtual void Alarm() { 74 Watchdog::Alarm();
|
/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...] |
/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...] |
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/test/ |
test_socket.py | 671 if not hasattr(signal, 'alarm') or not hasattr(socket, 'socketpair'): 672 self.skipTest("signal.alarm and socket.socketpair required for this test") 684 # Just above the one second minimum for signal.alarm 687 signal.alarm(1) 691 signal.alarm(1) [all...] |
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/test/ |
test_socket.py | 671 if not hasattr(signal, 'alarm') or not hasattr(socket, 'socketpair'): 672 self.skipTest("signal.alarm and socket.socketpair required for this test") 684 # Just above the one second minimum for signal.alarm 687 signal.alarm(1) 691 signal.alarm(1) [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 1035 Alarm alarm = batch.get(i); local 1198 Alarm alarm = triggerList.get(i); local 1298 Alarm alarm = triggerList.get(i); local [all...] |