/bionic/libc/upstream-openbsd/lib/libc/gen/ |
alarm.c | 1 /* $OpenBSD: alarm.c,v 1.8 2016/01/28 16:40:54 schwarze Exp $ */ 35 alarm(unsigned int secs) function
|
/prebuilts/jdk/jdk8/darwin-x86/sample/annotations/DependencyChecker/Plugins/src/plugins/ |
TimerPlugin.java | 45 * Timer plug-in is used to support an alarm and a timer. It depends on Display and 63 * Sets alarm. 65 * @param time - the alarm time. 67 public void alarm(long time) { method in class:TimerPlugin 68 //start alarm 69 //show current time and alarm time on display
|
/prebuilts/jdk/jdk8/linux-x86/sample/annotations/DependencyChecker/Plugins/src/plugins/ |
TimerPlugin.java | 45 * Timer plug-in is used to support an alarm and a timer. It depends on Display and 63 * Sets alarm. 65 * @param time - the alarm time. 67 public void alarm(long time) { method in class:TimerPlugin 68 //start alarm 69 //show current time and alarm time on display
|
/system/core/libmemunreachable/tests/ |
DisableMalloc_test.cpp | 31 void alarm(std::chrono::microseconds us) { function in class:android::DisableMallocTest 43 alarm(100ms); 63 alarm(100ms); 83 alarm(100ms); 99 alarm(250ms); 113 alarm(100ms); 124 alarm(100ms);
|
/frameworks/base/cmds/statsd/tests/anomaly/ |
AlarmTracker_test.cpp | 39 Alarm alarm; local 40 alarm.set_offset_millis(15 * MS_PER_SEC); 41 alarm.set_period_millis(60 * 60 * MS_PER_SEC); // 1hr 43 AlarmTracker tracker(startMillis, startMillis, alarm, kConfigKey, subscriberAlarmMonitor);
|
/developers/build/prebuilts/gradle/DirectBoot/Application/src/main/java/com/example/android/directboot/alarms/ |
AlarmStorage.java | 60 * Stores an alarm in the SharedPreferences. 64 * @param hour the integer as 24-hour format the alarm goes off 65 * @param minute the integer of the minute the alarm goes off 66 * @return the saved {@link Alarm} instance 68 public Alarm saveAlarm(int month, int date, int hour, int minute) { 69 Alarm alarm = new Alarm(); local 71 alarm.id = SECURE_RANDOM.nextInt(); 72 alarm.month = month 105 Alarm alarm = Alarm.fromJson(entry.getValue().toString()); local [all...] |
Alarm.java | 28 * Class represents a single alarm. 30 public class Alarm implements Comparable<Alarm> { 43 public Alarm(int id, int month, int date, int hour, int minute) { 51 public Alarm() { 74 * Parses a Json string to an {@link Alarm} instance. 76 * @param string The String representation of an alarm 77 * @return an instance of {@link Alarm} 79 public static Alarm fromJson(String string) { 81 Alarm alarm = new Alarm() local 115 Alarm alarm = (Alarm) o; local [all...] |
AlarmIntentService.java | 31 * IntentService to set off an alarm. 56 Alarm alarm = AlarmUtil.readAlarm(intent.getExtras()); local 65 .setContentTitle(context.getString(R.string.alarm_went_off, alarm.hour, 66 alarm.minute)); 67 notificationManager.notify(alarm.id, builder.build()); 70 alarmStorage.deleteAlarm(alarm); 72 wentOffIntent.putExtras(AlarmUtil.writeAlarm(alarm));
|
/developers/samples/android/security/DirectBoot/Application/src/main/java/com/example/android/directboot/alarms/ |
AlarmStorage.java | 60 * Stores an alarm in the SharedPreferences. 64 * @param hour the integer as 24-hour format the alarm goes off 65 * @param minute the integer of the minute the alarm goes off 66 * @return the saved {@link Alarm} instance 68 public Alarm saveAlarm(int month, int date, int hour, int minute) { 69 Alarm alarm = new Alarm(); local 71 alarm.id = SECURE_RANDOM.nextInt(); 72 alarm.month = month 105 Alarm alarm = Alarm.fromJson(entry.getValue().toString()); local [all...] |
Alarm.java | 28 * Class represents a single alarm. 30 public class Alarm implements Comparable<Alarm> { 43 public Alarm(int id, int month, int date, int hour, int minute) { 51 public Alarm() { 74 * Parses a Json string to an {@link Alarm} instance. 76 * @param string The String representation of an alarm 77 * @return an instance of {@link Alarm} 79 public static Alarm fromJson(String string) { 81 Alarm alarm = new Alarm() local 115 Alarm alarm = (Alarm) o; local [all...] |
AlarmIntentService.java | 31 * IntentService to set off an alarm. 56 Alarm alarm = AlarmUtil.readAlarm(intent.getExtras()); local 65 .setContentTitle(context.getString(R.string.alarm_went_off, alarm.hour, 66 alarm.minute)); 67 notificationManager.notify(alarm.id, builder.build()); 70 alarmStorage.deleteAlarm(alarm); 72 wentOffIntent.putExtras(AlarmUtil.writeAlarm(alarm));
|
/development/samples/browseable/DirectBoot/src/com.example.android.directboot/alarms/ |
AlarmStorage.java | 60 * Stores an alarm in the SharedPreferences. 64 * @param hour the integer as 24-hour format the alarm goes off 65 * @param minute the integer of the minute the alarm goes off 66 * @return the saved {@link Alarm} instance 68 public Alarm saveAlarm(int month, int date, int hour, int minute) { 69 Alarm alarm = new Alarm(); local 71 alarm.id = SECURE_RANDOM.nextInt(); 72 alarm.month = month 105 Alarm alarm = Alarm.fromJson(entry.getValue().toString()); local [all...] |
Alarm.java | 28 * Class represents a single alarm. 30 public class Alarm implements Comparable<Alarm> { 43 public Alarm(int id, int month, int date, int hour, int minute) { 51 public Alarm() { 74 * Parses a Json string to an {@link Alarm} instance. 76 * @param string The String representation of an alarm 77 * @return an instance of {@link Alarm} 79 public static Alarm fromJson(String string) { 81 Alarm alarm = new Alarm() local 115 Alarm alarm = (Alarm) o; local [all...] |
AlarmIntentService.java | 31 * IntentService to set off an alarm. 56 Alarm alarm = AlarmUtil.readAlarm(intent.getExtras()); local 65 .setContentTitle(context.getString(R.string.alarm_went_off, alarm.hour, 66 alarm.minute)); 67 notificationManager.notify(alarm.id, builder.build()); 70 alarmStorage.deleteAlarm(alarm); 72 wentOffIntent.putExtras(AlarmUtil.writeAlarm(alarm));
|
/frameworks/base/cmds/statsd/src/anomaly/ |
DurationAnomalyTracker.cpp | 43 VLOG("Not setting anomaly alarm since it would fall in the refractory period."); 52 sp<const InternalAlarm> alarm = new InternalAlarm{timestampSec}; local 53 mAlarms[dimensionKey] = alarm; 55 mAlarmMonitor->add(alarm); 66 // If the alarm is set in the past but hasn't fired yet (due to lag), catch it now.
|
/cts/hostsidetests/statsd/src/android/cts/statsd/alarm/ |
AlarmTests.java | 16 package android.cts.statsd.alarm; 21 import com.android.internal.os.StatsdConfigProto.Alarm; 47 CLog.w(TAG, TAG + " alarm tests are disabled by a flag. Change flag to true to run"); 68 .addAlarm(Alarm.newBuilder() 75 .setRuleType(Subscription.RuleType.ALARM)
|
/frameworks/base/cmds/statsd/tests/e2e/ |
Alarm_e2e_test.cpp | 35 auto alarm = config.add_alarm(); local 36 alarm->set_id(123456); 37 alarm->set_offset_millis(TimeUnitToBucketSizeInMillis(TEN_MINUTES)); 38 alarm->set_period_millis(TimeUnitToBucketSizeInMillis(ONE_HOUR)); 40 alarm = config.add_alarm(); 41 alarm->set_id(654321); 42 alarm->set_offset_millis(TimeUnitToBucketSizeInMillis(FIVE_MINUTES)); 43 alarm->set_period_millis(TimeUnitToBucketSizeInMillis(THIRTY_MINUTES)); 67 // Alarm fired.
|
/packages/apps/DeskClock/src/com/android/deskclock/widget/selector/ |
AlarmSelectionAdapter.java | 30 import com.android.deskclock.provider.Alarm; 53 final Alarm alarm = selection.getAlarm(); local 56 alarmTime.setTime(alarm.hour, alarm.minutes); 59 alarmLabel.setText(alarm.label); 61 // find days when alarm is firing 63 if (!alarm.daysOfWeek.isRepeating()) { 64 daysOfWeek = Alarm.isTomorrow(alarm, Calendar.getInstance()) [all...] |
/developers/build/prebuilts/gradle/Timer/Wearable/src/main/java/com/example/android/wearable/timer/ |
TimerNotificationService.java | 75 AlarmManager alarm = (AlarmManager) getSystemService(Context.ALARM_SERVICE); local 80 alarm.cancel(pendingIntent);
|
SetTimerActivity.java | 79 * Sets up an alarm (and an associated notification) to go off after <code>duration</code> 92 // Register with the alarm manager to display a notification when the timer is done. 109 // Get the alarm manager. 110 AlarmManager alarm = (AlarmManager) getSystemService(Context.ALARM_SERVICE); local 121 // Schedule an alarm. 122 alarm.setExact(AlarmManager.RTC_WAKEUP, wakeupTime, pendingIntent);
|
/developers/samples/android/wearable/wear/Timer/Wearable/src/main/java/com/example/android/wearable/timer/ |
TimerNotificationService.java | 75 AlarmManager alarm = (AlarmManager) getSystemService(Context.ALARM_SERVICE); local 80 alarm.cancel(pendingIntent);
|
SetTimerActivity.java | 79 * Sets up an alarm (and an associated notification) to go off after <code>duration</code> 92 // Register with the alarm manager to display a notification when the timer is done. 109 // Get the alarm manager. 110 AlarmManager alarm = (AlarmManager) getSystemService(Context.ALARM_SERVICE); local 121 // Schedule an alarm. 122 alarm.setExact(AlarmManager.RTC_WAKEUP, wakeupTime, pendingIntent);
|
/development/samples/browseable/Timer/src/com.example.android.wearable.timer/ |
TimerNotificationService.java | 75 AlarmManager alarm = (AlarmManager) getSystemService(Context.ALARM_SERVICE); local 80 alarm.cancel(pendingIntent);
|
SetTimerActivity.java | 79 * Sets up an alarm (and an associated notification) to go off after <code>duration</code> 92 // Register with the alarm manager to display a notification when the timer is done. 109 // Get the alarm manager. 110 AlarmManager alarm = (AlarmManager) getSystemService(Context.ALARM_SERVICE); local 121 // Schedule an alarm. 122 alarm.setExact(AlarmManager.RTC_WAKEUP, wakeupTime, pendingIntent);
|
/system/bt/osi/test/ |
alarm_test.cc | 25 #include "osi/include/alarm.h" 91 alarm_t* alarm = alarm_new("alarm_test.test_new_free_simple"); local 92 ASSERT_TRUE(alarm != NULL); 93 alarm_free(alarm); 99 alarm_t* alarm = alarm_new("alarm_test.test_simple_cancel"); local 100 alarm_cancel(alarm); 101 alarm_free(alarm); 105 alarm_t* alarm = alarm_new("alarm_test.test_cancel"); local 106 alarm_set(alarm, 10, cb, NULL); 107 alarm_cancel(alarm); 117 alarm_t* alarm = alarm_new("alarm_test.test_cancel_idempotent"); local 126 alarm_t* alarm = alarm_new("alarm_test.test_set_short"); local 142 alarm_t* alarm = alarm_new_periodic("alarm_test.test_set_short_periodic"); local 162 alarm_t* alarm = alarm_new_periodic("alarm_test.test_set_zero_periodic"); local 181 alarm_t* alarm = alarm_new("alarm_test.test_set_long"); local 196 alarm_t* alarm[2] = {alarm_new("alarm_test.test_set_short_short_0"), local 220 alarm_t* alarm[2] = {alarm_new("alarm_test.test_set_short_long_0"), local 245 alarm_t* alarm[2] = {alarm_new("alarm_test.test_set_long_long_0"), local 270 alarm_t* alarm = alarm_new("alarm_test.test_is_scheduled"); local 361 alarm_t* alarm = alarm_new(alarm_name.c_str()); local [all...] |