/external/autotest/client/cros/power/ |
D | sys_power.py | 116 alarm = int(rtc.get_seconds() + seconds) 117 logging.debug('Suspend for %d seconds, wakealarm = %d', seconds, alarm) 118 rtc.set_wake_alarm(alarm) 119 return (alarm, wakeup_count) 122 def check_wakeup(alarm): argument 128 if now < alarm: 159 alarm, wakeup_count = prepare_wakeup(suspend_seconds) 165 check_wakeup(alarm) 166 return alarm 199 alarm, wakeup_count = prepare_wakeup(seconds) [all …]
|
/external/grpc-grpc/test/cpp/common/ |
D | alarm_test.cc | 37 Alarm alarm; in TEST() local 38 alarm.Set(&cq, grpc_timeout_seconds_to_deadline(1), junk); in TEST() 57 Alarm alarm; in TEST() local 60 alarm.experimental().Set( in TEST() 75 Alarm alarm; in TEST() local 78 alarm.experimental().Set(grpc_timeout_seconds_to_deadline(0), [c](bool ok) { in TEST() 92 Alarm alarm; in TEST() local 95 alarm.experimental().Set( in TEST() 116 Alarm alarm; in TEST() local 118 std::thread t1([&alarm, &cq, &junk] { in TEST() [all …]
|
/external/linux-kselftest/tools/testing/selftests/rtc/ |
D | rtctest.c | 171 struct rtc_wkalrm alarm = { 0 }; in TEST_F() local 178 rc = ioctl(self->fd, RTC_RD_TIME, &alarm.time); in TEST_F() 181 secs = timegm((struct tm *)&alarm.time) + ALARM_DELTA; in TEST_F() 182 gmtime_r(&secs, (struct tm *)&alarm.time); in TEST_F() 184 alarm.enabled = 1; in TEST_F() 186 rc = ioctl(self->fd, RTC_WKALM_SET, &alarm); in TEST_F() 193 rc = ioctl(self->fd, RTC_WKALM_RD, &alarm); in TEST_F() 197 alarm.time.tm_mday, alarm.time.tm_mon + 1, in TEST_F() 198 alarm.time.tm_year + 1900, alarm.time.tm_hour, in TEST_F() 199 alarm.time.tm_min, alarm.time.tm_sec); in TEST_F()
|
/external/grpc-grpc/src/cpp/common/ |
D | alarm.cc | 63 AlarmImpl* alarm = static_cast<AlarmImpl*>(arg); in Set() local 64 alarm->Ref(); in Set() 66 alarm->cq_, alarm, error, in Set() 68 arg, &alarm->completion_); in Set() 81 AlarmImpl* alarm = static_cast<AlarmImpl*>(arg); in Set() local 82 alarm->callback_(error == GRPC_ERROR_NONE); in Set() 83 alarm->Unref(); in Set()
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/fork/ |
D | 9-1.c | 57 alarm(10); in main() 59 ret = alarm(10); in main() 75 ret = alarm(10); in main() 96 alarm(0); in main()
|
/external/linux-kselftest/tools/testing/selftests/powerpc/signal/ |
D | signal.c | 70 alarm(0); /* Disable any pending */ in test_signal() 71 alarm(2); in test_signal() 86 alarm(0); /* Disable any pending */ in test_signal() 88 alarm(TIMEOUT); in test_signal()
|
D | signal_tm.c | 72 alarm(0); /* Disable any pending */ in test_signal_tm() 74 alarm(TIMEOUT); in test_signal_tm()
|
/external/ltp/testcases/kernel/syscalls/fcntl/ |
D | fcntl15.c | 148 alarm(60); in dochild1() 151 alarm((unsigned)0); in dochild1() 223 alarm(60); in dofork() 226 alarm((unsigned)0); in dofork() 299 alarm(60); in dochild2() 302 alarm((unsigned)0); in dochild2() 479 alarm(60); in run_test() 482 alarm((unsigned)0); in run_test()
|
D | fcntl14.c | 853 alarm(TIME_OUT); in run_test() 857 alarm((unsigned)0); in run_test() 883 alarm(TIME_OUT); in run_test() 888 alarm((unsigned)0); in run_test() 1103 (void)alarm(TIME_OUT); in main() 1108 (void)alarm((unsigned)0); in main() 1135 (void)alarm(TIME_OUT); in main() 1144 (void)alarm((unsigned)0); in main()
|
/external/ltp/testcases/kernel/syscalls/alarm/ |
D | alarm03.c | 25 TEST(alarm(100)); in verify_alarm() 29 TEST(alarm(0)); in verify_alarm() 42 TEST(alarm(0)); in verify_alarm()
|
D | alarm06.c | 59 alarm(2); in verify_alarm() 62 ret = alarm(0); in verify_alarm()
|
D | alarm05.c | 41 ret = alarm(10); in run() 49 ret = alarm(1); in run()
|
D | alarm02.c | 36 ret = alarm(tc->sec); in verify_alarm() 44 TEST(alarm(0)); in verify_alarm()
|
/external/python/cpython2/Doc/library/ |
D | signal.rst | 42 of execution. Any thread can perform an :func:`alarm`, :func:`getsignal`, 135 .. function:: alarm(time) 138 sent to the process in *time* seconds. Any previously scheduled alarm is 139 canceled (only one alarm can be scheduled at any time). The returned value is 140 then the number of seconds before any previously set alarm was to have been 141 delivered. If *time* is zero, no alarm is scheduled, and any scheduled alarm is 142 canceled. If the return value is zero, no alarm is currently scheduled. (See 143 the Unix man page :manpage:`alarm(2)`.) Availability: Unix. 169 :func:`alarm`) and after that every *interval* seconds. The interval 253 Here is a minimal example program. It uses the :func:`alarm` function to limit [all …]
|
/external/python/cpython3/Lib/test/ |
D | test_threadsignals.py | 60 signal.alarm(1) 63 signal.alarm(0) 97 signal.alarm(1) 107 signal.alarm(0) 138 signal.alarm(1) 145 signal.alarm(0)
|
/external/ltp/testcases/kernel/syscalls/kill/ |
D | kill02.c | 311 (void)alarm(TIMEOUT); in parent_rout() 316 (void)alarm(TIMEOUT); in parent_rout() 320 (void)alarm(0); /*Reset the alarm clock. */ in parent_rout() 433 (void)alarm(TIMEOUT); in parent_rout() 537 (void)alarm(TIMEOUT - 40); in child1_rout() 541 (void)alarm(TIMEOUT - 40); in child1_rout() 545 (void)alarm(0); /*Reset the alarm clock. */ in child1_rout()
|
/external/iputils/ |
D | tftpd.c | 186 alarm(0); in main() 379 alarm(rexmtval); /* read the ack */ in sendfile() 381 alarm(0); in sendfile() 444 alarm(rexmtval); in recvfile() 446 alarm(0); in recvfile() 482 alarm(rexmtval); in recvfile() 484 alarm(0); in recvfile()
|
/external/grpc-grpc/src/core/lib/iomgr/ |
D | tcp_client_custom.cc | 40 grpc_timer alarm; member 90 grpc_timer_cancel(&connect->alarm); in custom_connect_callback() 145 grpc_timer_init(&connect->alarm, deadline, &connect->on_alarm); in tcp_connect()
|
/external/u-boot/arch/arm/dts/ |
D | kirkwood-lsxl.dtsi | 37 pmx_led_alarm: pmx-led-alarm { 146 alarm { 147 label = "lsxl:red:alarm"; 178 alarm-gpios = <&gpio1 8 GPIO_ACTIVE_HIGH>;
|
/external/swiftshader/third_party/llvm-subzero/lib/Support/Unix/ |
D | Watchdog.inc | 22 alarm(seconds); 28 alarm(0);
|
/external/llvm/lib/Support/Unix/ |
D | Watchdog.inc | 22 alarm(seconds); 28 alarm(0);
|
/external/ltp/testcases/kernel/syscalls/rt_sigsuspend/ |
D | rt_sigsuspend01.c | 40 alarm(1); in verify_rt_sigsuspend() 44 alarm(0); in verify_rt_sigsuspend()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Support/Unix/ |
D | Watchdog.inc | 24 alarm(seconds); 30 alarm(0);
|
/external/linux-kselftest/tools/testing/selftests/prctl/ |
D | disable-tsc-ctxt-sw-stress-test.c | 52 alarm(10); in segvtask() 73 alarm(10); in rdtsctask()
|
/external/python/cpython3/Doc/library/ |
D | signal.rst | 188 .. function:: alarm(time) 191 sent to the process in *time* seconds. Any previously scheduled alarm is 192 canceled (only one alarm can be scheduled at any time). The returned value is 193 then the number of seconds before any previously set alarm was to have been 194 delivered. If *time* is zero, no alarm is scheduled, and any scheduled alarm is 195 canceled. If the return value is zero, no alarm is currently scheduled. (See 196 the Unix man page :manpage:`alarm(2)`.) 283 :func:`alarm`) and after that every *interval* seconds (if *interval* 473 Here is a minimal example program. It uses the :func:`alarm` function to limit 476 :func:`os.open` to hang indefinitely. The solution is to set a 5-second alarm [all …]
|